From cd8dd65a652ad2cf6390f731653e0e7c253f6950 Mon Sep 17 00:00:00 2001 From: topjohnwu Date: Tue, 5 Sep 2017 21:44:53 +0800 Subject: [PATCH] chcon on Android 5.0 doesn't support -h options --- scripts/util_functions.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/util_functions.sh b/scripts/util_functions.sh index d54c31b70..a11ffd31d 100644 --- a/scripts/util_functions.sh +++ b/scripts/util_functions.sh @@ -168,7 +168,7 @@ abort() { set_perm() { chown $2:$3 $1 || exit 1 chmod $4 $1 || exit 1 - [ -z $5 ] && chcon -h 'u:object_r:system_file:s0' $1 || chcon -h $5 $1 + [ -z $5 ] && chcon 'u:object_r:system_file:s0' $1 || chcon $5 $1 } set_perm_recursive() {