topjohnwu / Magisk

The Magic Mask for Android
GNU General Public License v3.0
47.59k stars 12.08k forks source link

flash v9 got bootloop (v8 work fine) #13

Closed twu2 closed 7 years ago

twu2 commented 7 years ago

If upgrade from Magisk Manager, it will boot without issue. But need to re-install phh's superuser again (some program can't detect root, but some can).

If flash v9 zip in recovery (with or without uninstall first), the patched boot.img can't boot, will get bootloop. Also can't boot into recovery, need to flash the normal boot.img to bring the system back.

Device is Xiaomi Redmi Note2.

twu2 commented 7 years ago

I found the reason why it's not work for me. My device is arm64, but the TWRP is only include 32-bit's libc.so. '/tmp/magisk/arm64/bootimgtools' execute failed. So the boot partition will be filled by 0 after flash the patched boot.img.

recovery.log attachment: x.txt

the bootimagtools, magiskhide, sepolicy-inject and resetprop is built dynamic, but they are static built in v8. So v8 work fine, but v9 failed.

topjohnwu commented 7 years ago

Yes, I changed to dynamic linking. Will force link to /system/lib64 in the next release, thanks for reporting!