Skip to content

Commit

Permalink
enlarge dex wait time and size to promote success rate
Browse files Browse the repository at this point in the history
  • Loading branch information
shwenzhang committed Aug 4, 2017
1 parent 09a678d commit 6c4a856
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
public class DexDiffPatchInternal extends BasePatchInternal {
protected static final String TAG = "Tinker.DexDiffPatchInternal";

protected static final int WAIT_ASYN_OAT_TIME = 12 * 1000;
protected static final int WAIT_ASYN_OAT_TIME = 15 * 1000;
protected static final int MAX_WAIT_COUNT = 30;

private static ArrayList<File> optFiles = new ArrayList<>();
Expand Down Expand Up @@ -93,7 +93,7 @@ protected static boolean waitAndCheckDexOptFile(File patchFile, Tinker manager)
return true;
}
// should use patch list size
int size = patchList.size() * 6;
int size = patchList.size() * 8;
if (size > MAX_WAIT_COUNT) {
size = MAX_WAIT_COUNT;
}
Expand Down

0 comments on commit 6c4a856

Please sign in to comment.