Originally Posted by ephestione
too bad on my Galaxy S2 it does nothing
This should come as a surprise to no one who's looked at the code> https___github.com_t0mm13b/UsbChargeCommander/UsbChargeCommander.java (replace underscores with colon-slash-slash and slash). It simply performs
write /sys/module/msm_battery/parameters/usb_chg_enable 0/1
as root. msm_battery is a chipset-specific driver, and since GS2 uses a different chipset, this app cannot work on it. If however, you or someone savvy with a GS2 can search the sysfs interface and find a parameter which controls USB charging, getting the app to work on GS2 should be a breeze for tommie (or anyone with ADK, since tommie made the code available
Of course, there's no guarantee such a parameter exists, in which case there's not much you can do.