Loading services/core/java/com/android/server/pm/PackageInstallerService.java +17 −14 Original line number Diff line number Diff line Loading @@ -1683,13 +1683,15 @@ public class PackageInstallerService extends IPackageInstaller.Stub implements archivedPackageParcel); // Create and commit install archived session. // Session belongs to the system_server and would not appear anywhere in the Public APIs. Binder.withCleanCallingIdentity(() -> { PackageInstallerSession session = null; try { var sessionId = createSessionInternal(params, installerPackageName, null /*installerAttributionTag*/, Binder.getCallingUid(), userId); var sessionId = createSessionInternal(params, installerPackageName, null /*installerAttributionTag*/, Binder.getCallingUid(), userId); session = openSessionInternal(sessionId); session.addFile(LOCATION_DATA_APP, "base", 0 /*lengthBytes*/, metadata.toByteArray(), null /*signature*/); session.addFile(LOCATION_DATA_APP, "base", 0 /*lengthBytes*/, metadata.toByteArray(), null /*signature*/); session.commit(statusReceiver, false /*forTransfer*/); } catch (IOException e) { throw ExceptionUtils.wrap(e); Loading @@ -1698,6 +1700,7 @@ public class PackageInstallerService extends IPackageInstaller.Stub implements session.close(); } } }); } // TODO(b/307299702) Implement error dialog and propagate userActionIntent. Loading Loading
services/core/java/com/android/server/pm/PackageInstallerService.java +17 −14 Original line number Diff line number Diff line Loading @@ -1683,13 +1683,15 @@ public class PackageInstallerService extends IPackageInstaller.Stub implements archivedPackageParcel); // Create and commit install archived session. // Session belongs to the system_server and would not appear anywhere in the Public APIs. Binder.withCleanCallingIdentity(() -> { PackageInstallerSession session = null; try { var sessionId = createSessionInternal(params, installerPackageName, null /*installerAttributionTag*/, Binder.getCallingUid(), userId); var sessionId = createSessionInternal(params, installerPackageName, null /*installerAttributionTag*/, Binder.getCallingUid(), userId); session = openSessionInternal(sessionId); session.addFile(LOCATION_DATA_APP, "base", 0 /*lengthBytes*/, metadata.toByteArray(), null /*signature*/); session.addFile(LOCATION_DATA_APP, "base", 0 /*lengthBytes*/, metadata.toByteArray(), null /*signature*/); session.commit(statusReceiver, false /*forTransfer*/); } catch (IOException e) { throw ExceptionUtils.wrap(e); Loading @@ -1698,6 +1700,7 @@ public class PackageInstallerService extends IPackageInstaller.Stub implements session.close(); } } }); } // TODO(b/307299702) Implement error dialog and propagate userActionIntent. Loading