Process zip with Java

This commit is contained in:
topjohnwu
2016-11-21 01:33:12 +08:00
parent f5bee7b691
commit 2a8477cbda
7 changed files with 55 additions and 35 deletions
@@ -60,7 +60,6 @@ public class Async {
protected Void doInBackground(Void... voids) {
String toolPath = mInfo.dataDir + "/tools";
String busybox = mInfo.dataDir + "/lib/libbusybox.so";
String zip = mInfo.dataDir + "/lib/libzip.so";
if (!Utils.itemExist(false, toolPath)) {
Shell.sh(
"mkdir " + toolPath,
@@ -70,8 +69,7 @@ public class Async {
"for tool in $(./busybox --list); do",
"ln -s " + busybox + " $tool",
"done",
"rm -f su sh",
"ln -s " + zip + " zip"
"rm -f su sh"
);
}
return null;