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

apktool d and b with no resources fails #1730

Closed
gilhartman opened this Issue Feb 19, 2018 · 0 comments

Comments

Projects
None yet
1 participant
@gilhartman

gilhartman commented Feb 19, 2018

Information

  1. Apktool Version (apktool -version) - 2.3..1
  2. Operating System (Mac, Linux, Windows) - Mac
  3. APK From? (Playstore, ROM, Other) - Other

Stacktrace/Logcat

I: Using Apktool 2.3.1
I: Checking whether sources has changed...
I: Smaling smali folder into classes.dex...
I: Checking whether resources has changed...
I: Building resources...
Exception in thread "main" brut.androlib.AndrolibException: brut.directory.DirectoryException: Error copying file: resources.arsc
	at brut.androlib.Androlib.buildResourcesFull(Androlib.java:492)
	at brut.androlib.Androlib.buildResources(Androlib.java:426)
	at brut.androlib.Androlib.build(Androlib.java:305)
	at brut.androlib.Androlib.build(Androlib.java:270)
	at brut.apktool.Main.cmdBuild(Main.java:227)
	at brut.apktool.Main.main(Main.java:75)
Caused by: brut.directory.DirectoryException: Error copying file: resources.arsc
	at brut.directory.DirUtil.copyToDir(DirUtil.java:91)
	at brut.directory.DirUtil.copyToDir(DirUtil.java:68)
	at brut.directory.AbstractDirectory.copyToDir(AbstractDirectory.java:203)
	at brut.androlib.Androlib.buildResourcesFull(Androlib.java:483)
	... 5 more
Caused by: brut.directory.PathNotExist: resources.arsc
	at brut.directory.AbstractDirectory.getFileInput(AbstractDirectory.java:106)
	at brut.directory.DirUtil.copyToDir(DirUtil.java:84)
	... 8 more

Steps to Reproduce

  1. apktool d
  2. apktool b

Frameworks

If this APK is from an OEM ROM (Samsung, HTC, LG). Please attach framework files
(.apks that live in /system/framework or /system/priv-app)

APK

If this APK can be freely shared, please upload/attach a link to it.

https://www.dropbox.com/s/xdiicnhdibe17rt/empty.apk?dl=0

Questions to ask before submission

  1. Have you tried apktool d, apktool b without changing anything? Yes
  2. If you are trying to install a modified apk, did you resign it? Not relevant
  3. Are you using the latest apktool version? Yes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment