Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/content/pm/
DPackageInstaller.java1269 public int installFlags = PackageManager.INSTALL_ALL_WHITELIST_RESTRICTED_PERMISSIONS; field in PackageInstaller.SessionParams
1326 installFlags = source.readInt(); in SessionParams()
1349 ret.installFlags = installFlags; in copy()
1381 return (installFlags & (PackageManager.INSTALL_REQUEST_DOWNGRADE in areHiddenOptionsSet()
1387 | PackageManager.INSTALL_ALLOCATE_AGGRESSIVE)) != installFlags in areHiddenOptionsSet()
1482 installFlags |= PackageManager.INSTALL_GRANT_RUNTIME_PERMISSIONS; in setGrantedRuntimePermissions()
1513 installFlags |= PackageManager.INSTALL_ALL_WHITELIST_RESTRICTED_PERMISSIONS; in setWhitelistedRestrictedPermissions()
1516 installFlags &= ~PackageManager.INSTALL_ALL_WHITELIST_RESTRICTED_PERMISSIONS; in setWhitelistedRestrictedPermissions()
1534 installFlags |= PackageManager.INSTALL_ENABLE_ROLLBACK; in setEnableRollback()
1536 installFlags &= ~PackageManager.INSTALL_ENABLE_ROLLBACK; in setEnableRollback()
[all …]
DIPackageInstaller.aidl54 void installExistingPackage(String packageName, int installFlags, int installReason, in installExistingPackage() argument
DIPackageManager.aidl630 int installExistingPackageAsUser(String packageName, int userId, int installFlags, in installExistingPackageAsUser() argument
/frameworks/base/services/core/java/com/android/server/pm/
DPackageInstallerService.java488 params.installFlags |= PackageManager.INSTALL_FROM_ADB; in createSessionInternal()
498 params.installFlags &= ~PackageManager.INSTALL_FROM_ADB; in createSessionInternal()
499 params.installFlags &= ~PackageManager.INSTALL_ALL_USERS; in createSessionInternal()
500 params.installFlags &= ~PackageManager.INSTALL_ALLOW_TEST; in createSessionInternal()
501 params.installFlags |= PackageManager.INSTALL_REPLACE_EXISTING; in createSessionInternal()
502 if ((params.installFlags & PackageManager.INSTALL_VIRTUAL_PRELOAD) != 0 in createSessionInternal()
504 params.installFlags &= ~PackageManager.INSTALL_VIRTUAL_PRELOAD; in createSessionInternal()
509 params.installFlags |= PackageManager.INSTALL_ALLOW_DOWNGRADE; in createSessionInternal()
511 params.installFlags &= ~PackageManager.INSTALL_ALLOW_DOWNGRADE; in createSessionInternal()
512 params.installFlags &= ~PackageManager.INSTALL_REQUEST_DOWNGRADE; in createSessionInternal()
[all …]
DStagingManager.java238 session.params.installFlags, activePackage.applicationInfo.flags); in checkDowngrade()
252 return (session.params.installFlags & PackageManager.INSTALL_APEX) != 0; in isApexSession()
441 params.installFlags |= PackageManager.INSTALL_STAGED; in createAndWriteApkSession()
444 params.installFlags &= ~PackageManager.INSTALL_ENABLE_ROLLBACK; in createAndWriteApkSession()
445 params.installFlags |= PackageManager.INSTALL_DRY_RUN; in createAndWriteApkSession()
447 params.installFlags |= PackageManager.INSTALL_DISABLE_VERIFICATION; in createAndWriteApkSession()
507 params.installFlags &= ~PackageManager.INSTALL_ENABLE_ROLLBACK; in extractApksInSession()
577 if ((apksToInstall.params.installFlags & PackageManager.INSTALL_ENABLE_ROLLBACK) != 0) { in installApksInSession()
1004 if ((session.params.installFlags & PackageManager.INSTALL_ENABLE_ROLLBACK) != 0) { in handlePreRebootVerification_End()
DPackageManagerShellCommand.java1150 (params.sessionParams.installFlags & PackageManager.INSTALL_APEX) != 0; in runInstall()
1327 int installFlags = PackageManager.INSTALL_ALL_WHITELIST_RESTRICTED_PERMISSIONS; in runInstallExisting() local
1337 installFlags |= PackageManager.INSTALL_INSTANT_APP; in runInstallExisting()
1338 installFlags &= ~PackageManager.INSTALL_FULL_APP; in runInstallExisting()
1341 installFlags &= ~PackageManager.INSTALL_INSTANT_APP; in runInstallExisting()
1342 installFlags |= PackageManager.INSTALL_FULL_APP; in runInstallExisting()
1348 installFlags &= ~PackageManager.INSTALL_ALL_WHITELIST_RESTRICTED_PERMISSIONS; in runInstallExisting()
1368 installer.installExistingPackage(packageName, installFlags, installReason, in runInstallExisting()
1378 installFlags, installReason, null); in runInstallExisting()
1884 sessionParams.installFlags |= PackageManager.INSTALL_REPLACE_EXISTING; in runRemoveSplit()
[all …]
DPackageInstallerSession.java398 (params.installFlags & PackageManager.INSTALL_FORCE_PERMISSION_PROMPT) != 0; in needToAskForPermissionsLocked()
487 info.installFlags = params.installFlags; in generateInfo()
721 PackageHelper.translateAllocateFlags(params.installFlags)); in doWriteInternal()
1102 if ((params.installFlags & PackageManager.INSTALL_APEX) != 0) { in sealAndValidateLocked()
1223 if ((params.installFlags & PackageManager.INSTALL_APEX) != 0) { in handleCommit()
1307 if ((params.installFlags & PackageManager.INSTALL_APEX) != 0) { in makeSessionActiveLocked()
1408 if ((params.installFlags & PackageManager.INSTALL_ALL_USERS) != 0) { in makeSessionActiveLocked()
1437 (params.installFlags & PackageManager.DONT_KILL_APP) != 0; in mayInheritNativeLibs()
2195 && (params.installFlags & PackageManager.INSTALL_DRY_RUN) == 0) { in dispatchSessionFinished()
2418 writeIntAttribute(out, ATTR_INSTALL_FLAGS, params.installFlags); in write()
[all …]
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.java1545 final boolean grantPermissions = (args.installFlags in doHandleMessage()
1547 final boolean killApp = (args.installFlags in doHandleMessage()
1549 final boolean virtualPreload = ((args.installFlags in doHandleMessage()
1552 final List<String> whitelistedRestrictedPermissions = ((args.installFlags in doHandleMessage()
12699 if ((activeInstallSession.getSessionParams().installFlags
13021 public int installExistingPackageAsUser(String packageName, int userId, int installFlags,
13023 return installExistingPackageAsUser(packageName, userId, installFlags, installReason,
13028 @PackageManager.InstallFlags int installFlags,
13033 + " installFlags=" + installFlags + " installReason=" + installReason
13058 (installFlags & PackageManager.INSTALL_INSTANT_APP) != 0;
[all …]
/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/rollback/
DRollbackManagerServiceImpl.java179 int installFlags = intent.getIntExtra( in RollbackManagerServiceImpl()
188 enableRollback(installFlags, newPackageCodePath, user, token); in RollbackManagerServiceImpl()
780 int installFlags, File newPackageCodePath) { in sessionMatchesForEnableRollback() argument
786 if (newPackageCodePath.equals(packageCodePath) && installFlags == session.installFlags) { in sessionMatchesForEnableRollback()
813 int installFlags, File newPackageCodePath, @UserIdInt int user, int token) { in enableRollback() argument
836 if (sessionMatchesForEnableRollback(child, installFlags, newPackageCodePath)) { in enableRollback()
843 } else if (sessionMatchesForEnableRollback(info, installFlags, newPackageCodePath)) { in enableRollback()
895 final int installFlags = session.installFlags; in enableRollbackForPackageSession() local
896 if ((installFlags & PackageManager.INSTALL_ENABLE_ROLLBACK) == 0) { in enableRollbackForPackageSession()
900 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.java258 assertEquals(expected.installFlags, actual.installFlags); in assertSessionParamsEquivalent()
/frameworks/base/config/
Dhiddenapi-greylist-max-o.txt15197 Landroid/content/pm/PackageInstaller$SessionInfo;->installFlags:I