FORUMS
Remove All Ads from XDA

 View Poll Results: Do you want it an open source project?

yes
 
315 Vote(s)
96.92%
no
 
10 Vote(s)
3.08%

[update6] [Open-source] [Win, Linx] Simple-ADB

880 posts
Thanks Meter: 1,013
 
Post Reply Email Thread

Quote:

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

HOW-TO

• Installation
Quote:

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
Quote:

• 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).

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.
Quote:

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 2018-02-03
Attached Thumbnails
Click image for larger version

Name:	1.png
Views:	16832
Size:	47.2 KB
ID:	3829549   Click image for larger version

Name:	2.png
Views:	16718
Size:	50.9 KB
ID:	3829550   Click image for larger version

Name:	3.png
Views:	16320
Size:	56.0 KB
ID:	3829551   Click image for larger version

Name:	4.png
Views:	14024
Size:	91.0 KB
ID:	3829552  
Attached Files
File Type: zip update2 - SADB.zip - [Click for QR Code] (53.1 KB, 5792 views)
File Type: zip updat3_stable.zip - [Click for QR Code] (56.3 KB, 9502 views)
File Type: zip update4.zip - [Click for QR Code] (52.4 KB, 1122 views)
File Type: zip update5_Simple-ADB.zip - [Click for QR Code] (39.2 KB, 1376 views)
File Type: zip Simple-ADB_update6.zip - [Click for QR Code] (39.4 KB, 3146 views)
The Following 104 Users Say Thank You to mhashim6 For This Useful Post: [ View ]
 
 
12th July 2016, 10:09 PM |#2  
mhashim6's Avatar
OP Recognized Developer
Thanks Meter: 1,013
 
Donate to Me
More
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.
The Following 10 Users Say Thank You to mhashim6 For This Useful Post: [ View ]
14th July 2016, 04:14 PM |#3  
Senior Member
Thanks Meter: 1,186
 
More
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.
The Following 4 Users Say Thank You to Dovidhalevi For This Useful Post: [ View ] Gift Dovidhalevi Ad-Free
14th July 2016, 04:19 PM |#4  
mhashim6's Avatar
OP Recognized Developer
Thanks Meter: 1,013
 
Donate to Me
More
Quote:
Originally Posted by Dovidhalevi

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.
The Following User Says Thank You to mhashim6 For This Useful Post: [ View ]
14th July 2016, 04:29 PM |#5  
Member
Flag Chicago
Thanks Meter: 18
 
More
Quote:
Originally Posted by Mohamed Hashem

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 ) .
• 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 ).

• 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 )
- 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



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!
The Following 3 Users Say Thank You to Chaos2Theory For This Useful Post: [ View ] Gift Chaos2Theory Ad-Free
14th July 2016, 05:19 PM |#6  
topnomi's Avatar
Senior Member
Flag Dayton, OH
Thanks Meter: 112
 
More
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
The Following User Says Thank You to topnomi For This Useful Post: [ View ] Gift topnomi Ad-Free
14th July 2016, 05:22 PM |#7  
mhashim6's Avatar
OP Recognized Developer
Thanks Meter: 1,013
 
Donate to Me
More
Quote:
Originally Posted by topnomi

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

thanks, that would be great help for sure.
14th July 2016, 05:38 PM |#8  
Senior Member
Thanks Meter: 122
 
More
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.
14th July 2016, 05:41 PM |#9  
mhashim6's Avatar
OP Recognized Developer
Thanks Meter: 1,013
 
Donate to Me
More
Quote:
Originally Posted by ranf

Just ran it in Ubuntu 14.04 with:

Code:
java -jar Simple_ADB.jar
Please change "adb devices" to "adb devices -l" (lowercase L).

Does everything work fine? Thanks for testing!
14th July 2016, 05:43 PM |#10  
Senior Member
Thanks Meter: 122
 
More
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
14th July 2016, 05:49 PM |#11  
mhashim6's Avatar
OP Recognized Developer
Thanks Meter: 1,013
 
Donate to Me
More
[QUOTE=ranf;67744575]Just ran it in Ubuntu 14.04 with:
Code:
java -jar Simple_ADB.jar
Quote:
Originally Posted by ranf

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
Quote:
Originally Posted by topnomi

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

What about starting now, it would be helpful if you tested it now, it seems working, although I don't really know (why) lol
Post Reply Subscribe to Thread

Tags
adb, adb for noobs, android, gui, sadb

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes