Home
last modified time | relevance | path

Searched refs:installFlags (Results 1 – 14 of 14) sorted by relevance

/frameworks/base/core/java/android/content/pm/
DPackageInstaller.java1286 public int installFlags = PackageManager.INSTALL_ALL_WHITELIST_RESTRICTED_PERMISSIONS; field in PackageInstaller.SessionParams
1343 installFlags = source.readInt(); in SessionParams()
1366 ret.installFlags = installFlags; in copy()
1398 return (installFlags & (PackageManager.INSTALL_REQUEST_DOWNGRADE in areHiddenOptionsSet()
1404 | PackageManager.INSTALL_ALLOCATE_AGGRESSIVE)) != installFlags in areHiddenOptionsSet()
1499 installFlags |= PackageManager.INSTALL_GRANT_RUNTIME_PERMISSIONS; in setGrantedRuntimePermissions()
1530 installFlags |= PackageManager.INSTALL_ALL_WHITELIST_RESTRICTED_PERMISSIONS; in setWhitelistedRestrictedPermissions()
1533 installFlags &= ~PackageManager.INSTALL_ALL_WHITELIST_RESTRICTED_PERMISSIONS; in setWhitelistedRestrictedPermissions()
1551 installFlags |= PackageManager.INSTALL_ENABLE_ROLLBACK; in setEnableRollback()
1553 installFlags &= ~PackageManager.INSTALL_ENABLE_ROLLBACK; in setEnableRollback()
[all …]
DIPackageInstaller.aidl54 void installExistingPackage(String packageName, int installFlags, int installReason, in installExistingPackage() argument
DIPackageManager.aidl636 int installExistingPackageAsUser(String packageName, int userId, int installFlags, in installExistingPackageAsUser() argument
/frameworks/base/core/java/com/android/internal/content/
DPackageHelper.java191 translateAllocateFlags(params.installFlags)); in resolveInstallVolume()
265 translateAllocateFlags(params.installFlags))); in fitsOnInternal()
278 int installLocation, long sizeBytes, int installFlags) { in resolveInstallLocation() argument
283 params.installFlags = installFlags; in resolveInstallLocation()
307 if ((params.installFlags & PackageManager.INSTALL_INSTANT_APP) != 0) { in resolveInstallLocation()
311 } else if ((params.installFlags & PackageManager.INSTALL_INTERNAL) != 0) { in resolveInstallLocation()
429 public static int translateAllocateFlags(int installFlags) { in translateAllocateFlags() argument
430 if ((installFlags & PackageManager.INSTALL_ALLOCATE_AGGRESSIVE) != 0) { in translateAllocateFlags()
/frameworks/base/services/core/java/com/android/server/pm/
DPackageInstallerService.java482 params.installFlags |= PackageManager.INSTALL_FROM_ADB; in createSessionInternal()
492 params.installFlags &= ~PackageManager.INSTALL_FROM_ADB; in createSessionInternal()
493 params.installFlags &= ~PackageManager.INSTALL_ALL_USERS; in createSessionInternal()
494 params.installFlags |= PackageManager.INSTALL_REPLACE_EXISTING; in createSessionInternal()
495 if ((params.installFlags & PackageManager.INSTALL_VIRTUAL_PRELOAD) != 0 in createSessionInternal()
497 params.installFlags &= ~PackageManager.INSTALL_VIRTUAL_PRELOAD; in createSessionInternal()
502 params.installFlags |= PackageManager.INSTALL_ALLOW_DOWNGRADE; in createSessionInternal()
504 params.installFlags &= ~PackageManager.INSTALL_ALLOW_DOWNGRADE; in createSessionInternal()
505 params.installFlags &= ~PackageManager.INSTALL_REQUEST_DOWNGRADE; in createSessionInternal()
508 boolean isApex = (params.installFlags & PackageManager.INSTALL_APEX) != 0; in createSessionInternal()
[all …]
DStagingManager.java181 session.params.installFlags, activePackage.applicationInfo.flags); in submitSessionToApexService()
199 return (session.params.installFlags & PackageManager.INSTALL_APEX) != 0; in isApexSession()
259 if ((session.params.installFlags & PackageManager.INSTALL_ENABLE_ROLLBACK) != 0) { in preRebootVerification()
398 params.installFlags |= PackageManager.INSTALL_STAGED; in createAndWriteApkSession()
401 params.installFlags &= ~PackageManager.INSTALL_ENABLE_ROLLBACK; in createAndWriteApkSession()
402 params.installFlags |= PackageManager.INSTALL_DRY_RUN; in createAndWriteApkSession()
404 params.installFlags |= PackageManager.INSTALL_DISABLE_VERIFICATION; in createAndWriteApkSession()
435 if ((apkSession.params.installFlags & PackageManager.INSTALL_ENABLE_ROLLBACK) != 0) { in commitApkSession()
492 params.installFlags &= ~PackageManager.INSTALL_ENABLE_ROLLBACK; in installApksInSession()
DPackageManagerShellCommand.java1070 (params.sessionParams.installFlags & PackageManager.INSTALL_APEX) != 0; in runInstall()
1165 int installFlags = PackageManager.INSTALL_ALL_WHITELIST_RESTRICTED_PERMISSIONS; in runInstallExisting() local
1175 installFlags |= PackageManager.INSTALL_INSTANT_APP; in runInstallExisting()
1176 installFlags &= ~PackageManager.INSTALL_FULL_APP; in runInstallExisting()
1179 installFlags &= ~PackageManager.INSTALL_INSTANT_APP; in runInstallExisting()
1180 installFlags |= PackageManager.INSTALL_FULL_APP; in runInstallExisting()
1186 installFlags &= ~PackageManager.INSTALL_ALL_WHITELIST_RESTRICTED_PERMISSIONS; in runInstallExisting()
1206 installer.installExistingPackage(packageName, installFlags, installReason, in runInstallExisting()
1216 installFlags, installReason, null); in runInstallExisting()
1722 sessionParams.installFlags |= PackageManager.INSTALL_REPLACE_EXISTING; in runRemoveSplit()
[all …]
DPackageInstallerSession.java403 (params.installFlags & PackageManager.INSTALL_FORCE_PERMISSION_PROMPT) != 0; in needToAskForPermissionsLocked()
492 info.installFlags = params.installFlags; in generateInfo()
724 PackageHelper.translateAllocateFlags(params.installFlags)); in doWriteInternal()
1127 if ((params.installFlags & PackageManager.INSTALL_APEX) != 0) { in sealAndValidateLocked()
1249 if ((params.installFlags & PackageManager.INSTALL_APEX) != 0) { in handleCommit()
1334 if ((params.installFlags & PackageManager.INSTALL_APEX) != 0) { in makeSessionActiveLocked()
1437 if ((params.installFlags & PackageManager.INSTALL_ALL_USERS) != 0) { in makeSessionActiveLocked()
1466 (params.installFlags & PackageManager.DONT_KILL_APP) != 0; in mayInheritNativeLibs()
2413 writeIntAttribute(out, ATTR_INSTALL_FLAGS, params.installFlags); in write()
2509 params.installFlags = readIntAttribute(in, ATTR_INSTALL_FLAGS); in readFromXml()
DPackageManagerServiceUtils.java807 public static boolean isDowngradePermitted(int installFlags, int applicationFlags) { in isDowngradePermitted() argument
825 (installFlags & PackageManager.INSTALL_REQUEST_DOWNGRADE) != 0; in isDowngradePermitted()
835 return (installFlags & PackageManager.INSTALL_ALLOW_DOWNGRADE) != 0; in isDowngradePermitted()
DPackageManagerService.java1499 final boolean grantPermissions = (args.installFlags in doHandleMessage()
1501 final boolean killApp = (args.installFlags in doHandleMessage()
1503 final boolean virtualPreload = ((args.installFlags in doHandleMessage()
1506 final List<String> whitelistedRestrictedPermissions = ((args.installFlags in doHandleMessage()
13151 if ((activeInstallSession.getSessionParams().installFlags
13473 public int installExistingPackageAsUser(String packageName, int userId, int installFlags,
13475 return installExistingPackageAsUser(packageName, userId, installFlags, installReason,
13480 @PackageManager.InstallFlags int installFlags,
13485 + " installFlags=" + installFlags + " installReason=" + installReason
13510 (installFlags & PackageManager.INSTALL_INSTANT_APP) != 0;
[all …]
/frameworks/base/services/core/java/com/android/server/rollback/
DRollbackManagerServiceImpl.java183 int installFlags = intent.getIntExtra( in RollbackManagerServiceImpl()
193 boolean success = enableRollback(installFlags, newPackageCodePath, in RollbackManagerServiceImpl()
833 int installFlags, File newPackageCodePath) { in sessionMatchesForEnableRollback() argument
839 if (newPackageCodePath.equals(packageCodePath) && installFlags == session.installFlags) { in sessionMatchesForEnableRollback()
866 private boolean enableRollback(int installFlags, File newPackageCodePath, in enableRollback() argument
890 if (sessionMatchesForEnableRollback(child, installFlags, newPackageCodePath)) { in enableRollback()
897 } else if (sessionMatchesForEnableRollback(info, installFlags, newPackageCodePath)) { in enableRollback()
973 final int installFlags = session.installFlags; in enableRollbackForPackageSession() local
974 if ((installFlags & PackageManager.INSTALL_ENABLE_ROLLBACK) == 0) { in enableRollbackForPackageSession()
978 if ((installFlags & PackageManager.INSTALL_INSTANT_APP) != 0) { in enableRollbackForPackageSession()
[all …]
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/wear/
DWearPackageInstallerService.java213 int installFlags = 0; in installPackage() local
222 installFlags |= PackageManager.INSTALL_REPLACE_EXISTING; in installPackage()
228 if ((installFlags & PackageManager.INSTALL_REPLACE_EXISTING) != 0) { in installPackage()
/frameworks/base/core/tests/coretests/src/android/content/pm/
DPackageManagerTests.java245 sessionParams.installFlags = flags; in invokeInstallPackage()
294 sessionParams.installFlags = flags; in invokeInstallPackageFail()
1201 private void moveFromRawResource(String outFileName, int rawResId, int installFlags, in moveFromRawResource() argument
1208 ip = installFromRawResource("install.apk", rawResId, installFlags, false, in moveFromRawResource()
1247 private void sampleMoveFromRawResource(int installFlags, int moveFlags, boolean fail, in sampleMoveFromRawResource() argument
1250 R.raw.install, installFlags, moveFlags, true, in sampleMoveFromRawResource()
1261 int installFlags = PackageManager.INSTALL_INTERNAL; in testMoveAppInternalToExternal() local
1265 sampleMoveFromRawResource(installFlags, moveFlags, fail, result); in testMoveAppInternalToExternal()
1271 int installFlags = PackageManager.INSTALL_INTERNAL; in testMoveAppInternalToInternal() local
1275 sampleMoveFromRawResource(installFlags, moveFlags, fail, result); in testMoveAppInternalToInternal()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DPackageInstallerSessionTest.java253 assertEquals(expected.installFlags, actual.installFlags); in assertSessionParamsEquivalent()