summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorJeff Sharkey <jsharkey@android.com>2017-01-26 15:29:16 -0700
committerJeff Sharkey <jsharkey@android.com>2017-01-26 15:29:42 -0700
commitcdee83a6147bf1601424d5451c30f0dfb8d0e2a6 (patch)
tree85deb5c66c71e532c0f10b088d027b37c5b77e47 /tools/aapt2/java/JavaClassGenerator_test.cpp
parent9e77aefe9ce2c3caa8c0daebf21c86088e10b951 (diff)
Disable RescueParty in debug/lab environments.
We need to strike a balance between rescuing devices of real users in the field, while also not interfering with debugging or testing use-cases. This change uses "charging via USB" as a signal that the device is under active development, or is in a lab environment. We could try checking for an adb connection, but UsbDebuggingManager isn't started until much later in the boot, so BatteryManager is our best chance of detecting this case. Note that we continue to always recover "user" builds, and we never recover "eng" builds. Test: builds, boots, skips when plugged in over USB Bug: 34722552 Change-Id: Ib095482a2ed84e8c5dfb3c71d5f9b88457c2b5e6
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions