EZ ADB Utility - Motorola Droid 3

OK, for those of you who prefer the simple shell/DOS interface for adb but HATE typing all the startup commands such as devices, shell, remounting the system folder rw then back to ro...this is for you.
I included an automated selection for the local.prop modification to keep adb shell root for Moto devices that haven't patched the exploit.
For a DOS prompt within the Utility, select DOS prompt, do your push/pull etc, then type 'exit' without the ' ' and it will bounce right back to the menu. select shell and you're back in shell. Select mount system rw, shell ro; and it will start adb shell, mount system rw...do your thing, then type 'exit' to exit the shell and the Utility will then remount the system as ro again.
Is it super fancy?? NO. Will it work on all phones all the time, more than likely; it's not that fancy. BUT, if you're like me and just want to get to business in adb; then this should make life EZ...
DIRECTIONS FOR USE:
Download file, and SAVE the zip file to the folder where you keep your ADB tools....depending on your particular installation, that can be in tools, or platform-tools. Unzip the file in that folder. Once you have the file unzipped there, right-click and send to desktop (create shortcut to the application on your desktop).
Now you have a shortcut on your desktop for the utility. Double-click the shortcut, and it will open a DOS window with a simple numbered menu for using basic ADB commands and frequent items.
Once in the window, choose option 5 or close the window to exit.
If you don't get the size/type font you want, right click the DOS window and select properties, then choose the font you want. Save for all future windows with the same name. It will ask you if you want to save the information to your shortcut, click YES and it will now open with your preferred font every time.
ENJOY.
Let me know what you think, but it works for me. Figured I'd share.

Related

[HOW-TO] Setting up ADB - The Tutorial For WINDOWS USERS...

SETTING UP ADB FOR WINDOWS USERS
The example shown in the video tutorial is running Windows 7. XP, Vista should run the same way.
1) Download the SDK program for your OS Here..
2) Download the latest Java Platform if you don’t have an updated version.
3) The SDK program will download in a .zip file. Extract that file somewhere easily accessible [like your desktop!]
4) You should now have a folder on your desktop with a name: android-sdk-windows
5) Drag that folder into the root of your HD…
The pathway should be something like: Computer > Local Disk ( C: ) > android-sdk-windows
6) make SURE to install the USB driver package in SDK... this way your device will be recognized when running adb commands later on...
Now that you have placed the SDK program there you can run ADB commands. But you need to run them Manually. Most people go into the tools folder and click adb and expect it to work its magic… you can stare all you want, but all it’s going to do it open a command prompt, run commands, and disappear. Now, don’t go “ZOMG I DON’T KNOW WHAT TO DO! IT WONT WORK!” …. Trust me, it will work..
6) Open a command prompt, go to windows start menu and click “search” or “run…” and in the box type: cmd and then press enter. This will execute the command prompt [terminal]
7) Now connect your Eris via USB. MAKE SURE YOU HAVE USB DEBUGGING ON!! If you don’t, go to settings < applications < development and check the box: usb debugging
8) Don’t mount your SD card yet.
9) Now you are almost ready to execute your first adb command. But first you must re-direct the path in command prompt to be your tools folder in SDK… this is what command should look like before:
C:\Users\YourUserName>
Now type in command: cd
But DON’T press enter… drag and drop the path from your SDK tools into that command line, so it should look like this:
C:\Users\YourUserName> cd C:\android-sdk-windows\tools
Now press enter. NOW your command prompt should say:
C:\android-sdk-windows\tools
Ok, last part… to test adb type in command: adb devices
Now it should return something like:
List of devices attached
HT9ANXXXXX Device
Ok so now you can execute Adb commands. Make sure you always have your command prompt pathway set to SDK tools or it WILL NOT WORK! You can now also execute adb commands directly to your device from it’s shell by typing: adb shell followed by your command.
For Visual people here is my short Youtube video explain it all again... and here is my screen shot to show you what it should look like, pay attention to my command prompt.
Another example: Custom boot animation for NON-ROOT USERS.
1) Find / create a boot animation that works with the Eris
2) name the Zip file bootanimation.zip
3) place .zip file in SDK tools folder
4) Follow above instructions to set path in CMD to tools folder and connect your device
5) execute this command:
adb push bootanimation.zip /data/local
Feel free to PM if you have any questions... I hope this helps
adb
Could someone sticky this please?... and I think themes and apps is a good place for it..unless you think it belongs in general..
Help
I followed your instructions to the "T" everything worked but when I tried to push abd bootanimation command it says access denied is this because I don't have root? I am running on the 2.1 leak Version 2 OTA . Seems to be working fine for me. Although I wish I would have waited for root!! C'mon DEVS I'm pulling for you. Any suggestions?
cornjo said:
I followed your instructions to the "T" everything worked but when I tried to push abd bootanimation command it says access denied is this because I don't have root? I am running on the 2.1 leak Version 2 OTA . Seems to be working fine for me. Although I wish I would have waited for root!! C'mon DEVS I'm pulling for you. Any suggestions?
Click to expand...
Click to collapse
EDIT: See OP at bottom for directions.
how do i install an apk file right to my phone using the "cmd"
jibbz said:
how do i install an apk file right to my phone using the "cmd"
Click to expand...
Click to collapse
adb install whatever.apk
n1ghtwish said:
adb install whatever.apk
Click to expand...
Click to collapse
ok my problem is tht when i use the cmd n get to my SDK tool folder n type in adb install (app name).apk it dont do anything
Hopefully its this simple
jibbz said:
ok my problem is tht when i use the cmd n get to my SDK tool folder n type in adb install (app name).apk it dont do anything
Click to expand...
Click to collapse
You probably don't have the .apk file in the same directory as sdk tool folder
try moving it there and see if that works.

How do I pull built in ringtones off a rom

im using baked goods v1.1 and it includes kspec theme with "master you have a message" notification. when i flash 5.0.5.3 with kspec lite 1.17 it doesnt include this notification. how can i pull this off the old rom and insert into the new one?
thanks
They are in /system/media/audio/notificantions/
Or the same folder structure from the zip and extract it.
when I try and ./adb pull /system/media/audio/notifications/doink.ogg i get the message "-bash: /adb: No such file or directory"
however i have done a listing in shell and know that the file is definitely there, and I have the correct path ??
Why cant I pull this from the phone??
Because either you don't have Android SDK Tools installed on your Linux, or they're not in the path and you're not in the tools' directory. Your Linux doesn't recognize "adb" command.
Or do you mean that you see "adb" file in the current directory, and it still doesn't run? Check for spelling errors, try to use adb without preceding "./".
Have you tried exploring the rom on you sd card with Astro? I have done this several times and just copy/paste the ringtones, notifications or alarms to the appropriate folders in the installed rom.
make sure your in the android sdk directory...
if you are linux it should look something like this
Android-sdk-linux_86>tools then you do the adb command
./adb pull /system/media/audio/notifcations/Ring.ogg (drag a folder or destination in terminal) then hit enter
for windows it should look lik this
android-sdk-windows>tools
adb pull /syste/media/audio/notifications (drag a folder in cmd prompt) then hit enter

ADB How-To

Ok so Ive seen a few people posting in the dev section that they cant get adb working. So heres a quick write up on how to get it working on windows and linux (ubuntu) machines. Follow these directions and you should have no problems. If you notice any errors dont hesitate to point them out to me! This is meant to help, not confuse.
First you need to download ADB.
Click here and select the download appropriate for your operating system: Android SDK
For Windows:
1.Extract the .zip file you downloaded and make a note of where you extracted to.
2.Go into the extracted android-sdk_r12-windows folder.
(if you go into this folder and have another folder named 'android-sdk_r12-windows' then cut and paste it outside of the extracted folder)
3.Open SDK Manager. Let it do its thing and then make sure 'Select All' is checked and click 'Install'
4.When its done it will say ADB has been updated and needs to restart. Select OK.
5.Now go back to your android-sdk_r12-windows folder and you should have a new folder called 'platform-tools'
6.Go into that folder and you should see 'adb'
7.Now to make things easy you're going to create an adb shortcut:
Right click your desktop and choose to create a new shortcut.
It will ask you to type a location for the shortcut. Enter "CMD" without the "".
Click 'Next'
For the name type "ADB" without the "".
Now right click the shortcut you just created and select 'Properties'
Now in the Properties dialog where it says Start In, type the path to your Android SDK foler. In my case I extracted the folder to my desktop, so my path would be C:\Users\Jason\Desktop\android-sdk_r12-windows.
Then click 'OK'
Now all you have to do is click this shortcut and you're automatically in adb in the command prompt.
For Linux:
Everything above is going to be pretty much the same except for the way you get into adb.
So do steps 1-6 above.
Now, instead of a shortcut you're going to open terminal and type the following:
sudo cp <path to your sdk platform-tools folder> /usr/bin
(for <path to your sdk platform-tools folder> it will depend on where you extracted the .zip to. In my case it would look like this because I extracted it to my desktop on MY computer:
sudo cp /home/jason/Desktop/android-sdk-linux_x86/platform-tools/adb /usr/bin
now you can access adb directly from Terminal.
Now I dont own a Mac so Im not going to put a writeup for that. But someone can feel free to post one and I can add it to my original post.
Thats it you now have access to adb on your computer! Go flash alternate recoveries and roms and be merry in 3D!
I am on my mobile app right now and haven't been able to find the link yet in the development section, but can pretty much guarantee that most ppl are having the issue I had with error messages about being denied BC u don't have permission. You have to change the permissions to get read and write access. If someone with better knowledge than me knows about it, then please feel free to elaborate. I spent hours trying to find answers before I stumbled across how to fix permissions. I know it requires u to enter adb shell and the into su to enter the code to change permissions so u can use adb push as well as adb root, etc. If no one addresses this shortly then I will find the link on my laptop and update.
Sent from my LG-P925 using xda premium
http://forum.xda-developers.com/showthread.php?t=1259603
Sent from my LG-P925 using xda premium
Holy cow! I have a new found respect for developers. I wanted the adb tools just so I can flash CWM recovery. Now I'm having to download updated java and there's a ton of stuff to download for the SDK tools.
I'll have to admit that I loved my Captivate in how easy it was to flash CWM and roms and really anything else.
how can i do this if my phone is bricked stuck on lg logo

[GUIDE][ADB]Easiest How to use adb, logcat, etc for noobs and newbies

ADB:-
Android Debug Bridge
Very useful program made itself by Google for Programmers and developers. Its based on command line and basically communicates with your Android to respond to certain commands. There is vast amount of knowledge about adb but its most useful commands limit to getting:-
Logcat:-
A real time log of what is happening in background of our devices. It is really useful for developers to see which component has malfunctioned and helps to narrow down their search for what failed and what needs to be fixed. Several times users are asked to give logcats of their devices which are giving errors. We will go in detail that how to get logcats in every and easiest way possible.
App Installation and Management:-
adb proves really handy if you want to install apks directly from your PC or want to batch install or delete them.
Shell Execution:-
You must have heard of Terminal Emulator. It is an app for android to execute shell commands(linux commands) which are basically present as applets in /system/bin, /system/sbin or /system/xbin(in our case) folders. A very imporant applet called busybox is installed there mainly used for execution of basic commands during root browsing or ROM installation. Many times updater script of ROMs use busybox commands to install it. Well, these commands can be initiated from your device too but they can be initiated from adb also making it easy for programmers.
Pushing and Pulling:-
Most used commands of adb. adb makes it a piece of cake for new device developers to get an ideo of structure and basic knowledge of devices by pulling command. We can pull out i.e copy any files or folders from our devices to our PC, even the root directories without rooting the devices. It help rooters and ROM chefs of new devices to get an idea and implement their mods on them. Pushing is also very useful command. It copies your files and folders from PC to your device. Very useful in pushing some /system apps and other things
Remounting and setting permissions
Basic commands:-
Of-course basic commands such as rebooting and rebooting in recovery mode and download mode are supported.
Others:-
There are several other features of adb such as fastboot, aapt, etc
Setting up ADB
Pre Requirements:-
PC(This is a windows guide, if asked I will add linux and mac guide later)
Java Runtime environment or Java Developing kit
Your Device Drivers
An Android Device
USB Debugging MUST be turned ON in the device for ADB to see it & Developer options is hidden in Android 4.2 and
above, Hitting Build number 10 times in
About Phone/Tablet reveals the menu (Thanks lilHermit for reminding me to add it)
Assuming you all these ready and working properly, we continue
If you are having trouble completing Pre-Requisites, there are several guides featuring them too
Start
1. First Download Android SDK. Roughly about 70 MB
2. There may be any compressed zip file or exe file
If zip file, then extract it to C:\android-sdk
If exe file then double click on it and install it in C:\ Drive(or any other drive you want)
3. Now to get adb and other tools, you need to download 'Platform Tools'
To download them, go to the android-sdk folder and double click on SDK Manager
It will ask you which package to download? However, it is your choice which package to Download, but here, we will only talk about platform
Tools. So, simply tick on Platform Tools and click on install. Once you have done it. Go to the platform-tools folder in the directory where you installed android-sdk. You will find several files there like adb, fastboot, aapt, etc
4. Now, you can backup the whole folder of android-sdk to any external storage that will make you not download package
again if you want to. You can have it placed in any computer and run it as it does not require registry to work
5. Now, you are just one step away from using adb. Next step is SKIPPING SETTING ENVIRONMENT VARIABLE (If you however want to set environment variables. Click on Show Content)
We can easily append the sdk platform-tools and tools folder to your systems environmental path variable directly from command line(cmd) by simply issuing one command and performing a system reboot:
Code:
[COLOR=Black]SETX PATH "%PATH%;[/COLOR][COLOR=Indigo]SDK_Install_Path[/COLOR][COLOR=Black]\platform-tools;[/COLOR][COLOR=Indigo]SDK_Install_Path[/COLOR][COLOR=Black]\android-sdk-windows\tools" -m[/COLOR]
Just replace the "SDK_Install_Path" in the above with the proper path of your SDK installation. Example: C:\android-sdk-windows
(Thanks to WugFresh for telling me :victory
Many guides on internet say that it is to be done for making it easy for users and if you have some basic knowledge of Command Prompt,
you will know that to execute any application with command prompt, you first need to change the directory to the one where application is
placed. And to skip changing the directories every time you open CMD, you need to put that application is environment variable. However, we will not do so.
6. Type cmd in the search bar. Copy cmd.exe from there. Go to the directory where you have installed android-sdk. Go to platform-tools folder. Paste cmd there, right click on it and in the settings, select Run as Administrator.
7. You are done. Now what to do in it?
ADB Commands
Type adb in command prompt. And several commands will show up on your screen. It is very difficult to analyse these all commands, so we will only talk about most used and important commands
Connect your device via USB cable
And open the CMD in platform-tools folder(Make a shortcut of it on desktop). And type the suitable commands
Code:
adb devices
Will show the list of devices attached to the PC andtheir serial numbers. If this shows up correctly on your PC, then it means that everything is fine for continuing.
Logcat
Code:
adb logcat
It will display the real time log of your device
Best time to do it is when your device boots up
Now, many users ask me how to copy the logcat and upload it from CMD
There are several methods:-
1. Right click on the Title Bar of Command Prompt. Hover the cursor over edit and select mark. Select all the things you want to copy and then click enter. All the things will be copied to clipboard.
2. This is the correct way of getting logcat saved.
Code:
adb logcat > logcat.txt
This command will create a logcat.txt document in platform-tools folder with the complete logcat of the device. Ofcourse you can type any name instead of logcat.txt
3. I prefer taking logcat this way as it neatly compiles logs of different time
Code:
adb logcat -v long > logcat.txt
This is a very nice way to get logcat.
Installing Apps
Code:
adb install %PATH OF APK%
This will install an app on your Android
For example, if my app AreeB.apk is in G:\ drive (G:\AreeB.apk)
Then I will type
Code:
adb install G:\AreeB.apk
Be sure your apk is not in a folder that has space in its name, else the command will break at space bar.
For eg:-
G:\Program Files\AreeB.apk
Note:
If you have spaces in path of apk, you can execute the command without breakage if you include the path inside quotes. (Thanks to etcman)
Eg:-
Code:
adb install "G:\Program Files\AreeB.apk"
Mounting
However, I never found any problem in tweaking with system files with adb, but some users said that they couldn't do it, so the problem was that their system partition was mounted as Read Only(R/O)
So, it is necessary now to tell how to mount system partition as Read Write(R/W)
Code:
adb remount
It is easiest way to do so, if it does not work then
There is another method that we will discuss in ADB Shell commands section
Pushing and Pulling
For pushing,
Type
Code:
adb push %PATH TO BE PUSHED% %PATH WHERE TO BE PUSHED%
Suppose I have an app named SystemUI.apk(PATH = G:\SystemUI.apk) which I want to push in /system/app/ on my android(or in other words, install an app as a system app). Then I would type
Code:
adb push G:\SystemUI.apk /system/app/
More examples
G:\Dance.txt file to be pushed in Dance folder in sdcard
Code:
adb push G:\Dance.txt /sdcard/Dance/
OR
Code:
adb push G:\Dance.txt /mnt/sdcard/Dance/
G:\Movies folder to be transferred in SDCARD in Videos Folder
Code:
adb push G:\Movies /sdcard/Videos/
G:\system\framework\framework-res.apk to be pushed in /system/framework/
Code:
adb push G:\system\framework\framework-res.apk /system/framework/
For pulling,
push command replaces with pull and paths are swapped​
Code:
adb pull %PATH TO BE PULLED FROM% %PATH TO PLACE PULLED FILE%
Example,
All system apps are to be pulled to G:\ROM\system\app
Code:
adb pull /system/app G:\ROM\system\app\
build.prop to be extracted to desktop
Code:
adb pull /system/build.prop C:\Users\Areeb\Desktop\
However, if a folder is in platform-tools folder, you don't need to type full path
Suppose if I type
Code:
adb pull /system/ system
Then a folder named system will be created inside platform-tools with all the files in system in it
If a file is in platform-tools folder, then also no need to type full path
For example,
There is an app name DeskClock.apk in this folder then, to push it to /system/app, type
Code:
adb push DeskClock.apk /system/app/
ADB Shell Commands
This mode of adb allows you to execute linux shell commands from your PC
These commands can aldo be executed through the mobile using Terminal Emulator
To initiate shell mode
Type
Code:
adb shell
You will get an prompt like this
sh-3.2#
Now you are in shell mode
adb commands won't work here and a new set of commands will work here. But we will only go in a little detail here.
Assuming you are in adb shell mode, I will only type commands that will work on shell. Note:- These commands won't work if you type them alone on cmd. But, these command will directly work on your mobile's Terminal Emulator
As these commands can also work on mobile, I am going to tell you a way of taking logcat on mobile
Type
Code:
logcat
You will see log of your device
To save this
Type
Code:
logcat > /sdcard/log.txt
A file named log.txt will be generated in sdcard
Uninstalling Applications
Code:
cd /data/app
This will change the directory to /data/app
Code:
ls
This will show the list of files in there
Suppose, there is an app named com.opera.browser (Opera Mobile) you want to uninstall it
Type
Code:
rm -r com.opera.browser
This will uninstall the app
Mounting Command:-
Code:
mount -o rw,remount /dev/block/mtdblock3 /system
Miscellanous commands:-
su: Initiates root request
du: Shows file foldrs and size
date: Shows todays date
ls: Shows list of directory
cd: Changes working directory
rm: Removes the file
logcat: Displays logcat
mount: Mounts the partition
busybox: Busybox Applets
Credits
Google: For Android and several searchings
Samsung: For Galaxy Ace s5830I
paxChristos for amazing logcat guide
Broadcom: For their Open Sourceness
XDA Forums : For the precious knowledge
Reserved
Reserved Once More
Last One
Reserve the guide
install full rom
how to install a full rom from adb?
Pretty sure it's impossible. Sorry.
Sent from my E15i using XDA Premium App
Perfect Guide to use ADB Commands..
It is very clear and perfect guide to use ADB commands.. I tested this all and works fine..
You can use apks to do logcats from the phone too, I use catlog.
About Broadcom being open sourced made me laugh hahaha.
open source broadcomm, i see what you did there .
Updated OP
Hey, I have downloaded adb a week ago. I did everything like your tutorial and more but adb doesn't see my device. I already have USB Debugging on and have the USB Drivers, but it doesn't work. This is what I get (Screenshot)
Android-fany said:
Hey, I have downloaded adb a week ago. I did everything like your tutorial and more but adb doesn't see my device. I already have USB Debugging on and have the USB Drivers, but it doesn't work. This is what I get (Screenshot)
Click to expand...
Click to collapse
Probably because of bad drivers
Can you use any other software with your mob
Because when I had this problem, reinstalling drivers fixed it.
iamareebjamal said:
Probably because of bad drivers
Can you use any other software with your mob
Because when I had this problem, reinstalling drivers fixed it.
Click to expand...
Click to collapse
I already reinstalled it like 5 times. Still doesn't work.
Android-fany said:
I already reinstalled it like 5 times. Still doesn't work.
Click to expand...
Click to collapse
Which Windows?
Which ROM?
iamareebjamal said:
Which Windows?
Which ROM?
Click to expand...
Click to collapse
Windows Vista
Stock Rom + Interactive Kernel (If the kernel is important too)
Android-fany said:
Windows Vista
Stock Rom + Interactive Kernel (If the kernel is important too)
Click to expand...
Click to collapse
Ah Vista
That old Nemesis
Frankly telling you bro, Vista sucks big time
I unistalled it as soon as I found out that Android kitchen won't work on it
Sorry bro
I don't know much about Vista
Install 7 or 8
AW: [GUIDE][ADB]Easiest How to use adb, logcat, etc for noobs and newbies
iamareebjamal said:
Ah Vista
That old Nemesis
Frankly telling you bro, Vista sucks big time
I unistalled it as soon as I found out that Android kitchen won't work on it
Sorry bro
I don't know much about Vista
Install 7 or 8
Click to expand...
Click to collapse
I can't install Windows 7/8 because it is not my computer.
But Android Kitchen and the other tools works. Just not adb.
Tapatalked by s5830i
Android-fany said:
I can't install Windows 7/8 because it is not my computer.
But Android Kitchen and the other tools works. Just not adb.
Tapatalked by s5830i
Click to expand...
Click to collapse
Very strange
Download My Phone Explorer and check if its working!!
Its just 2mb-6mb

[How-To] Starting ADB once installed

Depending on what windows version you are, for windows 7 you have to right click on an open spot on the desktop
and go to properties>advanced> Environment Variables, but for windows 8 you have go into control panel>system>Advanced setting > Environment Variables= Add new,
then the name should be ADB, and the path should be(go into the folder C:\Android\android-sdk\platform-tools,
click in the address bar of the folder and right-click to copy the address and paste that) and press ok ok ok.
Now open cmd(command prompt) and it should say C:\USER\(NAME OF YOUR COMPUTER) then after that you type: cd C:\Android\android-sdk\platform-tools (or whatever the file path is that you copied earlier, but "cd" before it tells your computer that is reading that file path as a virtual CD) now press enter. now type: "adb.exe" minus the quotation marks, this will start ADB. Now you can type whatever anyone has told you to type. Good Luck.
Please correct me if I am wrong and message me for clarification.
CD does not mean read as CD. It literally translates to Change Directory
Also if you add to path there is no reason to CD to the directory. That's the whole point of adding to path variables.
Sent from my Galaxy Nexus

Categories

Resources