[已解决] 如何替换定义在dimen.xml里面的浮点型数据 #1522
Answered
by
PeanutMelonSeedBigAlmond
PeanutMelonSeedBigAlmond
asked this question in
Q&A
Replies: 2 comments 8 replies
-
系统资源不是所有 app 共享一个的,所以是你作用域没设置对。 |
Beta Was this translation helpful? Give feedback.
7 replies
-
#1524 没有问题
…------------------ 原始邮件 ------------------
发件人: ***@***.***>;
发送时间: 2022年1月10日(星期一) 凌晨4:20
收件人: ***@***.***>;
抄送: ***@***.***>; ***@***.***>;
主题: Re: [LSPosed/LSPosed] 如何替换定义在dimen.xml里面的浮点型数据 (Discussion #1522)
试试 #1524
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
PeanutMelonSeedBigAlmond
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
运行环境
我想替换掉系统资源中的定义(定义在
/system/framework/framework-res.apk
里面),这个数据在源代码里面是这样定义的我自己构造了一个dimen定义在模块的dimen.xml里面
这是替换的逻辑
模块作用域我已经勾选了
系统框架
,重启之后日志没有报错,也正常打出了[ 2022-01-09T23:33:02.475 1000: 1646: 1646 I/LSPosed-Bridge ] [INFO]: 替换系统资源成功:config_wallpaperMaxScale
但是我在我的另外一个测试app上使用
获取到的结果还是
1.1
请问如何解决?我参考其他人的代码都是使用
XResources.DimensionReplacement()
作为第三个参数传进去,但是这种方法似乎只适用于替换尺寸我尝试过
但是结果都和上面一样
Beta Was this translation helpful? Give feedback.
All reactions