commit | 20a8542b513ae1909ff7e6648153ec262ecdc5fb | [log] [tgz] |
---|---|---|
author | Jiakai Zhang <jiakaiz@google.com> | Wed Dec 21 13:58:00 2022 +0000 |
committer | Jiakai Zhang <jiakaiz@google.com> | Thu Dec 22 23:39:06 2022 +0000 |
tree | 63861ec1bfb6c738965bfb476c8e8bc097bb6041 | |
parent | 1a50f5b6765925d3403d900a9d985cbecdcd0978 [diff] |
Implement app downgrading. Also: - Filter the default package list by last active time and sort it in descending order. Bug: 255565888 Test: atest ArtServiceTests Test: - 1. Fill the storage space by `fallocate`. 2. adb shell setprop pm.dexopt.downgrade_after_inactive_days 1 3. adb shell pm art bg-dexopt-job 4. See some apps being downgraded and the other apps being optimized. Ignore-AOSP-First: ART Services. Change-Id: I8594f67aa10da5bc907c92bb7b0d1aaf095d3c33