From 2e4aa507f7d934abfbe60ea3487cd6a1c08d01b7 Mon Sep 17 00:00:00 2001 From: topjohnwu Date: Tue, 27 Nov 2018 03:26:05 -0500 Subject: [PATCH] Use magisk to clone file attributes --- app/src/full/res/raw/utils.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/full/res/raw/utils.sh b/app/src/full/res/raw/utils.sh index 111ef57d0..d5432a21b 100644 --- a/app/src/full/res/raw/utils.sh +++ b/app/src/full/res/raw/utils.sh @@ -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 /