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

Commit 39784f61 authored by Mathieu Chartier's avatar Mathieu Chartier Committed by android-build-merger
Browse files

Don't use profiles with vm safe mode am: f513d77b

am: e48d088e

Change-Id: Ia2698f877abdceea19b53c68725161da8691e9cd
parents a322794f e48d088e
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -1551,6 +1551,9 @@ 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);