This commit is contained in:
Yutousama 2020-06-03 17:50:55 +08:00
parent afe1407825
commit 4c1aeed350
4 changed files with 51 additions and 28 deletions

View File

@ -1,3 +1,3 @@
Manifest-Version: 1.0
Main-Class: com.qy.utils.CsjTools
Main-Class: com.qy.ui.AppMain

View File

@ -63,6 +63,15 @@ public class AutoRandomAdSDK {
private SmaliApkToolsPath inter;
private boolean isDev = false;
public void clear() {
if (adClass != null)
adClass.clear();
if (nowAdClass != null)
nowAdClass.clear();
if (nowAdFile != null)
nowAdFile.clear();
}
public static void main(String[] args) {
// TODO Auto-generated method stub
// new AutoRandomAdSDK(new File("JooMobAdSDK_6.1.8.jar"), "5600", "5", 1, null);
@ -103,8 +112,10 @@ public class AutoRandomAdSDK {
public AutoRandomAdSDK() {
}
private SmaliApkToolsPath batchInter;
private JSONArray batch;
public AutoRandomAdSDK(JSONArray batch, SmaliApkToolsPath inter) {
batchInter = inter;
this.batch = batch;
@ -123,7 +134,9 @@ public class AutoRandomAdSDK {
});
}
}
private int outIndex = 0;
private void outInter(JSONArray array) {
outIndex++;
if (batch.length() == outIndex) {
@ -446,6 +459,7 @@ public class AutoRandomAdSDK {
public void smaliPath(String path) {
// TODO Auto-generated method stub
try {
smalitools.clear();
Thread.sleep(2000);
outManifest();
File lt;
@ -479,6 +493,7 @@ public class AutoRandomAdSDK {
}
if (inter != null)
inter.smaliPath(nLt == null ? rootPath : nLt.getAbsolutePath());
clear();
} catch (Exception e) {
// TODO: handle exception
e.printStackTrace();
@ -751,9 +766,6 @@ public class AutoRandomAdSDK {
}
}
nowAdClass.put(clazzs.getString(i), mkdir);
for (String key : nowAdClass.keySet()) {
// System.out.println("key=" + key + " file=" + nowAdClass.get(key) + " oldFile=" + adClass.get(key));
}
}
}
}

View File

@ -302,6 +302,7 @@ public class CsjTools {
apk_Path = path;
apk_res = apk_Path + File.separator + "res" + File.separator + "values";
runStart();
utils.clear();
}
});
@ -319,6 +320,7 @@ public class CsjTools {
csj_Path = path;
csj_res = csj_Path + File.separator + "res" + File.separator + "values";
_log.smaliPath("开始修改穿山甲");
utils.clear();
new Thread(new Runnable() {
@Override
public void run() {

View File

@ -256,6 +256,15 @@ public class SmaliUtils {
List<String> list;
public void clear() {
if (clazzList != null)
clazzList.clear();
if (list != null)
list.clear();
if (files != null)
files.clear();
}
public void setFilter(List<String> list) {
this.list = list;
}