breautek commented on issue #797:
URL: 
https://github.com/apache/cordova-plugin-camera/issues/797#issuecomment-1186078495

   Confirmed on pure cordova app
   
   Cordova android v11.0.0
   cordova camera plugin v6.0.0
   
   Build Tools / Target SDK 33 on Android 13 emulator
   
   Error code 20 is produced to the JS console
   
   Native logcat:
   
   ```
   07-16 00:23:38.096   575   914 V UserSystemPackageInstaller: 
dumpPackageWhitelistProblems(): using mode 
ENFORCE|IMPLICIT_WHITELIST|IMPLICIT_WHITELIST_SYSTEM
   07-16 00:23:38.113   575   914 I ActivityTaskManager: START u0 
{act=android.content.pm.action.REQUEST_PERMISSIONS 
pkg=com.google.android.permissioncontroller 
cmp=com.google.android.permissioncontroller/com.android.permissioncontroller.permission.ui.GrantPermissionsActivity
 (has extras)} from uid 10157
   07-16 00:23:38.120  6334  6334 D CordovaActivity: Paused the activity.
   07-16 00:23:38.121   575   917 W ActivityTaskManager: Tried to set 
launchTime (0) < mLastActivityLaunchTime (352665)
   07-16 00:23:38.125   575   594 D OomAdjuster: Not killing cached processes
   07-16 00:23:38.142   575   917 D CoreBackPreview: Window{e737f07 u0 
com.google.android.permissioncontroller/com.android.permissioncontroller.permission.ui.GrantPermissionsActivity}:
 Setting back callback 
OnBackInvokedCallbackInfo{mCallback=android.window.IOnBackInvokedCallback$Stub$Proxy@c13665d,
 mPriority=0}
   07-16 00:23:38.150   402   446 D goldfish-address-space: claimShared: Ask to 
claim region [0x3f683d000 0x3f6e40000]
   07-16 00:23:38.160  6334  6334 D CordovaActivity: Resumed the activity.
   07-16 00:23:38.161  6334  6334 I chromium: [INFO:CONSOLE(1)] "20", source:  
(1)
   07-16 00:23:38.173   575   917 D CoreBackPreview: Window{e737f07 u0 
com.google.android.permissioncontroller/com.android.permissioncontroller.permission.ui.GrantPermissionsActivity}:
 Setting back callback null
   07-16 00:23:38.173   575  3087 W InputManager-JNI: Input channel object 
'e737f07 
com.google.android.permissioncontroller/com.android.permissioncontroller.permission.ui.GrantPermissionsActivity
 (client)' was disposed without first being removed with the input manager!
   07-16 00:23:38.189  7107  7107 I GoogleInputMethodService: 
GoogleInputMethodService.onFinishInput():3204 
   07-16 00:23:38.190  7107  7107 I GoogleInputMethodService: 
GoogleInputMethodService.updateDeviceLockedStatus():2100 checkRepeatedly = 
false, unlocked = true
   07-16 00:23:38.190  7107  7107 I GoogleInputMethodService: 
GoogleInputMethodService.onStartInput():1903 
onStartInput(EditorInfo{inputType=0x0(NULL) imeOptions=0x12000000 
privateImeOptions=null actionName=UNSPECIFIED actionLabel=null actionId=0 
initialSelStart=-1 initialSelEnd=-1 initialCapsMode=0x0 hintText=null 
label=null packageName=io.cordova.hellocordovagh797 fieldId=100 fieldName=null 
extras=null}, false)
   07-16 00:23:38.190  7107  7107 I GoogleInputMethodService: 
GoogleInputMethodService.updateDeviceLockedStatus():2100 checkRepeatedly = 
true, unlocked = true
   ```
   
   At a glance, it appears something to do with handling permissions has 
changed in Android 13, as error code `20` is a Permission Error Code...
   
   
https://github.com/apache/cordova-plugin-camera/blob/4608f8ef8027a5c7130a3479c2d37a5e391c70e8/src/android/CameraLauncher.java#L100


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to