Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: support coloros 12 for oneplus devices #8

Merged
merged 2 commits into from
Jul 28, 2023

Conversation

ilazycat
Copy link

Use bind mount to replace color os permission files since it is not in directory that magisk can directly replace. Unmount this file afterwards to avoid magisk being detected by momo somehow.

Change-Id: Ia3a06212a921818af50099dd76ab00932c9258ac
@sanzo-mlgb
Copy link

sanzo-mlgb commented Jul 28, 2023

实测中,如果卸载的话,无法生效,coloro 13
删掉第20行则正常生效

@ilazycat
Copy link
Author

ilazycat commented Jul 28, 2023

实测中,如果卸载的话,无法生效,coloro 13 删掉第20行则正常生效

@sanzo-mlgb 你不要看文件本身,卸载了之后文件肯定就被还原成原始内容了。你可以看看 gms 的 location history 之类的功能是否还是启用的,如果是启用的就没问题。这几个 permission 是启动的时候加载的,后面文件内容还原回去了也不影响。

@ilazycat
Copy link
Author

@sanzo-mlgb 我现在是 coloros 12,umount 之后文件被还原了,但功能还是在的。

@sanzo-mlgb
Copy link

sanzo-mlgb commented Jul 28, 2023

@sanzo-mlgb 我现在是 coloros 12,umount 之后文件被还原了,但功能还是在的。

在我的C13上就是umount 之后文件被还原了,功能也没了,看DNS记录还是走googleapis.cn了,商店依然无法更新。把service.sh删掉,再重启,好了

@ilazycat
Copy link
Author

@sanzo-mlgb 我现在是 coloros 12,umount 之后文件被还原了,但功能还是在的。

在我的C13上就是umount 之后文件被还原了,功能也没了,看DNS记录还是走googleapis.cn了,商店依然无法更新。把service.sh删掉,再重启,好了

@sanzo-mlgb 那可能是 gms 版本不一样导致的,我这里文件被还原了不影响已生效的功能。

去掉这个主要是有 bind mount 的时候有些应用可以检测到 magisk,很烦。那我先去掉 umount 的逻辑

Change-Id: Ibf1bca0fead6ba6da8fe72b21bbe736bee85a342
@fei-ke fei-ke merged commit 36494a1 into fei-ke:master Jul 28, 2023
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants