FORUMS
Remove All Ads from XDA
Honor 7x
Win an Honor 7X!

{Tutorial} (Basics of ADB) For Beginners Part-1

4,471 posts
Thanks Meter: 1,950
 
By doctor_droid, Senior Member on 6th May 2013, 01:56 PM
Post Reply Email Thread
11th November 2014, 08:52 PM |#51  
elartista3390's Avatar
Senior Member
Flag buenos aires
Thanks Meter: 58
 
More
Post help
anybody help me?
Attached Files
File Type: txt logcat.txt - [Click for QR Code] (338.3 KB, 66 views)
 
 
14th November 2014, 06:48 PM |#52  
doctor_droid's Avatar
OP Senior Member
Flag Indore
Thanks Meter: 1,950
 
More
Quote:
Originally Posted by elartista3390

anybody help me?

Details mate
1st April 2015, 07:23 AM |#53  
Junior Member
Thanks Meter: 0
 
More
HELP
I am desperate to begin in understanding the adb. but as I put in the start server command the only thing it gives me is a port number and failure. can someone help pls. I have all the right drivers I have tried in download and recovery but neither of them give a different result only 5307 failure port adb did not ack daemon fail

---------- Post added at 05:23 AM ---------- Previous post was at 04:50 AM ----------

can someone pls tell me how to make the annoying popup stuff on the side of my screen while im trying to scroll the page go away lol
23rd June 2015, 10:12 PM |#54  
Junior Member
Thanks Meter: 4
 
More
I am having trouble getting "adb logcat" to work, after following all instructions, i run adb logcat in command prompt and it just sits there like it's working, but nothing ever happens. any ideas? any help is very much appreciated! thank you for the tut as well!

*Edit* I have a Sprint Galaxy Note 4 running Sprint Hybrid X series 2.3 Deodexed
27th November 2015, 02:30 AM |#55  
Junior Member
Thanks Meter: 0
 
More
Quote:
Originally Posted by doctor_droid

The purpose of this thread is to make u familiar with the ADB (Android Debug Bridge)
It is a tool that lets u communicate with ur android device that is connected to ur pc.

In the first tutorial we shall learn some basics of adb and then advance to use pro commands in further tutorials.

Requirements

1. Adb link - http://developer.android.com/sdk/index.html
Direct link for windows 32bit
http://dl.google.com/android/adt/adt...6-20130917.zip

Direct link for windows 64bit
http://dl.google.com/android/adt/adt...4-20130917.zip

(Link may be removed after some time by google itself)

2. Windows based pc ( yes we will use windows and not linux as i dun want to communicate anything that i havent tried by myself )


1. Download and extract the zip in any drive , lets say C:

2. Go to C:/adb/sdk/platform-tools and u will something like
Attachment 1937059




3. Now press shift key + right click on mouse/keypad
http://forum.xda-developers.com/atta...1&d=1367732560
select open command window here

then type adb start-server

in order to ensure ur device is connected and recognized by adb , type adb devices , u will get something like this
Attachment 1940190

Now once your adb is setup up, lets play.....

GETTING LOGCAT THROUGH ADB


Easiest of all
just type
adb logcat

u will see entire log ur phone,
use ctrl+c to skip it

To get logcat in a file
type
adb logcat > logcat.txt

u will see a file logcat which will save ur phone's realtime process log.

TO GET A BUGREPORT


type adb bugreport
bt bt bt.. this will show info that wont b readable ..
so type

adb bugreport>result.txt

http://forum.xda-developers.com/atta...3&d=1367737608


USING ADB WITH SUPERUSER PERMISSIONS

for this , u must be rooted

command

adb root
if it is success it will show something like

http://forum.xda-developers.com/atta...1&d=1367740210



INSTALLING AN APP VIA ADB

to install any app, make sure there is no space in the name of the apk...
and u should know its location,

command that u use is adb install

i have installed a game papertoss via this command, if u get success u will get something like this

Attachment 1936893
Attachment 1940189

COPYING A FILE VIA ADB


this is pretty easy

command u use is

adb pull
i have given a example by pulling the framework-res.apk from system/framework folder
Attachment 1940191

the file that u pull, u will see it in the platform -tools folder


PUSHING A FILE INTO YOUR PHONE


very similar to pull, bt this copies file from ur pc to ur android .

command u use is

adb push

For eg,
i have pushed the papertoss.apk file from C:\sanket\apps to sdcard/nimbuzz folder through the command

adb push C:\SANKET\apps\papertoss.apk /sdcard/nimbuzz

if u get success u will see something like this
http://forum.xda-developers.com/atta...1&d=1367739756

this command is very powerful and u can shift an entire video or movie folder via a single command anywhere on ur android


more commands added
thanks to @Guich


Code:
adb remount
This command remount the /system partition in read/write

Code:
adb usb
Restarts the adbd daemon listening on USB

Code:
adb shell
Run remote shell interactively

The command set shall b updated within few days.
Feel free to drop ur comments, corrections, commands.

All commands have been verified by me..
once i learn more, i will share more.
criticism is welcomed if its healthy

Thread material is not copied and will never be.
Thread will be updated with newer and complex commands soon with pics.

For developers, this is just a piece of cake which they can do with their eyes closed
i have made this specially for beginners ( like me )

Man after that tutorial i really feel like sh*t that i was actually scared of manipulating/messing with adb and fastboot hahaha

Cheers mate ! Thanks a bunch
15th December 2015, 10:01 PM |#56  
Junior Member
Thanks Meter: 0
 
More
Hiya, I just wanted to create a backup with ADB, worked fine once before, but now I can't get past the "Now unlock your device and confirm the backup operation." The screen to confirm shows up on my phone (HTC m8, Android 5.0.1, USB Debug activated), but I can't click on "Backup now" (not the exact wording), it will only let me do "Do not create backup", or sometimes I can't press either of them. In the latter case, I need to kill the adb server. This happens both, via USB connection and via Wi-Fi. Any ideas where I'm going wrong?
Thanks,
Veronika
18th January 2016, 11:51 AM |#57  
Junior Member
Thanks Meter: 0
 
More
I could see nothing (next line is empty) when i give "adb devices" command.I am using android 4.4 on radxa rock pro board and ubuntu
3rd July 2016, 02:31 PM |#58  
Junior Member
Thanks Meter: 1
 
More
Quote:
Originally Posted by Satsana

This command remount the /system partition in read/write


Restarts the adbd daemon listening on USB


Run remote shell interactively

The command set shall b updated within few days.
Feel free to drop ur comments, corrections, commands.

All commands have been verified by me..
once i learn more, i will share more.
criticism is welcomed if its healthy

Thread material is not copied and will never be.
Thread will be updated with newer and complex commands soon with pics.

For developers, this is just a piece of cake which they can do with their eyes closed
i have made this specially for beginners ( like me )

Man after that tutorial i really feel like sh*t that i was actually scared of manipulating/messing with adb and fastboot hahaha

Cheers mate ! Thanks a bunch

Hello my login Name is Cokecan42
If anyone one could help me or direct me on how to back up and root my phone . I would greatly appreciate it. I am decent on working with my phone . I work with my computer. I dual booted Linux mint along beside windows 7 so I'm not totally aliterate.
So if anyone could it would be greatly appreciated

Thanks in advance

Cokecan42
The Following User Says Thank You to Cokecan42 For This Useful Post: [ View ] Gift Cokecan42 Ad-Free
3rd July 2016, 05:13 PM |#59  
VogonP0et's Avatar
Senior Member
Flag Shropshire
Thanks Meter: 121
 
More
Quote:
Originally Posted by Cokecan42

Hello my login Name is Cokecan42
If anyone one could help me or direct me on how to back up and root my phone . I would greatly appreciate it. I am decent on working with my phone . I work with my computer. I dual booted Linux mint along beside windows 7 so I'm not totally aliterate.
So if anyone could it would be greatly appreciated

Thanks in advance

Cokecan42

It would help to know what phone you have, as the tools available differ. You're generally better off just installing a custom recovery such as TWRP if it's available.
The Following 2 Users Say Thank You to VogonP0et For This Useful Post: [ View ] Gift VogonP0et Ad-Free
4th July 2016, 07:07 PM |#60  
VogonP0et's Avatar
Senior Member
Flag Shropshire
Thanks Meter: 121
 
More
Deleted
13th July 2016, 05:59 AM |#61  
Senior Member
Flag Cooch Behar
Thanks Meter: 1,182
 
More
Thanks mate for sharing these commands .... here i explored some more commands i hope it will be usefull to someone

- Kill the server if its running
Code:
adb kill-server
- reboots the device, optionally into the bootloader or recovery program
Code:
adb reboot [bootloader|recovery]
- remove this app package from the device remove this app package from the device ('-k' means keep the data and cache directories)
Code:
adb uninstall [-k] <package>
Post Reply Subscribe to Thread

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

Advanced Search
Display Modes