Use magisk to clone file attributes

This commit is contained in:
topjohnwu 2018-11-27 03:26:05 -05:00
parent 5fb96cdcf4
commit 2e4aa507f7

View File

@ -128,9 +128,9 @@ EOF
# Migrate old hosts file to new module
mv -f .core/hosts hosts/system/etc/hosts
else
cp -af /system/etc/hosts hosts/system/etc/hosts
cp -f /system/etc/hosts hosts/system/etc/hosts
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/auto_mount
cd /