美文网首页
apk 加固,apktool 更新使用

apk 加固,apktool 更新使用

作者: that_is_this | 来源:发表于2018-03-20 15:54 被阅读107次

1. 下载地址

https://ibotpeaches.github.io/Apktool/

2. 使用命令

D:\tool-apktool>java -jar 231apktool_2.3.1.jar d app_raw.apk -o app_raw
D:\tool-apktool>java -jar 231apktool_2.3.1.jar b app_raw -o app_new.apk

3. github 源代码

https://github.com/woxihuannisja/Bangcle

4. 使用方法

已经测试成功《Bangcle-master》

    1. use Apktool decompile the Apk what you need to protect
    2. extract the classes.dex from Apk,rename classes.dex to jiami.dat,then place jiami.dat file to assets dir
    3. cd jni dir, exec ndk-build,copy the generated libdexload.so to lib dir
    4. copy smali dir files
    5. modify AndroidManifest.xml add android:name="com.storm.fengyue.StubApplication" under application node
    6. use Apktool rebuild

5. 出现问题解决

Failure [INSTALL_FAILED_TEST_ONLY: installPackageLI]

方法1:
修改AndroidManifest.xml 中android:testOnly="true" 改成 android:testOnly="false",或者直接去掉。

方法2:
adb push .apk /tmp
adb shell pm install -t /tmp/
.apk

方法3:
adb install -t *.apk

相关文章

网友评论

      本文标题:apk 加固,apktool 更新使用

      本文链接:https://www.haomeiwen.com/subject/spjpqftx.html