Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Imposible to upgrade from Magisk 26.1 to Magisk 26.3 #19

Closed
ferlanero opened this issue Sep 5, 2023 · 6 comments
Closed

Imposible to upgrade from Magisk 26.1 to Magisk 26.3 #19

ferlanero opened this issue Sep 5, 2023 · 6 comments

Comments

@ferlanero
Copy link

Making an automatic upgrade from Magisk 26.1 to Magisk 26.3 leads to a phone brick.

Is there any way to upgrade Magisk without loosing phone data?

@TomKing062
Copy link
Owner

sign process is same

after automatic upgrade, don't reboot
dd if=/dev/block/by-name/boot of=/sdcard/boot.img
sign
dd if=/sdcard/boot_signed.img of=/dev/block/by-name/boot
now reboot will be safe

@ferlanero
Copy link
Author

sign process is same

after automatic upgrade, don't reboot dd if=/dev/block/by-name/boot of=/sdcard/boot.img sign dd if=/sdcard/boot_signed.img of=/dev/block/by-name/boot now reboot will be safe

Commands must be entered in a console like Termux?

@TomKing062
Copy link
Owner

yes, termux, adb shell …

@ferlanero
Copy link
Author

ferlanero commented Sep 8, 2023

sign process is same

after automatic upgrade, don't reboot dd if=/dev/block/by-name/boot of=/sdcard/boot.img sign dd if=/sdcard/boot_signed.img of=/dev/block/by-name/boot now reboot will be safe

Ok, I understand. But which is the process to sign boot.img? Maybe following your guide (https://github.com/TomKing062/CVE-2022-38694_unlock_bootloader/wiki/Magisk) after step 3?

I mean, with this command would be enough?

python2 avbtool add_hash_footer --image AIK/boot.img --partition_name boot --partition_size 36700160 --key rsa4096_vbmeta.pem --algorithm SHA256_RSA4096 --salt 5F55215FD2302D021F850B55912ED48D176784678692DC012E054B1ECD0BE025

At this point I don't know if I need to follow Step 2 or directly apply in Step 3

@TomKing062
Copy link
Owner

magisk patched boot is still 35M, so avbtool will give size error
goal of unpack and repack is to decrease image size

@ferlanero
Copy link
Author

magisk patched boot is still 35M, so avbtool will give size error goal of unpack and repack is to decrease image size

Thanks. I´m trying to unpack & repack with AIK boot.img which I get from dd if=/dev/block/by-name/boot of=/sdcard/boot.img but when I do unpackimg.bat boot.img AIK gives me this error:

Android Image Kitchen - UnpackImg Script
by osm0sis @ xda-developers

Supplied image: boot.img

Setting up work folders . . .

Unrecognized format.
Error!

I can´t continue with the process. Do you have any advice, please?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants