Skip to content

Commit

Permalink
[tinker] Retry 5 times when dex2oat was failed to be triggered.
Browse files Browse the repository at this point in the history
  • Loading branch information
tys282000 committed Mar 21, 2022
1 parent 153ec2f commit 0016da9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ private static void triggerPMDexOptOnDemand(Context context, String dexPath, Str
ShareTinkerLog.i(TAG, "[+] Oat file %s should be valid, skip triggering dexopt.", oatPath);
return;
}
for (int i = 0; i < 3; ++i) {
for (int i = 0; i < 5; ++i) {
if (ShareTinkerInternals.isNewerOrEqualThanVersion(31, true)) {
try {
registerDexModule(context, dexPath);
Expand Down

0 comments on commit 0016da9

Please sign in to comment.