#1: You remove the connector and charging controller from the battery. (Also the thermal sensor).
Then you can use any 4 volt power source.
#2 and #3: You install Termux.