chcon on Android 5.0 doesn't support -h options

This commit is contained in:
topjohnwu 2017-09-05 21:44:53 +08:00
parent 50c56f8b50
commit cd8dd65a65

View File

@ -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() {