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

Error copying unknown file #1193

Closed
h4ng3r opened this issue Mar 16, 2016 · 2 comments
Closed

Error copying unknown file #1193

h4ng3r opened this issue Mar 16, 2016 · 2 comments

Comments

@h4ng3r
Copy link

h4ng3r commented Mar 16, 2016

I: Using Apktool 2.0.3 on XXXXXXX.apk
I: Loading resource table...
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: /root/apktool/framework/1.apk
I: Regular manifest package...
I: Decoding file-resources...
I: Decoding values */* XMLs...
I: Baksmaling classes.dex...
I: Copying assets and libs...
I: Copying unknown files...
Exception in thread "main" java.lang.NullPointerException
    at brut.util.OS.rmdir(OS.java:34)
    at brut.directory.DirUtil.copyToDir(DirUtil.java:76)
    at brut.directory.AbstractDirectory.copyToDir(AbstractDirectory.java:207)
    at brut.androlib.Androlib.decodeUnknownFiles(Androlib.java:207)
    at brut.androlib.ApkDecoder.decode(ApkDecoder.java:158)
    at brut.apktool.Main.cmdDecode(Main.java:165)
    at brut.apktool.Main.main(Main.java:81)
@iBotPeaches
Copy link
Owner

Could you provide apk? (Email (ibotpeaches) (at) gmail (dot) com) if its private).

These errors isolated to the Unknown Files usually are best handled with investigating the APK directly and then making a similar unit test.

@iBotPeaches
Copy link
Owner

Its definitely not rebuildable, but our changes to the Unknown File handler in 2.1.0 seems to have fixed this.

➜  Bug1193 apktool d base.apk 
I: Using Apktool 2.1.0-180728-SNAPSHOT on base.apk
I: Loading resource table...
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: /home/ibotpeaches/apktool/framework/1.apk
I: Regular manifest package...
I: Decoding file-resources...
I: Decoding values */* XMLs...
I: Baksmaling classes.dex...
I: Copying assets and libs...
I: Copying unknown files...
I: Copying original files...
➜  Bug1193 

Rebuilding dexguard apps falls under #1014 and #885

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

2 participants