Lines Matching defs:codePath

423     // Mapping from provider base names (first directory in content URI codePath)
1587 + ps.name + "; removing system app. Last known codePath="
1592 expectingBetter.put(ps.name, ps.codePath);
1605 if (disabledPs.codePath == null || !disabledPs.codePath.exists()) {
1848 if (ps.codePath != null) {
1849 if (ps.codePath.isDirectory()) {
1850 FileUtils.deleteContents(ps.codePath);
1852 ps.codePath.delete();
1854 if (ps.resourcePath != null && !ps.resourcePath.equals(ps.codePath)) {
4149 && ps.codePath.equals(srcFile)
4228 if (ps != null && !ps.codePath.equals(scanFile)) {
4232 if (DEBUG_INSTALL) Slog.d(TAG, "Path changing from " + ps.codePath);
4239 if (!updatedPkg.codePath.equals(scanFile)) {
4243 updatedPkg.codePath = scanFile;
4354 if (ps != null && !ps.codePath.equals(ps.resourcePath)) {
4371 resourcePath = pkg.codePath;
4376 pkg.applicationInfo.setCodePath(pkg.codePath);
5173 final File scanFile = new File(pkg.codePath);
5609 final String codePath = pkg.applicationInfo.getCodePath();
6405 final File codePath = new File(codePathString);
6407 if (FileUtils.contains(Environment.getRootDirectory(), codePath)) {
6409 } else if (FileUtils.contains(Environment.getOemDirectory(), codePath)) {
6411 } else if (FileUtils.contains(Environment.getVendorDirectory(), codePath)) {
6417 File f = codePath.getCanonicalFile();
6418 File parent = f.getParentFile(); // non-null because codePath is a file
6426 + codePath + " - using " + codeRoot);
6429 Slog.w(TAG, "Can't canonicalize code path " + codePath);
6442 final String codePath = pkg.codePath;
6443 final File codeFile = new File(codePath);
6464 final String apkName = deriveCodePathName(codePath);
6478 final String apkName = deriveCodePathName(codePath);
6536 final File codeFile = new File(pkg.codePath);
9113 private InstallArgs createInstallArgsForExisting(int installFlags, String codePath,
9120 && !codePath.startsWith(mDrmAppPrivateInstallDir.getAbsolutePath())) {
9131 return new AsecInstallArgs(codePath, instructionSets,
9134 return new FileInstallArgs(codePath, resourcePath, nativeLibraryRoot,
9250 FileInstallArgs(String codePath, String resourcePath, String legacyNativeLibraryPath,
9253 this.codeFile = (codePath != null) ? new File(codePath) : null;
9358 pkg.codePath = afterCodeFile.getAbsolutePath();
9365 pkg.applicationInfo.setCodePath(pkg.codePath);
9368 pkg.applicationInfo.setResourcePath(pkg.codePath);
9441 for (String codePath : allCodePaths) {
9443 int retCode = mInstaller.rmdex(codePath, dexCodeInstructionSet);
9446 + " at location " + codePath + ", retcode=" + retCode);
9664 pkg.codePath = afterCodeFile.getAbsolutePath();
9671 pkg.applicationInfo.setCodePath(pkg.codePath);
9674 pkg.applicationInfo.setResourcePath(pkg.codePath);
9762 for (String codePath : allCodePaths) {
9764 int retCode = mInstaller.rmdex(codePath, dexCodeInstructionSet);
9767 + " at location " + codePath + ", retcode=" + retCode);
9904 static String deriveCodePathName(String codePath) {
9905 if (codePath == null) {
9908 final File codeFile = new File(codePath);
9916 Slog.w(TAG, "Odd, " + codePath + " doesn't look like an APK");
10004 res.setError("Package couldn't be installed in " + pkg.codePath, e);
10115 res.setError("Package couldn't be installed in " + pkg.codePath, e);
10135 File restoreFile = new File(deletedPackage.codePath);
10246 res.setError("Package couldn't be installed in " + pkg.codePath, e);
10287 if (DEBUG_INSTALL) Slog.d(TAG, "New package installed in " + newPackage.codePath);
10939 if (locationIsPrivileged(disabledPs.codePath)) {
10945 newPkg = scanPackageLI(disabledPs.codePath, parseFlags, SCAN_NO_PATHS, 0, null);
12791 Slog.i(TAG, "Found stale container " + cid + ": expected codePath="
12845 String codePath = processCids.get(args);
12857 if (codePath == null || !codePath.startsWith(args.getCodePath())) {
12859 + " does not match one in settings " + codePath);
12874 pkg = scanPackageLI(new File(codePath), parseFlags, 0, 0, null);
12876 Slog.w(TAG, "Failed to scan " + codePath + ": " + e.getMessage());
12894 Slog.i(TAG, "Failed to install pkg from " + codePath + " from sdcard");
13067 codeFile = new File(pkg.codePath);