diff options
| author | 2022-07-11 14:10:51 -0700 | |
|---|---|---|
| committer | 2022-07-11 14:16:01 -0700 | |
| commit | 1c5ef0396ab0604eb0ea35cf163305681a949558 (patch) | |
| tree | 9ed98720cd2283b088dbac41b0dd967f0ba863ba /libs/androidfw/misc.cpp | |
| parent | b37c41d36b777d144d0433b2a16702844cbbc35b (diff) | |
Add shell am command to set and get app's background restriction level.
Added two "adb shell am " command.
adb shell am set-bg-restriction-level [--user <USER_ID>] <PACKAGE> unrestricted|exempted|adaptive_bucket|restricted_bucket|background_restricted|hibernation
adb shell am get-bg-restriction-level [--user <USER_ID>] <PACKAGE>
Note: right now only when the restriction level toggle between above(include) adaptive_bucket level and below(include) restricted_bucket level, the actual app standby bucket would change.
Bug: 211694922
Test: adb shell am get-bg-restriction-level --user 0 <packageName>
adb shell am set-bg-restriction-level --user 0 <packageName> restricted_bucket
adb shell am get-bg-restriction-level --user 0 <packageName>
adb shell am set-bg-restriction-level --user 0 <packageName> adaptive_bucket
adb shell am get-bg-restriction-level --user 0 <packageName>
Change-Id: If9cc2b0b0e3acaf2f145f79c9bf5072054994114
Diffstat (limited to 'libs/androidfw/misc.cpp')
0 files changed, 0 insertions, 0 deletions