commit | c31fc6b04878dbd9e26359a6fc5285a11f914d7c | [log] [tgz] |
---|---|---|
author | Lakshman Annadorai <lakshmana@google.com> | Fri Jul 09 14:39:23 2021 -0700 |
committer | Lakshman Annadorai <lakshmana@google.com> | Wed Jul 14 15:44:29 2021 -0700 |
tree | ea6300703a28c3c4d35142a12f98bfcfeff855d6 | |
parent | 8305437442df424ecea8830e5cb1afc776826025 [diff] |
Handle shared UID in watchdog daemon. - Daemon should mark a shared UID as safe-to-kill when at least one package is marked as safe-to-kill in the config. - Shared package names contain the "shared:" prefix and the package specific thresholds and safe-to-kill checking are done with the prefix. - When app cateogry is not mapped by the shared package name, fallback to fetching app category mapped to any package under the shared UID. Test: atest libwatchdog_test Bug: 191892687 Change-Id: If3a0f3887eeac9475b984441b1e1965d72f7720c
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.