Comments (10)
ok, 也可以考虑一下不在hook 资源的情况下,也可以快捷的 根据资源名称获取 app 资源的值😀
这属于额外扩展了,可以加上
好的 辛苦了👍
from yukihookapi.
injectResource {
conditions {
name = "example_name"
string()
}
// 加上 ab
replaceTo { "${it}ab" }
}
根据你的需求,这个方法增加的扩展为在回调中可以拿到 it
并在最后一位返回需要修改的内容。
from yukihookapi.
你可以在宿主的资源或上下文扩展方法中调用 injectModuleAppResources
把模块的资源注入宿主,然后用宿主的资源直接获取。
这个方法不是必须的扩展,不会被添加。
参考文档→这里
from yukihookapi.
你可以在宿主的资源或上下文扩展方法中调用
injectModuleAppResources
把模块的资源注入宿主,然后用宿主的资源直接获取。 这个方法不是必须的扩展,不会被添加。 参考文档→这里
我不是想获取模块的资源,而是获取被hook的宿主的res资源噢
from yukihookapi.
就比方说,我有个这样的需求:
hook app 的 res,将 string 为 example_name 的值加上ab
目前的代码是这样的:
injectResource {
conditions {
name = "example_name"
string()
}
// 获取原有的值
val id = appResources!!.getIdentifier(
"example_name",
"string",
packageName
)
// 加上 ab
replaceTo(appResources!!.getString(id) + "ab")
}
from yukihookapi.
这样啊,后面可以加一个扩展
from yukihookapi.
ok, 也可以考虑一下不在hook 资源的情况下,也可以快捷的 根据资源名称获取 app 资源的值😀
from yukihookapi.
ok, 也可以考虑一下不在hook 资源的情况下,也可以快捷的 根据资源名称获取 app 资源的值😀
这属于额外扩展了,可以加上
from yukihookapi.
nice
from yukihookapi.
1.2.0
版本已发布,该功能已添加。
from yukihookapi.
Related Issues (20)
- The new LSP Api HOT 7
- 不支持基于SandHook的Xpatch HOT 1
- New Hook Code Style HOT 1
- Hook美团众包没效果 HOT 7
- [BUG] 无法保存键值 HOT 2
- [无法复现] before 和 after 替换 result 无效的问题 HOT 4
- [important-less-bug] Sending non-protected broadcast HOT 7
- Debug环境下的log是否考虑优化一下,并且可以提供一个Hook环境判断吗? HOT 4
- YukiHookPrefsBridge missing Context instance HOT 3
- [BUG] YukiHookDataChannel. Supporting Android 14 HOT 3
- 是否会支持增加Modern Xposed API HOT 1
- hello
- [BUG] HookParam call timing problem HOT 20
- New Hook Entry Class
- New Xposed Module Config Plan
- Need help, prefs doesn`t work HOT 10
- YukiHookPrefsBridge read value not working in the release mode HOT 4
- [BUG] 仅在Android 9 版本 registerModuleAppActivities 错误 HOT 9
- https://jihulab.com/xihan123/QDReadHook.git HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from yukihookapi.