summaryrefslogtreecommitdiff
path: root/libs/battery/MultiStateCounterTest.cpp
diff options
context:
space:
mode:
author Yifan Hong <elsk@google.com> 2021-07-22 20:06:48 -0700
committer Yifan Hong <elsk@google.com> 2021-08-03 14:01:19 -0700
commita5b0269d3c310fb363f68623e883a4c63ddd10a7 (patch)
tree77f941188b59656e218ce5ed9d61666cde4ef410 /libs/battery/MultiStateCounterTest.cpp
parent506048be9e760bc2a2fd218aae79f2da33dfa260 (diff)
servicedispatcher: exit when adb debugging is turned off.
Test: manual by doing the following: 1. cd /data/local/tmp nohup servicedispatcher & bg # Now disconnects cable and reconnect, confirm that servicedispatcher # still exists # Turn USB debugging off, confirm that servicedispatcher does not # exist. Though, servicedispatcher does not leave any logs, indicating # that it may be killed by other processes, e.g. adbd, because it is # spawned from shell. 2. Add an rc file that starts servicedispatcher on property trigger. After setting the property, confirm that it is started. Now disconnects cable and reconnect, confirm that servicedispatcher still exists. Turn USB debugging off, confirm that servicedispatcher does not exist. Logcat suggests that servicedispatcher receives callback from AdbService and exit()s. Note: this change does NOT prevent servicedispatcher from starting up when USB debugging is already turned off. This is because AdbService cannot provide the state about USB debugging. Fixes: 190867939 Change-Id: I887e51f814a24d05f26cc8d756f30e150c43b423
Diffstat (limited to 'libs/battery/MultiStateCounterTest.cpp')
0 files changed, 0 insertions, 0 deletions