summaryrefslogtreecommitdiff
path: root/tests/DynamicCodeLoggerIntegrationTests/src/cpp/test_executable.cpp
diff options
context:
space:
mode:
authorWilliam Hester <williamhester@google.com>2018-12-19 13:14:51 -0800
committerWilliam Hester <williamhester@google.com>2019-01-22 13:32:20 -0800
commita96d3d3ff46b2b94484f285da172db9572f3c26b (patch)
treea355394982ef281750febca898f004515b2a190d /tests/DynamicCodeLoggerIntegrationTests/src/cpp/test_executable.cpp
parent4e9df81cd38269d8390e35557ffed68e800146f0 (diff)
Implement test harness mode
Test Harness Mode is a feature for device farms that want to wipe their devices after each test run. It stores the ADB keys in the persistent partition (used for Factory Reset Protection) then performs a factory reset by broadcasting the MASTER_CLEAR intent. Upon rebooting, the Setup Wizard is skipped, and a few settings are set: * Package Verifier is disabled * Stay Awake While Charging is enabled * OTA Updates are disabled * Auto-Sync for accounts is disabled Other apps may configure themselves differently in Test Harness Mode by checking ActivityManager.isRunningInUserTestHarness() Bug: 80137798 Test: make && fastboot flashall -w Test: adb shell cmd testharness enable Change-Id: I91285c056666e36ad0caf778bffc140a0656fcfa
Diffstat (limited to 'tests/DynamicCodeLoggerIntegrationTests/src/cpp/test_executable.cpp')
0 files changed, 0 insertions, 0 deletions