my battery is fully charged now , I will wait a while till it discharges a bit then try the script while running host mode and verify current with a multimeter . hopefully host mode would be sustained and phone charges at currents > 100mA . I have doubts that using that script would interfere with host mode session .