源码在
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;
}
网友评论