逆向-hook-xposed

Xposd app步骤

  1. 一部root后的手机 安装xposed install
  2. android app开发
  • assets目录 下xposed_init文件: xposed所在类
  • AndroidManifest.xml 中添加
    1
    2
    3
    4
    5
    6
    7
    8
    9
    <meta-data
    android:name="xposedmodule"
    android:value="true" />
    <meta-data
    android:name="xposeddescription"
    android:value="蚂蚁森林自动收取好友能量" />
    <meta-data
    android:name="xposedminversion"
    android:value="30" />
  • lib下添加 api-82.jar
  1. 编写hook代码

fuck this

1
2
1. compileOnly 'de.robv.android.xposed:api:82'
2. 请确保禁用Instant Run(File -> Settings -> Build, Execution, Deployment -> Instant Run),否则您的类不会直接包含在APK中,而是通过Xposed无法处理的存根应用程序加载。