I’m trying to figure out how to root the Android images permanently with magisk. Last time I tried it I can’t actually patch anything because the recovery isnt right. I actually ended up losing the roots somehow
Why do you need magist or anything such this? You have direct access to sdcard so you can su binary directly (and maybe superuser app) and give this the suid rights
I need magisk because it’s one of the only reliable ways to use root properly. It also has built in super user and I’m not using the SD card I’m using the emmc like the guide told me to magisk has plugins that make rooting easy, magisk is the only option since you can’t use custom recovery’s. I know I have access to the system but I want it to be rooted so I have more freedom over my own device. I would also like to only have certain apps have superuser
I know what rooting is and you can do it manually if magist does not know the device/image.
You can root first the sdcard and then after booting this you can also root emmc manually…basic root is only su binary with suid rights and extended needs an app where other apps requesting root on the gui.
you can look into the apk from magisk to look what it does…it should be a zip file. I did an upgrade package for german ebook reader “tolino shine” some time a go and there was an upgrade script which copies some files and changes the rights
It’s magisk* but also why can’t someine release an image with the android pre fully rooted
Magisk works for a little while but needs to patch boot every time I restart. It’s all because I can’t get a custom recovery
@frank-w would you mind elaborating on this a little bit more? I’m about to get a Banana PI M5 with Android installed on it and I’d need to run a binary in a shell. How would I need to approach this? I was thinking of adb
but I’d also like to read more on what you are saying.
Thanks!
When you have physical access to memory (sdcard) you could add the su binary for the specific arch and set suid for it
Magisk depends on specific devices and used for phones where you cannot easily do this
@frank-w Understood, where can I find the su binary for a Banana PI M5 with the Android image? How would I go about actually opening up a shell on the device?
I’m asking these questions in advance while I’m waiting to get my hands on one, so sorry if I am being vague.
Thanks!
My way is theoretical,cannot try it by myself.
You can use latest here
https://chainfire.eu/articles/883/SuperSU_updated_to_v2.13
Normally it is installed using a bootloader like twrp with the update script. So basicly you have ti do the steps it does. The superuser apk is maybe depend of your running android api version,but here i cannot help much