Merge changes I546a3133,I5d892b2d

* changes:
  Don't skip verification of Instant Apps
  Expose ACCESS_INSTANT_APPS to the verifier
This commit is contained in:
TreeHugger Robot
2017-03-06 23:12:33 +00:00
committed by Android (Google) Code Review
2 changed files with 1 additions and 8 deletions

View File

@@ -3226,7 +3226,7 @@
<!-- Allows the holder to access the instant applications on the device.
@hide -->
<permission android:name="android.permission.ACCESS_INSTANT_APPS"
android:protectionLevel="signature|installer" />
android:protectionLevel="signature|installer|verifier" />
<!-- Allows receiving the usage of media resource e.g. video/audio codec and
graphic memory.

View File

@@ -13840,13 +13840,6 @@ public class PackageManagerService extends IPackageManager.Stub {
if (!DEFAULT_VERIFY_ENABLE) {
return false;
}
// Ephemeral apps don't get the full verification treatment
if ((installFlags & PackageManager.INSTALL_INSTANT_APP) != 0) {
if (DEBUG_EPHEMERAL) {
Slog.d(TAG, "INSTALL_EPHEMERAL so skipping verification");
}
return false;
}
boolean ensureVerifyAppsEnabled = isUserRestricted(userId, UserManager.ENSURE_VERIFY_APPS);