Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,17 @@ public boolean patch(final File oldFile, final File newFile) throws IOException,
} catch (Exception e) {
e.printStackTrace();
}

// If is protechted app mode.
// Just collect current old dex file and corresponding new dex file for further processing.
if (config.mIsProtectedApp) {
hasDexChanged = true;
oldAndNewDexFilePairList.add(new AbstractMap.SimpleEntry<>(oldFile, newFile));
if (oldFile != null && oldFile.exists() && oldFile.length() > 0) {
oldDexFiles.add(oldFile);
}
return true;
}

// If corresponding new dex was completely deleted, just return false.
// don't process 0 length dex
Expand Down