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

Decompile Error #2507

Closed
aclocsin opened this issue Jan 29, 2021 · 14 comments
Closed

Decompile Error #2507

aclocsin opened this issue Jan 29, 2021 · 14 comments

Comments

@aclocsin
Copy link

aclocsin commented Jan 29, 2021

Information

  1. Apktool Version (2.50) -
  2. Operating System (Windows) -
  3. APK From? (APKPure) -

Stacktrace/Logcat

I: Using Apktool 2.5.0 on Lucid Adventure_v2.4.17_apkpure.com.apk
I: Copying raw resources...
Exception in thread "main" brut.androlib.AndrolibException: brut.directory.DirectoryException: Error copying file: res
at brut.androlib.Androlib.decodeResourcesRaw(Androlib.java:123)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:106)
at brut.apktool.Main.cmdDecode(Main.java:179)
at brut.apktool.Main.main(Main.java:82)
Caused by: brut.directory.DirectoryException: Error copying file: res
at brut.directory.DirUtil.copyToDir(DirUtil.java:94)
at brut.directory.DirUtil.copyToDir(DirUtil.java:70)
at brut.directory.AbstractDirectory.copyToDir(AbstractDirectory.java:203)
at brut.androlib.Androlib.decodeResourcesRaw(Androlib.java:121)
... 3 more
Caused by: brut.directory.DirectoryException: Error copying file: color/abc_background_cache_hint_selector_material_dark.xml
at brut.directory.DirUtil.copyToDir(DirUtil.java:91)
at brut.directory.DirUtil.copyToDir(DirUtil.java:63)
at brut.directory.AbstractDirectory.copyToDir(AbstractDirectory.java:198)
at brut.directory.DirUtil.copyToDir(DirUtil.java:79)
... 6 more
Caused by: java.io.FileNotFoundException: D:\1STUDY\DECOMPILED\Lucid Adventure_v2.4.17_apkpure.com\res\color\abc_background_cache_hint_selector_material_dark.xml (The system cannot find the path specified)
at java.base/java.io.FileOutputStream.open0(Native Method)
at java.base/java.io.FileOutputStream.open(FileOutputStream.java:291)
at java.base/java.io.FileOutputStream.(FileOutputStream.java:234)
at java.base/java.io.FileOutputStream.(FileOutputStream.java:184)
at brut.directory.DirUtil.copyToDir(DirUtil.java:87)
... 9 more
Decompile successful.

Please read the FAQ and troubleshooting
https://forum.xda-developers.com/t/tool-windows-apk-easy-tool-v1-57-12-june-2020.3333960/#post-65775601

Decompile failed. Please read the log


### Questions to ask before submission
1. Have you tried `apktool d`, `apktool b` without changing anything? No
2. If you are trying to install a modified apk, did you resign it? No
3. Are you using the latest apktool version? Yes

- Hello all. I was trying to learn if the rates that the developer says is real (they seem to be very shady and the maths do not add up). I plan to use real money so I wanted to make sure if the rates are real and if the money to be spent will not be of waste. Thank you.

@aclocsin aclocsin reopened this Jan 29, 2021
@pashamcr
Copy link
Contributor

@aclocsin not supported filename: assets/ �

  • open apk in 7z,
  • rename: assets/ �, for example, in: assets/rename
  • decompile apk
  • compiling apk - in reverse order

@aclocsin
Copy link
Author

@aclocsin not supported filename: assets/ �

  • open apk in 7z,
  • rename: assets/ �, for example, in: assets/rename
  • decompile apk
  • compiling apk - in reverse order

I tried doing this but ended up with the same error.

@pashamcr
Copy link
Contributor

@aclocsin

Snap1

D:\test>java -jar apktool_2.5.0.jar d "Lucid Adventure_v2.4.17_apkpure.com.apk"
I: Using Apktool 2.5.0 on Lucid Adventure_v2.4.17_apkpure.com.apk
I: Loading resource table...
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\pasha\AppData\Local\apktool\framework\1.apk
I: Regular manifest package...
I: Decoding file-resources...
I: Decoding values */* XMLs...
I: Baksmaling classes.dex...
I: Baksmaling classes2.dex...
I: Baksmaling classes3.dex...
I: Baksmaling assets/audience_network.dex...
I: Copying assets and libs...
I: Copying unknown files...
I: Copying original files...

@iBotPeaches
Copy link
Owner

The workaround posted above will work as this will require remapping unprintable characters and quite a difficulty so merging into duplicate ticket and closing - #1460

@aclocsin
Copy link
Author

aclocsin commented Feb 4, 2021

@pashamcr I would be grateful if you could send me the decompiled file as doing so still has not worked for me. Thank you very much.

@AndnixSH
Copy link

You can delete that blank filename and it will work too

@aclocsin
Copy link
Author

@AndnixSH Sadly, still the same thing happens.

@AndnixSH
Copy link

@aclocsin can you show me your another log output again?

@aclocsin
Copy link
Author

@AndnixSH Reading APK...
Done

Decompiling APK file... (Press ESC to cancel)

/c "java -Xmx2048m -jar "C:\Program Files (x86)\APK Easy Tool\Apktool\apktool_2.5.0.jar" d -f -r -s --only-main-classes -o "D:\1STUDY\DECOMPILED\Lucid Adventure_v2.4.17_apkpure.com" "D:\1STUDY\PRACTICE\NEW\Lucid Adventure_v2.4.17_apkpure.com.apk""

I: Using Apktool 2.5.0 on Lucid Adventure_v2.4.17_apkpure.com.apk
I: Copying raw resources...
Exception in thread "main" brut.androlib.AndrolibException: brut.directory.DirectoryException: Error copying file: res
at brut.androlib.Androlib.decodeResourcesRaw(Androlib.java:123)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:106)
at brut.apktool.Main.cmdDecode(Main.java:179)
at brut.apktool.Main.main(Main.java:82)
Caused by: brut.directory.DirectoryException: Error copying file: res
at brut.directory.DirUtil.copyToDir(DirUtil.java:94)
at brut.directory.DirUtil.copyToDir(DirUtil.java:70)
at brut.directory.AbstractDirectory.copyToDir(AbstractDirectory.java:203)
at brut.androlib.Androlib.decodeResourcesRaw(Androlib.java:121)
... 3 more
Caused by: brut.directory.DirectoryException: Error copying file: color/abc_background_cache_hint_selector_material_dark.xml
at brut.directory.DirUtil.copyToDir(DirUtil.java:91)
at brut.directory.DirUtil.copyToDir(DirUtil.java:63)
at brut.directory.AbstractDirectory.copyToDir(AbstractDirectory.java:198)
at brut.directory.DirUtil.copyToDir(DirUtil.java:79)
... 6 more
Caused by: java.io.FileNotFoundException: D:\1STUDY\DECOMPILED\Lucid Adventure_v2.4.17_apkpure.com\res\color\abc_background_cache_hint_selector_material_dark.xml (The system cannot find the path specified)
at java.base/java.io.FileOutputStream.open0(Native Method)
at java.base/java.io.FileOutputStream.open(FileOutputStream.java:291)
at java.base/java.io.FileOutputStream.(FileOutputStream.java:234)
at java.base/java.io.FileOutputStream.(FileOutputStream.java:184)
at brut.directory.DirUtil.copyToDir(DirUtil.java:87)
... 9 more
Decompile successful.

Please read the FAQ and troubleshooting
https://forum.xda-developers.com/t/tool-windows-apk-easy-tool-v1-57-12-june-2020.3333960/#post-65775601

Decompile failed. Please read the log

@AndnixSH
Copy link

@aclocsin yeah same error, i think something wrong with your zip program. Try this file which have unnamed file deleted https://anonfiles.com/5dR3P9H8pd/lucid-adventure_2.4.17_apk

I use same tool, it works fine for me after deletion

/c "java -Xmx2048m -jar "E:\APK Easy Tool\Apktool\apktool_2.5.0.jar" d -f -o "E:\APK Easy Tool\1-Decompiled APKs\lucid-adventure_2.4.17" "E:\Downloads\lucid-adventure_2.4.17.apk""

I: Using Apktool 2.5.0 on lucid-adventure_2.4.17.apk
I: Loading resource table...
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\andnix\AppData\Local\apktool\framework\1.apk
I: Regular manifest package...
I: Decoding file-resources...
I: Decoding values */* XMLs...
I: Baksmaling classes.dex...
I: Baksmaling classes2.dex...
I: Baksmaling classes3.dex...
I: Baksmaling assets/audience_network.dex...
I: Copying assets and libs...
I: Copying unknown files...
I: Copying original files...
Decompile successful.

Also this game is strongly protected by Appguard, you should not waste time with it

@aclocsin
Copy link
Author

@AndnixSH same thing still happens, maybe there's something wrong with my program? Anyways, if it's okay with you, can you send the decompiled file? Thanks a lot for everything!

@AndnixSH
Copy link

@aclocsin no sorry. Try to reset the tool or use apktool.jar in CMD instead

@vanlinh00
Copy link

Checking for update...
Reading APK...

Decompiling APK file... (Press ESC to cancel)

Executing command: java.exe -jar "C:\down\Tutorial\APKEasyTool\Apktool\apktool_2.5.0.jar" d -f -r -s --only-main-classes -o "C:\Users\canha\Documents\APK Easy Tool\1-Decompiled APKs\FILE_20210429_141224_base" "C:\down\Tutorial\APKEasyTool\Moddables\FILE_20210429_141224_base.apk"

I: Using Apktool 2.5.0 on FILE_20210429_141224_base.apk
I: Copying raw resources...
Exception in thread "main" brut.androlib.AndrolibException: brut.directory.DirectoryException: Error copying file: res
at brut.androlib.Androlib.decodeResourcesRaw(Androlib.java:123)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:106)
at brut.apktool.Main.cmdDecode(Main.java:179)
at brut.apktool.Main.main(Main.java:82)
Caused by: brut.directory.DirectoryException: Error copying file: res
at brut.directory.DirUtil.copyToDir(DirUtil.java:94)
at brut.directory.DirUtil.copyToDir(DirUtil.java:70)
at brut.directory.AbstractDirectory.copyToDir(AbstractDirectory.java:203)
at brut.androlib.Androlib.decodeResourcesRaw(Androlib.java:121)
... 3 more
Caused by: brut.directory.DirectoryException: Error copying file: drawable-hdpi-v4/share_button.png
at brut.directory.DirUtil.copyToDir(DirUtil.java:91)
at brut.directory.DirUtil.copyToDir(DirUtil.java:63)
at brut.directory.AbstractDirectory.copyToDir(AbstractDirectory.java:198)
at brut.directory.DirUtil.copyToDir(DirUtil.java:79)
... 6 more
Caused by: java.io.FileNotFoundException: C:\Users\canha\Documents\APK Easy Tool\1-Decompiled APKs\FILE_20210429_141224_base\res\drawable-hdpi-v4\share_button.png (Access is denied)
at java.io.FileOutputStream.open0(Native Method)
at java.io.FileOutputStream.open(Unknown Source)
at java.io.FileOutputStream.(Unknown Source)
at java.io.FileOutputStream.(Unknown Source)
at brut.directory.DirUtil.copyToDir(DirUtil.java:87)
... 9 more
Decompile failed. Please read the log

Click here for more infomation about Apktool issues
https://forum.xda-developers.com/t/tool-windows-apk-easy-tool-v1-58-3-dec-2020.3333960/#post-65775601

@vanlinh00
Copy link

Hi everyone I am having a similar error. please help me

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

5 participants