Trying to replace a system app on e/OS (an Android fork which allows full root a...

@WPalant@infosec.exchange

Trying to replace a system app on e/OS (an Android fork which allows full root access among other things) by a moderately patched version. Unfortunately, the obvious solutions don’t work and I’m not very familiar with Android’s inner workings. E.g. uninstalling the original app works but doesn’t allow installing my patched version – there is still an error because my version is signed with the wrong key, the system seems to hold on to the original signing key. Changing app ID won’t work because there are several other apps expecting it to have a particular ID. I can remount the system partition in r/w mode and replace the application’s APK but this just causes the system to hang during boot.

Strangely, I cannot find any documentation on where Android stores signatures of system apps or generally how signature validation works in detail. Whatever data there is, manipulating it with root access should be comparably easy. Instead, all I find are recommendations to install some massive frameworks that, once you’ve replaced the bootloader, will semi-automatically patch out app signature checks. Before I do that I could install a custom e/OS build which should be less hassle.

Pointers would be appreciated.

#Android #e_OS