Commit cd8dd65a authored by topjohnwu's avatar topjohnwu

chcon on Android 5.0 doesn't support -h options

parent 50c56f8b
...@@ -168,7 +168,7 @@ abort() { ...@@ -168,7 +168,7 @@ abort() {
set_perm() { set_perm() {
chown $2:$3 $1 || exit 1 chown $2:$3 $1 || exit 1
chmod $4 $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() { set_perm_recursive() {
......
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