Disable image dex2oat on ART as it is extremely slow once triggered on some ROMs

This commit is contained in:
weishu 2023-09-16 12:56:59 +08:00 committed by John Wu
parent 21441f6a94
commit f0246c763d

View File

@ -200,6 +200,10 @@ public class RootServiceManager implements Handler.Callback {
}
}
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
params += " -Xnoimage-dex2oat";
}
final String niceNameCmd;
switch (action) {
case CMDLINE_START_SERVICE: