Feature description
given the burden of maintaining interactive install on many devices with issues such as #155 popping up routinely, maybe you could consider an alternative strategy: sorting out this can of worms once and for all.
(btw, i also suffered these issues in my zip creation days, and decided to go for a rename-zip-to-configure approach, which i think was a first; and was quickly obsoleted by the new adb sideload thingy :(... )
LineageOS recovery already has a modal way to pop up a menu with options during zip install/sideload (it is used when the signature of a package is not kosher). so it would be easy to add other modal menu prompts. my suggestion is that you could add an API to LOS recovery to present a modal menu. the API should log the question and chosen answer (or back/cancel). there should be a way to cleanly detect if the API is supported.
you would also do a "client library" that one can include in a zip to call that new feature; or else if it is not present, do a text/button poor man's fallback implementation based on your current menu system.
the fallback would look something like:
<QUESTION>
--> Back/Cancel
Opt 1
Opt 2
Use VOL+/- and POWER to select.
each time you press VOL there would be a new reprint of the menu with the updated pointer.
next would be to have Lineage merge it... which can take a while. After that, TWRP would probably be easier.
one thing to investigate is whether TWRP already has something like this, and then replicate that API on LOS recovery if possible. (or maybe study why such porting was turned down when proposed to LOS, lol).
Feature description
given the burden of maintaining interactive install on many devices with issues such as #155 popping up routinely, maybe you could consider an alternative strategy: sorting out this can of worms once and for all.
(btw, i also suffered these issues in my zip creation days, and decided to go for a rename-zip-to-configure approach, which i think was a first; and was quickly obsoleted by the new
adb sideloadthingy :(... )LineageOS recovery already has a modal way to pop up a menu with options during zip install/sideload (it is used when the signature of a package is not kosher). so it would be easy to add other modal menu prompts. my suggestion is that you could add an API to LOS recovery to present a modal menu. the API should log the question and chosen answer (or back/cancel). there should be a way to cleanly detect if the API is supported.
you would also do a "client library" that one can include in a zip to call that new feature; or else if it is not present, do a text/button poor man's fallback implementation based on your current menu system.
the fallback would look something like:
each time you press VOL there would be a new reprint of the menu with the updated pointer.
next would be to have Lineage merge it... which can take a while. After that, TWRP would probably be easier.
one thing to investigate is whether TWRP already has something like this, and then replicate that API on LOS recovery if possible. (or maybe study why such porting was turned down when proposed to LOS, lol).