How to Enable USB Charging on your Computer and All USB Charging Adapters on your Galaxy Tab 10.1!

Tired of not being able to charge your Galaxy Tab 10.1 only on its exclusive AC charger?

The Galaxy Tab 10.1 stock only allows you to charge via USB Wall charger which is rated at 2 amps, here’s how to hack it for any rooted Galaxy Tab 10.1 running Pershoot kernel so you can charge it via USB on your computer or even regular USB chargers.

Step 1. First, you will need a rooted Galaxy Tab 10.1 with Pershoot’s overclocking kernel or a custom ROM with Pershoot’s overclocking kernel.

Step 2. Install free Android Terminal Emulator app off the Market.

Type “su”.

Then type, “echo 1 > /sys/class/power_supply/battery/force_usb_charging”.

That’s it!  Plug in your USB cable to your computer or any USB charging device (even your car USB charger) and you can now re-charge.

If you like this post, please CLICK HERE to subscribe to my YouTube channel, THANKS A TON BUD, I OWE YOU ONE!

Want to stay updated on latest Galaxy Tab hacks and tips?
Sign up for our Galaxy Tab Hacks Newsletter here so you don't miss a single tip!
Categories: Galaxy Tab 10.1 Hacks.

Recent Android News from HighOnAndroid.com



81 Responses to How to Enable USB Charging on your Computer and All USB Charging Adapters on your Galaxy Tab 10.1!

  1. 1337GameDev says:

    Will this work with the inParis ROM? I cant remember which kernel it has but its overclocked to 1.4ghz.

  2. 1337GameDev says:

    What are tbe downsides? Since it isnt at 2 amps, even if the battery indicator says its full, will there be be less charge? (memory effecr or inefficient charging) Or will it just charge slower?

  3. Jose says:

    Just did it and works fine.

    Thank you!!!

  4. 1337GameDev says:

    As i figured, this command is active until you reboot. Create a nice apk to issue that command? im looking into using better terminal emulator client to create a shortcut to activate that command.

  5. 1337GameDev says:

    Hmm, any way to modify the attribute you change so it stays on reboot? This seems like a nice change for roms and such to add. Is there any change in data transfer speeds and success? I think the data may go through the positive and ground pins, but i’m not sure if the 30 pin connector has multiple.

  6. Zuber says:

    I have Paris ROM but when i type this command its giving me error message “No such file or directory” PLEASE HELP P7510

  7. 1337GameDev says:

    It exists. Make sure you are rooted. And have root access. Try typing su before the command. Watch spaces and underscores. It works fine so you must have mistyped.

  8. Zuber says:

    Thanks, i figured out, i was typing using SWYPE keyboard and it was capitalizing “I” in charging, Changed to Android KB and worked fine

  9. yoseph says:

    umm, sorry if off topic.. but i want to ask, what is the type of keyboard you use

  10. PakLan says:

    Work fine with me. Thanks.

  11. mircea1965 says:

    sorry. I make that, and work fine. I have another problem, though: I buy a female usb and the tab don’t recognize the content of my memory stick. The cable is good, it works with an mouse, for example. But not with my stick. It say, when plugged: “blank storage usb “. I have on the stick: .jpg file, .mp3 file, one empty folder, one word file.
    thanks for your advices, anyway.
    PS. I try both, with usb debug enable, and disable. No success.

  12. John says:

    Thanks Max this works great. I rooted and installed the liberty ROM. I am having a problem that sometimes the tab has to reboot after sleep mode and every time I power down I loose the usb charging capability and have to retype the command in again. Is there a simple solution to this or a way to save the command line to cut a paste to the terminal emulatorl. I am from the previous generation and new to this, my eye sight is going and typing in the command everytime is difficult :) Thanks for the information

  13. John says:

    Sorry not Liberty ROM but the Overcome ROM. Told you I was new to this and old.

  14. 1337GameDev says:

    I used better terminal editor to try and set the “initial command” option to be set to this so i can just click an icon to run it, but it always gives an error (maybe it cant be run as the initial command. Idk i tried putting su before it to invoke super user but to no avail) Right now im stumped as well on how to not have to type the command in.

  15. 1337GameDev says:

    I believe he overcome rom doesnt come with pershoot kernel. You can flash it to your device afterinstalling overcome rom. (no need to wipe too). Flash the kernel and see if that helps.

    • BouuuX says:

      Do you know where to find this Kernel ? (sorry for my bad english ^^).

      • 1337GameDev says:

        You can find this kernel in a link from one of the latest galaxy tab 10.1 rom articles. It will come as a zip file. And VERIFY it. If you encounter problems and didnt verify the zip with its md5 hash bad things will happen to your device if it is corrupt. Usea free md5 checker tool to do this. Just apple the kernwl through clockword recovery and click flash zip. (back up data first too just in case).

  16. muley says:

    Do I need to repeat the process after each reboot?

  17. atl740 says:

    have you come up with an app, that will toggle this on after a reboot? I find myself searching for the command each time I reboot the galaxy. would love to see a shortcut :)

    • 1337GameDev says:

      ive tried using better terminal emulator, as it has an “initial startup command” to run when you start the session, but it never accepts my command. This seems like an easy way, so if somebody can figure out exactly what to add to initial co mand setting thatd be great! :)

  18. angeloash says:

    man it’s not working with me i did everything you said :( but told me cannat create
    /sys/class/power_supply/battery/force_usb_charging

    what i have to do plz

  19. 1337GameDev says:

    Same error for me. If it cant create it might not have permissions. Idk why it doesnt though. I tried putting the command su before it….. To invoke super user but no luck.

  20. Piseth says:

    Dear Admin,

    Thanks for all your nice videos. However, after successful rooting, I still cannot charge from USB on the PC. I have followed every step you provided in the video, but then I got stuck when typing the last command in the Android Terminal Emulator. Following is what I typed and got:
    1- su (this is ok)
    2- echo 1 > /sys/class/power_supply/force_usb_charging (I got this: sh: cannot create /sys/class/power_supply/force_usb_charging: No such file or directory)
    What should I do next to enable charging?
    Please help!

  21. 1337GameDev says:

    Did you see a superuser promt or a popup saying superuser access granted? If not go into super using app and see if the terminal app is listed in allowed applications (adb shows up as unknown in superuser app list) if its not there it wasnt elevated to root.

    • Mao Piseth says:

      Yes, it prompted. Also, when I checked the supperuser app, the emulator is listed there. It seems that everything is ok, except that the command doesn’t work. By the way, if I just typed the command echo 1 (without >sign) ……… it displayed no error. Still, it’s not charging.

      Any further advice, please…

      • speedking says:

        Hi all , it works fine on my tab10.1 32gb 3g when i install kernel boot-cm_2636.4_ux-oc-xtra-vfpv3-d16_fp-102411 but i lose my 3g so i have install kernel boot-cm_2636.4_p4_ux-oc-xtra-vfpv3-d16_fp-082611 for my 3g so i lose now usb charging
        some help please thanxs.

        • Joshua Washburn says:

          Thanks. That was helpful… a kernel that includes that file is needed for this, and this kernel includes that file.

  22. LionDK says:

    I have the same problem with my Tab 7″ plus :(

  23. Angeloash says:

    can you asnwer our questions plz ?

    we waiting :)

  24. 1337GameDev says:

    Im not sure why it doesnt work. Maybe try a restart. Be very careful you type the commands exactly and maybe try a different terminal app. I use better terminal emulator and it works. Also see if removing the terminal app from superuser allowed list and then trying (and accepting the popup). You could also try setting super user to alloe all requests (changing setting from request permission to allow all requests). Its in the settings of the super user app. A few commands would only work for me when i set it to grant root to all requests. Obviously this is a security risk as malware or rogue apps could get root right away without you having chance to deny, but as long as you have lookout security (free from market) you should be just fine.

    • Piseth says:

      Yes, I am sure my commands are all correct. I also restarted many times. Yet, I have not try different terminal app (can you recommend one?). Access to root to the emulator is already allowed and confirmed.

      Maybe I will only try your recommended App, or wait for Samsung to come up with solution. If Samsung fails to do so, it’s not gonna compete with Ipad.

  25. 1337GameDev says:

    Try setting super user settings to allow all requests. That may help idk. And the tabket does charge off usb port without it, just at a slower pace. The ipad does same thing. It needs 2amp wall charger to charge. Samsung cannot fix this. Android and hardware amperage requirements. I would also recommend better terminal emulator pro. The regular version should work but i have pro.

    The biggest thing between ipad and android tablets isnt manufacturers, its google android. They just impliment things in ways to “be better” but turn to be worse. Galaxy tab has better specs than ipad 2 (cpu overclock to 1.4ghz). My only prob is stability. Android sucks and ram management. It says it frees up ram when needed but it doesnt do that well (hence the task killer debate). I notice severe slowdowns or freezes for seemingly no reason with no apps open. Wish i could find a debug log or a way to change the ram cache function of android. Otherwise THATS whats holding it back from ipad.

    • 1337GameDev says:

      Not to derail or etc. Just what ive noticed and read.

    • Piseth says:

      You have pointed out many good points. Sometimes, I also asked myself why it seems my tab is far behind Ipad when my tab comes with better specs.

      Btw, I noticed a poor mic in Tab 10.1 as when i record, it produces very poor sound quality compared to iphone/ipad. I even tried using third party application to do the job, but it didn’t seem to work better. Thus, I can say it is hardware, not really the software.

      • 1337GameDev says:

        sound quality on an ipad is also bad (it catches reverb and echoes). The ipad may have a bonus to the metal case (acts as a noise reducer) but the galaxy tab has less background noise (atleast with certain noise combinations) due to not having this metal case that is like an amp.

        Also the android os doesnt use a noise filter function to isolate and smooth audio input. Apps just take a raw signal from the device (which is bad due to susceptibility to wind and etc) that iOS does incorporate. It does use more battery (but if ur recording sound, who cares). Im hoping they fixed the mic drivers for ice cream sandwhich to incorporate this.

        To avoid sound quality you can isolate noise with cardboard, fabric and other apparatus by or around the mic. Worked well when recording piano a friend played.

        Ohh btw, fir charging you can get a high power usb adapter for any pc port. Newer ones (about $15) are discreet and are quite small and put out 2 amp of power. (obviously lower voltage but still works). You could also make your own usb cable by shorting out these two pins with resistor that tells the tab it is on a high powered port (obviously tricking it). Ive heard of no hazards or downsides of doing this though. You can find a DIY if you google around thougb.

  26. joseph says:

    hi, i want to ask. can this kernel work on firmware XXKK2. righ now i’m using overcome v2.1.1 ROM for honeycomb 3.2
    i have tried it, but it doesn’t goes to well.. is there somthing wrong when i’m flash it or it can not work on overcome v2.1.1

    thanks and sorry for bad english

  27. Thomas says:

    Hi there,

    After doing the procedure you listed here I got my GT to charge from my computer thru the USB cable, but after rebooting it no longer charges. Is there a way to make this change permanent?

    Also, thanks for all the great info and advice. You have made my GT even better.

    Thanks,
    Thomas

  28. Proditech Orion says:

    Hi all, I have a strange dificult. My Pad its rooted. I have access with SU in terminal and all but when I write the line “echo 1 > /sys/class/power_supply/battery/force_usb_charging” gives me the error - no such file or directory and I m writing it well. I went doing CD command to the folder battery and ls and I dont see any folder or file with such a name. Can you help me please?
    Thx in advance.
    Proditech Orion

  29. Tu Khuong says:

    It worked just great on my P7500.

  30. kcaher says:

    this works on 2.6.36.3 MOTLEY_v2+cainm kernel on Galaxy tab 8.9 GT7310 ANDROID 3.2 immediately after u enter the return key without rebooting

  31. Angeloash says:

    IT’S NOT WORK WITH ME ?????? :’(

  32. DOSX says:

    Great tip!! A must have for all Galaxy Tab users!!

  33. albert says:

    gscript lite.save the script and run it after you reboot.

    • Thomas says:

      Could you explain in greater detail this procedure for those of us who don’t know what this means exactly?

      Thank you,
      Thomas

      • albert says:

        1. Go to your market place.
        2. Download the program called “GScript Lite”.(it’s free)
        3. menu click, select “add script”
        4. Put in a name, put in the script from above, make sure “needs su” is checked.
        5. Save and you are done!

        Now anytime you reboot, just run the script. Bam!

        Fyi.. I bought a separate 2amp usb charger off of ebay for a few dollars and take that on vacation. Charging via regular .5amp charger or your computer is painfully slow.with this script, even the car chargers are an option now. Hope that helps:-)

    • jeffstahl says:

      Works great!!! Thanks…

  34. Proditech Orion says:

    Hi, i don’t have this script in my galaxy 10.1. Can anyone point me to a direction where can I download the script. Then I will use the gscript lite.
    Thanks in advance
    Orion
    And Happy New Year to all

    • albert says:

      The script is simply

      echo 1 > /sys/class/power_supply/battery/force_usb_charging

      Thats it. Put that into your gscript lite and you are gold.

      This was annoying me when i bought the tab and the only reason i would have given it 4 stars instead of 5. But with this hack, its great.

  35. Scarface says:

    @Albert,

    Can you help me out here?

    I downloaded GS Script Lite but it gives me only 3 options. Doesn’t matter which I choose -> I got a blue screen (emulator?) but no option to add the script.

    Any suggestions? Thanks!

    • Albert says:

      I assume you wanted to know how to “right click” or the equivalent of the right click (the icon on the bottom with the 3 horizontal lines) Add script. Check “Needs Su”.

  36. Scarface says:

    Hi All,

    I’ve downloaded the app “Script Manager”. With this free app you can run a script from booting! It works great and your able to use the USB charging option without any intervention from booting!

    Good Luck!

  37. John says:

    Thanks, exactly what I was looking for!!!!

  38. Angeloash says:

    not work with any apps :’(

  39. Proditech Orion says:

    Admin, please I have 2 comments waiting moderation since Jan, 1 which I think would be helpful to be seen so this fine community can help me.
    With respect
    Orion

  40. U Shehri says:

    Works perfectly awesome, Thank you , Does it reset on boot BTW?

    • 1337GameDev says:

      Sadly yes. I believe it is talked about in an above post to use a script app and run this command a boot time so it essentially stays forever.

  41. Elson says:

    I type “su”, but it appear “permission denied”, can I know what happen?

  42. Luis says:

    I don’t know how much of a change you guys are willing to do… But I just upgraded my Tab to the latest Bindroid 3.4 ROM and it comes with USB charging, I don’t think they disclose it on their site, but after doing the upgrade, I plugged my tab to the usb to transfer my back ups and noticed it started charging… I left it on and it charged it up to 100%.

    Working awesome!

  43. Piseth says:

    Luis, what a great news! This will be very helpful to all Tab users. Anyway, could you kindly show us how to upgrade it to Bindroid 3.4 ROM?

  44. arn says:

    I rooted my 10.1 7500 by following this guide
    http://galaxytabhacks.com/galaxy-tab-10-1-hacks/how-to-install-new-rom-on-galaxy-tab-10-1/
    Im not sure if im using the right rom or settings when i type su it says premission denied.

  45. Mr.g says:

    How can it be done on galaxy tab 7 (p1000) 2.3.3jpjpc stock ROM?

  46. Robin Degen says:

    This worked great.. i charged my tablet.. however… after a while this somehow changed itself back to 0 and i had to redo it. Why, i don’t know. Very strange.

  47. sherif says:

    every time i restarted my tab i have to add this command line again
    pls advice how can i save it

  48. kevin says:

    There is a much easier way to do this. That is permament

    1. Get a root explorer.. I use es file explorer.
    2. Change to mount file sys as rw in settings as well as enable root explorer in es settings
    3. Navigate to the same sys/class/power_supply/battery
    4. Find charging_source
    5. Open file as text and edit to 0.5
    6. Save file

    You can also add the file force_USB_charging and edit as text to value 0.5.

    BE SURE YOUR ROOT FILE SYSTEM IS REWRITEABLE OR CHANGES WILL NOT STICK.

    YOU MUST BE ROOTED BUT IT DOES NOT MATER WHAT ROM OR KERNEL YOU ARE USING.

    • Ahmed says:

      i did this steps,but when i add file name ”force_USB_charging” it said”sorry operation faild”,what is the problem

      • kevin says:

        First… Make sure the file browser you are using has file system mounted as write able RW. RO is read only. If it is then…..

        Try copying an existing file and paste that copy. Then rename it force_usb_charging and inside file it should only say 1. Save.

  49. viktoria says:

    hi my samsung at a trial tab P7500 I deleted everything and now I have nothing on my tablet.
    when I go on dowloading
    is connected! press the [start] of odin3!
    where is that how can I connect to the pc?
    please can you help me
    thank you

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Related News and Resources