Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

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

OP lavero.burgos

1st February 2012, 07:12 AM   |  #1  
lavero.burgos's Avatar
OP Senior Member
Flag Guayaquil
Thanks Meter: 1,320
 
2,518 posts
Join Date:Joined: Mar 2011
Donate to Me
More
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
Last edited by lavero.burgos; 8th August 2012 at 09:42 PM.
The Following 46 Users Say Thank You to lavero.burgos For This Useful Post: [ View ]
29th February 2012, 01:51 AM   |  #2  
Senior Member
Flag ShangHai
Thanks Meter: 18
 
121 posts
Join Date:Joined: Jan 2010
good! is there a menu that contains full adb commands?
2nd March 2012, 06:07 PM   |  #3  
tmjohnsonfse's Avatar
Senior Member
Flag Dallas
Thanks Meter: 147
 
351 posts
Join Date:Joined: Dec 2011
Nicely done. This is the best write up of how to use basic adb commands I have seen. Thanks for posting..
2nd March 2012, 06:50 PM   |  #4  
Junior Member
Thanks Meter: 2
 
4 posts
Join Date:Joined: Feb 2012
Quote:
Originally Posted by ms2003

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: [ View ]
10th April 2012, 08:27 AM   |  #5  
GuyInDogSuit's Avatar
Senior Member
Flag Orangevale, CA
Thanks Meter: 537
 
2,748 posts
Join Date:Joined: Jan 2009
Donate to Me
More
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.
Last edited by GuyInDogSuit; 10th April 2012 at 01:50 PM.
10th April 2012, 09:41 PM   |  #6  
lavero.burgos's Avatar
OP Senior Member
Flag Guayaquil
Thanks Meter: 1,320
 
2,518 posts
Join Date:Joined: Mar 2011
Donate to Me
More
Update april/10!!!
Added video to install SDK and ADB tools in Ubuntu Linux

~ Veronica
21st April 2012, 05:57 PM   |  #7  
coolfreebies's Avatar
Senior Member
Thanks Meter: 7
 
162 posts
Join Date:Joined: Mar 2009
How do you change the name of a file??

Thank you

coolfreebies
21st April 2012, 07:00 PM   |  #8  
lavero.burgos's Avatar
OP Senior Member
Flag Guayaquil
Thanks Meter: 1,320
 
2,518 posts
Join Date:Joined: Mar 2011
Donate to Me
More
Quote:
Originally Posted by coolfreebies

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
10th May 2012, 08:40 PM   |  #9  
Member
Thanks Meter: 3
 
53 posts
Join Date:Joined: Dec 2011
Excellent. This will come in handy once I get time to start rooting the NT. Thanks
1st October 2012, 10:23 PM   |  #10  
Junior Member
Thanks Meter: 1
 
28 posts
Join Date:Joined: 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: [ View ]
Post Reply Subscribe to Thread

Tags
adb, shell, tools
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes