OSDN Git Service

Remove broken secondary dexopt during OTA
authorShubham Ajmera <shubhamajmera@google.com>
Fri, 8 Sep 2017 00:55:22 +0000 (17:55 -0700)
committerShubham Ajmera <shubhamajmera@google.com>
Mon, 11 Sep 2017 20:56:47 +0000 (13:56 -0700)
This is interim until the selinux policies get fixed.

Bug: 65067046
Test: make
(cherry-picked from commit b6156ca0f53d933b427d30e69aa2f638d4ecb88f)
Change-Id: Iea69e987ae451c80fa67065e08939e389efd2814

services/core/java/com/android/server/pm/OtaDexoptService.java

index 73ac057..6253857 100644 (file)
@@ -323,11 +323,6 @@ public class OtaDexoptService extends IOtaDexopt.Stub {
                 new DexoptOptions(pkg.packageName, compilationReason,
                         DexoptOptions.DEXOPT_BOOT_COMPLETE));
 
-        mPackageManagerService.getDexManager().dexoptSecondaryDex(
-                new DexoptOptions(pkg.packageName, compilationReason,
-                        DexoptOptions.DEXOPT_ONLY_SECONDARY_DEX |
-                                DexoptOptions.DEXOPT_BOOT_COMPLETE));
-
         return commands;
     }