Use magisk to clone file attributes
This commit is contained in:
parent
5fb96cdcf4
commit
2e4aa507f7
@ -128,9 +128,9 @@ EOF
|
|||||||
# Migrate old hosts file to new module
|
# Migrate old hosts file to new module
|
||||||
mv -f .core/hosts hosts/system/etc/hosts
|
mv -f .core/hosts hosts/system/etc/hosts
|
||||||
else
|
else
|
||||||
cp -af /system/etc/hosts hosts/system/etc/hosts
|
cp -f /system/etc/hosts hosts/system/etc/hosts
|
||||||
fi
|
fi
|
||||||
chcon u:object_r:system_file:s0 hosts/system/etc/hosts
|
magisk --clone-attr /system/etc/hosts hosts/system/etc/hosts
|
||||||
touch hosts/update
|
touch hosts/update
|
||||||
touch hosts/auto_mount
|
touch hosts/auto_mount
|
||||||
cd /
|
cd /
|
||||||
|
Loading…
Reference in New Issue
Block a user