Merge "DO NOT MERGE. KEY_INTENT shouldn't grant permissions." into nyc-mr1-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
9d3706046c
@@ -4184,6 +4184,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