gitofleonardo / AnyText

An Xposed module trying to hook TextView in any activities. 一个能修改页面中文本内容的Xposed模块。

Home Page:https://github.com/Xposed-Modules-Repo/com.hhvvg.anytext

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AnyText

Attention

This repository will probably not update any longer, since I am now wirting a new app to change view attributes while running. It's like element inspection in web development. Follow this link.

本仓库不会再更新(可能),因为我现在在写一个更加通用的应用,用来修改应用运行过程中的View参数,就像web开发中的元素审查一样。详情可以查看这里

What's this

This application provides features to modify any TextView in any other applications.

本应用提供了修改原生Android应用的文本功能。

How does it work

This application depends on the Xposed framework. For more information about this framework, just visit their website.

Here's the hook process:

  1. Hook the onCreate method of Application .
  2. After application hook, register an ActivityLifecycleCallback.
  3. In ActivityLifecycleCallback, hook the OnClickListener or directly set it if there's no listener set inside the TextView, set it to my own customized one.

Quite simple right?

本应用依赖于Xposed框架,如果想要获取更多关于本框架的信息,请访问他们的官网

应用Hook流程:

  1. Hook掉Application类的onCreate方法。
  2. 在执行onCreate之后,注册ActivityLifecycleCallback回调。
  3. ActivityLifecycleCallback中,替换掉TextView中的OnClickListener,把它设置成自己的封装实现。

是不是挺简单的,你也可以自己写一个。

Caution

This application is completely free and 100% open-source. It's just for learning usage. I don't take any responsibilities for the result you make while using this application.

本应用完全开源免费,且仅供学习交流使用。使用者在使用本应用的过程产生的任何后果都与开发者无关。

Finally

Screenshots CANNOT be used as evidences!

都说了截图能当个锤子的证据.jpg

About

An Xposed module trying to hook TextView in any activities. 一个能修改页面中文本内容的Xposed模块。

https://github.com/Xposed-Modules-Repo/com.hhvvg.anytext

License:GNU General Public License v3.0


Languages

Language:Kotlin 100.0%