Loading services/core/java/com/android/server/pm/BackgroundDexOptService.java +9 −0 Original line number Diff line number Diff line Loading @@ -99,6 +99,10 @@ public class BackgroundDexOptService extends JobService { getDowngradeUnusedAppsThresholdInMillis(); public static void schedule(Context context) { if (isBackgroundDexoptDisabled()) { return; } JobScheduler js = (JobScheduler) context.getSystemService(Context.JOB_SCHEDULER_SERVICE); // Schedule a one-off job which scans installed packages and updates Loading Loading @@ -477,4 +481,9 @@ public class BackgroundDexOptService extends JobService { } return TimeUnit.DAYS.toMillis(Long.parseLong(sysPropValue)); } private static boolean isBackgroundDexoptDisabled() { return SystemProperties.getBoolean("pm.dexopt.disable_bg_dexopt" /* key */, false /* default */); } } Loading
services/core/java/com/android/server/pm/BackgroundDexOptService.java +9 −0 Original line number Diff line number Diff line Loading @@ -99,6 +99,10 @@ public class BackgroundDexOptService extends JobService { getDowngradeUnusedAppsThresholdInMillis(); public static void schedule(Context context) { if (isBackgroundDexoptDisabled()) { return; } JobScheduler js = (JobScheduler) context.getSystemService(Context.JOB_SCHEDULER_SERVICE); // Schedule a one-off job which scans installed packages and updates Loading Loading @@ -477,4 +481,9 @@ public class BackgroundDexOptService extends JobService { } return TimeUnit.DAYS.toMillis(Long.parseLong(sysPropValue)); } private static boolean isBackgroundDexoptDisabled() { return SystemProperties.getBoolean("pm.dexopt.disable_bg_dexopt" /* key */, false /* default */); } }