Don't drop shell permissions before running test.

Fix: 182612502
Fix: 182610293
Test: atest PlatformCompatGating:com.android.tests.gating.PlatformCompatGatingTest -- --abi x86_64
Change-Id: Ie4fe44c5b79cb4dc50d8e8c7a5303f116670e333
This commit is contained in:
tomnatan
2021-03-15 12:09:10 +00:00
parent 9ab4b954ce
commit 5707e2e24e

View File

@@ -100,7 +100,6 @@ public class PlatformCompatChangeRule extends CoreCompatChangeRule {
platformCompat.setOverridesForTest(new CompatibilityChangeConfig(mConfig),
packageName);
try {
uiAutomation.dropShellPermissionIdentity();
mTestStatement.evaluate();
} finally {
adoptShellPermissions(uiAutomation);