Skip to content

Commit

Permalink
Disable image dex2oat on ART as it is extremely slow once triggered o…
Browse files Browse the repository at this point in the history
…n some ROMs
  • Loading branch information
tiann authored and topjohnwu committed Nov 7, 2023
1 parent 21441f6 commit f0246c7
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,10 @@ private Shell.Task startRootProcess(ComponentName name, String action) {
}
}

if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
params += " -Xnoimage-dex2oat";
}

final String niceNameCmd;
switch (action) {
case CMDLINE_START_SERVICE:
Expand Down

0 comments on commit f0246c7

Please sign in to comment.