Merge "Some cleanup for <uses-library> change." into nyc-dev

This commit is contained in:
Jeff Hao
2016-04-28 01:31:14 +00:00
committed by Android (Google) Code Review
2 changed files with 3 additions and 5 deletions

View File

@@ -22,9 +22,7 @@ import static com.android.server.pm.InstructionSets.getDexCodeInstructionSets;
import static com.android.server.pm.PackageManagerServiceCompilerMapping.getCompilerFilterForReason;
import android.content.Context;
import android.content.pm.ApplicationInfo;
import android.content.pm.IOtaDexopt;
import android.content.pm.PackageManager;
import android.content.pm.PackageParser;
import android.os.Environment;
import android.os.RemoteException;

View File

@@ -498,8 +498,8 @@ public class PackageManagerService extends IPackageManager.Stub {
public static final int REASON_LAST = REASON_FORCED_DEXOPT;
// Special String to skip shared libraries check during compilation.
private static final String SPECIAL_SHARED_LIBRARY = "&";
/** Special library name that skips shared libraries check during compilation. */
private static final String SKIP_SHARED_LIBRARY_CHECK = "&";
final ServiceThread mHandlerThread;
@@ -2348,7 +2348,7 @@ public class PackageManagerService extends IPackageManager.Stub {
dexoptNeeded, DEXOPT_PUBLIC /*dexFlags*/,
getCompilerFilterForReason(REASON_SHARED_APK),
StorageManager.UUID_PRIVATE_INTERNAL,
SPECIAL_SHARED_LIBRARY);
SKIP_SHARED_LIBRARY_CHECK);
}
} catch (FileNotFoundException e) {
Slog.w(TAG, "Library not found: " + lib);