AlterInstaller and using avbroot to switch between rooted and unrooted OTAs #351
-
Hi, I have been going through a couple of your repos in the last few days, after I'd initially found AlterInstaller. Your avbroot and my-avbroot-setup repos have really intrigued me; I have been running custom roms since forever and have been switching back and forward between CalyxOS and GrapheneOS for the last year, because I want a privacy and security centric ROM (without Google crap), It wasn't until I found your repos that I realized that rooting would potentially also be possible, while remaining secure. Now, because it's been a very long time since I have run a rooted ROM, I am not all that up-to-date anymore, so forgive me for the potentially stupid question: I read another discussion where it was mentioned that it is possible to switch between rooted and unrooted OTAs: #313. That sounds great! Would it be possible to install an app like OsmAnd through F-droid, then flash a rooted OTA to use AlterInstaller to patch/spoof the installer fields for it, and after that go back to a --rootless version of the OTA? Or would I be patching something in system and would then run into the problem mentioned in #339 ? Thanks in advance for taking the time (if so) and big kudos for all your open-source work! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Glad you like my projects!
The file modified by AlterInstaller is |
Beta Was this translation helpful? Give feedback.
-
I might be a selfish / biased here, but hey, you can try out my new tool called as You just have to do the initial set up (of setting up the signing keys) and add your device name in the I never got the time to actually update the documentation lately, but yeah, it works now. With PixeneOS, you just have to change the OTA URL to point to rooted OTA, and you should be getting an update in Custota (theoritically w.r.t to what I've done). But yeah, you'll have to build rooted OTA manually which takes about 7 - 8 mins. |
Beta Was this translation helpful? Give feedback.
Glad you like my projects!
The file modified by AlterInstaller is
/data/system/packages.xml
, which is just a regular data file that stores all of Android's metadata about all the installed apps. You can do exactly what you suggested and it should work fine.