mirror of
https://github.com/kvorschk/Magisk.git
synced 2026-12-04 19:10:47 -05:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user