Commit 67f96e6
fixup! add test for SELinux flags-based per-app hardening features
This fixes the following error on duplicate permissions across
HardeningTestApp, potentially caused by aapt2 peculiarity:
```
RUNNER ERROR: com.android.tradefed.targetprep.TargetSetupError[APK_INSTALLATION_FAILED|520001|DEPENDENCY_ISSUE]: Failed to install app.grapheneos.hardeningtest.sdk_27 with [${TMP_DIR}/HardeningTestAppSdk27.apk] on $SERIAL_NUMBER. Reason: 'INSTALL_FAILED_DUPLICATE_PERMISSION: Package app.grapheneos.hardeningtest.sdk_27 attempting to redeclare permission app.grapheneos.hardeningtest.DYNAMIC_RECEIVER_NOT_EXPORTED_PERMISSION already owned by app.grapheneos.hardeningtest.preinstalled' [$SERIAL_NUMBER $TARGET_PRODUCT:$TARGET_PRODUCT $BUILD_NUMBER]
at com.android.tradefed.targetprep.TestAppInstallSetup.installSinglePackage(TestAppInstallSetup.java:595)
at com.android.tradefed.targetprep.TestAppInstallSetup.installer(TestAppInstallSetup.java:562)
at com.android.tradefed.targetprep.TestAppInstallSetup.setUp(TestAppInstallSetup.java:429)
at com.android.tradefed.testtype.suite.ModuleDefinition.runPreparerSetup(ModuleDefinition.java:1048)
at com.android.tradefed.testtype.suite.ModuleDefinition.runTargetPreparation(ModuleDefinition.java:1517)
at com.android.tradefed.testtype.suite.ModuleDefinition.runPreparation(ModuleDefinition.java:1007)
at com.android.tradefed.testtype.suite.ModuleDefinition.run(ModuleDefinition.java:515)
at com.android.tradefed.testtype.suite.ITestSuite.runSingleModule(ITestSuite.java:1277)
at com.android.tradefed.testtype.suite.ITestSuite.run(ITestSuite.java:1044)
at com.android.tradefed.invoker.InvocationExecution.runTest(InvocationExecution.java:1457)
at com.android.tradefed.invoker.InvocationExecution.runTests(InvocationExecution.java:1232)
at com.android.tradefed.invoker.TestInvocation.prepareAndRun(TestInvocation.java:636)
at com.android.tradefed.invoker.TestInvocation.performInvocation(TestInvocation.java:291)
at com.android.tradefed.invoker.TestInvocation.invoke(TestInvocation.java:1429)
at com.android.tradefed.command.CommandScheduler$InvocationThread.run(CommandScheduler.java:692)
```1 parent 8edf282 commit 67f96e6
1 file changed
+6
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
6 | 12 | | |
7 | 13 | | |
8 | 14 | | |
| |||
0 commit comments