Skip to content

Commit

Permalink
feat: 调整A11模块的云控规则
Browse files Browse the repository at this point in the history
  • Loading branch information
sothx committed Mar 19, 2024
1 parent c7327b9 commit 7ac3612
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions install_module_template/magicWindow/post-fs-data.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,9 @@
# 请不要硬编码 /magisk/modname/... ; 请使用 $MODDIR/...
# 这将使你的脚本更加兼容,即使Magisk在未来改变了它的挂载点
MODDIR=${0%/*}
# 对云控文件解除写保护
chattr -i /data/system/users/0/magic_window_setting_config.xml
chattr -i /data/system/magicWindowFeature_magic_window_application_list.xml
# For Android 11
cp -f $MODDIR/common/system/users/0/magic_window_setting_config.xml /data/system/users/0/magic_window_setting_config.xml
cp -f $MODDIR/common/system/magicWindowFeature_magic_window_application_list.xml /data/system/magicWindowFeature_magic_window_application_list.xml
cp -l $MODDIR/common/system/users/0/magic_window_setting_config.xml /data/system/users/0/magic_window_setting_config.xml
cp -l $MODDIR/common/system/magicWindowFeature_magic_window_application_list.xml /data/system/magicWindowFeature_magic_window_application_list.xml
## 对云控文件写保护
chattr +i /data/system/users/0/magic_window_setting_config.xml
chattr +i /data/system/magicWindowFeature_magic_window_application_list.xml
Expand Down

0 comments on commit 7ac3612

Please sign in to comment.