1. ThatGuyLurkin's Avatar
    How can I make a script that can be ran in the Terminal Emulator. I want to make 2 scripts. One to disable USB fast charge, and one to enable USB fast charge. I had attempted to make one and failed. I get a " USBon not found " from the terminal.


    Anyone have any experience or ideas? Please, and thank you.
    10-16-2012 08:42 PM
  2. A-android-B's Avatar
    This would be awesome!

    tap tap tap
    10-16-2012 09:02 PM
  3. jonny5449's Avatar
    This would be awesome!

    tap tap tap
    It will be but need a kernel that supports it

    Sent from my LG-LS670 using Tapatalk 2
    10-16-2012 09:25 PM
  4. Phatninja55's Avatar
    I think it's for jaws101 kernel for gb, ffc works pretty well, but I never did make a working script for it. Darn short term memory loss... I guess I could flash it again and make a toggle script. Android uses a form of bash, but some of the bash commands are not in the rom's bin folder.
    10-16-2012 09:27 PM
  5. ThatGuyLurkin's Avatar
    What exactly needs to be there.


    Only thing i THINK i know is that the script goes in Xbin. Is that right?


    I tried looking up some threads but didnt find a thing.

    Sent from my LG-VM670 using Tapatalk 2
    10-16-2012 09:30 PM
  6. Phatninja55's Avatar
    It goes in bin, but the shebang needs to be #!/system/xbin/bash. I'm having a problem:
    if [ content=$(</sys/kernel/fast_charge/force_fast_charge) == 0 ]
    then
    echo 1 > /sys/kernel/fast_charge/force_fast_charge
    echo Turning force fast chage on.
    else
    echo 0 > /sys/kernel/fast_charge/force_fast_charge
    echo Turning force fast chage off.
    fi
    ran it and it returns:
    fast-charge.sh: 8: Syntax error: end of file unexpected (expecting "then")
    10-16-2012 09:57 PM
  7. EarthnFire78's Avatar
    It goes in bin, but the shebang needs to be #!/system/xbin/bash. I'm having a problem:
    if [ content=$(</sys/kernel/fast_charge/force_fast_charge) == 0 ]
    then
    echo 1 > /sys/kernel/fast_charge/force_fast_charge
    echo Turning force fast chage on.
    else
    echo 0 > /sys/kernel/fast_charge/force_fast_charge
    echo Turning force fast chage off.
    fi
    ran it and it returns:
    fast-charge.sh: 8: Syntax error: end of file unexpected (expecting "then")
    Try this
    if [ content=$(</sys/kernel/fast_charge/force_fast_charge) == 0 ]; <----This need to be at the end of the if statement.

    The only problem is it well only run the "else" argument.
    10-17-2012 12:33 AM

Similar Threads

  1. I need help with the calendar
    By Franklin#AC in forum HTC Droid Eris
    Replies: 4
    Last Post: 12-25-2009, 03:06 PM
  2. Need help with my rooted mytouch3g running hero rom
    By VoLoDaR1 in forum HTC Hero Rooting, ROMs, and Hacks
    Replies: 1
    Last Post: 12-16-2009, 05:52 PM
  3. Need Help With Eris Signal !!
    By M.J.H.#AC in forum HTC Droid Eris
    Replies: 1
    Last Post: 11-13-2009, 07:03 PM
  4. Need Help with Facebook App
    By olson0827#AC in forum Android Apps
    Replies: 1
    Last Post: 11-11-2009, 09:25 PM
  5. Need help with Blackberry calender/scheduler to Droid
    By buckeye#AC in forum General Help and How To
    Replies: 0
    Last Post: 11-09-2009, 04:01 PM
LINK TO POST COPIED TO CLIPBOARD