android 5.1 取消录制屏幕跳出的权限对话框问题

源码在

frameworks/base/packages/systemui/src/com/android/systemui/media/mediaprojectionspermissionactivity

修改为

try {
            Intent intent = getMediaProjectionIntent(mUid, mPackageName,true);
            if (mService.hasProjectionPermission(mUid, mPackageName)) {
                //setResult(RESULT_OK, getMediaProjectionIntent(mUid, mPackageName,
                //        false /*permanentGrant*/));
                setResult(RESULT_OK,intent);
                finish();
                return;
            }
        } catch (RemoteException e) {
            Log.e(TAG, "Error checking projection permissions", e);
            finish();
            return;
        }

你可能感兴趣的:(android 5.1 取消录制屏幕跳出的权限对话框问题)