Skip to content
Snippets Groups Projects
Commit 7ed8a579 authored by Calin Juravle's avatar Calin Juravle Committed by android-build-merger
Browse files

Merge "Also pin vdex file for camera" am: d4ae914b am: a433a9d9 am: d7a40ace

am: d2eb85f5

Change-Id: Ia6fa6e66c9d104cc6b274f885e8d2a5ff8d0e721
parents 87b99e0e d2eb85f5
No related branches found
No related tags found
No related merge requests found
......@@ -244,20 +244,22 @@ public final class PinnerService extends SystemService {
// get the path to the odex or oat file
String baseCodePath = cameraInfo.getBaseCodePath();
String odex = null;
String[] files = null;
try {
odex = DexFile.getDexFileOutputPath(baseCodePath, arch);
files = DexFile.getDexFileOutputPaths(baseCodePath, arch);
} catch (IOException ioe) {}
if (odex == null) {
if (files == null) {
return true;
}
//not pinning the oat/odex is not a fatal error
pf = pinFile(odex, 0, 0, MAX_CAMERA_PIN_SIZE);
if (pf != null) {
mPinnedCameraFiles.add(pf);
if (DEBUG) {
Slog.i(TAG, "Pinned " + pf.mFilename);
for (String file : files) {
pf = pinFile(file, 0, 0, MAX_CAMERA_PIN_SIZE);
if (pf != null) {
mPinnedCameraFiles.add(pf);
if (DEBUG) {
Slog.i(TAG, "Pinned " + pf.mFilename);
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment