Loading services/core/java/com/android/server/pm/BackgroundInstallControlService.java +4 −3 Original line number Diff line number Diff line Loading @@ -390,10 +390,11 @@ public class BackgroundInstallControlService extends SystemService { .max(Comparator.comparingLong(PackageInstaller.SessionInfo::getCreatedMillis)); } // ADB sets installerPackageName to null, this creates a loophole to bypass BIC which will be // addressed with b/265203007 private boolean installedByAdb(String initiatingPackageName) { if(PackageManagerServiceUtils.isInstalledByAdb(initiatingPackageName)) { // GTS tests needs to adopt shell identity to install apps. if(!SystemProperties.get("gts.transparency.bg-install-apps").isEmpty()) { Slog.d(TAG, "handlePackageAdd: is GTS tests, skipping ADB check"); } else if(PackageManagerServiceUtils.isInstalledByAdb(initiatingPackageName)) { Slog.d(TAG, "handlePackageAdd: is installed by ADB, skipping"); return true; } Loading Loading
services/core/java/com/android/server/pm/BackgroundInstallControlService.java +4 −3 Original line number Diff line number Diff line Loading @@ -390,10 +390,11 @@ public class BackgroundInstallControlService extends SystemService { .max(Comparator.comparingLong(PackageInstaller.SessionInfo::getCreatedMillis)); } // ADB sets installerPackageName to null, this creates a loophole to bypass BIC which will be // addressed with b/265203007 private boolean installedByAdb(String initiatingPackageName) { if(PackageManagerServiceUtils.isInstalledByAdb(initiatingPackageName)) { // GTS tests needs to adopt shell identity to install apps. if(!SystemProperties.get("gts.transparency.bg-install-apps").isEmpty()) { Slog.d(TAG, "handlePackageAdd: is GTS tests, skipping ADB check"); } else if(PackageManagerServiceUtils.isInstalledByAdb(initiatingPackageName)) { Slog.d(TAG, "handlePackageAdd: is installed by ADB, skipping"); return true; } Loading