summaryrefslogtreecommitdiffstats
path: root/services
diff options
context:
space:
mode:
authorSvetoslav Ganov <svetoslavganov@google.com>2015-07-22 21:41:40 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2015-07-22 21:41:40 +0000
commit3d6f606031da248a3b1fd6f0f569ac33a26c0b5e (patch)
tree964838ddbe20f03310c6f144883da088ec517daa /services
parent3f2c51084b9d9578532c8a88e7a5444eeedc86c2 (diff)
parent2062eeff0156bc4e119398f1736e699d90ad8345 (diff)
downloadframeworks_base-3d6f606031da248a3b1fd6f0f569ac33a26c0b5e.zip
frameworks_base-3d6f606031da248a3b1fd6f0f569ac33a26c0b5e.tar.gz
frameworks_base-3d6f606031da248a3b1fd6f0f569ac33a26c0b5e.tar.bz2
Merge "Add a privileged permission to get user accounts" into mnc-dev
Diffstat (limited to 'services')
-rw-r--r--services/core/java/com/android/server/accounts/AccountManagerService.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/services/core/java/com/android/server/accounts/AccountManagerService.java b/services/core/java/com/android/server/accounts/AccountManagerService.java
index cb294fd..32fd56a 100644
--- a/services/core/java/com/android/server/accounts/AccountManagerService.java
+++ b/services/core/java/com/android/server/accounts/AccountManagerService.java
@@ -3799,7 +3799,8 @@ public class AccountManagerService
* access accounts of the specified account.
*/
boolean isPermitted =
- isPermitted(callingUid, Manifest.permission.GET_ACCOUNTS);
+ isPermitted(callingUid, Manifest.permission.GET_ACCOUNTS,
+ Manifest.permission.GET_ACCOUNTS_PRIVILEGED);
boolean isAccountManagedByCaller = isAccountManagedByCaller(accountType, callingUid);
Log.w(TAG, String.format(
"isReadAccountPermitted: isPermitted: %s, isAM: %s",