Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Name apk, Name project, Patch apk #3

Open
HTC600 opened this issue May 17, 2019 · 0 comments
Open

Name apk, Name project, Patch apk #3

HTC600 opened this issue May 17, 2019 · 0 comments

Comments

@HTC600
Copy link

HTC600 commented May 17, 2019

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);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant