Open ilazycat opened 2 years ago
非标准目录下的不知道magisk能不能挂载,等我找台一加手机试试
非标准目录不能挂载,不过我用 bind mount 搞定了,晚点发个 pr
我试了一下不能直接替换,不过我后来在post-fs里面用直接用 bind mount 覆盖了这个文件了,可以用。弄完就出门了没来得及回复,你要是不好找手机的话等我周二回去了直接提个pr
fei-ke @.***> 于 2022年8月5日周五 23:59写道:
非标准目录下的不知道magisk能不能下载,等我找台一加手机试试
— Reply to this email directly, view it on GitHub https://github.com/fei-ke/unlock-cn-gms/issues/4#issuecomment-1206610875, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJZUN4LVNWFP3GG4TSZ3NLVXU25VANCNFSM55RNQAPQ . You are receiving this because you authored the thread.Message ID: @.***>
我试了一下不能直接替换,不过我后来在post-fs里面用直接用 bind mount 覆盖了这个文件了,可以用。弄完就出门了没来得及回复,你要是不好找手机的话等我周二回去了直接提个pr fei-ke @.> 于 2022年8月5日周五 23:59写道: … 非标准目录下的不知道magisk能不能下载,等我找台一加手机试试 — Reply to this email directly, view it on GitHub <#4 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJZUN4LVNWFP3GG4TSZ3NLVXU25VANCNFSM55RNQAPQ . You are receiving this because you authored the thread.Message ID: @.>
求pr
@Marukon 后来给忘了这事了。。。最近有点忙没时间搞,你可以先手动改一下。装上模块,然后编辑
/data/adb/modules/com.fei_ke.unlockcngms/post-fs-data.sh
在 MODDIR=${0%/*}
这一行下面加上这一行
mount -o ro,bind $MODDIR/oplus_google_cn_gms_features.xml /my_bigball/etc/permissions/oplus_google_cn_gms_features.xml
然后创建一个空文件 /data/adb/modules/com.fei_ke.unlockcngms/oplus_google_cn_gms_features.xml
然后重启应该就可以了
感谢大佬回复。按照大佬的教程操作了一下,确实好用。终于不用太担心play商店下载应用卡住的问题了
@ilazycat 大佬,我使用3.2版本用你说的方式成功了。
但是我更新到3.3的版本后,我发现没有 post-fs-data.sh
,只有一个 customize.sh
,于是我先是尝试写死路径 mount -o ro,bind /data/adb/modules/com.fei_ke.unlockcngms/oplus_google_cn_gms_features.xml /my_bigball/etc/permissions/oplus_google_cn_gms_features.xml
我先用 abd
命令执行了一遍,发现是成功的。于是我将这个命令就放在了 customize.sh
最前面然后重启,结果目标文件没有被替换,不知道问题出在哪。
我的是Oneplus 9 Pro ColorOS12, 可能权限控制不用这个文件。 一加的ColorOS,支持GMS,但是无法开启谷歌位置记录和打开语音唤醒Ok Google,不支持有无解决办法。
Originally posted by @leeaash in https://github.com/fei-ke/unlock-cn-gms/issues/3#issuecomment-1014419218
我发现在一加的 ColorOS 12 中,
/my_bigball/etc/permissions/oplus_google_cn_gms_features.xml
和/mnt/vendor/my_bigball/etc/permissions/oplus_google_cn_gms_features.xml
这两个位置的文件包含了上述内容,(这两个目录实际上都是挂载的同一个 erofs 分区),不知道 magisk 能不能对这两个分区的文件进行覆盖。