commit | c781ef7b638efae4e698a7d3741fa612b838628a | [log] [tgz] |
---|---|---|
author | Felipe Leme <felipeal@google.com> | Wed Feb 23 13:29:42 2022 -0800 |
committer | Felipe Leme <felipeal@google.com> | Thu Feb 24 08:53:42 2022 -0800 |
tree | 668116dc63670fcd9e0c4b551573ff558a46c0f5 | |
parent | f4f123f160c8e781f544dd5d3ebce9f3eacc980b [diff] |
Adds a CLI (Command-Line Interface) to KitchenSink. Examples: $ alias ks_cmd='adb shell dumpsys activity com.google.android.car.kitchensink/.KitchenSinkActivity cmd' $ ks_cmd help TASK 1010085:com.google.android.car.kitchensink id=1000039 userId=10 ACTIVITY com.google.android.car.kitchensink/.KitchenSinkActivity d39dc7c pid=10541 KitchenSink Command-Line Interface. Available commands: help: Shows this help message. get-delegated-scopes: Lists delegated scopes set by the device admin. is-uninstall-blocked <PKG>: Checks whether uninstalling the given app is blocked. set-uninstall-blocked <PKG> <true|false>: Blocks / unblocks uninstalling the given app. generate-device-attestation-key-pair <ALIAS> [FLAGS]: Generates a device attestation key. $ ks_cmd get-delegated-scopes TASK 1010085:com.google.android.car.kitchensink id=1000039 userId=10 ACTIVITY com.google.android.car.kitchensink/.KitchenSinkActivity d39dc7c pid=10541 3 delegated scopes: delegation-block-uninstall delegation-package-access delegation-cert-install Test: see above Bug: 213388897 Change-Id: I58623f5c1a1d60af7743f5a815a491ebbad9b9fe
Native (C++) code format is required to be compatible with .clang-format file. Run
git clang-format --style=file --extension='h,cpp,cc' HEAD~
Note that clang-format is not desirable for Android java files. Therefore the command line above is limited to specific extensions.