Commit 2e4aa507 authored by topjohnwu's avatar topjohnwu

Use magisk to clone file attributes

parent 5fb96cdc
...@@ -128,9 +128,9 @@ EOF ...@@ -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 /
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment