Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 25970233 authored by Calin Juravle's avatar Calin Juravle
Browse files

DEXOPT_FORCE may be passed for primary apk as well.

Remove the check that DEXOPT_FORCE is not set for primary apks. PM will
set it when forcing compilation.

Bug: 32871170
Test: adb shell cmd package compile -f m speed pkgname

Change-Id: I690608c48a2c486230ca7d2328ac5c6181427328
parent bd968360
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -1420,7 +1420,6 @@ int dexopt(const char* dex_path, uid_t uid, const char* pkgname, const char* ins
    } else {
        // Currently these flags are only use for secondary dex files.
        // Verify that they are not set for primary apks.
        CHECK((dexopt_flags & DEXOPT_FORCE) == 0);
        CHECK((dexopt_flags & DEXOPT_STORAGE_CE) == 0);
        CHECK((dexopt_flags & DEXOPT_STORAGE_DE) == 0);
    }