特别感谢 https://www.52pojie.cn/thread-684757-1-1.html
官方教程:https://github.com/rovo89/XposedBridge/wiki/Development-tutorial
安装了 xposed 后你的手机就可以自动抢微信,qq 红包了,还有可以搜索最近很多的答题 app 答案。
下面以抖音去 Toast 为例子, 教你如何制作一个 xposed 插件。
首先安装了 xposed 框架后,抖音会在 framework 检测到 XposedBridge.jar 文件,就会提示检测到 Xposed,要求删除 xposed install。
思路是通过 jadx 打开抖音 1.7.2 版本。在 resource-resource.arsc-res-values-strings.xml. 查询到
<string name="a_9">检测到你使用%s,请卸载后重试</string>
再次全局搜索 a_9 在哪里被引用 找到 package com.ss.android.ugc.aweme.app.b.a 的 g 类,我们要做就是替换到里面的 a 方法。
在 AndroidManifest.xml,添加是否为 xposed 项目,xposed 描述,最小的 xposed 版本
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.ppjun.android.xposedbytedance">
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppThem