summaryrefslogtreecommitdiffstats
path: root/services
diff options
context:
space:
mode:
authorJunda Liu <junda@google.com>2015-08-17 18:58:19 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2015-08-17 18:58:19 +0000
commitf2cb6f7e3ea143ba4acace0821c9d49e363da7eb (patch)
tree6669b6e3894f5df8a2a775f4513f9dd1af177f99 /services
parenta3fd27adcc655dd9566d72f290ac343704e8e4db (diff)
parentd878f5327793310d5fda083f800644bc96d6a6e8 (diff)
downloadframeworks_base-f2cb6f7e3ea143ba4acace0821c9d49e363da7eb.zip
frameworks_base-f2cb6f7e3ea143ba4acace0821c9d49e363da7eb.tar.gz
frameworks_base-f2cb6f7e3ea143ba4acace0821c9d49e363da7eb.tar.bz2
Merge "Grant SMS carrier provisioning app the permission to receive SMS." into mnc-dev
Diffstat (limited to 'services')
-rw-r--r--services/core/java/com/android/server/pm/DefaultPermissionGrantPolicy.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/services/core/java/com/android/server/pm/DefaultPermissionGrantPolicy.java b/services/core/java/com/android/server/pm/DefaultPermissionGrantPolicy.java
index d2a70df..96a5e00 100644
--- a/services/core/java/com/android/server/pm/DefaultPermissionGrantPolicy.java
+++ b/services/core/java/com/android/server/pm/DefaultPermissionGrantPolicy.java
@@ -363,6 +363,14 @@ final class DefaultPermissionGrantPolicy {
grantRuntimePermissionsLPw(cbrPackage, SMS_PERMISSIONS, userId);
}
+ // Carrier Provisioning Service
+ Intent carrierProvIntent = new Intent(Intents.SMS_CARRIER_PROVISION_ACTION);
+ PackageParser.Package carrierProvPackage =
+ getDefaultSystemHandlerServicePackageLPr(carrierProvIntent, userId);
+ if (carrierProvPackage != null && doesPackageSupportRuntimePermissions(carrierProvPackage)) {
+ grantRuntimePermissionsLPw(carrierProvPackage, SMS_PERMISSIONS, false, userId);
+ }
+
// Calendar
Intent calendarIntent = new Intent(Intent.ACTION_MAIN);
calendarIntent.addCategory(Intent.CATEGORY_APP_CALENDAR);