summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator.cpp
diff options
context:
space:
mode:
authorGavin Corkery <gavincorkery@google.com>2020-09-24 13:46:20 +0100
committerGavin Corkery <gavincorkery@google.com>2020-09-24 12:55:33 +0000
commitf2abc4e6fa6ed79462e0ddfc6ede526edc646378 (patch)
treebf736d372d6e8a389cc43a555424c9e78c56f9f7 /tools/aapt2/java/JavaClassGenerator.cpp
parentfd55a98702c491b5fa3730f14873228a61644e9a (diff)
Fix Rescue Party observability criteria
The previous behavior erroneously returned if the package was not found by PackageManager#getModuleInfo, which means the persistent process check would never be performed. This caused packages like com.android.systemui to not be handled by Rescue Party's mitigation logic. Instead, ensure that both cases are checked. Test: setprop persist.sys.enable_rescue true, adb shell setprop debug.crash_sysui 1, adb shell kill `pidof com.android.systemui`, ensure recovery mode is reached Bug: 169284310 Change-Id: Ifec19b8daba1dacc7f5efcfa47ed3c3a046612e3
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions