吾爱破解 - 52pojie.cn

 找回密码
 注册[Register]

QQ登录

只需一步,快速开始

查看: 2837|回复: 15
收起左侧

[Android 求助] [求助]Android Killer V1.3.1编译失败

[复制链接]
cdl279 发表于 2020-3-8 12:34
我用AK打开一款apk,不作任何修改,编译,提示失败。查询多篇文章,有解释说原因是ApkTool使用了aapt1去对aapt2打过的包重打包,原文如下:https://baijiahao.baidu.com/s?id=1612770712213635730&wfr=spider&for=pc
我接触逆向时间不长,也非行业人事,看不懂这些输出,来请大佬帮帮忙,希望能帮我解决一下这个问题。小弟感激不尽,先在此谢过!
(apk是开车的那种,所以不方便在这里发链接)

1、我先用apktool3.0反编译失败,日志输入如下:

正在反编译 APK,请稍等...

>I: 使用 ShakaApktool 3.0.0-20170503

>I: 正在加载资源列表...

>I: 反编译 AndroidManifest.xml 与资源...

>I: 正在从框架文件加载资源列表: C:\Users\cyy\AppData\Local\apktool\framework\1.apk

>I: 常规资源列表...

>I: 反编译资源文件...

>I: 反编译 values */* XMLs...

>java.lang.NullPointerException

>        at b.a.d.a.a.x.a(Unknown Source)

>        at b.a.d.a.a.x.a(Unknown Source)

>        at b.a.d.a.a(Unknown Source)

>        at b.a.d.a.c(Unknown Source)

>        at b.a.a.b(Unknown Source)

>        at b.a.C.a(Unknown Source)

>        at b.b.a.a(Unknown Source)

>        at b.b.a.a(Unknown Source)

>        at com.rover12421.shaka.cli.Main.main(Unknown Source)

>        at org.e.a.a.c(Unknown Source)

>        at b.a.d.a.a(Unknown Source)

>        at b.a.d.a.c(Unknown Source)

>        at b.a.a.b(Unknown Source)

>        at b.a.C.a(Unknown Source)

>        at b.b.a.a(Unknown Source)

>        at b.b.a.a(Unknown Source)

>        at com.rover12421.shaka.cli.Main.main(Unknown Source)

APK 反编译失败,无法继续下一步源码反编译!

2、我用2.4.1版本的apktool反编译,成功。不作任何修改,直接编译,提示失败,输出如下:
>I: Building resources...
>W: D:\破解逆向工具\AndroidKiller_v1.3.1\projects\bobo\Project\res\layout-v26\abc_screen_toolbar.xml:5: error: No resource identifier found for attribute 'keyboardNavigationCluster' in package 'android'

>W:

>W: D:\破解逆向工具\AndroidKiller_v1.3.1\projects\bobo\Project\res\layout-v22\custom_item_player_resolution.xml:4: error: No resource identifier found for attribute 'paddingVertical' in package 'android'

>W:

>W: D:\破解逆向工具\AndroidKiller_v1.3.1\projects\bobo\Project\res\layout-v22\custom_player_view_video_setting.xml:7: error: No resource identifier found for attribute 'layout_marginHorizontal' in package 'android'

>W:

>W: D:\破解逆向工具\AndroidKiller_v1.3.1\projects\bobo\Project\res\layout-v22\custom_player_view_video_setting.xml:12: error: No resource identifier found for attribute 'layout_marginHorizontal' in package 'android'

>W:

>W: D:\破解逆向工具\AndroidKiller_v1.3.1\projects\bobo\Project\res\layout-v22\custom_view_video_player.xml:33: error: No resource identifier found for attribute 'paddingHorizontal' in package 'android'

>W:

>W: D:\破解逆向工具\AndroidKiller_v1.3.1\projects\bobo\Project\res\layout-v22\custom_view_video_player.xml:40: error: No resource identifier found for attribute 'paddingHorizontal' in package 'android'

>W:

>W: D:\破解逆向工具\AndroidKiller_v1.3.1\projects\bobo\Project\res\layout-v22\custom_view_video_player.xml:41: error: No resource identifier found for attribute 'paddingHorizontal' in package 'android'

>W:

>W: D:\破解逆向工具\AndroidKiller_v1.3.1\projects\bobo\Project\res\layout-v22\item_web_sdk_resolution.xml:4: error: No resource identifier found for attribute 'paddingHorizontal' in package 'android'

>W:

>W: D:\破解逆向工具\AndroidKiller_v1.3.1\projects\bobo\Project\res\layout-v22\item_web_sdk_setting.xml:2: error: No resource identifier found for attribute 'paddingHorizontal' in package 'android'

>W:

>W: D:\破解逆向工具\AndroidKiller_v1.3.1\projects\bobo\Project\res\layout-v22\web_sdk_player_view.xml:11: error: No resource identifier found for attribute 'layout_marginHorizontal' in package 'android'

>W:

>W: D:\破解逆向工具\AndroidKiller_v1.3.1\projects\bobo\Project\res\layout-v22\web_sdk_video_scale_play.xml:5: error: No resource identifier found for attribute 'paddingHorizontal' in package 'android'

>W:

>W: D:\破解逆向工具\AndroidKiller_v1.3.1\projects\bobo\Project\res\layout-v22\web_sdk_video_scale_play.xml:9: error: No resource identifier found for attribute 'paddingHorizontal' in package 'android'

>W:

>W: D:\破解逆向工具\AndroidKiller_v1.3.1\projects\bobo\Project\res\layout-v22\web_sdk_video_scale_play.xml:13: error: No resource identifier found for attribute 'paddingHorizontal' in package 'android'

>W:

>W: D:\破解逆向工具\AndroidKiller_v1.3.1\projects\bobo\Project\res\layout-v22\web_sdk_video_scale_play.xml:17: error: No resource identifier found for attribute 'paddingHorizontal' in package 'android'

>W:

>W: D:\破解逆向工具\AndroidKiller_v1.3.1\projects\bobo\Project\res\layout-v22\web_sdk_video_speed_play.xml:5: error: No resource identifier found for attribute 'paddingHorizontal' in package 'android'

>W:

>W: D:\破解逆向工具\AndroidKiller_v1.3.1\projects\bobo\Project\res\layout-v22\web_sdk_video_speed_play.xml:9: error: No resource identifier found for attribute 'paddingHorizontal' in package 'android'

>W:

>W: D:\破解逆向工具\AndroidKiller_v1.3.1\projects\bobo\Project\res\layout-v22\web_sdk_video_speed_play.xml:13: error: No resource identifier found for attribute 'paddingHorizontal' in package 'android'

>W:

>W: D:\破解逆向工具\AndroidKiller_v1.3.1\projects\bobo\Project\res\layout-v22\web_sdk_video_speed_play.xml:17: error: No resource identifier found for attribute 'paddingHorizontal' in package 'android'

>W:

>W: D:\破解逆向工具\AndroidKiller_v1.3.1\projects\bobo\Project\res\layout-v22\web_sdk_view_player_dialog_container.xml:10: error: No resource identifier found for attribute 'paddingHorizontal' in package 'android'

>W:

>brut.androlib.AndrolibException: brut.common.BrutException: could not exec (exit code = 1): [C:\Users\cyy\AppData\Local\Temp\brut_util_Jar_2924501871778471547.tmp, p, --forced-package-id, 127, --min-sdk-version, 19, --target-sdk-version, 28, --version-code, 41, --version-name, 6.1.3, --no-version-vectors, -F, C:\Users\cyy\AppData\Local\Temp\APKTOOL5289754262102963970.tmp, -e, C:\Users\cyy\AppData\Local\Temp\APKTOOL424617858090375665.tmp, -0, arsc, -I, C:\Users\cyy\AppData\Local\apktool\framework\1.apk, -S, D:\破解逆向工具\AndroidKiller_v1.3.1\projects\bobo\Project\res, -M, D:\破解逆向工具\AndroidKiller_v1.3.1\projects\bobo\Project\AndroidManifest.xml]

APK 编译失败,无法继续下一步签名!

3、我在用3.0版本的apktool编译,还是失败,输出如下:

>Exception in thread "main" com.rover12421.shaka.b.l: W: A/        (14164): First type is not attr!
>        at b.a.d.a.a(Unknown Source)
>        at b.a.d.a.a(Unknown Source)
>        at b.a.a.a(Unknown Source)
>        at b.a.a.a(Unknown Source)
>        at b.a.a.e(Unknown Source)
>        at b.a.a.a(Unknown Source)
>        at b.b.a.b(Unknown Source)
>        at b.b.a.a(Unknown Source)
>        at com.rover12421.shaka.cli.Main.main(Unknown Source)
>Caused by: b.a.B: b.c.a: could not exec (exit code = 3): [C:\Users\cyy\ShakaApktool\windows-x86\bin\aapt.exe, p, --forced-package-id, 127, --min-sdk-version, 19, --target-sdk-version, 28, --version-code, 41, --version-name, 6.1.3, --no-version-vectors, -F, C:\Users\cyy\AppData\Local\Temp\APKTOOL3451109455427819139.tmp, -0, arsc, -I, C:\Users\cyy\AppData\Local\apktool\framework\1.apk, -S, D:\破解逆向工具\AndroidKiller_v1.3.1\projects\bobo\Project\res, -M, D:\破解逆向工具\AndroidKiller_v1.3.1\projects\bobo\Project\AndroidManifest.xml]
>        at b.a.d.a.a(Unknown Source)
>        ... 9 more
>Caused by: b.c.a: could not exec (exit code = 3): [C:\Users\cyy\ShakaApktool\windows-x86\bin\aapt.exe, p, --forced-package-id, 127, --min-sdk-version, 19, --target-sdk-version, 28, --version-code, 41, --version-name, 6.1.3, --no-version-vectors, -F, C:\Users\cyy\AppData\Local\Temp\APKTOOL3451109455427819139.tmp, -0, arsc, -I, C:\Users\cyy\AppData\Local\apktool\framework\1.apk, -S, D:\破解逆向工具\AndroidKiller_v1.3.1\projects\bobo\Project\res, -M, D:\破解逆向工具\AndroidKiller_v1.3.1\projects\bobo\Project\AndroidManifest.xml]
>        at b.e.i.a(Unknown Source)
>        ... 10 more
APK 编译失败,无法继续下一步签名!

发帖前要善用论坛搜索功能,那里可能会有你要找的答案或者已经有人发布过相同内容了,请勿重复发帖。

芽衣 发表于 2020-3-12 15:15
cdl279 发表于 2020-3-12 11:04
感谢大佬,我用安卓调试助手不反编译资源文件,完美解决了问题。真是开心,非常感谢!

看报错日志,是resources.arsc这个文件导致的,不理他就行了= =
nisodaisuki 发表于 2020-3-30 16:16
417788939 发表于 2020-3-10 23:12
我感觉是jdk问题,你装的是什么版本?

应该就是资源的问题,只要用到了资源好像都会出错,我重新编译以前的apk(api : 4~15)仍然重打包失败了。
lishang0808 发表于 2020-3-8 13:03
Ldfd 发表于 2020-3-8 13:06
我也遇到了诶,编译始终没成功过,同求
i8o2eu 发表于 2020-3-8 13:21
apktool的问题或者jdk
 楼主| cdl279 发表于 2020-3-8 16:20
或者哪位大佬有空的话,帮我看一下这个apk也可以。先谢谢大佬
芽衣 发表于 2020-3-10 23:12
本帖最后由 417788939 于 2020-3-11 09:44 编辑

我感觉是jdk问题,你装的是什么版本?
 楼主| cdl279 发表于 2020-3-11 09:36
417788939 发表于 2020-3-10 23:12
我感觉是adk问题,你装的是什么版本?

感谢大佬的帮助,Android API 29版本的。
芽衣 发表于 2020-3-11 09:46
cdl279 发表于 2020-3-11 09:36
感谢大佬的帮助,Android API 29版本的。

jdk版本,我没问API……
 楼主| cdl279 发表于 2020-3-11 10:40
417788939 发表于 2020-3-11 09:46
jdk版本,我没问API……

JDK是1.8的,我还以为你问问SDK
芽衣 发表于 2020-3-11 11:07
cdl279 发表于 2020-3-11 10:40
JDK是1.8的,我还以为你问问SDK

尝试不反编译资源文件看看
您需要登录后才可以回帖 登录 | 注册[Register]

本版积分规则

返回列表

RSS订阅|小黑屋|处罚记录|联系我们|吾爱破解 - LCG - LSG ( 京ICP备16042023号 | 京公网安备 11010502030087号 )

GMT+8, 2024-12-23 20:35

Powered by Discuz!

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表