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

Commit 50129033 authored by William Loh's avatar William Loh Committed by Android (Google) Code Review
Browse files

Merge "Filter AppMetadata file from Session.getNames" into main

parents f8f24354 d17686c0
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -1399,11 +1399,13 @@ public class PackageInstallerSession extends IPackageInstallerSession.Stub {
        assertCallerIsOwnerRootOrVerifier();
        synchronized (mLock) {
            assertPreparedAndNotDestroyedLocked("getNames");
            String[] names;
            if (!isCommitted()) {
                return getNamesLocked();
                names = getNamesLocked();
            } else {
                return getStageDirContentsLocked();
                names = getStageDirContentsLocked();
            }
            return ArrayUtils.removeString(names, APP_METADATA_FILE_NAME);
        }
    }