odrefresh: Disable partial compilation on devices without security fix
Bug: 206090748
Test: manual -
1. Flash the latest sc-dev build (e.g., 8271219).
2. Build an ART APEX and install it.
3. adb shell rm /data/misc/apexdata/com.android.art/dalvik-cache/x86_64/system@framework@services.jar@classes.odex
4. adb shell rm /data/misc/odrefresh/compilation-log.txt
5. adb shell odrefresh --compile
6. See that only system server jars are re-compiled.
Test: manual -
1. Flash an old sc-dev build (e.g., 7930463).
2. Do step 2-5 above.
3. See that both bootclasspath jars and system server jars are
re-compiled.
Ignore-AOSP-First: Security fix
Change-Id: Ief7f387cffb2f6ccaa3604ece431cf69f97c10b1
Merged-In: I96e28d2284a3a0d275fc6556681dd5f3537e433b
2 files changed