Go Back   Android Forums > Android Discussion > Android Lounge
Android Lounge A place for general Android discussion and questions.

Get excited for the Samsung Galaxy S5! Find everything you need and discuss it in our Galaxy S5 Forum!

test: Reply
 
LinkBack Thread Tools
Old July 19th, 2009, 01:11 PM   #1 (permalink)
Premium Member
Thread Author (OP)
 
justjimjpc's Avatar
 
Join Date: Nov 2008
Location: Washington DC, USA
Posts: 10,560
 
Device(s): G1(2ea) 1 rooted, MT3G v1.0, Samsung Vibrant, Samsung III, LG SLATE Tablet
Carrier: T-Mobile

Thanks: 5
Thanked 220 Times in 104 Posts
Default Windows Driver Install for using ADB & Fastboot

You will need to download the SDK which will have the files you need ...
The windows drivers are included ... just be sure you are getting the Windows version of the SDK X86 or XP ... Vista drivers may be different ... ??? not sure

1. SDK 1.5 (currently the latest) ..
-- there are two tools in here that you well need ...
-- a.) ADB.exe
-- b.) FastBoot.exe)
-- link for the SDK 1.5 is :
Download the Android SDK | Android Developers
2. After downloading the sdk package unzip its contents into a directory
-- (easy to remember and short), I suggest: C:\SDK_15

3.) For Window path environmental you want to include the path to the
-- directory C:\SDK_15\tools
--- On Windows, right-click on My Computer, and select Properties.
Under the Advanced tab, hit the Environment Variables button, and in the dialog that comes up, double-click on Path (under System Variables). Add the full path to the tools/ directory to the path.

4.) Now you need to get the Windows drivers installed so windows can communicate with the G1 via ADB & FastBoot.

FOR ADB : ================================================== ============
--- You want to hook you phone to the PC with the USB cable. DO NOT Enable USB access to the SDCard ... like you might usually do ... Windows will find a report finding new hardware... and will popup the "Found New Hardware Wizard" .
--- You will NOT use AUTO but click on "Install from a list or specific location(Advanced)
--- Then ... Click : Next >
--- On the next Screen Click on the box "Include this location in the Search;" and type in the following path ... C:\SDK\SDK_15\usb_driver\x86 (for XP) and not (AMD64) (this assumes you used the same directory structure settings that I recommended ... if you didn't Shame Upon YOU!! then adjust your entry accordingly ...
Click NEXT ... and
--- Patiently wait while Windows install the Windows drivers for the USB/ADB hardware interface ... You should receive a successful Completion and then click FINISH

--- You are now ready to have you G1 recognized when you connect it with the USB Cable ..
--- Should you fail the install then go into the DeviceManager for the PC and Delete the incomplete install driver ... and try again ..
--- TEST IT OUT... Click on the Windows Start button || then select RUN from the optionsIn input box type CMD (enter or OK).
The CMD.exe Command Line Interpreter box will open ...
with the phone still connect .... Type adb devices .... If all is good then ADB will
return the Serial Number of the Connected Phone ... CONGRATS so far !!!
================================================== ========

FOR FASTBOOT : ================================================== ========
With Phone OFF Press Camera+Power this will enable the FastBoot Utility.
You should see Three (3) Green Androids on Skate Boards ...
Press return a few time ... and in the middle of the White Screen you should
see Yellow Band with FASTBOOT in Blue center in the screen ..
--- You want to hook you phone to the PC with the USB cable. DO NOT Enable USB access to the SDCard ... like you might usually do ... Windows will find a report finding new hardware... and will popup the "Found New Hardware Wizard" .
--- You will NOT use AUTO but click on "Install from a list or specific location(Advanced)
--- Then ... Click : Next >
--- On the next Screen Click on the box "Include this location in the Search;" and type in the following path ... C:\SDK\SDK_15\usb_driver\x86 (for XP) and not (AMD64) (this assumes you used the same directory structure settings that I recommended ... if you didn't Shame Upon YOU!! then adjust your entry accordingly ...
Click NEXT ... and
--- Patiently wait while Windows install the Windows drivers for the USB/ADB hardware interface ... You should receive a successful Completion and then click FINISH
you are now ready to have you G1 recognized when you connect it with the USB Cable ..
--- Should you fail the install then go into the DeviceManager for the PC and Delete the incomplete install driver (IN THE USB AREA) ... and try again ..
--- TEST IT OUT... Click on the Windows Start button || then select RUN from the options
In input box type CMD (enter or OK)
The CMD.exe Command Line Interpreter box will open ...
with the phone still connect (BUT NOT SD MOUNTED) ....
Type Fastboot devices ....
If all is good then FASTBOOT will return the :
(Serial Number fastboot)
of the Connected Phone ... CONGRATS so far !!!

================================================== =====

__________________
Help Us: Submit FAQ's You have answered over and over! Will add them to OUR FAQ LIB. Check out our FAQ's.... Also Check out our Tag Search. \\\ Running 2 G1's & a MT3G, Vibrant(rooted), Galaxy S: <<< OLD New >>> JUST Samsung S3-32GB & LG GSlate Tablet /// Link for --> G1 Dream ROOT GUIDE ///// Link for --> UN-ROOT GUIDE
.
justjimjpc is offline  
Reply With Quote
sponsored links
Old July 19th, 2009, 01:15 PM   #2 (permalink)
Premium Member
Thread Author (OP)
 
justjimjpc's Avatar
 
Join Date: Nov 2008
Location: Washington DC, USA
Posts: 10,560
 
Device(s): G1(2ea) 1 rooted, MT3G v1.0, Samsung Vibrant, Samsung III, LG SLATE Tablet
Carrier: T-Mobile

Thanks: 5
Thanked 220 Times in 104 Posts
Default Namdroid Restore Guide for backups by justjimjpc

JJJ's Guide for Nandroid ... using Windows XP...

NOTE :
Reference knowledge:
NANDROID is included with JesusFreke's testkeys modded recovery image. If you have
a JF ROM then you probably already have this recovery image and NANDROID.
You must have the Engineering SPL or HardSPL to use FASTBOOT.
NOTE: If you get a Red, Green, Blue Screen you have the wrong SPL (bootloader)
You will need : Engineering SPL Available from :
xda-developers
http://www.getyourdroidon.com/root/spl-signed.zip
HardSPL is available at :
xda-developers
Fastboot.exe and AdbWinApi.dll are found in the "tools" folder of the SDK files.
FASTBOOT requires drivers to be loaded into your Windows Operating System.
These drivers are in "usb_driver" folder of the SDK files.

Ok so you want to restore you G1 to a previous build ... Why maybe you
didn't like the last build you tried ... or worse yet your "friend" gives
you a build that "Bricks" your baby !!! (this happened to me ...it sucks)

I have a rooted phone and have made many Nandroid backups ... hoping never
to need them .... and not knowing how to even use them. Until that day when
a friend gave me a new build to try ... oooops bad news !!!
Bricked my Phone and it was stuck on the "ANDROID" splash screen ...
(later found out not a total Brick, but what is know as a Boot-Loop !!)
still not what you want to see .... but dont panic ... I sorta did !!

I had to pull the battery to try to recover ... never having been in this
scary position .... so where did I start ...?

Well, I had done two kinds of backup ...
1.) First was the App "MyBackup Pro" (both all programs and all data)
2.) Being Rooted .. I did a recovery boot Pressing the Home+power keys
until I get into the recovery menu ... There I press Alt-B which makes
images of the phone and puts them on the /sdcard/Nandroid directory on
the SDCard. After the backup is complete then reboot press the
Home+Back keys on the phone to begin the reboot.

3.) I then recommend running the following SaveImgs.Bat file which you should place in the
SDK Tools directory which you will build later.

Contents of the SaveImgs.bat File :
rem ============================ SaveImgs.bat ==========================================
rem .
rem Written by justjimjpc@gmail.com
rem 5/28/09
rem .
echo off
cls

:gsn
cls
adb ls /sdcard/nandroid
echo The listed device SERIAL NUMBER above is the directory of your Nandroid Backups ... (i.e. like HT842gz09918)
set INPUT=
set /P INPUT=Type Serial Number: %=%
rem goto GSN
set SN=%INPUT%

set YN=
echo You entered %SN% as the phone's Serial Number .... Is this Correct (Y/N)
set INPUT=
set /P INPUT=Enter Y or N : %=%
set YN=%INPUT%
echo You entered %YN% as your answer
if "%YN%"=="n" goto gsn
if "%YN%"=="N" goto gsn

:LstBKups

cls
Echo .................................................. .....................
echo Listing the Backup Directories on your SD Card for Nandroid Backups ...
Echo .................................................. .....................

adb ls /sdcard/nandroid/%SN%/
Echo .................................................. .....................
echo ABOVE is the Listing the Nandroid Backup Images Folders Data-Time ...
echo Input the Backup you want to save to the PC (i.e. like 20090525-0707)
Echo .................................................. .....................
set INPUT=
set /P INPUT=Type input: %=%
echo Your input was: %INPUT%
set BKUPDIR=%INPUT%

set YN=
echo You entered %BKUPDIR% as the Backup Directory .... Is this Correct (Y/N)
set INPUT=
set /P INPUT=Enter Y or N : %=%
set YN=%INPUT%
echo You entered %YN% as your answer
if "%YN%"=="n" goto LstBKups
if "%YN%"=="N" goto LstBKups
Echo .................................................. .....................
echo this is command now ... /sdcard/nandroid/%SN%/%BKUPDIR%/
echo this is the Backup set of images that will be saved to your PC from the Phone ...
Echo .................................................. .....................
rem pause
cls
rem if not exists "c:\SDK_15\NandroidImages" then md "c:\SDK_15\NandroidImages"
adb pull /sdcard/nandroid/%SN%/%BKUPDIR%/ c:\SDK_15\NandroidImages
rem ============================ end of SaveImgs.bat ===========================================

IMPORTANT: You should run the above Batch file backups often --- As you make system changes, Add programs, etc.

Next what you should/must have prepared ahead of time :
1. SDK 1.5 (currently the latest) ..
-- there are two tools in here that you well need ...
-- a.) ADB.exe
-- b.) FastBoot.exe)
-- link for the SDK 1.5 is :
Download the Android SDK | Android Developers

2. After downloading the sdk package unzip its contents into a directory
-- (easy to remember and short), I suggest: C:\SDK_15

3.) For Window path environmental you want to include the path to the
-- directory C:\SDK_15\tools
--- On Windows, right-click on My Computer, and select Properties.
Under the Advanced tab, hit the Environment Variables button,
and in the dialog that comes up, double-click on Path (under
System Variables). Add the full path to the tools/ directory
to the path.

4.) Now you need to get the Windows drivers installed so windows can communicate with the G1
via ADB & FastBoot.

FOR ADB : ================================================== =============================
--- You want to hook you phone to the PC with the USB cable. DO NOT Enable USB access to
the SDCard ... like you might usually do ... Windows will find a report finding new
hardware... and will popup the "Found New Hardware Wizard" .
--- You will NOT use AUTO but click on "Install from a list or specific location(Advanced)
--- Then ... Click : Next >
--- On the next Screen Click on the box "Include this location in the Search;" and type
in the following path ... C:\SDK\SDK_15\usb_driver\x86 (for XP) and not (AMD64)
(this assumes you used the same directory structure settings that I recommended ...
if you didn't Shame Upon YOU!! then adjust your entry accordingly ...
Click NEXT ... and
--- Patiently wait while Windows install the Windows drivers for the USB/ADB
hardware interface ... You should receive a successful Completion and then click FINISH
you are now ready to have you G1 recognized when you connect it with the USB Cable ..

--- Should you fail the install then go into the DeviceManager for the PC and Delete the
incomplete install driver ... and try again ..

--- TEST IT OUT... Click on the Windows Start button || then select RUN from the options
In input box type CMD (enter or OK)
The CMD.exe Command Line Interpreter box will open ...
with the phone still connect .... Type adb devices .... If all is good then ADB will
return the Serial Number of the Connected Phone ... CONGRATS so far !!!
================================================== ====

FOR FASTBOOT : ========================================
With Phone OFF Press Camera+Power this will enable the FastBoot Utility.
You should see Three (3) Green Androids on Skate Boards ...
Press return a few time ... and in the middle of the White Screen you should
see Yellow Band with FASTBOOT in Blue center in the screen ..
--- You want to hook you phone to the PC with the USB cable. DO NOT Enable USB access to
the SDCard ... like you might usually do ... Windows will find a report finding new
hardware... and will popup the "Found New Hardware Wizard" .
--- You will NOT use AUTO but click on "Install from a list or specific location(Advanced)
--- Then ... Click : Next >
--- On the next Screen Click on the box "Include this location in the Search;" and type
in the following path ... C:\SDK\SDK_15\usb_driver\x86 (for XP) and not (AMD64)
(this assumes you used the same directory structure settings that I recommended ...
if you didn't Shame Upon YOU!! then adjust your entry accordingly ...
Click NEXT ... and
--- Patiently wait while Windows install the Windows drivers for the USB/ADB
hardware interface ... You should receive a successful Completion and then click FINISH
you are now ready to have you G1 recognized when you connect it with the USB Cable ..

--- Should you fail the install then go into the DeviceManager for the PC and Delete the
incomplete install driver (IN THE USB AREA) ... and try again ..

--- TEST IT OUT... Click on the Windows Start button || then select RUN from the options
In input box type CMD (enter or OK)
The CMD.exe Command Line Interpreter box will open ...
with the phone still connect (BUT NOT SD MOUNTED) ....
Type Fastboot devices ....
If all is good then FASTBOOT will return the :
(Serial Number fastboot)
of the Connected Phone ... CONGRATS so far !!!
================================================


5.) Make a directory to copy the essential images from the nandroid
backup into for ease of recovery ... We will use this Directory
in a batch file for ease of repeating this process over and over
again ,,,(should you need to do this again)
so Create a folder C:\SDK\SDK_15\Tools\NandroidImages

A.) --- we will need to copy the Backed Up image files from the phone's SDCard
the typical directory for those backup images is :
--- /sdcard/Nandroid/(phoneSerialNumber)/(backupDateStamp)
(i.e.) /sdcard/Nandroid/HT842GZ09918/20090525-1857
--- the 4 image Files in the above will be the following...
--- recovery.img, boot.img, system.img, data.img

B.) I have incorporated the option to let a batch file (SaveImgs.bat) do this coping for you...

6.) Now lets look at the steps for restore now.
From the Phone-connected-to-YourPC...
--- Turn phone off and hook it via the USB cable ports to your PC ...
--- Press CAMERA+Power
--- You should see three FAST Boot Androids on Skate boards...
NOTE: If you get a Red, Green, Blue Screen you have the wrong SPL (bootloader)
You will need : Engineering SPL Available from :
xda-developers
Or:

--- On the PC click the Start button (bottomleft) ...

--- Click on Run
--- in the input box type CMD and enter or click OK ( this starts the Command
Line Processor.)
--- type fastboot devices (this returns the Phone Serial Number if the phone is Attached)
rem ??? --- type adb remount ... not sure exactly what the remount does ????

--- type FstBootNandroid (to flash the images you save to the phone

copy the following text into a txt file called FstBootNandroid.bat
rem =========== FstBootNandroid.bat ====================
rem .
rem Written by justjimjpc@gmail.com
rem 5/28/09
rem .
echo off
:BEGIN
ECHO.
:: Erase existing boot image
ECHO * Erasing existing boot image
IF EXIST boot.img (fastboot erase boot) else (
(ECHO Backup boot.img image not found in current directory. Bad idea to continue script. No erasing has taken place. ABORT!)
(GOTO :END)
)
ECHO.

:: Erase existing system, userdata, and cache images
ECHO * Erasing existing system, userdata, and cache images
IF EXIST system.img (fastboot erase system -w ) else (
(ECHO Backup system.img image not found in current directory. Bad idea to continue script. No erasing has taken place. ABORT!)
(GOTO :END)
)
ECHO.

:: Flash boot NANDROID backup
ECHO * Flashing boot NANDROID backup
pause
fastboot flash boot /SDK_15/NandroidImages/boot.img
ECHO.

:: Flash system NANDROID backup
ECHO Flashing system NANDROID backup
pause
fastboot flash system /SDK_15/NandroidImages/system.img
ECHO.

:: Flash userdata NANDROID backup
ECHO * Flashing userdata NANDROID backup
pause
fastboot flash userdata /SDK_15/NandroidImages/data.img
ECHO.

:: Flash recovery NANDROID backup
ECHO * Flashing recovery NANDROID backup
pause
fastboot flash recovery /SDK_15/NandroidImages/recovery.img
ECHO.

:: Reboot the device
ECHO * Rebooting the device
pause
fastboot reboot
ECHO.

:END
pause

rem === Summary of command run to restore essential elements from the backup ==============
rem fastboot flash boot /SDK_15/NandroidImages/boot.img
rem fastboot flash system /SDK_15/NandroidImages/system.img
rem fastboot flash userdata /SDK_15/NandroidImages/data.img
rem fastboot flash recovery /SDK_15/NandroidImages/recovery.img
rem flashboot reboot
rem ======= End of FstBootNandroid.bat ===================
justjimjpc is offline  
Last edited by justjimjpc; July 19th, 2009 at 01:23 PM.
Reply With Quote
Old December 31st, 2009, 10:08 AM   #3 (permalink)
New Member
 
Join Date: Dec 2009
Posts: 2
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default Use ADB from SPL screen

Hi,

I am stuck at the SPL screen right now, and was wondering if there was a way to connect to the phone through ADB when stuck at the rainbow screen. I figure I can do some troubleshooting if I can access the images, but right now I can do diddly
uries62 is offline  
Reply With Quote
Reply
Tags
adb, fastboot, nandroid, nandroid restore, windows drivers


Go Back   Android Forums > Android Discussion > Android Lounge
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 01:35 PM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.