THERE IS MUCH SIMPLER SOLUTION, I am not sure if this has been mentioned already but I just came out of this trap right now and hopefully can help others.!
All of this is completely unnecessary just to charge the battery.
The battery has a po...
XDA Developers was founded by developers, for developers. It is now a valuable resource for people who want to make the most of their mobile devices, from customizing the look and feel to adding new functionality. Are you a developer? | Terms of Service