Loading services/core/java/com/android/server/pm/PackageManagerService.java +0 −3 Original line number Diff line number Diff line Loading @@ -5257,9 +5257,6 @@ public class PackageManagerService implements PackageSender, TestUtilityService public int getUserMinAspectRatio(@NonNull String packageName, int userId) { final Computer snapshot = snapshotComputer(); final int callingUid = Binder.getCallingUid(); snapshot.enforceCrossUserPermission( callingUid, userId, false /* requireFullPermission */, false /* checkShell */, "getUserMinAspectRatio"); final PackageStateInternal packageState = snapshot .getPackageStateForInstalledAndFiltered(packageName, callingUid, userId); return packageState == null ? USER_MIN_ASPECT_RATIO_UNSET Loading services/tests/PackageManagerServiceTests/appenumeration/src/com/android/server/pm/test/appenumeration/CrossUserPackageVisibilityTests.java +0 −8 Original line number Diff line number Diff line Loading @@ -137,14 +137,6 @@ public class CrossUserPackageVisibilityTests { mInstrumentation.getContext().getPackageName(), crossUserId)); } @Test public void testGetUserMinAspectRatio_withCrossUserId() { final int crossUserId = UserHandle.myUserId() + 1; assertThrows(SecurityException.class, () -> mIPackageManager.getUserMinAspectRatio( mInstrumentation.getContext().getPackageName(), crossUserId)); } @Test public void testIsPackageSignedByKeySet_cannotDetectCrossUserPkg() throws Exception { final KeySet keySet = mIPackageManager.getSigningKeySet(mContext.getPackageName()); Loading Loading
services/core/java/com/android/server/pm/PackageManagerService.java +0 −3 Original line number Diff line number Diff line Loading @@ -5257,9 +5257,6 @@ public class PackageManagerService implements PackageSender, TestUtilityService public int getUserMinAspectRatio(@NonNull String packageName, int userId) { final Computer snapshot = snapshotComputer(); final int callingUid = Binder.getCallingUid(); snapshot.enforceCrossUserPermission( callingUid, userId, false /* requireFullPermission */, false /* checkShell */, "getUserMinAspectRatio"); final PackageStateInternal packageState = snapshot .getPackageStateForInstalledAndFiltered(packageName, callingUid, userId); return packageState == null ? USER_MIN_ASPECT_RATIO_UNSET Loading
services/tests/PackageManagerServiceTests/appenumeration/src/com/android/server/pm/test/appenumeration/CrossUserPackageVisibilityTests.java +0 −8 Original line number Diff line number Diff line Loading @@ -137,14 +137,6 @@ public class CrossUserPackageVisibilityTests { mInstrumentation.getContext().getPackageName(), crossUserId)); } @Test public void testGetUserMinAspectRatio_withCrossUserId() { final int crossUserId = UserHandle.myUserId() + 1; assertThrows(SecurityException.class, () -> mIPackageManager.getUserMinAspectRatio( mInstrumentation.getContext().getPackageName(), crossUserId)); } @Test public void testIsPackageSignedByKeySet_cannotDetectCrossUserPkg() throws Exception { final KeySet keySet = mIPackageManager.getSigningKeySet(mContext.getPackageName()); Loading