Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/makeloveandroid/XpRoot
描述
https://github.com/makeloveandroid/XpRoot
Last synced: 21 days ago
JSON representation
描述
- Host: GitHub
- URL: https://github.com/makeloveandroid/XpRoot
- Owner: makeloveandroid
- Created: 2021-09-01T06:53:05.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-09-07T05:52:40.000Z (over 3 years ago)
- Last Synced: 2024-08-05T17:36:47.826Z (4 months ago)
- Language: Java
- Size: 3.47 MB
- Stars: 54
- Watchers: 3
- Forks: 17
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-hacking-lists - makeloveandroid/XpRoot - 描述 (Java)
README
# XpRoot
XpRoot是一款通过解压APK,动态修改Dex文件,实现注入Xposed模块的应用.
[源码分析](https://juejin.cn/post/7003631003755348004/)# 基本原理
1. 解压Apk
2. 读取宿主Application
3. 修改宿主Application的Dex,注入加载XP模块逻辑
4. 重新压缩
5. 签名APP![](https://s3.bmp.ovh/imgs/2021/09/ff1ce1531bce91f7.png)
![](https://s3.bmp.ovh/imgs/2021/09/4383d1d1d549fc84.png)
![](https://s3.bmp.ovh/imgs/2021/09/00128e60f63efab6.png)
# 工具使用
## 基本命令
```
java -jar ./ApkRoot.jar -host ./宿主.apk -virus ./xposed模块.apk
```
## debug 命令
修改宿主 Apk 是否变为 debug 模式
```
java -jar ./ApkRoot.jar -host ./宿主.apk -virus ./xposed模块.apk -debug 1
```
## dex 命令
通过直接修改宿主Application注入入口 (可能存在65535问题)
```
java -jar ./ApkRoot.jar -host ./宿主.apk -virus ./xposed模块.apk -dex 1
```# Thanks
[Xpath](https://github.com/WindySha/Xpatch)