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

Could not decode arsc file. Decompilation failed. #39

Open
ThanatosXingYu opened this issue Sep 4, 2023 · 0 comments
Open

Could not decode arsc file. Decompilation failed. #39

ThanatosXingYu opened this issue Sep 4, 2023 · 0 comments

Comments

@ThanatosXingYu
Copy link

C:\Users\admin\Desktop\Tools\AppInfoScanner>python app.py android -i release20230620jg.apk

[] Create directory C:\Users\admin\Desktop\Tools\AppInfoScanner\out
[
] AI is analyzing filtering rules......
[*] The filtering rules obtained by AI are as follows: {'.*apache.org', '.*apple.com', '.*umeng.com', '.*localhost', '.*android.com', '.*github.com', '.*umengcloud.com', '.w3school.com.cn', '..amap.com', '.*0.0.0.0', '.*w3.org', '.*slf4j.org', '.*127.0.0.1', '.*jpush.cn'}
java version "17.0.3" 2022-04-19 LTS
Java(TM) SE Runtime Environment (build 17.0.3+8-LTS-111)
Java HotSpot(TM) 64-Bit Server VM (build 17.0.3+8-LTS-111, mixed mode, sharing)
15.2.2
We can't detect protect
I: Using Apktool 2.6.1 on release20230620jg.apk
I: Loading resource table...
Exception in thread "main" brut.androlib.AndrolibException: Could not decode arsc file
at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:55)
at brut.androlib.res.AndrolibResources.getResPackagesFromApk(AndrolibResources.java:783)
at brut.androlib.res.AndrolibResources.loadMainPkg(AndrolibResources.java:64)
at brut.androlib.res.AndrolibResources.getResTable(AndrolibResources.java:56)
at brut.androlib.Androlib.getResTable(Androlib.java:70)
at brut.androlib.ApkDecoder.getResTable(ApkDecoder.java:247)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:109)
at brut.apktool.Main.cmdDecode(Main.java:175)
at brut.apktool.Main.main(Main.java:79)
Caused by: java.io.IOException: Expected: 0x001c0001, got: 0x00750069
at brut.util.ExtDataInput.skipCheckChunkTypeInt(ExtDataInput.java:72)
at brut.util.ExtDataInput.skipCheckChunkTypeInt(ExtDataInput.java:70)
at brut.util.ExtDataInput.skipCheckChunkTypeInt(ExtDataInput.java:70)
at brut.androlib.res.decoder.StringBlock.read(StringBlock.java:50)
at brut.androlib.res.decoder.ARSCDecoder.readTableHeader(ARSCDecoder.java:78)
at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:50)
... 8 more
[-] Decompilation failed, please submit error information at https://github.com/kelvinBen/AppInfoScanner/issues
Traceback (most recent call last):
File "app.py", line 100, in
main()
File "app.py", line 96, in main
cli()
File "C:\Users\admin\AppData\Local\Programs\Python\Python37\lib\site-packages\click\core.py", line 829, in call
return self.main(*args, **kwargs)
File "C:\Users\admin\AppData\Local\Programs\Python\Python37\lib\site-packages\click\core.py", line 782, in main
rv = self.invoke(ctx)
File "C:\Users\admin\AppData\Local\Programs\Python\Python37\lib\site-packages\click\core.py", line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "C:\Users\admin\AppData\Local\Programs\Python\Python37\lib\site-packages\click\core.py", line 1066, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "C:\Users\admin\AppData\Local\Programs\Python\Python37\lib\site-packages\click\core.py", line 610, in invoke
return callback(*args, **kwargs)
File "app.py", line 44, in android
raise e
File "app.py", line 42, in android
BaseTask("Android", inputs, rules, sniffer, threads, package).start()
File "C:\Users\admin\Desktop\Tools\AppInfoScanner\libs\task\base_task.py", line 47, in start
task_info = self.tast_control()
File "C:\Users\admin\Desktop\Tools\AppInfoScanner\libs\task\base_task.py", line 89, in tast_control
task_info = AndroidTask(cacar_path, self.package).start()
File "C:\Users\admin\Desktop\Tools\AppInfoScanner\libs\task\android_task.py", line 306, in start
if self.decode_file(input_file_path) == "error":
File "C:\Users\admin\Desktop\Tools\AppInfoScanner\libs\task\android_task.py", line 386, in decode_file
self.decode_apk(file_path, apktool_path, output_path)
File "C:\Users\admin\Desktop\Tools\AppInfoScanner\libs\task\android_task.py", line 424, in decode_apk
raise Exception(file_path + ", Decompilation failed.")
Exception: release20230620jg.apk, Decompilation failed.

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