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

Commit 6f9e12ea authored by Automerger Merge Worker's avatar Automerger Merge Worker
Browse files

Merge "Revert "[dexopt] Allow secondary dex files to generate app images"" am:...

Merge "Revert "[dexopt] Allow secondary dex files to generate app images"" am: 799cfc57 am: a0a62037 am: 0901c517

Change-Id: Id7d031219c051f2986fce73594e827f884f3326b
parents 7340afce 0901c517
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -1271,6 +1271,11 @@ class Dex2oatFileWrapper {
Dex2oatFileWrapper maybe_open_app_image(const char* out_oat_path,
        bool generate_app_image, bool is_public, int uid, bool is_secondary_dex) {

    // We don't create an image for secondary dex files.
    if (is_secondary_dex) {
        return Dex2oatFileWrapper();
    }

    const std::string image_path = create_image_filename(out_oat_path);
    if (image_path.empty()) {
        // Happens when the out_oat_path has an unknown extension.