chenxiaolong / Custota

Android A/B OTA updater app for custom OTA servers
GNU General Public License v3.0
56 stars 12 forks source link

Custota feature to run scripts #75

Open Covkie opened 1 month ago

Covkie commented 1 month ago

I use an on device bash script that I run manually from termux to handle updating & patching Android and Magisk then queue an install from Custota

Using Custota's updating scheduling to run this script automatically would make updating rooted android practically seemless.

Having some way for the script to send Custota notifications/logs would be useful as well.

Also having Custota delete the patched OTA after installation to save storage would be beneficial too.

chenxiaolong commented 1 month ago

Thanks for the suggestions.

I intend to keep Custota as simple (implementation-wise) as possible, so it's unlikely I'll add functionality like this. I consider Custota to be feature complete and don't plan on making changes beyond what's necessary to support new Android versions.

That said, I might consider doing the reverse: allowing an external app (eg. script in Termux) to trigger Custota and watch its status. I'll need to think about it and see if it's simple enough to implement, both on the Custota side and the user side. Triggering Custota's update check should be easy enough, but I don't know about monitoring the installation status.

Covkie commented 1 month ago

Ah alright, I wanted this so I didnt have to use another root app thats constantly in the background and could hook into Custota already running scheduling. I'll find an alternative.

Edit: maybe a lighter solution could be https://github.com/termux/termux-app/wiki/RUN_COMMAND-Intent integration