当前位置:网站首页>Enhanced Apktool reverse artifact
Enhanced Apktool reverse artifact
2022-08-02 14:52:00 【love learning】
Introduction
First of all, I won't talk about the basic use. Here I only talk about two small functions that I have extended on apktool, one is automatic signature and the other is automatic installation.What function can be achieved, that is, after you change the code, it used to be build-sign-install, and then you can test it on the mobile phone.But now you can complete these three steps in just one sentence. It can be said that you can't feel the existence of these two steps at all, but it is very helpful in static analysis of smali
Auto Sign
The premise of automatic signature is to have a configuration file and signature file, put them in the same directory as apktool, keystore can not be in the same directory, but use an absolute path in the configuration file, as shown below
test.keystoreapktoolapktool.jarsign.conf
The test.keystore is the signature file you created. As for how to create it, you can use eclipse or commands to create it, or you can use the existing one
sign.conf is the configuration file, the content is as follows:
jarsigner -keystore test.keystore -storepass 123456 -signedjar %s %s a123456
We can see that there are two %s, they are the real paths that will eventually be replaced with apk, you can install it like this, now we can try to automatically sign, execute the following command
apktool b -si app
Where -si is the option of automatic signature, app-sign.apk will be generated in dist after signing, you can install it manually
Auto Install
When we auto-sign, we want to auto-install
You can add a -ri option, such as the following command
apktool b -si -ri app
You can achieve automatic signing and installation, and you can execute it every time you modify the code. Isn't it very convenient.The code repository is here The generated apktool.jar is under the art folder of the repository, you only need to download these three files
These two commands can be viewed with the help of apktool
usage: apktool b[uild] [options] -f,--force-all Skip changes detection and build allfiles. -i,--install Install this apk. -o,--output The name of apk that gets written. Default is dist/name.apk -p,--frame-path Uses framework files located in . -ri,--reinstall Reinstall this apk. -si,--sign Sign this apk.
The -si and -ri I added are the two commands mentioned above. -i is also installed, but not covered, so it is not commonly used
If my article is helpful to you or there is something you don't understand, you can add QQ group: 129961195, let's communicate together
边栏推荐
猜你喜欢
随机推荐
【Camera2】由Camera2 特性想到的有关MED(多场景设备互动)的场景Idea
每周招聘|PostgreSQL专家,年薪60+,高能力高薪资
浏览器报错数字代表的大概意思
我理解的学习金字塔
Flink依赖汇总
spark优化
VS Code远程开发及免密配置
getUserProfile接口不显示用户性别和地区
关于spark
UIWindow的makeKeyAndVisible不调用rootviewController 的viewDidLoad的问题
宝塔面板搭建小说CMS管理系统源码实测 - ThinkPHP6.0
Introduction and use of Haystack
Using the cloud GPU + pycharm training model to realize automatic background run programs, save training results, the server automatically power off
绕过正则实现SQL注入
1.RecyclerView是什么
安装使用——百家CMS微商城说明文档(2)
【c】大学生在校学习c语言常见代码
C语言——断言assert的使用
PHP版本切换:5.x到7.3
华为防火墙