app: inject prebuilt bootctl into jniLibs

Download updated multi-arch prebuilt bootctl binaries built from
Android 14 (android-14.0.0_r1) and package them into jniLibs alongside
busybox instead of bundling a single binary in assets.

The new bootctl binaries support AIDL Boot HAL implementations on
Android 14+ (API 31+), fixing OTA slot switching issues on newer
devices like Pixels.

Update post-OTA install logic in the app and shell scripts to use the
native bootctl executable from MAGISKBIN.

Fixes #8824
This commit is contained in:
topjohnwu
2026-08-27 03:29:31 +00:00
committed by John Wu
parent 2fc7a6d284
commit 5480fc41c3
6 changed files with 58 additions and 27 deletions
+2 -3
View File
@@ -96,11 +96,10 @@ restore_imgs() {
flash_image $BACKUPDIR/boot.img.gz $1
}
# $1 = path to bootctl executable
post_ota() {
cd /data/adb
cp -f $1 bootctl
rm -f $1
cp -f $MAGISKBIN/bootctl bootctl
rm -f $MAGISKBIN/bootctl
chmod 755 bootctl
if ! ./bootctl hal-info; then
rm -f bootctl