Anda di halaman 1dari 14

Things you need: Android SDK - Download Winrar - Download (32bit) Download (64bit) Windows PC USB Cable A Rooted

HTC Dream (Google G1) -------------------------------------------------------------------------Setting up the Android SDK Download the file from above Unzip to your desktop Take the "android-sdk-windows" folder and move it to the root of your hard drive (C:\) Right click on My Computer and click properties Select the Advanced Tab or Advanced System Setting (Vista/Windows 7) Select Environment Variables... Press New For Variable Name type: adb For Variable Value type: C:\android-sdk-windows\tools Now, [Get new sdk (1.5r3) to work] 1. Run SDK Setup.exe 2. If it gives you an error go to settings and click on "Force http//....." 3. Select all options and let it download and install If you cant get the setup to work, Download the USB-DRIVERS folder - HERE (Windows XP/Vista/Windows 7) -------------------------------------------------------------------------Preparing your phone for ADB Go to Settings on your phone Select Applications Select Development Make sure 'USB Debugging' is checked -------------------------------------------------------------------------Installing Drivers

Plug in your phone through USB and DO NOT MOUNT IT!!!!! Your computer should see a new device and try to install Android 1.0 driver (If it doesnt, scroll down to the "Im not getting a notification of Android ADB when i plug in my USB" section) Let it load Once it cant find them select "Install drivers from my pc" The drivers you need are in the Android SDK 1.5r2 folder (C:\android-sdkwindows\usb_driver) Depending on your OS pick x86 or amd64 You ADB Android Device should now be installed! Good Job For Android SDK 1.5r3+ 1. Run SDK Setup.exe 2. If it gives you an error go to settings and click on "Force http//....." 3. Select all options and let it download and install If you cant get the setup to work, Download the USB-DRIVERS folder - HERE (Windows XP/Vista/Windows 7) -------------------------------------------------------------------------Check if your phone is detected by ADB Open up Command Prompt (Go to run, type in cmd, press enter) Type in Code:
cd C:\android-sdk-windows\tools === Press Enter adb devices === You should see your device listed adb shell === you should see # in the next line

Now you are all set to run adb commands Note: for a list of commands type in 'adb' in cmd CONGRATS YOU NOW HAVE ADB FULLY RUNNING! -------------------------------------------------------------------------Droid Explorer by Camalot Droid Explorer is a Windows software that will download, install, and setup the android SDK for you all in under a minute so you are ready to go. I use this on a daily basis. This amazing piece of software has tons of plugins and a built in file explorer for all your files on your phone! All you gotta do is download, install, and go!

Download Droid Explorer - Here Install the program, and let it setup the SDK files for you Connect your phone Enjoy! -------------------------------------------------------------------------"Im not getting a notification of Android ADB when i plug in my USB" Why: Your computer has detected your phone but as a protable device and as a storage device. Fix: This took me a lot of research and time to figure out so this is what your are going to do. First download USBDeview - Here Unzip it Run USBDeview.exe as Administrator You will see all drivers being used on your computer Highlight and Uninstall all drivers with the description have HTC Android (Should be 3 of them) Right Click on the driver and press uninstall Once done, Unplug your phone and plug it back in You should now get the notification of the ADB device Follow the steps above to install the drivers -------------------------------------------------------------------------When Typing just adb in cmd you will get whats called a "usage doc" which gives you a lits of commands that you can use: [GUIDE] ADB, Fastboot, and Nandroid for Noobs

Hello All! After much frustration with setting up ADB i finally got it working. Everyone said its simple and takes minimal knowledge but when things dont work, nothing really worked. Anyways after 2 hours of research trying to get ADB to work i finally got it all working and wanted to share my knowledge to anyone else that needed help. This Guide is for windows only. If you are using Mac OS X please go here: ADB For

Dummies If you are using Linux please go here: [HOW-TO]Set up Android SDK/ADB/Fastboot on Ubuntu Linux

Like My Guide(s)? Donate -------------------------------------------------------------------------Things you need: Android SDK - Download Winrar - Download (32bit) Download (64bit) Windows PC USB Cable A Rooted HTC Dream (Google G1) -------------------------------------------------------------------------Setting up the Android SDK Download the file from above Unzip to your desktop Take the "android-sdk-windows" folder and move it to the root of your hard drive (C:\) Right click on My Computer and click properties Select the Advanced Tab or Advanced System Setting (Vista/Windows 7) Select Environment Variables... Press New For Variable Name type: adb For Variable Value type: C:\android-sdk-windows\tools Now, [Get new sdk (1.5r3) to work] 1. Run SDK Setup.exe 2. If it gives you an error go to settings and click on "Force http//....." 3. Select all options and let it download and install If you cant get the setup to work, Download the USB-DRIVERS folder - HERE (Windows XP/Vista/Windows 7) --------------------------------------------------------------------------

Preparing your phone for ADB Go to Settings on your phone Select Applications Select Development Make sure 'USB Debugging' is checked -------------------------------------------------------------------------Installing Drivers Plug in your phone through USB and DO NOT MOUNT IT!!!!! Your computer should see a new device and try to install Android 1.0 driver (If it doesnt, scroll down to the "Im not getting a notification of Android ADB when i plug in my USB" section) Let it load Once it cant find them select "Install drivers from my pc" The drivers you need are in the Android SDK 1.5r2 folder (C:\android-sdkwindows\usb_driver) Depending on your OS pick x86 or amd64 You ADB Android Device should now be installed! Good Job For Android SDK 1.5r3+ 1. Run SDK Setup.exe 2. If it gives you an error go to settings and click on "Force http//....." 3. Select all options and let it download and install If you cant get the setup to work, Download the USB-DRIVERS folder - HERE (Windows XP/Vista/Windows 7) -------------------------------------------------------------------------Check if your phone is detected by ADB Open up Command Prompt (Go to run, type in cmd, press enter) Type in Code:
cd C:\android-sdk-windows\tools === Press Enter adb devices === You should see your device listed adb shell === you should see # in the next line

Now you are all set to run adb commands Note: for a list of commands type in 'adb' in cmd

CONGRATS YOU NOW HAVE ADB FULLY RUNNING! -------------------------------------------------------------------------Droid Explorer by Camalot Droid Explorer is a Windows software that will download, install, and setup the android SDK for you all in under a minute so you are ready to go. I use this on a daily basis. This amazing piece of software has tons of plugins and a built in file explorer for all your files on your phone! All you gotta do is download, install, and go! Download Droid Explorer - Here Install the program, and let it setup the SDK files for you Connect your phone Enjoy! -------------------------------------------------------------------------"Im not getting a notification of Android ADB when i plug in my USB" Why: Your computer has detected your phone but as a protable device and as a storage device. Fix: This took me a lot of research and time to figure out so this is what your are going to do. First download USBDeview - Here Unzip it Run USBDeview.exe as Administrator You will see all drivers being used on your computer Highlight and Uninstall all drivers with the description have HTC Android (Should be 3 of them) Right Click on the driver and press uninstall Once done, Unplug your phone and plug it back in You should now get the notification of the ADB device Follow the steps above to install the drivers -------------------------------------------------------------------------When Typing just adb in cmd you will get whats called a "usage doc" which gives you a lits of commands that you can use: Code:
-d - directs command to the only connected

USB devic e device is present. -e emulator. emulator is r unning. -s <serial number> emulator w ith -p <product name or path> 'out/target/product/sooner'. ANDROID_PRODUCT_OUT must devices device commands: adb push <local> <remote> adb pull <remote> <local> adb sync [ <directory> ] environment variable is used, which be an absolute path. - list all connected devices returns an error if more than one USB - directs command to the only running returns an error if more than one - directs command to the USB device or the given serial number - simple product name like 'sooner', or a relative/absolute path to a product out directory like If -p is not specified, the

- copy file/dir to device - copy file/dir from device - copy host->device only if changed (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 jdwp - list PIDs of processes hosting a JDWP transport adb install [-l] [-r] <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 ) 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 help adb version - show this help message - show version num

scripting: adb wait-for-device adb start-server adb kill-server adb get-state adb get-serialno adb status-window specifie d device adb remount device re ad-write adb root

block until device is online ensure that there is a server running kill the server if it is running prints: offline | bootloader | device prints: <serial-number> continuously print device status for a

- remounts the /system partition on the - restarts adb with root permissions

networking: adb ppp <tty> [parameters] - Run PPP over USB. Note: you should not automatically start a PDP 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 u pdated. - If it is "system" or "data", only the corresponding partition is updated.

-------------------------------------------------------------------------Commands that you should know adb push - Insert file to phone such as Stock.apk to /data/app_s Code:
adb push <pathtofile.apk> <file system location> - Example: adb push c:\app.apk /data/app

adb pull - Remove file from phone such as Stock.apk from /data/app_s Code:
adb pull <pathtofile.apk> - Example: adb pull /data/app_s/Stock.apk

adb install - Install app to phone Code:


adb install <path to file> - Example: adb install c:/apps/apps2sd.apk

adb uninstall - Uninstall app from phone Code:

adb uninstall <name of application> - Example: adb uninstall linda.apk

For more ADB Commands go - Here ------------------------------------------------------------------------- [GUIDE] Fastboot for Noobs

Fastboot Like My Guide(s)? Donate Things you need: New SPL - Download New Radio - Download Your Current ROM - CyanogenMod 3.6 SD Card Reader Rooted G1 Phone Computer USB Cable Patience --------------------------------------------------------------------------------------Install Radio FIRST Download the Radio Update Rename it to update.zip Remove your SD Card from your phone and place it in your SD Card Reader Put the update.zip at the root of your SDcard (root = not in any folder) Insert your sdcard back into the phone Turn off your phone (Hold power and press Power Off) Hold the Home button and then press the power button (Keep holding power) You will now enter recovery Open up your keyboard and press Alt-S Let it finish the update When done reboot by pressing Home and Back You should be able to access your Home screen (If its stuck on the Google G1 screen dont panic, just remove your battery for now) --------------------------------------------------------------------------------------Installing the new SPL

Note: To update you must have a PVT board. To Check go into fastboot (Power and Camera and check) Take your SD Card out again and plug it into the pc Remove the update.zip that you put in there Download your current Rom or any other ROM that you want. I suggest CyanogenMod 3.6 Download the SPL Update Rename the SPL Update to update.zip Remove your SD Card from your phone and place it in your SD Card Reader Put the update.zip at the root of your SDcard (root = not in any folder) Insert your sdcard back into the phone Turn off your phone (Hold power and press Power Off) or put your battery back in and turn it on Hold the Home button and then press the power button (Keep holding power) You will now enter recovery Open up your keyboard and press Alt-S Let it finish the update Now it will reboot on its own back to recovery Reboot again by pressing Home + Back Your phone will be stuck on the T-Mobile G1 Screen (Again DONT FREAK) Remove the battery from your phone Remove your SD Card and plug it back into your computer Take the ROM that you downloaded and rename it update.zip Remove the update.zip that was on your SD Card and put this new one it Put the battery back into your phone Enter recovery (Home + Power) Press Alt+s to update Let it finish Press Home + Back to reboot Thats it! You now have your new SPL and Radio --------------------------------------------------------------------------------------Getting into Fastboot Turn off your phone Hold the back button and keep holding it while turning your phone back on You should see 3 Android guys on skateboards You should now be in Fastboot mode! --------------------------------------------------------------------------------------Setting up fastboot to work with your computer Plug your phone in to your computer through USB

You should get a popup that your computer found the ADB Device for fastboot When it asks you for drivers, make sure u select the option to locate the drivers from your computer yourself Since you already have your Android 1.5r2 SDK installed, the drivers are in the same place where the ADB drivers are C:\android-sdk-windows-1.5_r2\usb_driver Make sure you choose the correct folder depending on your OS Press ok to install the drivers Fastboot should now be up and running --------------------------------------------------------------------------------------Make sure Fastboot is working Open up Command Prompt type the following Code:
cd C:\android-sdk-windows-1.5_r2\tools === Press Enter fastboot devices === Press enter, your device should be listed fastboot shell === You should see a # in the next line

type fastboot and press enter for general commands --------------------------------------------------------------------------------------When Typing just fastboot in cmd you will get whats called a "usage doc" which gives you a lits of commands that you can use: Code:
usage: fastboot [ <option> ] <command> commands: update <filename> update.zip flashall flash <partition> [ <filename> ] partition erase <partition> getvar <variable> boot <kernel> [ <ramdisk> ] flash:raw boot <kernel> [ <ramdisk> ] devices reboot reboot-bootloader options: -w -s <serial number> reflash device from 'flash boot' + 'flash system' write a file to a flash erase a flash partition display a bootloader variable download and boot kernel create bootimage and flash it list all connected devices reboot device normally reboot device into bootloader erase userdata and cache specify device serial number

-p <product> -c <cmdline>

specify product name override kernel commandline

For more fastboot Commands go - Here -------------------------------------------------------------------------------------- Nandroid Backup and Restore

Whats is a Nandroid Backup? Like My Guide(s)? Donate Nandroid Backup is a tool allowing all rooted g1 users to create a full system backup and restore which, when flashing and testing different roms can be very useful. ---------------------------------------------------------------------------What You Will Need A Rooted G1 phone, I suggest with the latest SPL (Guide above to install latest Radio and SPL) Cyanogen's Pimped Out Recovery Image 1.4 - Download (IMG) An SD Card with 100mb of free space A Computer SD Card reader or USB Cable ---------------------------------------------------------------------------Installing the New Recovery Image Download the recovery image from above, you will want the Download (IMG) download Place the cm-recovery-1.4.img file in the root of your SD Card (Root = not in any folder) Go back to your phone (Dont forget to unmount) Open terminal and type in the following Code:
su (wait for a screen to popup and press "allow") flash_image recovery /sdcard/cm-recovery-1.4.img

If you have problems with a "no space on device" error, try using fastboot and erasing first: Code:
fastboot erase recovery fastboot flash recovery cm-recovery-1.4.img

---------------------------------------------------------------------------Creating a Backup using Nandroid 2.1 Boot up your phone in recovery (Turn off, then turn on while holding Home button) You will now see your new Cyanogen 1.3.1 + JF recovery screen (YAY!!! ) Scroll down to "nandroid v2.1 backup" and press on it to create your Backup Let it work, it should take a minute or so Once its done, your backup is complete and is saved on your sdcard in the "nandroid" folder Recovering to Your Nandroid Backup Option 1 (Without a Computer) Note: This recovery will only recover your latest nandroid backup (the one with the newest timestamp) Make sure u made a backup and its in the nandroid folder on your sdcard Boot up your phone in recovery (Turn off, then turn on while holding Home button) Scroll down to "restore latest backup" and press on it Let it work Once its done reboot your phone and you backup will now be restored! Option 2 (With a computer) Note: With this option, you can use any nandroid backup that you have made, not just the latest one 1) First go in to your tools folder where you put your SDK 1.5r2 (C:\android-sdkwindows-1.5_r2\tools as reference) 2) Take the files adb.exe fastboot.exe and AdbWinApi.dll (found here http://sharebee.com/16a06ebb) and place them in C:\WINDOWS\system32 3) Download the Nandroid Backup and Restore GUI made by Markazeh - Here Extract the folder to your desktop or where ever you can easily find it (I put mine in the SDK folder for easy access)

4) You will need 4 files: Boot.img, System.img , Data.img, and Recovery.img Place those 4 files in the same folder as the Nandroid Recovery GUI folder you just extracted in step 3 5) Boot your phone into fastboot mode (Turn off the G1 and turn on while holding the BACK button. If you have an older SPL then hold the CAMERA button and press POWER) 6) Once in fastboot (you should see a white screen with three androids on skateboards) plug your phone to your computer via USB. You might have to press the BACK key to turn it into FASTBOOT mode, or follow the on screen prompts. NOTE: If you dont have the drivers installed please look one post above to setup fastboot 7) Open NANDROID_Recovery_GUI.exe, everything on the left hand side should be "found!" 8) Choose an option from the right to Restore All, Restore all except Recovery, or Restore Data Only. Let the program do its thing. Once its done you can reboot and all your info from your backup should be restored! ----------------------------------------------------------------------------

Anda mungkin juga menyukai