Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
dpakrr
Old
(Last edited by dpakrr; 13th December 2011 at 11:59 AM.)
#1  
Senior Member - OP
Thanks Meter 57
Posts: 135
Join Date: Oct 2010
Location: Wellington
Default [HOW-TO] Enable USB Charging

This guide is to enable USB charging on your Samsung Galaxy Tab.

Requirements:
- Any rooted ROM with Pershoot's kernel

- ScriptManager (free market app)

- USB Charging Script

Procedures
- Ensure you have a rooted rom/custom rom with pershoot's kernel like task650 and PhantomHacker's In Paris rom. Download and install ScriptManager from Android Market. Download the script using the link above and store it anywhere on your tab.
- Open script manager
- Navigate to wherever you stored the script and choose it. Tick run as root and run on boot. Press run.
- If it asks for superuser/root access, please allow it.
- you're done. Press home to exit. Reboot.

Note
Please read and follow all instructions and I am not responsible if anything goes wrong. this should not damage your battery. the reason why samsung disabled usb charging is not because they were worried it would damage the battery. it is because the tab charges very slowly over usb, so they didnt want people to leave a zero battery tablet charging overnight on their pc usb to wake up and find that its only charged 50%.

The common USB connections provide 5 volts DC and between 500mAh to 1,000mAh at most whereas the main power supply provides 12 volts DC and between 1200mAh to 2400mAh. Our Samsung Galaxy Tab needs about 2,000mAh for normal charging. This mod just lets you charge using that low voltage and current from the usb anyways. It is useful for someone like me who never lets the battery drain to zero and I am almost always next to a laptop so when I am watching tv or doing something else, it is always charging.

thanks to pershoot for his kernel, developers on this forum for their excellent roms.

thanks to Giblet-dono for his help and pointers in this thread
The Following 31 Users Say Thank You to dpakrr For This Useful Post: [ Click to Expand ]
 
xkwwwx
Old
#2  
Member
Thanks Meter 2
Posts: 85
Join Date: Mar 2010
Quote:
Originally Posted by dpakrr View Post
This guide is to enable USB charging on your Samsung Galaxy Tab. Please read and follow all instructions and I am not responsible if anything goes wrong.

Requirements:
- Any ROM with Pershoot's kernel

- Samsung Mobile drivers (most of you should already have them)

- Latest Android SDK (download the zip file)

- ADB files

Procedure:
- Dont plug in your Galaxy Tab via USB yet. Make a nandroid backup just incase something goes wrong. (Boot into clockworkmod recovery -> backup and restore -> backup)

- Install the Samsung Mobile drivers

- Extract the contents of the sdk zip file onto your desktop. you should get a folder called android-sdk-windows.

- Open this folder and copy all its contents. Go to your C: drive and create a folder called androidsdk and paste the files into this folder.

- Extract the contents of the ADB files zip file you downloaded to C:\androidsdk\tools

- On your tablet, go to Settings->Applications->Development and enable USB debugging. Plug in your Galaxy Tab now.

- On your Windows computer, click on Start and type in cmd in the search bar and press enter.

- type the following and press enter after each line
cd\
cd androidsdk\tools
adb devices

- you should see a combinations of letters and numbers followed by the word device. this means that the adb can interact with your tablet.

- type in the following to enable usb charging (ensure that command prompt is still in the C:\androidsdk\tools folder). again press enter after each line.
adb shell
echo 1 > /sys/class/power_supply/battery/force_usb_charging
exit

you should now be able to charge your tablet via usb.

thanks to pershoot for his kernel, developers on this forum for their excellent roms, and a whole bunch of online guides i looked up on how to access adb lol
Will this work on my viewsonic gtablet as well?
 
dpakrr
Old
#3  
Senior Member - OP
Thanks Meter 57
Posts: 135
Join Date: Oct 2010
Location: Wellington
hi sorry. like i said in the "requirements", for this to work you need a kernel made by a developer called pershoot. i dont know if hes made any for the viewsonic tablets. please visit his website and see if he has kernels for viewonic tablets and if he has included the option to enable usb charging on them
 
SamerBerjawi
Old
#4  
Senior Member
Thanks Meter 91
Posts: 492
Join Date: Apr 2011
Location: Beirut
thats amazing, will try it as soon as possible


Galaxy S | Droid X² | Galaxy S II | Rezound | Galaxy Tab 10.1
 
dpakrr
Old
(Last edited by dpakrr; 29th October 2011 at 10:04 AM.)
#5  
Senior Member - OP
Thanks Meter 57
Posts: 135
Join Date: Oct 2010
Location: Wellington
Quote:
Originally Posted by SamerBerjawi View Post
thats amazing, will try it as soon as possible
thanks. let me know how you go.
 
halmo20
Old
#6  
Member
Thanks Meter 10
Posts: 44
Join Date: Feb 2010
I do this on tab with terminal emulator every time I reboot. No need to plug in and ADB.

Just su before echo...

Sent from my SPH-D710 using Tapatalk
The Following User Says Thank You to halmo20 For This Useful Post: [ Click to Expand ]
 
dpakrr
Old
#7  
Senior Member - OP
Thanks Meter 57
Posts: 135
Join Date: Oct 2010
Location: Wellington
Quote:
Originally Posted by halmo20 View Post
I do this on tab with terminal emulator every time I reboot. No need to plug in and ADB.

Just su before echo...

Sent from my SPH-D710 using Tapatalk
Hi thanks. If there's an easier way of ddoing this can you please tell us the steps. I did what you suggested but it says permission denied. Thanks
 
Giblet-dono
Old
#8  
Senior Member
Thanks Meter 138
Posts: 478
Join Date: Mar 2009
Location: Doetinchem
I have put the line in a init.d script which automatically runs on boot!
You can also use script manager (free) to make a script which does this on boot !

Goodluck!
HTC One X
ViperX V3.6.1 | XMister #304 | TWRP 2.5.0.0

My Other Devices
HTC Jetstream | HTC Sensation | HTC HD2 | Sony Xperia S| Samsung Galaxy Tab 10.1 | Nokia Lumia 800


Soon
HTC One

 
The Following 2 Users Say Thank You to Giblet-dono For This Useful Post: [ Click to Expand ]
 
dpakrr
Old
(Last edited by dpakrr; 29th October 2011 at 09:52 AM.)
#9  
Senior Member - OP
Thanks Meter 57
Posts: 135
Join Date: Oct 2010
Location: Wellington
Quote:
Originally Posted by Giblet-dono View Post
I have put the line in a init.d script which automatically runs on boot!
You can also use script manager (free) to make a script which does is on boot !

Goodluck!
Hi thanks. So did you jjust created a script with the following line -
echo 1 > /sys/class/power_supply/battery/force_usb_charging

OK figured it out thx
 
uomoto
Old
#10  
Junior Member
Thanks Meter 0
Posts: 26
Join Date: Apr 2011
Location: Bourgas
Work work work, thank you bro . :P
SAMSUNG GALAXY S 2


SAMSUNG GALAXY TAB 10.1 P7500

 
Post Reply+
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...