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

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

Merge "Make sure to return false for empty classpath"

am: 776e1727

Change-Id: I31ae68825db7f1ecf52117c2eed025d80c6e2647
parents f113ccf5 776e1727
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -2693,6 +2693,13 @@ static bool create_boot_image_profile_snapshot(const std::string& package_name,
        return false;
    }

    // Return false for empty class path since it may otherwise return true below if profiles is
    // empty.
    if (classpath.empty()) {
        PLOG(ERROR) << "Class path is empty";
        return false;
    }

    // Open and create the snapshot profile.
    unique_fd snapshot_fd = open_spnashot_profile(AID_SYSTEM, package_name, profile_name);