Original Project: https://gitlab.com/derSchabi/Stethox
This is a Xposed Module that enables Stetho (origin) for every application on your phone, allows you inspect any application with Chrome Remote Devtools.
hook.help()
to view help).StethoX supports suspending the App process when it starts and displays the “Waiting for Debugger” dialog. When the user connects with Devtools, he can enter cont
at the console to keep the process running.
Before the process continues to run, the process can also be accessed through Devtools, such as executing Javascript and other operations.
**NOTE: You may need to turn off StethoX’s battery optimization for this feature to work properly. **
You can configure suspend using the content
command in the adb shell:
# Suspend once (take effect at next startup)
content call --uri content://io.github.a13e300.tools.stethox.suspend --method suspend --arg ${processName}
#Hang all the time
content call --uri content://io.github.a13e300.tools.stethox.suspend --method suspend_forever --arg ${processName}
# Clear configuration (clear all without specifying arg)
content call --uri content://io.github.a13e300.tools.stethox.suspend --method clear [--arg ${processName}]
# List configuration
content call --uri content://io.github.a13e300.tools.stethox.suspend --method list
Never leave this Module enabled or installed on day to day use. THIS IS A SECURITY RISK. Only enable this for Development.
原项目: https://gitlab.com/derSchabi/Stethox
这是一个能够为任意应用启用 Stetho (原 facebook 项目) 的 Xposed 模块,你可以借助它通过 Chrome 开发者工具检查任意 App 。
hook.help()
查看帮助)。StethoX 支持在 App 进程启动时挂起进程,并显示「等待调试器」对话框。当用户使用 Devtools 连接后,可以在控制台输入 cont
让进程继续运行。
在进程继续运行之前,也可以通过 Devtools 访问进程,如执行 Javascript 等操作。
注意:你可能需要关闭 StethoX 的电池优化确保该功能正常工作。
你可以在 adb shell 使用 content
命令配置挂起:
# 挂起一次(下次启动时生效)
content call --uri content://io.github.a13e300.tools.stethox.suspend --method suspend --arg ${processName}
# 一直挂起
content call --uri content://io.github.a13e300.tools.stethox.suspend --method suspend_forever --arg ${processName}
# 清除配置(不指定 arg 则清除所有)
content call --uri content://io.github.a13e300.tools.stethox.suspend --method clear [--arg ${processName}]
# 列出配置
content call --uri content://io.github.a13e300.tools.stethox.suspend --method list
日常使用请勿启用该模块,这样有安全风险,请只在开发时启用。
io.github.a13e300.tools.stethox
Release Type: Stable
9/1/2023, 7:34:53 AM
runOnUiThread
runOnHandler
函数hook.getClassLoaders
,可以遍历所有 ClassLoader