diff options
author | Artur Satayev <satayev@google.com> | 2021-01-19 18:00:15 +0000 |
---|---|---|
committer | Artur Satayev <satayev@google.com> | 2021-01-20 14:15:14 +0000 |
commit | 244fa92fc1c6a35a8cb7a75ac4f87223522eb76e (patch) | |
tree | 75e452a4873396f8e1ad0e4f36c93ff3d2e8124e /cmds/am/src | |
parent | 21900cb6ee56cdc9bf23863703edbaf084db463d (diff) |
Enable @TestApi access for instrumentation.
Since introduction of ALLOW_TEST_API_ACCESS, it is now possible to
grant access to test apis for the whole UID, instead of just a starting
process.
This resolves the issue, where a forked test process cannot access @TestApi's.
Bug: 147113465
Test: atest CameraEvictionTest#testBasicCamera2ActivityEviction
Merged-In: I8dd3bbacdb263a3e30539f43d8081f6d78e80155
Change-Id: I8dd3bbacdb263a3e30539f43d8081f6d78e80155
Diffstat (limited to 'cmds/am/src')
-rw-r--r-- | cmds/am/src/com/android/commands/am/Am.java | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/cmds/am/src/com/android/commands/am/Am.java b/cmds/am/src/com/android/commands/am/Am.java index bdb83804d903..846a34eb41c9 100644 --- a/cmds/am/src/com/android/commands/am/Am.java +++ b/cmds/am/src/com/android/commands/am/Am.java @@ -174,10 +174,6 @@ public class Am extends BaseCommand { instrument.noWindowAnimation = true; } else if (opt.equals("--no-hidden-api-checks")) { instrument.disableHiddenApiChecks = true; - } else if (opt.equals("--no-test-api-checks")) { - // TODO(satayev): remove this option, only kept for backwards compatibility with - // cached tradefed instance - instrument.disableTestApiChecks = false; } else if (opt.equals("--no-test-api-access")) { instrument.disableTestApiChecks = false; } else if (opt.equals("--no-isolated-storage")) { @@ -198,7 +194,6 @@ public class Am extends BaseCommand { } instrument.componentNameArg = nextArgRequired(); - instrument.run(); } } |