summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator.cpp
diff options
context:
space:
mode:
authorMichael Groover <mpgroover@google.com>2019-04-25 18:50:39 -0700
committerMichael Groover <mpgroover@google.com>2019-05-09 16:01:02 -0700
commit209bb313834c9b7330eb819ea0f0d5f4e2af25cc (patch)
tree600217cfede6a836ddb9b515969c82b7e9495a97 /tools/aapt2/java/JavaClassGenerator.cpp
parenta9ac86f67931232bf33765e2491f6bec2f0ef10d (diff)
Remove keys from adb_keys after period of inactivity
Previously the feature to revoke 'always allow' adb grants after a period of activity would not use the adb_keys file and instead would just check the last connection time of an 'always allow' key to determine if it should be allowed without user interaction. However this bypassed the adbd SIGNATURE check the verifies the system possesses the corresponding private key. This change resolves this by writing 'always allow' keys to the adb_keys file and running a periodic job to remove any keys from this file that have not been used within the expiration window. This change also adds support for a 'connected key' message from adbd so that the framework can be notified when a key passes the SIGNATURE check. Bug: 124076524 Test: atest AdbDebuggingManagerTest Change-Id: I4c252f4ddd77f56a30b807d645cdab12a03d9bc5
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions