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

Commit f794f49b authored by William Loh's avatar William Loh Committed by Automerger Merge Worker
Browse files

Merge "Filter AppMetadata file from Session.getNames" into udc-qpr-dev am: 65963b92

parents ff93b9e8 65963b92
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -1365,11 +1365,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);
        }
    }