CodenameOne icon indicating copy to clipboard operation
CodenameOne copied to clipboard

warning in android 11 using com.google.android.gms.permission.AD_ID

Open DurankGts opened this issue 2 years ago • 4 comments

In know that is a simple warning but could you tell the cause in your final source code?

12:03:18.381 W Package {my package name} failed Ad Id permission check. Apps that target Android SDK 33 or higher should declare com.google.android.gms.permission.AD_ID in the app manifest to access Ad Id.

and issue is occuring when I'm taking picture from camera in android 11 in this time my app is restarting and don't restart to my last form where I launch the native picture.

this the logs

In know that is a simple warning but could you tell the cause of this behaivor in android 11.

12:03:18.381 W Package {my package name} failed Ad Id permission check. Apps that target Android SDK 33 or higher should declare com.google.android.gms.permission.AD_ID in the app manifest to access Ad Id.

and issue is occuring when I'm taking picture from camera in android 11 in this time my app is restarting and don't restart to my last form where I launch the native picture.

this the logs

2:01:03.721 D [EDT] 0:1:17,573 - | 07-07-2023 12:01:03.720 PM | {MyAppNAme} | DbHelper | Info | mediaFilePath :file:///data/user/0/{my package name}/files/UserPhotos/user_photo_03072023_015814.jpeg 12:01:03.734 D [EDT] 0:1:17,586 - | 07-07-2023 12:01:03.733 PM | {MyAppNAme} | DbHelper | Info | mediaFilePath :file:///data/user/0/{my package name}/files/UserPhotos/user_photo_03072023_015814.jpeg 12:01:06.320 D [EDT] 0:1:20,172 - | 07-07-2023 12:01:06.320 PM | {MyAppNAme} | GuiUserPersonalInformation | Info | requestPermissionToWriteAccessMediaPhoto()->requesting android.permission.WRITE_EXTERNAL_STORAGE:{my package name}.p.l@cc2801d 12:01:07.120 V Changing focus of displayId=0 to null from Window{dac81db u0 {my package name}/{my package name}.ForceSOSStub} 12:01:07.177 W Package {my package name} failed Ad Id permission check. Apps that target Android SDK 33 or higher should declare com.google.android.gms.permission.AD_ID in the app manifest to access Ad Id. 12:01:07.912 I SURFACE hide Surface(name={my package name}/{my package name}.ForceSOSStub)/@0x6abafaf on display:0 12:01:08.433 I Kill '{my package name}' (15789), uid 10480, oom_adj 700 to free 159884kB; reason: kernel is busy on reclaim (4430) and low watermark is breached 12:01:08.472 I Process {my package name} (pid 15789) has died: prev LAST 12:01:08.472 I WIN DEATH: Window{dac81db u0 {my package name}/{my package name}.ForceSOSStub} 12:01:08.472 W Attempted to unregister already unregistered input channel 'dac81db {my package name}/{my package name}.ForceSOSStub (server)' 12:03:17.536 I Start proc 17379:{my package name}/u0a480 for top-activity {{my package name}/{my package name}.ForceSOSStub} 12:03:17.603 I SURFACE show Surface(name=Splash Screen {my package name})/@0x4998561 on display:0 12:03:17.873 V Changing focus of displayId=0 to Window{7de1a u0 {my package name}/{my package name}.ForceSOSStub} from null 12:03:18.031 I SURFACE show Surface(name={my package name}/{my package name}.ForceSOSStub)/@0xfa401ca on display:0 12:03:18.124 I GoogleInputMethodService.onStartInput():1909 onStartInput(EditorInfo{inputType=0x0(NULL) imeOptions=0x0 privateImeOptions=null actionName=UNSPECIFIED actionLabel=null actionId=0 initialSelStart=-1 initialSelEnd=-1 initialCapsMode=0x0 hintText=null label=null packageName={my package name} fieldId=-1 fieldName=null extras=null hintLocales=[]}, false) 12:03:18.197 I SURFACE hide Surface(name=Splash Screen {my package name})/@0x4998561 on display:0

DurankGts avatar Jul 07 '23 16:07 DurankGts

We don't access this in our code: https://github.com/search?q=repo%3Acodenameone%2FCodenameOne%20AD_ID&type=code

Nor in the private code. I'm guessing there's a cn1lib that accesses it.

shai-almog avatar Jul 11 '23 03:07 shai-almog

but what relation have this https://github.com/search?q=repo%3Acodenameone%2FCodenameOne%20AD_ID&type=code?

DurankGts avatar Jul 11 '23 13:07 DurankGts

Does your app contain ads or push notifications?

Eric-Chomba avatar Jul 12 '23 05:07 Eric-Chomba

but what relation have this https://github.com/search?q=repo%3Acodenameone%2FCodenameOne%20AD_ID&type=code?

This is a search for the AD_ID string that shows we don't have that in the project.

shai-almog avatar Jul 13 '23 02:07 shai-almog