[HOW-TO] Install & Use ADB tool | Android Debug Bridge | Drivers - Videos - Tutorial

Search This thread

lavero.burgos

Senior Member
Mar 5, 2011
2,832
1,390
[HOW-TO] Install & Use ADB tool | Android Debug Bridge | Drivers - Videos - Tutorial

WHAT DO I NEED?

FIRST: You need drivers, you should have them already if you are rooted eather with Indirect or Cfoesch methods.
If you don't have them then download ADB + Fastboot + Drivers.zip [There is NO need to install SDK on Windows]

To install Nook Tablet USB and ADB drivers correctly please watch the following video:
1. Windows
2. Ubuntu Linux

root%20files.JPG


SECOND: In order to use "adb remount" you need to install [App]: ADB Root Hijack [ADB Runs as Root now] by Indirect

LET'S START...

*All the examples refers to /data/app path you can change to /system/app or any other path you need in your NOOK tablet

- Plug your Nook tablet to your computer
- Open a CMD terminal on Windows:
Start>>run>> type cmd>> click OK (WinXP)
Start>> in search box type cmd>> right click Run as Administrator (Win7)
- Once opened type:


*Let's say your adb tools are in C:\nookroot folder
cd C:\nookroot
adb devices (If you get a code of numbers and letter means your device is recognized, if not then something is wrong with your drivers > Troubleshoot)
adb remount (to change from r/o to r/w)
-----------------------------------------------------
Commands to Fix Permissions: (There is no need of this, when you push files it gives right permissions)
adb shell chmod 644 /system/app/appname.apk (for a specific application)
adb shell chmod 644 /data/app/appname.apk
adb shell chmod 644 /system/app/*.apk (for all the applications)
adb shell chmod 644 /data/app/*.apk
-----------------------------------------------------
Commands to Change Owner to Root:
adb shell chown root /system/app/appname.apk
adb1.PNG


Installing an Aplication .apk

Put the .apk file into C:\nookroot folder and type

Code:
adb install [B]appname[/B].apk

adbinstall.PNG


Uninstalling an Aplication

There is an uninstall adb commans that always shows failure!!!
So we are going to use Adb Shell:

Code:
adb shell
# cd data/app
# ls
# rm -r appname.apk
# ls                  (You will not find this application, you just removed it!)
Ctrl+c to exit shell mode

adbuninstall.PNG


Push & Pull commands

Pull:

Code:
adb pull /data/app/appname.apk
adbpull.PNG


If you want to PULL all the files located in a folder then:

Code:
adb pull /data/app test
to pull all the .apk's located /data/app and save them into a folder that it will create in C:\nookroot named test

adbpullmany.PNG


Push:

Code:
adb push appname.apk /data/app
If you want to PUSH all the files located in a folder then:

Code:
adb push test /data/app
to push all the .apk's located in C:\nookroot\test folder to /data/app

adbpushgeneral.PNG


Close ADB

Code:
adb reboot    (to reboot your Nook Tablet)
--------------------------
adb kill-server     (to stop adb server)
exit
 
Last edited:

davidgelb

Member
Jan 1, 2008
28
1
I am trying to create a batch file to run the ADB pull command so I can have my PC task scheduler run an Android backup automatically.

The one thing that is stumping me, though, is how to succesfully have the batch file auto date stamp the folder. I have this:

adb pull /sdcard/ /Galaxy Nexus Auto Backup/sdcard %date:~-10,2%-%date:~-7,2%-%date:~-4,4%/

which displays correctly in the CMD prompt, but doesn't run. It instead brings up the list of commands and switches.

If I use the standard:

adb pull /sdcard/ /sdcard/

it works correctly. Any suggestions on how to get the date stamp idea to work?

Thanks!!!
-David
 
  • Like
Reactions: nathanielhall929

arcsuser

Senior Member
Jul 25, 2012
429
25
Far Far Away
Hello, a link took me here because i want to know how to use "adb".
I've read your instructions on how to use adb and i search it in youtube to see it in action.
Now i want to know the difference of these commands:

adb install

and

adb push

because im confused. but i believe they're both the same,am i right? to install an app.
and same as the adb pull and adb shell? uninstalling the app.

please, correct me if im wrong :)
 

TheBloodEagle27

Senior Member
Jan 19, 2013
106
2
This is a bit confusing... I bricked my Infinity and I need it back ASAP, but whenever I try to push a custom ROM into the SD, it always says "protocol failure", what could this be? I got the adb drivers installed...
 

gnu2me

Member
Jan 26, 2013
14
6
Win 8 Driver Signature Enforcement Fix

Well, this is my first post on xda. BTW I am a noob, regular schlub, loser user but I do try to take xda's "find it before you ask an idiotic question" policy to heart. I was able to find this solution before asking for help and thought i would share it here. All I have done is summarize the original post and updates. I hope y'all find this helpful.

the problem i ran into was the drivers in the attached .zip file could not be installed on a Windows 8 machine. The error was a failure to install b/c of an error in reading the has of one of the catalog files. I found a site that gives you a solution to this error.. Here's a summary:
Go to cmd prompt and enter "| shutdown -o -r -t 0"
  1. Wait for bit...
  2. Click TROUBLESHOOT
  3. Click ADVANCED OPTIONS
  4. Click WINDOWS STARTUP SETTINGS
  5. Click RESTART
The computer will restart and list of options will appear before logging in.
Select the Disable driver signature enforcement option. It was number 7 on the list i got.
To reenable the driver signature enforcement, just restart your computer normally.

Since this is my first post xda won't let me link the source site, so here it is below in case you would like to visit it. All credit goes to this guy.:good:
laslow.net/2012/03/14/disable-driver-signature-enforcement-in-windows-8/​
 

babytech215

Member
Feb 23, 2013
5
0
Can you developers help me please!!

I've been doing just fine with ADB, etc. I have been flashing for a long time and now all of a sudden ADB is not working. I've installed SDK twice, unistalled and installed drivers. Did everything. I get it that this just won't work on Windows 7 so I'm back on XP where I never had a problem and currently am. Yes, debugging is on on the phone too. I'm above the basics. When I plug in an LG it just says sooner ADB (something like that and I know your familiar). When I plug in a Samsung device manager says Samusng Android Composite ADB interface. And when I direct the driver install to winsub inf I always get "the specified location does not contain information about your device". Also ADB devices is not recognizing anything either. I event tried this with the Samsung in download mode.

Thanx
 

lmalinofsky

Member
Jul 15, 2013
10
5
ADB use instructions clearly formatted for referenxce

Hi, this is a post I just hope will be helpful. When I started using ADB I would look at the internal Help and the formatting was so screwed up it was hard to understand. Fighting with this for the umpteenth time last night I got mad, pulled out a code editor (too bad it wasn't emacs because that's probably the way the file was made-- either that or it was created as a man page) and spent a half hour straightening things out. The help is so much more useful now I'm putting it here in the hope it may help you, too. Now let's see if I should have formatted this as Code rather than a Quote to keep lines from breaking, etc.

Android Debug Bridge version 1.0.31

-a - directs adb to listen on all interfaces for a c onnection
-d - directs command to the only connected USB device
returns an error if more than one USB device is present.
-e - directs command to the only running emulator.
returns an error if more than one emulator is r unning.
-s <specific device> - directs command to the device or emulator with the given
serial number or qualifier. Overrides ANDROID_SERIAL environment variable.
-p <product name or path> - simple product name like 'sooner', or a relative/absolute path to a product
out directory like 'out/target/product/sooner'.

If -p is not specified, the ANDROID_PRODUCT_OUT environment variable is used,
which must
be an absolute path.

-H - Name of adb server host (default: localhost)
-P - Port of adb server (default: 5037)
devices [-l] - list all connected devices
('-l' will also list device qualifiers)

connect <host>[:<port>] - connect to a device via TCP/IP
Port 5555 is used by default if no port number is specified.
disconnect [<host>[:<port>]] - disconnect from a TCP/IP device.
Port 5555 is used by default if no port number is specified.
Using this command with no additional arguments
will disconnect from all connected TCP/IP devic es.

device commands:

adb push <local> <remote> - copy file/dir to device
adb pull <remote> [<local>] - copy file/dir from device
adb sync [ <directory> ] - copy host->device only if changed
(-l means list but don't copy)
(see 'adb help all')
adb shell - run remote shell interactively
adb shell <command> - run remote shell command
adb emu <command> - run emulator console command
adb logcat [ <filter-spec> ] - View device log
adb forward --list - list all forward socket connections.
the format is a list of lines with the following format:
<serial> " " <local> " " <remote> "\n"
adb forward <local> <remote> - forward socket connections
forward specs are one of:
tcp:<port>
localabstract:<unix domain socket name>
localreserved:<unix domain socket name>
localfilesystem:<unix domain socket name>
dev:<character device name>
jdwp:<process pid> (remote only) adb forward --no-rebind <local> <remote>
- same as 'adb forward <local> <remote>' but fails

if <local> is already forwarded:

adb forward --remove <local> - remove a specific forward socket connection
adb forward --remove-all - remove all forward socket connections
adb jdwp - list PIDs of processes hosting a JDWP transport
adb install [-l] [-r] [-s] [--algo <algorithm name> --key <hex-encoded key> -- iv <hex-encoded i
<file>
- push this package file to the device and instal l it











('-l' means forward-lock the app)
('-r' means reinstall the app, keeping its data )
('-s' means install on SD card instead of inter nal storage)

('--algo', '--key', and '--iv' mean the file is encrypted already)

adb uninstall [-k] <package> - remove this app package from the device

('-k' means keep the data and cache directories )
adb bugreport - return all information from the device
that should be included in a bug report.

adb backup [-f <file>] [-apk|-noapk] [-obb|-noobb] [-shared|-noshared] [-all] [-system|-nosystem]
[<packages...>]
- write an archive of the device's data to <file> .
If no -f option is supplied then the data is written to "backup.ab" in the current directory.
(-apk|-noapk enable/disable backup of the .apks themselves
in the archive; the default is noapk.)

(-obb|-noobb enable/disable backup of any installed apk expansion
(aka .obb) files associated with each application; the default
is noobb.)
(-shared|-noshared enable/disable backup of the
device's
shared storage / SD card contents; the default is noshared.)

(-all means to back up all installed applications)

(-system|-nosystem toggles whether -all automatically includes
system applications; the default is to include system apps)

(<packages...> is the list of applications to be backed up. If
the -all or -shared flags are passed, then the package
list is optional. Applications explicitly given on the
command line will be included even if -nosystem would
ordinarily cause them to be omitted.)

adb restore <file> - restore device contents from the <file> backup archive

adb help - show this help message

adb version - show version num

scripting:

adb wait-for-device - block until device is online
adb start-server - ensure that there is a server running
adb kill-server - kill the server if it is running
adb get-state - prints: offline | bootloader | device
adb get-serialno - prints: <serial-number>
adb get-devpath - prints: <device-path>
adb status-window - continuously print device status for a specifie d device
adb remount - remounts the /system partition on the device re ad-write

adb reboot [bootloader|recovery] - reboots the device, optionally into the bootloader or
recovery program

adb reboot-bootloader - reboots the device into the bootloader
adb root - restarts the adbd daemon with root permissions
adb usb - restarts the adbd daemon listening on USB
adb tcpip <port> - restarts the adbd daemon listening on TCP on th e specified
port networking:

adb ppp <tty> [parameters] - Run PPP over USB. Note: you should not automatically
start a PPP connection.
---<tty> refers to the tty for PPP stream. Eg. dev:/dev/omap_csmi_tty1 [parameters]
- Eg. defaultroute debug dump local notty usepeerdns

adb sync notes:

adb sync [ <directory> ] <localdir> can be interpreted in several ways:
- If <directory> is not specified, both /system and /data partitions will be updated.
- If it is "system" or "data", only the corresponding partition is updated.

environmental variables:

ADB_TRACE - Print debug information. A comma separated list of the following values
1 or all, adb, sockets, packets, rwx, usb, sync, sysdeps, transport, jdwp

ANDROID_SERIAL - The serial number to connect to. -s takes priority over this if given.
ANDROID_LOG_TAGS - When used with the logcat option, only these debug tags are printed.

Best wishes,

Leon Malinofsky
 

sher_dil

Member
Jan 22, 2014
38
0
WHAT DO I NEED?

FIRST: You need drivers, you should have them already if you are rooted eather with Indirect or Cfoesch methods.
If you don't have them then download ADB + Fastboot + Drivers.zip [There is NO need to install SDK on Windows]

To install Nook Tablet USB and ADB drivers correctly please watch the following video:
1. Windows
2. Ubuntu Linux

root%20files.JPG


SECOND: In order to use "adb remount" you need to install [App]: ADB Root Hijack [ADB Runs as Root now] by Indirect

LET'S START...

*All the examples refers to /data/app path you can change to /system/app or any other path you need in your NOOK tablet

- Plug your Nook tablet to your computer
- Open a CMD terminal on Windows:
Start>>run>> type cmd>> click OK (WinXP)
Start>> in search box type cmd>> right click Run as Administrator (Win7)
- Once opened type:


*Let's say your adb tools are in C:\nookroot folder

adb1.PNG


Installing an Aplication .apk

Put the .apk file into C:\nookroot folder and type

Code:
adb install [B]appname[/B].apk

adbinstall.PNG


Uninstalling an Aplication

There is an uninstall adb commans that always shows failure!!!
So we are going to use Adb Shell:

Code:
adb shell
# cd data/app
# ls
# rm -r appname.apk
# ls                  (You will not find this application, you just removed it!)
Ctrl+c to exit shell mode

adbuninstall.PNG


Push & Pull commands

Pull:

Code:
adb pull /data/app/appname.apk
adbpull.PNG


If you want to PULL all the files located in a folder then:

Code:
adb pull /data/app test
to pull all the .apk's located /data/app and save them into a folder that it will create in C:\nookroot named test

adbpullmany.PNG


Push:

Code:
adb push appname.apk /data/app
If you want to PUSH all the files located in a folder then:

Code:
adb push test /data/app
to push all the .apk's located in C:\nookroot\test folder to /data/app

adbpushgeneral.PNG


Close ADB

Code:
adb reboot    (to reboot your Nook Tablet)
--------------------------
adb kill-server     (to stop adb server)
exit



When I run "adb devices" in command prompt, it says "list of devices attached" then a blank line.

The drivers for my tablet are fine because in 'My computer' my drive is listed as 'Xolo TW800' along with other HDD drives, without me installing any drivers for the tablet.

What to do?
 

Top Liked Posts

  • There are no posts matching your filters.
  • 49
    [HOW-TO] Install & Use ADB tool | Android Debug Bridge | Drivers - Videos - Tutorial

    WHAT DO I NEED?

    FIRST: You need drivers, you should have them already if you are rooted eather with Indirect or Cfoesch methods.
    If you don't have them then download ADB + Fastboot + Drivers.zip [There is NO need to install SDK on Windows]

    To install Nook Tablet USB and ADB drivers correctly please watch the following video:
    1. Windows
    2. Ubuntu Linux

    root%20files.JPG


    SECOND: In order to use "adb remount" you need to install [App]: ADB Root Hijack [ADB Runs as Root now] by Indirect

    LET'S START...

    *All the examples refers to /data/app path you can change to /system/app or any other path you need in your NOOK tablet

    - Plug your Nook tablet to your computer
    - Open a CMD terminal on Windows:
    Start>>run>> type cmd>> click OK (WinXP)
    Start>> in search box type cmd>> right click Run as Administrator (Win7)
    - Once opened type:


    *Let's say your adb tools are in C:\nookroot folder
    cd C:\nookroot
    adb devices (If you get a code of numbers and letter means your device is recognized, if not then something is wrong with your drivers > Troubleshoot)
    adb remount (to change from r/o to r/w)
    -----------------------------------------------------
    Commands to Fix Permissions: (There is no need of this, when you push files it gives right permissions)
    adb shell chmod 644 /system/app/appname.apk (for a specific application)
    adb shell chmod 644 /data/app/appname.apk
    adb shell chmod 644 /system/app/*.apk (for all the applications)
    adb shell chmod 644 /data/app/*.apk
    -----------------------------------------------------
    Commands to Change Owner to Root:
    adb shell chown root /system/app/appname.apk
    adb1.PNG


    Installing an Aplication .apk

    Put the .apk file into C:\nookroot folder and type

    Code:
    adb install [B]appname[/B].apk

    adbinstall.PNG


    Uninstalling an Aplication

    There is an uninstall adb commans that always shows failure!!!
    So we are going to use Adb Shell:

    Code:
    adb shell
    # cd data/app
    # ls
    # rm -r appname.apk
    # ls                  (You will not find this application, you just removed it!)
    Ctrl+c to exit shell mode

    adbuninstall.PNG


    Push & Pull commands

    Pull:

    Code:
    adb pull /data/app/appname.apk
    adbpull.PNG


    If you want to PULL all the files located in a folder then:

    Code:
    adb pull /data/app test
    to pull all the .apk's located /data/app and save them into a folder that it will create in C:\nookroot named test

    adbpullmany.PNG


    Push:

    Code:
    adb push appname.apk /data/app
    If you want to PUSH all the files located in a folder then:

    Code:
    adb push test /data/app
    to push all the .apk's located in C:\nookroot\test folder to /data/app

    adbpushgeneral.PNG


    Close ADB

    Code:
    adb reboot    (to reboot your Nook Tablet)
    --------------------------
    adb kill-server     (to stop adb server)
    exit
    2
    Win 8 Driver Signature Enforcement Fix

    Well, this is my first post on xda. BTW I am a noob, regular schlub, loser user but I do try to take xda's "find it before you ask an idiotic question" policy to heart. I was able to find this solution before asking for help and thought i would share it here. All I have done is summarize the original post and updates. I hope y'all find this helpful.

    the problem i ran into was the drivers in the attached .zip file could not be installed on a Windows 8 machine. The error was a failure to install b/c of an error in reading the has of one of the catalog files. I found a site that gives you a solution to this error.. Here's a summary:
    Go to cmd prompt and enter "| shutdown -o -r -t 0"
    1. Wait for bit...
    2. Click TROUBLESHOOT
    3. Click ADVANCED OPTIONS
    4. Click WINDOWS STARTUP SETTINGS
    5. Click RESTART
    The computer will restart and list of options will appear before logging in.
    Select the Disable driver signature enforcement option. It was number 7 on the list i got.
    To reenable the driver signature enforcement, just restart your computer normally.

    Since this is my first post xda won't let me link the source site, so here it is below in case you would like to visit it. All credit goes to this guy.:good:
    laslow.net/2012/03/14/disable-driver-signature-enforcement-in-windows-8/​
    1
    good! is there a menu that contains full adb commands?

    type adb help to get the full list of them
    1
    I am trying to create a batch file to run the ADB pull command so I can have my PC task scheduler run an Android backup automatically.

    The one thing that is stumping me, though, is how to succesfully have the batch file auto date stamp the folder. I have this:

    adb pull /sdcard/ /Galaxy Nexus Auto Backup/sdcard %date:~-10,2%-%date:~-7,2%-%date:~-4,4%/

    which displays correctly in the CMD prompt, but doesn't run. It instead brings up the list of commands and switches.

    If I use the standard:

    adb pull /sdcard/ /sdcard/

    it works correctly. Any suggestions on how to get the date stamp idea to work?

    Thanks!!!
    -David
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone