Skip to content

Commit

Permalink
post-fs-data.sh: Improve logging
Browse files Browse the repository at this point in the history
Android's PackageCacher is comparing the parent directory's mtime, not
the apk's.

Signed-off-by: Andrew Gunnerson <accounts+github@chiller3.com>
  • Loading branch information
chenxiaolong committed Apr 7, 2024
1 parent 1ba719b commit cc2183d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/module/post-fs-data.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,11 @@ EOF
#
# [1] https://cs.android.com/android/platform/superproject/+/android-13.0.0_r42:frameworks/base/services/core/java/com/android/server/pm/parsing/PackageCacher.java;l=139

ls -lZ "${cli_apk}"
ls -lZ "${cli_apk#"${mod_dir}"}"
find /data/system/package_cache -name "${app_id}-*" -exec ls -lZ {} \+

header Clear package manager caches

ls -ldZ "${cli_apk%/*}"
find /data/system/package_cache -name "${app_id}-*" -exec ls -ldZ {} \+

run_cli_apk com.chiller3.custota.standalone.ClearPackageManagerCachesKt

# Bind mount the appropriate CA stores so that update_engine will use the
Expand Down

0 comments on commit cc2183d

Please sign in to comment.