DroidForums.net is the original Verizon Android Forum! Registered Users do not see these ads. Please Register - It's Free!
Results 1 to 1 of 1

Thread: Help With basic scripting

  1. Senior Droid
    Abadus's Avatar
    Member #
    Join Date
    Apr 2010
    3 times
    Droid Bionic

    Help With basic scripting

    Ok I am a noob but just need a small push in the right direction.

    I am deodexing my phone with xUltimate. Everything is fine but I have to do all commands through ADB or Terminal on my phone. I would like to automate this process.

    Best solution would be a bat file from windows that would push the folders to my phone and then move files delete .odex files and then debloat my phone the way I want. My first question is can you gain SU access with a windows bat file? When I try the SU app asks for permission but when I give it the script just hangs and does not progress. I think if I can get the script to progress I can get it to do what I want.

    adb shell devices
    adb shell su
    adb shell push filles bla bla bla

    It hangs on the su line after I allow access on my phone.

    Alternative because I am pretty sure I read you cannot do su from a script.bat. I would like to just have my phone run the script instead of running it from windows. I write a script like this.


    # Always need to be super user

    # Need to mount system read write
    mount -o rw,remount -t ext3 /dev/block/mmcblk1p21 /system

    #Rename These files
    mv /system/app/blur_myspace.apk /system/app/blur_myspace.apk2

    # Need to put system back to read only
    mount -o ro,remount -t ext3 /dev/block/mmcblk1p21 /system

    When I run it I get a pop up saying I gained super user access but beyond that the script does nothing. I tried just a simple one to reboot my phone just to check it and that does not work either.

    I am really stuck here. It would not be a big deal but I have deodexed my phone and debloated it a few times this week and I debloat different things each time. This way I would automate it and always do the exact same things. I have been trying for a while but nothing I seem to do works. Any help would be greatly appreciated.
    Stock Droid Bionic. Lovin' the 4G.

    OG Droid for my son to watch videos on, and not put sticky fingers onto my new phone.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Similar Threads

  1. Scripting help?
    By buellboy9 in forum Droid Bionic Hacks
    Replies: 7
    Last Post: 11-24-2011, 08:52 PM
  2. Scripting
    By bkendrick in forum Liberty ROM DX
    Replies: 0
    Last Post: 05-02-2011, 07:31 PM
  3. Replies: 4
    Last Post: 12-12-2010, 09:16 PM
  4. Need directions about scripting
    By chrstdvd in forum Motorola Droid 2 Development
    Replies: 0
    Last Post: 12-12-2010, 10:08 AM
  5. Perl or other scripting engine...
    By John.Edwards in forum Android Applications
    Replies: 3
    Last Post: 03-23-2010, 02:44 AM

Search tags for this page

batch file to run adb shell script su


script writing for droid bionic


writing android ksh script

Click on a term to search our site for related topics.
Find us on Google+