From 9ab60a49de635cecb9ddb11222463675313e2a93 Mon Sep 17 00:00:00 2001 From: Chris Renshaw Date: Tue, 1 Aug 2023 11:04:26 -0300 Subject: [PATCH] Backend: work around for chcon on broken recoveries --- META-INF/com/google/android/update-binary | 4 ++-- META-INF/com/google/android/updater-script | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/META-INF/com/google/android/update-binary b/META-INF/com/google/android/update-binary index da8253c..66cebc5 100755 --- a/META-INF/com/google/android/update-binary +++ b/META-INF/com/google/android/update-binary @@ -440,7 +440,7 @@ do_modules() { cp -f $AKHOME/vertmp $moddir/version; touch $moddir/update; umask $umask; - chcon -hR "u:object_r:system_file:s0" $moddir; + /system/bin/chcon -hR "u:object_r:system_file:s0" $moddir; [ "$umountksu" ] && umount /data/adb/modules_update; else ui_print "Magisk/KernelSU installation not found. Skipped!"; @@ -477,7 +477,7 @@ do_modules() { chown 0:0 $modtarget; chmod 644 $modtarget; if [ "$modcon" ]; then - chcon "u:object_r:${modcon}_file:s0" $modtarget; + /system/bin/chcon "u:object_r:${modcon}_file:s0" $modtarget; fi; if is_mounted $modtarget; then mount -o ro,remount -t auto $modtarget; diff --git a/META-INF/com/google/android/updater-script b/META-INF/com/google/android/updater-script index 351c0af..1ff15ed 100644 --- a/META-INF/com/google/android/updater-script +++ b/META-INF/com/google/android/updater-script @@ -3,4 +3,4 @@ # Dummy file; update-binary is a shell script (DO NOT CHANGE) # # -# AK_BASE_VERSION=20230716 +# AK_BASE_VERSION=20230801