Hi, I’m new to building Android from source, so far I’ve managed to build and install following the guide posted above.
Running “su” from adb shell works, but I also need root for my app to run some commands like changing the resolution and stuff.
I managed to achieve the above by using SuperSU by following this guide.
What i want to ask is, how do i include the above steps into the system.img rather than doing it manually? I’ve tried unpacking system.img, adding the files in and repacking using “make_ext4” but when I flash the new system.img and run “su” from shell nothing happens (no su access/#) and there’s no more root from shell.
Is there some kind of different make steps I’m missing when repacking the system.img? or is there a way i can include these files from the source code and have it built using the normal “make” method?