MichaelZoe

Results 3 comments of MichaelZoe

hi, have anyone fixed the synchronization problem?

> 原因如下,还未找到解决办法: > 系统类UsbUserSettingsManager 中的如下方法中的 > mUserContext.checkCallingPermission(android.Manifest.permission.CAMERA); > 永远返回-1,还未找到解决办法 > > private boolean isCameraPermissionGranted(String packageName, int uid) { > int targetSdkVersion = android.os.Build.VERSION_CODES.P; > try { > ApplicationInfo aInfo =...

> if (targetSdkVersion >= android.os.Build.VERSION_CODES.P) {             int allowed = mUserContext.checkCallingPermission(android.Manifest.permission.CAMERA);             //if (android.content.pm.PackageManager.PERMISSION_DENIED == allowed) {      ...