[Win, Mac, Linx] Simple-ADB

Do you want it an open source project?

  • yes

    Votes: 308 96.9%
  • no

    Votes: 10 3.1%

  • Total voters
    318
  • Poll closed .
Search This thread

mhashim6

Recognized Developer
Mar 5, 2013
882
1,015
mhashim6.me

This is simply ADB/Fastboot, with a Graphical User Interface.
HOW-TO

• Installation
make sure you have java installed on your PC

• first you have to install adb system-wide:
[windows] : try ADB Installer tool.
[Linux] : adb support comes with most Linux distributions.

• then run Simple-ADB.jar and that's it!
[Windows shortcut]
[Linux shortcut]
• Usage
• select from "ADB", "Fastboot" or "Your command" modes:

- if "ADB" is selected the dropdown will contain lots of adb commands :
adb devices -l
adb connect <host>
adb disconnect
adb usb
adb logcat
adb install
adb uninstall
adb push
adb pull
adb kill-all
adb shell top
adb shell free
adb shell ps,
adb shell netstat,
adb shell pm list packages,
busybox df -h
rm /data/system/gesture.key
adb reboot
adb reboot recovery
adb reboot download
adb reboot bootloader
adb reboot fastboot
adb reboot sideload
adb help
adb kill-server

- if "Fastboot" is selected the dropdown will contain lots of Fastboot commands :
fastboot devices -l
fastboot reboot-bootloader
fastboot erase system
fastboot erase data
fastboot erase cache
fastboot flash
fastboot flash recovery
fastboot flash boot
fastboot flash system
fastboot flash data
fastboot flash cache
fastboot flash userdata
fastboot flash bootloader
fastboot flash radio
fastboot help

- if "Your command" is selected the dropdown will be disabled , and you can write your own command.

• You can Save output from the Options menu or simply press Ctrl+S.
COMPATIBILITY

• Windows
• Linux (Thanks a lot for @topnomi for testing and confirming Linux support, follow his Instructions for linux).
• Mac OS (read this post for details)

TO-DO/FIX

fix memory leak because of large output to the JTextArea [(e.g during adb logcat).
support for Mac (I really don't know why it's not working there, contributions are always welcome!)

Code:
*** Disclaimer
there are some commands I've never tested (like password command),
please use the tool at your own risk.

If you want to support the development of this program, feel free to donate.
XDA:DevDB Information
S-ADB, Tool/Utility for all devices (see above for details)
Contributors
mhashim6
Source Code:
GitHub
Source-Forge
This tool is based on System Command Executor Library
Version Information
Status: Stable
Current Stable Version: update6
Stable Release Date: 2018-02-03

Created 2016-07-12
Last Updated 2020-06-15

XDA:DevDB Information
S-ADB, Tool/Utility for all devices (see above for details)

Contributors
Mohamed Hashem
Source Code: https://github.com/mhashim6/Simple-ADB


Version Information
Status: Stable
Current Stable Version: update6
Stable Release Date: 2018-02-03

Created 2016-07-12
Last Updated 2020-06-14
 

Attachments

  • 1.png
    1.png
    47.2 KB · Views: 17,952
  • 2.png
    2.png
    50.9 KB · Views: 17,817
  • 3.png
    3.png
    56 KB · Views: 17,284
  • 4.png
    4.png
    91 KB · Views: 14,976
  • updat3_stable.zip
    56.3 KB · Views: 9,860
  • update4.zip
    52.4 KB · Views: 1,308
  • update5_Simple-ADB.zip
    39.2 KB · Views: 1,748
  • Simple-ADB_update6.zip
    39.4 KB · Views: 5,000
Last edited:

mhashim6

Recognized Developer
Mar 5, 2013
882
1,015
mhashim6.me
CHANGELOG


update6 [stable] [16/09/2017]
Code:
• fixed the memory leak that occurred when a command with a large output is being executed, finally!
• support for using quotes in commands.
• fixed a bug in adb push command.
• updated with latest version of System Command Executor library.
.
update5 [stable] [16/09/2017]
Code:
• fixed the memory leak that occurred when a command with a large output is being executed, finally!
• fixed a freeze in some special cases.
• fixed the weird layout issue on linux.
• replaced the "output contains errors" prompt with a more informative text, including the exit code.
• update to the last version of System-Command-Executer library.
• updated donate url.
• overall performance improvements
• reduced jar size to 44 kbs
.
update4 [stable] [07/05/2017]
Code:
•I quote google: "several bug fixes, and speedy improvements".
•fixed a bug in adb pull command.
•errors are highlighted in red.
•added:
adb shell ip,
adb shell ps,
adb shell netstat,
adb shell pm list packages,
adb usb
version 5.6 [stable] [31/07/2016]
Code:
•Stability, stability, stability, all possible weak spots are fixed, with lots of enhancements , this program is now stable (Hopefully)
•Saving output now is through File dialog
•Shortcuts added for options menu items
•lots of fixes to "your own command" mode + (you can execute by hitting enter)
Version 5.5 [27/07/2016]
Code:
	 now it's open-source; check the op.
	 
	 in supported commands:
		 •added:
		     adb connect [to connect the phone wirelessly]
			 adb disconnect
			 adb root
			 adb unroot
			 adb reboot sideload
			 fastboot reboot-bootloader
		•renamed:
	    	 adb > adb help
			 fastboot > fastboot help
		 
	in UI :	 
		 •enhanced all UI colors.
Version 5.2 [21/07/2106] :

Code:
in compatiblity with Linux and Mac :
•Confirmed for Linux
need a confirmation from you for OsX.
										
in UI :
•new icon
•the whole UI (including file explorer and information panels) now is totally revamped to Windows Look and feel, now You can say it's beautiful.
•now every mode (adb, fastboot, your own command) has it's output color.

in Errors and Exception:
•now all exceptions are more detailed, to guide you and me to the problem.

in supported commands
•renamed all commands in the list to what they really are to avoid confusion and complexity.
•added :
  adb
  adb kill-server
  fastboot
•changed :
  adb devices to adb devices -l
  fastboot devices to fastboot devices -l
•removed :
  unlock password 2nd method to avoid confusion and complexity.

in output :
•you can save the output using "save output" in "options" menu.
•fixed some output issues.

in code :
•I've changed some algorithms > hmmm, the app size now is 30 kbs lol.
900 downloads

Version 5.0 [initial release] [12/07/2016] :

Code:
the tool now is much more stable and smart, renamed to SADB [Simple ADB]

in how the tool is working:
as I said I've rewrittten the whole code:
•now we have an output area, no files or any leftover data files at all, it's just the tool
•now the tool is executing the commands in really different and cleaner/faster way
•added the Abort button, to abort currently running operations
•added "Your own command" mode [experimental]
•the tool size is 27 kbs 

in Errors and Exception:
•all exceptions and errors are caught and handled i believe
•the tool now can determine whatever the output is an error or not

in UI :
•now you can choose from adb, fastboot by radio buttons, instead of this large comboBox
•removed most of the annoying dialog panes
•the overall UI is certainly better and smoother
2800 downloads


Code:
In the future, I might make other changes and fixes,
but they may not be that big to include in separate updates,
so, if you're interested in the latest releases,
feel free to compile the code yourself.
 
Last edited:

Dovidhalevi

Senior Member
Jun 26, 2012
2,728
1,172
In Debian, there are "android tools" packages and adb and fastboot are simply there. Otherwise, the executable may come with any of Android API packages.

So this runs on Linux. Install adb does nothing. Own command has no command input to use. Need a on-phone file-browser for file to pull. Need option to save logcat to a file. Small things.

I run adb CLI without much ado.
 
Last edited:

mhashim6

Recognized Developer
Mar 5, 2013
882
1,015
mhashim6.me
In Debian, there are "android tools" packages and adb is simply there. Otherwise, the executable may come with any of Android API packages.
Thanks for the help, I'll check.

Edit: own command, intended to allow users to write their command in the same red area, But I'll check, and yes save logcat into file is coming.
 
Last edited:
  • Like
Reactions: baboomerang

Chaos2Theory

Member
May 5, 2015
49
18
Chicago
ANNOUNCEMENT:
one year & half ago I've created this tool, the main idea was not new, it has been implemented so many times, but I believe that majority of implementations has just covered the most basic and direct commands of ADB/Fastboot,

So, this revive shall FIX WHATEVER PROBLEM YOU FACED WITH THE OLD TOOL. make sure to check the changelog [2nd post].

INSTALLATION :

(make sure you have java installed on your PC)
• first you have to install ADB Installer tool, it will install ADB to your System directly, so no need for any additional files (make sure to give @Snoop05 a Thanks :good:) .
• then run Simple ADB.jar and that's it!


GUIDE :

• select from "ADB", "Fastboot" or "Your own command" buttons :

- if "ADB" is selected the combobox will contain lots of adb commands :
Check if Device connected properly (adb devices).
Android Logcat.
Install a specific APK file(Android Application).
Uninstall apk <package> .
pull a file from your Android Device to your PC.
push a file from your PC to your Android Device.
View tasks running in your Android device.
Check your Android Device Memory usage.
Check your Android Device storage usage.
Kill all background processes.
Normal Reboot.
Reboot to recovery mode
Reboot to download mode (for Samsung Devices).
Reboot to bootloader mode.
Unlock Patterns/passwords [first method]
Unlock Patterns/passwords [formatting phone method]

- if "Fastboot" is selected the combobox will contain lots of Fastboot commands :
Reboot to Fastboot mode.
Flash Update.zip.
Flash recovery.img.
Flash boot.img.
Wipe (System,data & cache) before restoring nandroid backup.
Flash system.img.
Flash data.img.
Flash cache.img.

- if "Your own command" is selected the combobox will be disabled , and you can write your (still one line) command in the red area.

• Hit Activate to (well, activate the command :cyclops: ).

• Hit Abort to stop the currently running operation ( please think twice before aborting a command).

• You have the Options menu that contains :
-Donate : to support my development and studying (first year college :cyclops: )
- Main thread : to visit this thread.
- ADB Installer : to visit ADB Installer thread.
- Reset : to set the frame as you first opened it.


COMPATIBILITY:
windows (till now)
•the first issue preventing it from being compatible with other OS's is that the way java is executing commands, it's tricky to keep the same simple functionality with the mass compatibility, so i'm still working on that.
•also in other OS's you need to install adb system-wide, and i didn't find any adb-installer-like tool for Linux or Mac os.
I hope i'll get help from the community

Code:
*** Disclaimer
there are some commands I've never tested (like password commands),
 because I don't have a spare phone to test on,  please use the tool at your own risk.
! note: if you want to support the development of this program, it would be appreciated to click under my avatar, and Click
3LeCOgj.png
:good: :p



XDA:DevDB Information
SADB, Tool/Utility for all devices (see above for details)

Contributors
Mohamed Hashem

Version Information
Status: Beta
Current Beta Version: 5.0
Beta Release Date: 2016-07-13

Created 2016-07-12
Last Updated 2016-07-12
This seems like a really nice tool to users new to ADB, nice work man!
 

topnomi

Senior Member
Apr 22, 2009
283
110
Dayton, OH
FYI, there is an Ubuntu package called android-tools-adb that includes ADB & Fastboot.
It also appears to be in Debian repositories, so it likely works with all Debian derivatives.

I'd be happy to help test your linux based tool if/when you get to that point.
I'm no programmer, but i've been running all linux at home for a couple years, so I might have some good ideas :highfive:
 
  • Like
Reactions: mhashim6

mhashim6

Recognized Developer
Mar 5, 2013
882
1,015
mhashim6.me
FYI, there is an Ubuntu package called android-tools-adb that includes ADB & Fastboot.
It also appears to be in Debian repositories, so it likely works with all Debian derivatives.

I'd be happy to help test your linux based tool if/when you get to that point.
I'm no programmer, but i've been running all linux at home for a couple years, so I might have some good ideas :highfive:

thanks, that would be great help for sure.
 

ranf

Senior Member
May 21, 2012
251
122
Just ran it in Ubuntu 14.04 with:
Code:
java -jar Simple_ADB.jar

Please change "adb devices" to "adb devices -l" (lowercase L). Longer output with board name.
 
Last edited:

ranf

Senior Member
May 21, 2012
251
122
I only tried adb devices and logcat so far. -l is just a feature request.

More features I miss :)
Code:
fastboot devices -l
fastboot reboot
 
Last edited:

mhashim6

Recognized Developer
Mar 5, 2013
882
1,015
mhashim6.me
Just ran it in Ubuntu 14.04 with:
Code:
java -jar Simple_ADB.jar
I only tried ad devices and logcat so far. -l is just a feature request.
@ranf fastboot reboot does exists: reboot to fastboot mode

Thanks, I'll change it, and thanks for testing, feel free to test other commands :D
FYI, there is an Ubuntu package called android-tools-adb that includes ADB & Fastboot.
It also appears to be in Debian repositories, so it likely works with all Debian derivatives.

I'd be happy to help test your linux based tool if/when you get to that point.
I'm no programmer, but i've been running all linux at home for a couple years, so I might have some good ideas :highfive:
What about starting now, it would be helpful if you tested it now, it seems working, although I don't really know (why) lol
 
Last edited:

iamsubhranil

Senior Member
Sep 3, 2015
586
359
Kolkata
@Mohamed Hashem i belive i can tweak the UI to get close to the window's metro ui which is attractive, stunning and simple if you make it's source open. It's already a good program. And with some furnishings on the UI, it can be the de facto adb for a few years. What say?
 

mhashim6

Recognized Developer
Mar 5, 2013
882
1,015
mhashim6.me
@Mohamed Hashem i belive i can tweak the UI to get close to the window's metro ui which is attractive, stunning and simple if you make it's source open. It's already a good program. And with some furnishings on the UI, it can be the de facto adb for a few years. What say?
well, after seeing the initial poll answers, I think I'm taking the Open-source option seriously :) so whenever I publish it, You're free to do so :)
Also, I'm about to take a look at JavaFx to polish the ui, thus, We will have multiple good user interfaces, and this is definitely always better :)
 
Last edited:

iamsubhranil

Senior Member
Sep 3, 2015
586
359
Kolkata
well, after seeing the initial poll answers, I think I'm taking the Open-source option seriously :) so whenever I publish it, You're free to do so :)
Also, I'm about to learn javaFx to polish the ui, thus, We will have multiple good user interfaces, and this is definitely always better :)
I know about JavaFX and CSS stuff quite well from my self learning of 1 and a half years. I have some good metro like stylesheets ready to go with built in accent and base theme changing support. I look forward to the aforementioned happening.
 
  • Like
Reactions: mhashim6

Dovidhalevi

Senior Member
Jun 26, 2012
2,728
1,172
...
So this runs on Linux. Install adb does nothing. Own command has no command input to use. Need a on-phone file-browser for file to pull. Need option to save logcat to a file. Small things..

I indeed ran it under linux, usual java -jar ....was able to exercise adb commands as I describe.
Will always get io-exceptions when hitting abort.
Other exceptions may be due to the Process.start()

Till now I've been using java's regular Process.start() method, It's for Windows only,
Thanks for the help, I'll check.

Edit: own command, intended to allow users to write their command in the same red area, But I'll check, and yes save logcat into file is coming.

Great!

FYI, there is an Ubuntu package called android-tools-adb that includes ADB & Fastboot.
It also appears to be in Debian repositories, so it likely works with all Debian derivatives.

I'd be happy to help test your linux based tool if/when you get to that point.
I'm no programmer, but i've been running all linux at home for a couple years, so I might have some good ideas :highfive:

You can run it right now as described!
 
Last edited:

mhashim6

Recognized Developer
Mar 5, 2013
882
1,015
mhashim6.me
I indeed ran it under linux, usual java -jar ....was able to exercise adb commands as I describe.
Will always get io-exceptions when hitting abort.
Other exceptions may be due to the Process.start()
Actually I think that IOExeption comes from start()
did you face other exceptions?
Besides Abort, does executing commands actually work?

You can run it right now as described!
The described solves the second problem (adb installation) but the second problem still needs testing\investigation
Thanks for testing and information :)
 

Top Liked Posts

  • There are no posts matching your filters.
  • 104

    This is simply ADB/Fastboot, with a Graphical User Interface.
    HOW-TO

    • Installation
    make sure you have java installed on your PC

    • first you have to install adb system-wide:
    [windows] : try ADB Installer tool.
    [Linux] : adb support comes with most Linux distributions.

    • then run Simple-ADB.jar and that's it!
    [Windows shortcut]
    [Linux shortcut]
    • Usage
    • select from "ADB", "Fastboot" or "Your command" modes:

    - if "ADB" is selected the dropdown will contain lots of adb commands :
    adb devices -l
    adb connect <host>
    adb disconnect
    adb usb
    adb logcat
    adb install
    adb uninstall
    adb push
    adb pull
    adb kill-all
    adb shell top
    adb shell free
    adb shell ps,
    adb shell netstat,
    adb shell pm list packages,
    busybox df -h
    rm /data/system/gesture.key
    adb reboot
    adb reboot recovery
    adb reboot download
    adb reboot bootloader
    adb reboot fastboot
    adb reboot sideload
    adb help
    adb kill-server

    - if "Fastboot" is selected the dropdown will contain lots of Fastboot commands :
    fastboot devices -l
    fastboot reboot-bootloader
    fastboot erase system
    fastboot erase data
    fastboot erase cache
    fastboot flash
    fastboot flash recovery
    fastboot flash boot
    fastboot flash system
    fastboot flash data
    fastboot flash cache
    fastboot flash userdata
    fastboot flash bootloader
    fastboot flash radio
    fastboot help

    - if "Your command" is selected the dropdown will be disabled , and you can write your own command.

    • You can Save output from the Options menu or simply press Ctrl+S.
    COMPATIBILITY

    • Windows
    • Linux (Thanks a lot for @topnomi for testing and confirming Linux support, follow his Instructions for linux).
    • Mac OS (read this post for details)

    TO-DO/FIX

    fix memory leak because of large output to the JTextArea [(e.g during adb logcat).
    support for Mac (I really don't know why it's not working there, contributions are always welcome!)

    Code:
    *** Disclaimer
    there are some commands I've never tested (like password command),
    please use the tool at your own risk.

    If you want to support the development of this program, feel free to donate.
    XDA:DevDB Information
    S-ADB, Tool/Utility for all devices (see above for details)
    Contributors
    mhashim6
    Source Code:
    GitHub
    Source-Forge
    This tool is based on System Command Executor Library
    Version Information
    Status: Stable
    Current Stable Version: update6
    Stable Release Date: 2018-02-03

    Created 2016-07-12
    Last Updated 2020-06-15

    XDA:DevDB Information
    S-ADB, Tool/Utility for all devices (see above for details)

    Contributors
    Mohamed Hashem
    Source Code: https://github.com/mhashim6/Simple-ADB


    Version Information
    Status: Stable
    Current Stable Version: update6
    Stable Release Date: 2018-02-03

    Created 2016-07-12
    Last Updated 2020-06-14
    10
    CHANGELOG


    update6 [stable] [16/09/2017]
    Code:
    • fixed the memory leak that occurred when a command with a large output is being executed, finally!
    • support for using quotes in commands.
    • fixed a bug in adb push command.
    • updated with latest version of System Command Executor library.
    .
    update5 [stable] [16/09/2017]
    Code:
    • fixed the memory leak that occurred when a command with a large output is being executed, finally!
    • fixed a freeze in some special cases.
    • fixed the weird layout issue on linux.
    • replaced the "output contains errors" prompt with a more informative text, including the exit code.
    • update to the last version of System-Command-Executer library.
    • updated donate url.
    • overall performance improvements
    • reduced jar size to 44 kbs
    .
    update4 [stable] [07/05/2017]
    Code:
    •I quote google: "several bug fixes, and speedy improvements".
    •fixed a bug in adb pull command.
    •errors are highlighted in red.
    •added:
    adb shell ip,
    adb shell ps,
    adb shell netstat,
    adb shell pm list packages,
    adb usb
    version 5.6 [stable] [31/07/2016]
    Code:
    •Stability, stability, stability, all possible weak spots are fixed, with lots of enhancements , this program is now stable (Hopefully)
    •Saving output now is through File dialog
    •Shortcuts added for options menu items
    •lots of fixes to "your own command" mode + (you can execute by hitting enter)
    Version 5.5 [27/07/2016]
    Code:
    	 now it's open-source; check the op.
    	 
    	 in supported commands:
    		 •added:
    		     adb connect [to connect the phone wirelessly]
    			 adb disconnect
    			 adb root
    			 adb unroot
    			 adb reboot sideload
    			 fastboot reboot-bootloader
    		•renamed:
    	    	 adb > adb help
    			 fastboot > fastboot help
    		 
    	in UI :	 
    		 •enhanced all UI colors.
    Version 5.2 [21/07/2106] :

    Code:
    in compatiblity with Linux and Mac :
    •Confirmed for Linux
    need a confirmation from you for OsX.
    										
    in UI :
    •new icon
    •the whole UI (including file explorer and information panels) now is totally revamped to Windows Look and feel, now You can say it's beautiful.
    •now every mode (adb, fastboot, your own command) has it's output color.
    
    in Errors and Exception:
    •now all exceptions are more detailed, to guide you and me to the problem.
    
    in supported commands
    •renamed all commands in the list to what they really are to avoid confusion and complexity.
    •added :
      adb
      adb kill-server
      fastboot
    •changed :
      adb devices to adb devices -l
      fastboot devices to fastboot devices -l
    •removed :
      unlock password 2nd method to avoid confusion and complexity.
    
    in output :
    •you can save the output using "save output" in "options" menu.
    •fixed some output issues.
    
    in code :
    •I've changed some algorithms > hmmm, the app size now is 30 kbs lol.
    900 downloads

    Version 5.0 [initial release] [12/07/2016] :

    Code:
    the tool now is much more stable and smart, renamed to SADB [Simple ADB]
    
    in how the tool is working:
    as I said I've rewrittten the whole code:
    •now we have an output area, no files or any leftover data files at all, it's just the tool
    •now the tool is executing the commands in really different and cleaner/faster way
    •added the Abort button, to abort currently running operations
    •added "Your own command" mode [experimental]
    •the tool size is 27 kbs 
    
    in Errors and Exception:
    •all exceptions and errors are caught and handled i believe
    •the tool now can determine whatever the output is an error or not
    
    in UI :
    •now you can choose from adb, fastboot by radio buttons, instead of this large comboBox
    •removed most of the annoying dialog panes
    •the overall UI is certainly better and smoother
    2800 downloads


    Code:
    In the future, I might make other changes and fixes,
    but they may not be that big to include in separate updates,
    so, if you're interested in the latest releases,
    feel free to compile the code yourself.
    4
    In Debian, there are "android tools" packages and adb and fastboot are simply there. Otherwise, the executable may come with any of Android API packages.

    So this runs on Linux. Install adb does nothing. Own command has no command input to use. Need a on-phone file-browser for file to pull. Need option to save logcat to a file. Small things.

    I run adb CLI without much ado.
    4
    update6

    [03/02/2018]
    Code:
    • support for using quotes in commands.
    • fixed a bug in adb push command.
    • updated with latest version of System Command Executor library.
    .
    3
    Windows batch file!

    k, i was too lazy to type
    Code:
    java -jar Simple_ADB.jar
    so, i made my own windows batch file, so its very simple, just ran this
    Code:
    sadb
    on command prompt, and it will run the Simple ADB jar file.

    here ya go, sadb.bat
    just right click on it, click out save as, go to C:\Windows, and save it
    and, edit up the .bat with notepad and edit the
    Code:
    set sadbdir=C:\[COLOR="Red"]adb[/COLOR]
    red one, with the directory of the Simple ADB .jar file