Help With basic scripting
This is a discussion on Help With basic scripting within the Droid Hacks forums, part of the Droid Hacking category; 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 ...
-
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.
#!/bin/ksh
# Always need to be super user
su
# 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
Forum Rules
Similar Threads
-
By buellboy9 in forum Droid Bionic Hacks
Replies: 7
Last Post: 11-24-2011, 08:52 PM
-
By bkendrick in forum Liberty ROM DX
Replies: 0
Last Post: 05-02-2011, 07:31 PM
-
By dooop in forum Droid 2 FAQ
Replies: 4
Last Post: 12-12-2010, 09:16 PM
-
By chrstdvd in forum Droid 2 Hacks
Replies: 0
Last Post: 12-12-2010, 10:08 AM
-
By John.Edwards in forum Droid Applications
Replies: 3
Last Post: 03-23-2010, 02:44 AM
Search tags for this page
script writing for droid bionic
,
writing android ksh script
Click on a term to search our site for related topics.