Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save Muhammadyoussef/ec06cb6212923492050744aaed1abcb9 to your computer and use it in GitHub Desktop.
Save Muhammadyoussef/ec06cb6212923492050744aaed1abcb9 to your computer and use it in GitHub Desktop.
try {
targetUid = pm.getPackageUid(targetPkg, MATCH_DEBUG_TRIAGED_MISSING, targetUserId);
} catch (RemoteException ex) {
return;
}
targetUid = checkGrantUriPermissionLocked(callingUid, targetPkg, grantUri, modeFlags, targetUid);
if (targetUid < 0) {
return;
}
grantUriPermissionUncheckedLocked(targetUid, targetPkg, grantUri, modeFlags, owner);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment