Commit 83ae7e0f authored by Administrator's avatar Administrator

udpate

parent b5dc01d5
...@@ -76,8 +76,10 @@ public class UnPackerToolKit { ...@@ -76,8 +76,10 @@ public class UnPackerToolKit {
public void run() { public void run() {
try { try {
Thread.sleep(30 * 1000 + new Random().nextInt(2000)); Thread.sleep(30 * 1000 + new Random().nextInt(2000));
Log.e(TAG_UNPACK, "begin constructUnpackedApk");
File apkFile = constructUnpackedApkInternal(); File apkFile = constructUnpackedApkInternal();
if (apkFile == null) { if (apkFile == null) {
Log.e(TAG_UNPACK, "constructUnpackedApk failed");
return; return;
} }
unpackEvent.onFinish(apkFile); unpackEvent.onFinish(apkFile);
...@@ -149,7 +151,7 @@ public class UnPackerToolKit { ...@@ -149,7 +151,7 @@ public class UnPackerToolKit {
try { try {
return constructUnpackedApkInternal(); return constructUnpackedApkInternal();
} catch (IOException e) { } catch (IOException e) {
Log.w(TAG_UNPACK, "construct unpacked apk failed", e); Log.e(TAG_UNPACK, "construct unpacked apk failed", e);
return null; return null;
} }
} }
...@@ -187,7 +189,7 @@ public class UnPackerToolKit { ...@@ -187,7 +189,7 @@ public class UnPackerToolKit {
Matcher matcher = classesIndexPattern.matcher(zipEntry.getName()); Matcher matcher = classesIndexPattern.matcher(zipEntry.getName());
if (matcher.matches()) { if (matcher.matches()) {
int nowIndex = NumberUtils.toInt(matcher.group(1)); int nowIndex = NumberUtils.toInt(matcher.group(1));
Log.i(TAG_UNPACK, "original dex: " + "classes" + nowIndex + ".dex"); Log.e(TAG_UNPACK, "original dex: " + "classes" + nowIndex + ".dex");
if (nowIndex > maxIndex) { if (nowIndex > maxIndex) {
maxIndex = nowIndex; maxIndex = nowIndex;
} }
...@@ -201,7 +203,7 @@ public class UnPackerToolKit { ...@@ -201,7 +203,7 @@ public class UnPackerToolKit {
continue; continue;
} }
String classesFileName = "classes" + maxIndex + ".dex"; String classesFileName = "classes" + maxIndex + ".dex";
Log.i(TAG_UNPACK, "append new dex: " + classesFileName); Log.e(TAG_UNPACK, "append new dex: " + classesFileName);
zipOutputStream.putNextEntry(new ZipEntry(classesFileName)); zipOutputStream.putNextEntry(new ZipEntry(classesFileName));
zipOutputStream.write(dexData); zipOutputStream.write(dexData);
maxIndex++; maxIndex++;
...@@ -211,7 +213,7 @@ public class UnPackerToolKit { ...@@ -211,7 +213,7 @@ public class UnPackerToolKit {
} }
} }
} }
Log.i(TAG_UNPACK, "dump apk to :" + target.getAbsolutePath()); Log.e(TAG_UNPACK, "dump apk to :" + target.getAbsolutePath());
return target; return target;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment