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

Commit 18f908b3 authored by Mathieu Chartier's avatar Mathieu Chartier
Browse files

Revert "Don't use profiles with vm safe mode"

Reason for reverting is that it is no longer necessary since
https://android-review.googlesource.com/#/c/269293/
has bene merged.

Bug: 30733908

Test: adb install facebook
Test: adb shell cmd package compile -m speed-profile comb.BBClient

This reverts commit f513d77b.

Change-Id: Ic7eba70c8be4e1392bd0f9eece09b1b6de56540d
parent 59ac10df
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -1551,9 +1551,6 @@ int dexopt(const char* apk_path, uid_t uid, const char* pkgname, const char* ins
    bool boot_complete = (dexopt_flags & DEXOPT_BOOTCOMPLETE) != 0;
    bool profile_guided = (dexopt_flags & DEXOPT_PROFILE_GUIDED) != 0;

    // Don't use profile for vm_safe_mode. b/30688277
    profile_guided = profile_guided && !vm_safe_mode;

    CHECK(pkgname != nullptr);
    CHECK(pkgname[0] != 0);