Merge "DO NOT MERGE. KEY_INTENT shouldn't grant permissions." into nyc-dev
am: 254369967a
Change-Id: I511e6d122a5717b36ad78d8100ed728ef862adff
This commit is contained in:
@@ -3879,6 +3879,10 @@ public class AccountManagerService
|
|||||||
protected void checkKeyIntent(
|
protected void checkKeyIntent(
|
||||||
int authUid,
|
int authUid,
|
||||||
Intent intent) throws SecurityException {
|
Intent intent) throws SecurityException {
|
||||||
|
intent.setFlags(intent.getFlags() & ~(Intent.FLAG_GRANT_READ_URI_PERMISSION
|
||||||
|
| Intent.FLAG_GRANT_WRITE_URI_PERMISSION
|
||||||
|
| Intent.FLAG_GRANT_PERSISTABLE_URI_PERMISSION
|
||||||
|
| Intent.FLAG_GRANT_PREFIX_URI_PERMISSION));
|
||||||
long bid = Binder.clearCallingIdentity();
|
long bid = Binder.clearCallingIdentity();
|
||||||
try {
|
try {
|
||||||
PackageManager pm = mContext.getPackageManager();
|
PackageManager pm = mContext.getPackageManager();
|
||||||
|
|||||||
Reference in New Issue
Block a user