diff options
| author | 2023-04-14 17:20:33 -0500 | |
|---|---|---|
| committer | 2023-05-09 19:57:11 -0500 | |
| commit | 6d3d618c53cda6d9ac55f1e49cb932ba01309d61 (patch) | |
| tree | e6386b897aa781fec06a238c43513187c93405f5 /libs/androidfw/StringPool.cpp | |
| parent | 742405591bec41f6336cdce86d99603e1b7d506e (diff) | |
Disconnect existing adb clients when adb grants are revoked
When revoking previously authorized adb grants, the prompt indicates
access will be revoked for all computers that were previously
authorized; the intent of this was to remove any grants previously
authorized with the 'Always allow' option, but this could also be
read to indicate existing connections are terminated as well. This
commit disconnects all existing sessions by toggling the adbd
service; the original behavior can be maintained for lab
environments by modifying the global Setting
adb_disconnect_sessions_on_revoke to 0.
Bug: 202836162
Bug: 261184503
Bug: 262244393
Test: Manually verfied existing USB and Wifi sessions were terminated
Change-Id: I22266053cf1f8a0452bfa22b2898b4c68eeaed1d
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions