am cee66550: am 8695ec34: am 38c0fbda: Merge "Pregrant unrevokable storage permission to the CertInstaller" into mnc-dev

* commit 'cee6655097d174f25fa21b6c2e80a3bbe54aae7e':
  Pregrant unrevokable storage permission to the CertInstaller
This commit is contained in:
Svetoslav Ganov
2015-08-06 19:32:37 +00:00
committed by Android Git Automerger

View File

@@ -34,6 +34,7 @@ import android.provider.CalendarContract;
import android.provider.ContactsContract; import android.provider.ContactsContract;
import android.provider.MediaStore; import android.provider.MediaStore;
import android.provider.Telephony.Sms.Intents; import android.provider.Telephony.Sms.Intents;
import android.security.Credentials;
import android.util.ArraySet; import android.util.ArraySet;
import android.util.Log; import android.util.Log;
@@ -298,6 +299,15 @@ final class DefaultPermissionGrantPolicy {
grantRuntimePermissionsLPw(storagePackage, STORAGE_PERMISSIONS, userId); grantRuntimePermissionsLPw(storagePackage, STORAGE_PERMISSIONS, userId);
} }
// CertInstaller
Intent certInstallerIntent = new Intent(Credentials.INSTALL_ACTION);
PackageParser.Package certInstallerPackage = getDefaultSystemHandlerActivityPackageLPr(
certInstallerIntent, userId);
if (certInstallerPackage != null
&& doesPackageSupportRuntimePermissions(certInstallerPackage)) {
grantRuntimePermissionsLPw(certInstallerPackage, STORAGE_PERMISSIONS, true, userId);
}
// Dialer // Dialer
if (dialerAppPackageNames == null) { if (dialerAppPackageNames == null) {
Intent dialerIntent = new Intent(Intent.ACTION_DIAL); Intent dialerIntent = new Intent(Intent.ACTION_DIAL);