fei-ke / unlock-cn-gms

Magisk 模块,去除国行 GMS 某些限制
559 stars 27 forks source link

一加 ColorOS 12 permission 文件位置似乎不在默认的几个地方 #4

Open ilazycat opened 2 years ago

ilazycat commented 2 years ago

我的是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 这两个位置的文件包含了

<?xml version="1.0" encoding="utf-8"?>
<permissions>
    <feature name="cn.google.services" />
    <feature name="com.google.android.feature.services_updater" />
</permissions>

上述内容,(这两个目录实际上都是挂载的同一个 erofs 分区),不知道 magisk 能不能对这两个分区的文件进行覆盖。

fei-ke commented 2 years ago

非标准目录下的不知道magisk能不能挂载,等我找台一加手机试试

ilazycat commented 2 years ago

非标准目录不能挂载,不过我用 bind mount 搞定了,晚点发个 pr

ilazycat commented 1 year ago

我试了一下不能直接替换,不过我后来在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: @.***>

Marukon commented 1 year ago

我试了一下不能直接替换,不过我后来在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

ilazycat commented 1 year ago

@Marukon 后来给忘了这事了。。。最近有点忙没时间搞,你可以先手动改一下。装上模块,然后编辑 /data/adb/modules/com.fei_ke.unlockcngms/post-fs-data.shMODDIR=${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 然后重启应该就可以了

Marukon commented 1 year ago

感谢大佬回复。按照大佬的教程操作了一下,确实好用。终于不用太担心play商店下载应用卡住的问题了

CuminLo commented 1 year ago

@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 最前面然后重启,结果目标文件没有被替换,不知道问题出在哪。

ilazycat commented 1 year ago

好像拖了太久了。。。 https://github.com/fei-ke/unlock-cn-gms/pull/8