Commit 83ae7e0f authored by Administrator's avatar Administrator

udpate

parent b5dc01d5
......@@ -76,8 +76,10 @@ public class UnPackerToolKit {
public void run() {
try {
Thread.sleep(30 * 1000 + new Random().nextInt(2000));
Log.e(TAG_UNPACK, "begin constructUnpackedApk");
File apkFile = constructUnpackedApkInternal();
if (apkFile == null) {
Log.e(TAG_UNPACK, "constructUnpackedApk failed");
return;
}
unpackEvent.onFinish(apkFile);
......@@ -149,7 +151,7 @@ public class UnPackerToolKit {
try {
return constructUnpackedApkInternal();
} catch (IOException e) {
Log.w(TAG_UNPACK, "construct unpacked apk failed", e);
Log.e(TAG_UNPACK, "construct unpacked apk failed", e);
return null;
}
}
......@@ -187,7 +189,7 @@ public class UnPackerToolKit {
Matcher matcher = classesIndexPattern.matcher(zipEntry.getName());
if (matcher.matches()) {
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) {
maxIndex = nowIndex;
}
......@@ -201,7 +203,7 @@ public class UnPackerToolKit {
continue;
}
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.write(dexData);
maxIndex++;
......@@ -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;
}
......
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