4455jkjh/Apktool-android

Name apk, Name project, Patch apk

Opened this issue · 0 comments

Class:
/apktool/src/main/java/com/a4455jkjh/apktool/task/DecodeTask.java

Method:
public static ExtFile getOutDir(File f, String name, AbstractTask task)
Code:

return new ExtFile(dir, name);

replace to:

return new ExtFile(dir, name +"_src");

Class:
/apktool/src/main/java/brut/androlib/meta/MetaInfo.java

Method:
private void load(JSONObject json) throws JSONException
Code:

apkFileName = getString(json, "apkFileName");

Replace to:

apkFileName = getString(json, "apkFileName").replace(".apk", "")+"_src.apk";

Class:
apktool/src/main/java/com/a4455jkjh/apktool/task/BuildTask.java

Method:
protected boolean process(File f)
Code:

File out = new File(f, meta.apkFileName == null ?"out.apk": meta.apkFileName);

Replace to:

File out = new File(f.getParent(), meta.apkFileName == null ?"out.apk": meta.apkFileName);