Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a8ee5c9a authored by Adnan Begovic's avatar Adnan Begovic Committed by Steve Kondik
Browse files

pm: Fix PackageManagerTests for testGetKeySetByAlias.

  getKeySetByAlias never enforces any permission checks or
  throws any SecurityExceptions so the current test always fails.

  SecuritException throw was removed in c6f22499.

Change-Id: I2f073395d864792f759df60327023a06f169cecb
parent 91f0f867
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -3324,11 +3324,6 @@ public class PackageManagerTests extends AndroidTestCase {
        }
        installFromRawResource("keysetApi.apk", R.raw.keyset_splat_api,
                0, false, false, -1, PackageInfo.INSTALL_LOCATION_UNSPECIFIED);
        try {
            ks = pm.getKeySetByAlias(otherPkgName, "A");
            assertTrue(false); // should have thrown
        } catch (SecurityException e) {
        }
        cleanUpInstall(otherPkgName);
        ks = pm.getKeySetByAlias(mPkgName, "A");
        assertNotNull(ks);