ADB Utility for Windows, Linux version in post #18.


  1. Lateralus138

    Lateralus138 Well-Known Member

    Hi all, I am constantly using adb in the Android SDK to access and work on my phones and having to constantly bring a new cmd window up and doing all the commands manually gets tedious and so I have created a batch utility for all of the usual ADB commands.

    This utility has almost all the usual commands that you might need with an interactive user interface to make all the normal ADB tasks quicker and easier to use:

    • Get file - used adb pull to transfer files from your phone to your computer. Interactive interface asks you where you'ld like to pull the file from.
    • Put file - uses adb push to transfer files from your computer to your phone. The interactive interface will ask you what file you want to transfer; you can either type the full path or drag the file into the window.
    • Reboot options - reboot phone, into recovery mode or into the bootloader with options 3, 4 and 5.
    • Mount options - use adb remount to remount the android system as rw, readable and writable.
    • ADB Shell options - Start a shell (or root shell) in Android or start and kill the adb server. You can also select if your port is listening via usb or tcpip.
    • Other options - Start up APK Multitools, set APK Multitools path and EXIT

    Setup Instructions:
    Extract the adb_utility.bat file to where ever your adb.exe; most likely in sdk/platform-tools where ever you installed adb, but it can also be put in APK Multitools. As long as adb.exe is in the same folder it will work just fine.

    When you run the batch file it checks to see if you have set your path to your APK Multitools script which if you have it stores in a text file called apkm_location.txt. If that file exists it will skip to the program, if not it runs you through the setup where you will type the full path of your APKM script (or drag the file into the window) and then saves it to the newly created above stated text file. This location can be changed by option [14] at anytime.

    Release Notes Version 1.0:
    I have re-written this several times, but I have organized it to the best of my ability and made it as user friendly as possible to be my first alpha release for the public.

    Not much to this script as in bugs etc., but if you notice any bugs or just have general feed-back or suggestions please feel free to let me know. I will add any new things that people would think they might need while using this utility and I will also be writing this is Linux shell script.

    Most people will use this for things you do on rooted phones, but this can be used for some things on unrooted phones as well.

    If you have any trouble running this try running as administrator.

    Screenshot:
    [​IMG]

    Download Latest Version Here:
    ADB Utility by Lateralus138




    For a Linux script from Palmtree5 go here:
    For Linux

    Advertisement
  2. Omnichron

    Omnichron New Member

    Thank you so much! :)
  3. Lateralus138

    Lateralus138 Well-Known Member

  4. Sepero

    Sepero Linux Guru Guide

    Neat stuff, but unfortunately I can't use it. :( Maybe you could edit the title to: ADB Utility for Windows

    If I ever get the free time, I might match you with a Linux version. Then we could change the title again :p
  5. palmtree5

    palmtree5 Sunny Vacation Supporter! Moderator

    This is great!

    I could probably do this too
  6. Sepero

    Sepero Linux Guru Guide

    If you do, be sure to post the source to gihub.com, then I can pull request any ways I find to improve it. :)
  7. palmtree5

    palmtree5 Sunny Vacation Supporter! Moderator

    https://github.com/palmtree5/linuxDroidToolkit

    There it is. Feel free to improve it. Note, you will need ADB and the Linux version of the script in this thread for full functionality (although there are bugs at the moment: some of the menu options seem to not go properly when selected as it acts as if there was an invalid input). It's in C++.
    Sepero likes this.
  8. Lateralus138

    Lateralus138 Well-Known Member

    Lol sorry for the late replies all, but I am not getting notifications even though I am subscribed by instant email...

    I'm laughing because you guys are talking about doing this for Linux, but if anyone actually read what I wrote above I said I will eventually do it for Linux...

    Just saying, but cool somebody has already written it. Thanx palmtree5.

    Note: I found a few small bugs myself and have fixed and updated the link above.
  9. Sepero

    Sepero Linux Guru Guide

    I hadn't even noticed. Now doesn't that make me look silly.

    If you still wanted to write it as a shell script that would be good too. The code by palmtree5 is appreciated, but a shell script would be much more welcome as it would open the code to a broader audience for easier editing and correction, and not require the magic knowledge of g++ compiling.
  10. Lateralus138

    Lateralus138 Well-Known Member


    I sounded a little nasty with that remark, sorry wasn't trying to be. I wasn't laughing at you, I was laughing with you lol!


    Having said that.. I will write it for Linux, but it may be a little while. I have quite a few projects going on and 1 year old twins that are all keeping me quite busy at the moment.
    Sepero likes this.
  11. palmtree5

    palmtree5 Sunny Vacation Supporter! Moderator

    No problem, I didn't even notice that you had said that.
    Probably a good thing for me to try to do, learn more shell scripting as my knowledge there is fairly limited. I kinda just jumped to a C++ program as that's currently where my programming knowledge lies. With that, should I bother leaving my code up?

    And yeah, g++ seems like magic to me especially seeing as I'm used to VC
    Sepero likes this.
  12. Sepero

    Sepero Linux Guru Guide

    I would say yes, leave your code up, at least until we get a shell script available. I didn't want to criticize your efforts on the C++ program, because I know it took time and thought to make it possible. I often feel a little attached when I've worked hard to make some code, and we always want to feel like we did a good job. :eek:

    I'm familiar with C, Python, PHP, Javascript, Shell scripting, and a couple other languages. Choosing the right language for the situation can sometimes be a tricky dilemma.

    I'll admit a personal bias of mine though, and that is I hate compiling other peoples code (because it always breaks). :D
  13. nsciucco

    nsciucco Well-Known Member

    Wow. I cant believe I never saw this before. This is awesome
  14. Lateralus138

    Lateralus138 Well-Known Member

    You're welcome.... If you have any suggestions or want something added just let me know. The version in the download is actually version 1.1, but it was just two little error changes and I can't remember which so I didn't really need a change log.
  15. palmtree5

    palmtree5 Sunny Vacation Supporter! Moderator

    Out of curiosity, what happened with the Linux version of this?
  16. Lateralus138

    Lateralus138 Well-Known Member

    Lol sorry haven't got to it, but life gets busy you know? I'm sure there's some Linux gurus around that can convert it if they are familiar with all involved parts... I rarely use adb in Linux unless I'm storing SD files to my pc to partition sd card or something, but that's only if my Windows partitions are full and that's rare... Got a few projects going on and my twin boys got some events coming up I gotta get ready for so I'll be busy a little longer I'll try and get to it in a few weeks.
  17. palmtree5

    palmtree5 Sunny Vacation Supporter! Moderator

    I know how that goes. I tried to make a script but it doesn't seem to work. Back to debugging!
  18. palmtree5

    palmtree5 Sunny Vacation Supporter! Moderator

    Anyone interested, there's a bash script there that has most of the functions of the script in the OP

    -h or -? Output usage from the readme. The script assumes adb is in the same folder as the script; if this is not the case, edit your copy of the script

    Or you can download the attached zip. My github will have the latest version but I will make every attempt to keep this up to date. The zip includes ADB

    Attached Files:

    Sepero and Lateralus138 like this.
  19. Lateralus138

    Lateralus138 Well-Known Member

    Awesome thanks, will jump over to Linux and check it out!
    palmtree5 likes this.
  20. Lateralus138

    Lateralus138 Well-Known Member

    Sorry Palmtree5 for not noticing that before, but I have now changed the title of this thread and added a link to your link into the first post.
    palmtree5 likes this.

Share This Page