5,600,919 Members 42,771 Now Online
XDA Developers Android and Mobile Development Forum

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

Tip us?
 
lavero.burgos
Old
(Last edited by lavero.burgos; 8th August 2012 at 08:42 PM.)
#1  
lavero.burgos's Avatar
Senior Member - OP
Thanks Meter 1301
Posts: 2,506
Join Date: Mar 2011
Location: Guayaquil

 
DONATE TO ME
Prompt [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




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


Installing an Aplication .apk

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

Code:
adb install appname.apk



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


Push & Pull commands

Pull:

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


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



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



Close ADB

Code:
adb reboot    (to reboot your Nook Tablet)
--------------------------
adb kill-server     (to stop adb server)
exit
SG Captivate - PAC ROM 4.2.2 | SGS2X - CM10.1 4.2.2 | NOOK Tablet - CM10.1 4.2.2 |

If i helped you please hit
button -
Your files everywhere! Get dropbox 2GB+250mb free: http://db.tt/9DHo4Gi

VIDEO TUTORIALS
My XDA FTP Folder ~ GDrive Folder ~ My XDA Threads
The Following 44 Users Say Thank You to lavero.burgos For This Useful Post: [ Click to Expand ]
 
ms2003
Old
#2  
Senior Member
Thanks Meter 18
Posts: 121
Join Date: Jan 2010
Location: ShangHai
good! is there a menu that contains full adb commands?
 
tmjohnsonfse
Old
#3  
tmjohnsonfse's Avatar
Senior Member
Thanks Meter 147
Posts: 351
Join Date: Dec 2011
Location: Dallas
Nicely done. This is the best write up of how to use basic adb commands I have seen. Thanks for posting..
 
code || die
Old
#4  
Junior Member
Thanks Meter 2
Posts: 4
Join Date: Feb 2012
Quote:
Originally Posted by ms2003 View Post
good! is there a menu that contains full adb commands?
type adb help to get the full list of them
The Following User Says Thank You to code || die For This Useful Post: [ Click to Expand ]
 
GuyInDogSuit
Old
(Last edited by GuyInDogSuit; 10th April 2012 at 12:50 PM.)
#5  
GuyInDogSuit's Avatar
Senior Member
Thanks Meter 361
Posts: 2,047
Join Date: Jan 2009
Location: Orangevale

 
DONATE TO ME
Where's the troubleshooting FAQ? My Nook shows up as an Android phone in Device Manager, and adb doesn't list it.

Nevermind, got the drivers installed right. Stupid Windows.
"We are all searching for someone whose demons play well with ours."

Current Device(s):

HTC One (m7) with AICP KK 4.4.2.
NVIDIA Shield with Stock KitKat (Android 4.4.2 update 69).

[HTC One M7] Newest Firmware 4.19.401.11

ParanoidAndroid GApps
 
lavero.burgos
Old
#6  
lavero.burgos's Avatar
Senior Member - OP
Thanks Meter 1301
Posts: 2,506
Join Date: Mar 2011
Location: Guayaquil

 
DONATE TO ME
Default Update april/10!!!

Added video to install SDK and ADB tools in Ubuntu Linux

~ Veronica
SG Captivate - PAC ROM 4.2.2 | SGS2X - CM10.1 4.2.2 | NOOK Tablet - CM10.1 4.2.2 |

If i helped you please hit
button -
Your files everywhere! Get dropbox 2GB+250mb free: http://db.tt/9DHo4Gi

VIDEO TUTORIALS
My XDA FTP Folder ~ GDrive Folder ~ My XDA Threads
 
coolfreebies
Old
#7  
coolfreebies's Avatar
Senior Member
Thanks Meter 7
Posts: 161
Join Date: Mar 2009
How do you change the name of a file??

Thank you

coolfreebies
 
lavero.burgos
Old
#8  
lavero.burgos's Avatar
Senior Member - OP
Thanks Meter 1301
Posts: 2,506
Join Date: Mar 2011
Location: Guayaquil

 
DONATE TO ME
Quote:
Originally Posted by coolfreebies View Post
How do you change the name of a file??

Thank you

coolfreebies
If you refer to the .ini file ln windows, right click then edit. If on Ubunto, right click then open with the a text editor (i dont remember the name - just woke up lol).

~ V

Sent from my Nook Tablet using xda premium
SG Captivate - PAC ROM 4.2.2 | SGS2X - CM10.1 4.2.2 | NOOK Tablet - CM10.1 4.2.2 |

If i helped you please hit
button -
Your files everywhere! Get dropbox 2GB+250mb free: http://db.tt/9DHo4Gi

VIDEO TUTORIALS
My XDA FTP Folder ~ GDrive Folder ~ My XDA Threads
 
jbl0ggs
Old
#9  
Member
Thanks Meter 3
Posts: 51
Join Date: Dec 2011
Excellent. This will come in handy once I get time to start rooting the NT. Thanks
 
davidgelb
Old
#10  
Junior Member
Thanks Meter 1
Posts: 28
Join Date: Jan 2008
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

The Following User Says Thank You to davidgelb For This Useful Post: [ Click to Expand ]
Tags
adb, shell, tools
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes