[GUIDE][30!10!2013]New to Adb and Fastboot Guide - Xda-Developers

6
5,649,162 MEMBERS 43,854 N Page 1 of 15 2 2 3 3 11 11 > > >> >>  + + POST REPLY POST REPLY VIEW FIRST UNREAD VIEW FIRST UNREAD [GUIDE][30/10/2013]New To Adb And Fastboot Guide [GUIDE][30/10/2013]New To Adb And Fastboot Guide  8th April 2013, 01:56 AM (Last edited by Ricky Divjakovski; 29th October 2013 at 02:07 PM.) #1  > Android Development and Hacking > Android General  > [GUIDE][30/10/2013]New To Adb And Fastboot Guide Tip us? Ricky Divjakovski > Recognized Contributor - OP Thanks Meter 4939 Posts: 3,533 Join Date: Feb 2013 Location: Sydney MORE INFO MORE INFO DONATE TO ME DONATE TO ME  [GUIDE][30/10/2013]New To Adb And Fastboot Guide this is just a quice guide about some main features of adb and fastboot and ways you can use them heres some simple information i can give you about a device, a device has 6 main partitions, system, data, cache, dalvik cache, recovery and externel(sdcard) for a device to boot it must have a boot.img, system.img and a data.img, when you backup your phone it backs up system.img, boot.img(included in system.img), data.img, cache.img, dalvik cache(thats included in the cache.img), and optionally your recovery.img(no point) THIS WILL TAKE 10 MINUTES OF YOUR TIME AND WILL BENEFIT YOU FOR LIFE Quote: Here is a little package i uploaded with adb.exe f astboot.exe AdbWinApi.dll AdbWinUsbApi.dll and a file named OPEN.CMD that opens a command window in the same directory as adb and fastboot -  IDE IDE Quote: http://d-h.st/5Xy this is the folder we w ill be working with. so unzip it and open the OPEN.CMD file and a command prompt will appear. ADB INTRODUCTION  IDE IDE Quote: adb and fastboot can be really hard to work with until you learn the language of it(its easy) when theres somewhere and something you wanna do, theres almost always a way! if your using adb to do a t ask you must do it wit h your device on, adb you cant do much with, you can pull files from your phone to your computer, and you can push files f rom computer to your phone, you can reboot your phone, reboot into recovery reboot into bootloader note, to pull or push system files you have to type in adb root, to get superuser permissions NOTE: Your Phones Root Directory Is "/" HOW TO PULL A FILE  IDE IDE UserName Remember Me? Remember Me? Forgot your password? Forgot your password? NEWS NEWS FORUM FORUM WIKI WIKI XDA TV XDA TV  SearchAllForums Like Tweet +1 2 Ricky Divjakovski OP 2013- 2 (quote ) if it i s no t usefu l to y i galmoham 2013- 2 (quot e) This is fo r all andr oi Ricky Divjakovski OP 2013-J XDA's FAVORITE APPS FROM THE COMMUNITY [GUIDE][ 30/10/ 201 3]New To Adb And Fas tboot Guide - xda- deve lopers ht tp:/ /f oru m. xda- deve lopers.com/showt hre ad .ph p? t=2225405 1 de 6 26/05/2014 01:45 a.m.

Transcript of [GUIDE][30!10!2013]New to Adb and Fastboot Guide - Xda-Developers

7/18/2019 [GUIDE][30!10!2013]New to Adb and Fastboot Guide - Xda-Developers

http://slidepdf.com/reader/full/guide30102013new-to-adb-and-fastboot-guide-xda-developers 1/6

5,649,162 MEMBERS 43,854 N

Page 1 of15 22 33 1111 >> >>>>

  ++POST REPLYPOST REPLY VIEW FIRST UNREADVIEW FIRST UNREAD

[GUIDE][30/10/2013]New To Adb And Fastboot Guide[GUIDE][30/10/2013]New To Adb And Fastboot Guide  

8th April 2013, 01:56 AM (Last edited by Ricky Divjakovski; 29th October 2013 at 02:07 PM.) #1  

> Android Development and Hacking > Android General > [GUIDE][30/10/2013]New To Adb And Fastboot Guide

Tip us?

Ricky Divjakovski 

>>

Recognized Contributor - OP

Thanks Meter 4939

Posts: 3,533

Join Date: Feb 2013

Location: Sydney

MORE INFOMORE INFO

DONATE TO MEDONATE TO ME

 [GUIDE][30/10/2013]New To Adb And Fastboot Guide

this is just a quice guide about some main features of adb and fastboot and ways you can use them

heres some simple information i can give you about a device, a device has 6 main partitions, system, data,

cache, dalvik cache, recovery and externel(sdcard)

for a device to boot it must have a boot.img, system.img and a data.img, when you backup your phone it backs

up system.img, boot.img(included in system.img), data.img, cache.img, dalvik cache(thats included in the

cache.img), and optionally your recovery.img(no point)

THIS WILL TAKE 10 MINUTES OF YOUR TIME AND WILL BENEFIT YOU FOR LIFE

Quote:

Here is a little package i uploaded with adb.exe fastboot.exe AdbWinApi.dll AdbWinUsbApi.dll and a file named

OPEN.CMD that opens a command window in the same directory as adb and fastboot -

  IDEIDE

Quote:

http://d-h.st/5Xy

this is the folder we w ill be working with. so unzip it and open the OPEN.CMD file and a command prompt will

appear.

ADB INTRODUCTION

  IDEIDE

Quote:

adb and fastboot can be really hard to work with until you learn the language of it(its easy)

when theres somewhere and something you wanna do, theres almost always a way!

if your using adb to do a task you must do it with your device on, adb you cant do much with, you can pull files

from your phone to your computer, and you can push files f rom computer to your phone, you can reboot your

phone, reboot into recovery reboot into bootloader

note, to pull or push system files you have to type in adb root, to get superuser permissions

NOTE: Your Phones Root Directory Is "/"

HOW TO PULL A FILE

  IDEIDE

UserName

Remember Me?Remember Me? Forgot your password?Forgot your password?

NEWSNEWS FORUMFORUM WIKIWIKI XDA TVXDA TV 

SearchAllForums

Like Tweet +1

2Ricky Divjakovski OP 2013-

2(quote) if it is not useful to y i

galmoham 2013-

2(quote) This is for all androi

Ricky Divjakovski OP 2013-J

XDA's FAVORITE APPS

FROM THE COMMUNITY

UIDE][30/10/2013]New To Adb And Fastboot Guide - xda-developers http://forum.xda-developers.com/showthread.php?t=2225405

6 26/05/2014 01:45 a.m.

7/18/2019 [GUIDE][30!10!2013]New to Adb and Fastboot Guide - Xda-Developers

http://slidepdf.com/reader/full/guide30102013new-to-adb-and-fastboot-guide-xda-developers 2/6

an example of how to pull a file called bootanimation.zip from system of the phone(need to type adb root to get

files from here)

and but it on my desktop, the idea is to type adb pull (location of what you wanna pull then \name of item) (name

of location you would like it on your computer)

Quote:

adb root

adb pull \system\media\bootanimation.zip c:\users\ricky\desktop

LEAVE A SPACE............................................. ^

HOW TO PUSH A FILE

  IDEIDE

to push the file from my desktop you simply have to basically do the same command except replace 'pull' with

'push' and you type your computer location \file you wanna push then phone location, ill push the same file back

Quote:

adb root

adb push c:\users\ricky\desktop\bootanimation.zip \system\media

.........................^^computer location^^............................^^phone location^^

HOW TO INSTALL AN APP FROM YOUR PC

  IDEIDE

to install an app, for example on my desktop named facebook.apk i would write

Quote:

adb install c:/users/Ricky/desktop/facebook.apk

HOW TO BACKUP APPS WITH ADB

  IDEIDE

First make a folder in your adb folder called backup without capitals, then inside that a two folders, one called

systemapps and one called installedapps also without capitals

-To backup apps all system apps

Quote:

adb pull /system/app backup/systemapps

-To backup apps all installed apps

Quote:

adb pull /data/app backup/installedapps

HOW TO RUN SHELL VIA ADB(BACKGROUND TERMINAL)

  IDEIDE

to run shell type

Quote:

adb shell

to exit shell press CTRL+C or typeQuote:

exit

to run shell silently type

Quote:

adb shell (type any command)

HOW TO REBOOT INTO FASTBOOT, RECOVERY AND NORMAL REBOOT

  CLICK TO S OW CONTENTLICK TO S OW CONTENT

HOW TO START AND STOP ADB SERVER

  CLICK TO S OW CONTENTLICK TO S OW CONTENT

XDA's FAVORITE APPS

FROM THE COMMUNITY

UIDE][30/10/2013]New To Adb And Fastboot Guide - xda-developers http://forum.xda-developers.com/showthread.php?t=2225405

6 26/05/2014 01:45 a.m.

7/18/2019 [GUIDE][30!10!2013]New to Adb and Fastboot Guide - Xda-Developers

http://slidepdf.com/reader/full/guide30102013new-to-adb-and-fastboot-guide-xda-developers 3/6

FASTBOOT INTRODUCTION

  IDEIDE

Quote:

now fastboot,

move any file you want to flash or use in fastboot into the Adb Abd Fastboot folder you extracted, fastboot you

must have your device booted into bootloader and in fastboot mode, fastboot has many more commands,

without fastboot our lives would be miserable, fastboot you can flash recoveries, flash .zip files, unlockbootloader, lock bootloader, flash .img files, w ipe partitions get your cid number, write a cid number

i know it doesnt seem like much but doing stuff in the right order you can do ALOOOOT! for example my tool

simply uses adb and fastboot commands, look how many features ive added?

move the files your flashing to the same folder as fastboot

FLASH A .ZIP FILE

  IDEIDE

to flash a .zip file called flashme.zip put the zip file in your fastboot folder and type

Quote:

fastboot flash flashme.zip

FLASH A RECOVERY IMAGE (.IMG)

  IDEIDE

to flash a recovery called twrp.img, put it in your fastboot folder and type

Quote:

fastboot flash recovery twrp.img

UNLOCK BOOTLOADER

  IDEIDE

to unlock bootloader from htc you get your identifier token then download the unlock_code.bin they email you andflash it

Quote:

fastboot oem get_identifier_token <how to get token>

fastboot oem flash Unlock_code.bin <how to flash it>

fastboot oem lock <relock bootloader>

FLASHING SPECIFIC IMAGE FILES(SYSTEM, DATA ,CACHE, ECT)

  IDEIDE

orite now to flash .img files, if your gonna flash a system, data or cache .img file i recommend wiping the partition

before flash, and to manually restore your phone you must flash system, data, cache

note, to flash a recovery, all your doing is flashing a recovery .img

note, if your gonna flash a boot.img dont try to wipe your boot partition just flash it

to flash system image file

Quote:

fastboot erase system

fastboot flash system system.img

to flash data image file

Quote:

fastboot erase data

fastboot flash data data.img

to flash cache image file

Quote:

fastboot erase cache

fastboot flash cache cache.img

FLASH A BOOT IMAGE OR KERNEL(BOOT.IMG)

  CLICK TO S OW CONTENTLICK TO S OW CONTENT

XDA's FAVORITE APPS

FROM THE COMMUNITY

UIDE][30/10/2013]New To Adb And Fastboot Guide - xda-developers http://forum.xda-developers.com/showthread.php?t=2225405

6 26/05/2014 01:45 a.m.

7/18/2019 [GUIDE][30!10!2013]New to Adb and Fastboot Guide - Xda-Developers

http://slidepdf.com/reader/full/guide30102013new-to-adb-and-fastboot-guide-xda-developers 4/6

  REPLYREPLY

  Ads by Google

  8th April 2013, 02:17 AM #2  

REPLYREPLY

  7th June 2013, 03:08 PM #3  

HOW TO GET CID NUMBER

  IDEIDE

this is how you get your cid

Quote:

fastboot getvar cid

NO SPACE.^

HOW TO WRITE SUPERCID

  IDEIDE

this is how to write super cid

Quote:

fastboot oem writecid 11111111

NO SPACE.............^

HOW TO RESTORE DEVICE BACKUP FROM COMPUTER

  IDEIDE

if you wanna restore your phone on your from your computer, simply backup your phone in recovery and transferthe backup to your computer and extract all the .img files and put your phone into fastboot mode, then go on your

computer, put all your .img files in a folder with adb, fastboot, AdbWinApi and AdnWinUsbApi(the files everyone

tells you to get from the android sdk package)

then navigate to the folder on command prompt on terminal then wipe a partition then flash one

for example i do it like this, i wipe system, data and cache first, so this is what i would type,

Quote:

fastboot erase system

fastboot erase data

fastboot erase cache

then flash the .img files(need to flash system first)

Quote:

fastboot flash system system.img

fastboot flash data data.img

fastboot flash cache cache.img

then you can flash boot.img, when you want to install a new kernel, all it is, is a a stock boot.img modified

Thanks MrDannyD for requesting this!

Like my blog on facebook, add me to your circles, follow me on

twitter or donate to me with paypal

 

The Following 144 Users Say Thank You to Ricky Divjakovski For This Useful Post: [ Click to Expand ]

advertisement

xda-developers 10.1" Win8 Rugged Tablet

Intel® Bay Trail-M processor Mobile rugged design www.winmate.com.tw

zedawg

Junior Member

Thanks Meter 0

Posts: 8

Join Date: Apr 2013

Thanks for this! It helped a lot

Ricky Divjakovski 

XDA's FAVORITE APPS

FROM THE COMMUNITY

UIDE][30/10/2013]New To Adb And Fastboot Guide - xda-developers http://forum.xda-developers.com/showthread.php?t=2225405

6 26/05/2014 01:45 a.m.

7/18/2019 [GUIDE][30!10!2013]New to Adb and Fastboot Guide - Xda-Developers

http://slidepdf.com/reader/full/guide30102013new-to-adb-and-fastboot-guide-xda-developers 5/6

  REPLYREPLY

13th June 2013, 06:55 PM #4  

REPLYREPLY

  14th June 2013, 04:09 PM #5  

REPLYREPLY

  15th June 2013, 12:22 PM #6  

REPLYREPLY

  15th June 2013, 01:36 PM #7  

REPLYREPLY

Originally Posted by zedawg 

Thanks for this! It helped a lot 

Like my blog on facebook, add me to your circles, follow me on

twitter or donate to me with paypal

 

The Following 3 Users Say Thank You to Ricky Divjakovski For This Useful Post: [ Click to Expand ]

>>

Forum Moderator

Thanks Meter 3088

Posts: 4,935

Join Date: Apr 2010

Location: Denver, CO Likes:

Omne absconditur in palam

veniat

MORE INFOMORE INFO

DONATE TO MEDONATE TO ME

Stuck, good job

XDA Forum Rules | New Member Resource Guide | Help From The Mods

5 Million + Members Heads Are Better Than One

Gabilheri

>>

Junior Member

Thanks Meter 8

Posts: 14

Join Date: Jun 2013

Location: Stillwater

MORE INFOMORE INFO

Thank you very much!

liqueurlee

>>

Junior Member

Thanks Meter 0

Posts: 3

Join Date: Jun 2013

MORE INFOMORE INFO

Thanks for your sharing these.

Ricky Divjakovski 

>>

Recognized Contributor - OP

Thanks Meter 4939

Posts: 3,533

Join Date: Feb 2013

Location: Sydney

MORE INFOMORE INFO

DONATE TO MEDONATE TO ME

Quote:

Originally Posted by liqueurlee 

Thanks for your sharing these.

It was not shared, I made the package and guide myself, hope this has helped!

Like my blog on facebook, add me to your circles, follow me on

twitter or donate to me with paypal

 

XDA's FAVORITE APPS

FROM THE COMMUNITY

UIDE][30/10/2013]New To Adb And Fastboot Guide - xda-developers http://forum.xda-developers.com/showthread.php?t=2225405

6 26/05/2014 01:45 a.m.

7/18/2019 [GUIDE][30!10!2013]New to Adb and Fastboot Guide - Xda-Developers

http://slidepdf.com/reader/full/guide30102013new-to-adb-and-fastboot-guide-xda-developers 6/6

  15th June 2013, 03:10 PM (Last edited by liqueurlee; 15th June 2013 at 03:20 PM.) #8  

REPLYREPLY

15th June 2013, 08:28 PM #9  

REPLYREPLY

  15th June 2013, 08:35 PM #10  

REPLYREPLY

  Ads by Google

 

Searchthisthread

« Previous Thread | Next Thread »

More Info: Contact | Rules | Change Log | Suggest Content | Privacy Policy | XDA App

Copyright© xda-developers. Powered by Searchlight © 2014 Axivo Inc. Hosted by Leaseweb.

liqueurlee

Originally Posted by ricky310711 

It was not shared, I made the package and guide myself, hope this has helped! 

Thanks again and it is very useful to me.

Originally Posted by ricky310711 

It was not shared, I made the package and guide myself, hope this has helped! 

Ummm, what is the purpose of this guide and what phone is it for?

It looks like its for an HTC. If it is, you should put that in the beginning so everyone knows. You should also explain why

you are doing this and what it does to the phone. From what I can tell, it does nothing at all and not even worth being a

sticky

thanhtaivtt

Junior Member

Thanks Meter 0

Posts: 2

Join Date: Apr 2012

 Thanks you very much!

Thanks you very much!

advertisement

xda-developers Especialízate en ESAN

Estudia Ingeniería de Software en ESAN. Conferencia: 04/06/14. ingenieríadesoftware.esan.edu.pe

22 33 1111 >> >>>> Page 1 of15

> Android Development and Hacking > Android General > [GUIDE][30/10/2013]New To Adb

And Fastboot Guide

XDA Developers was founded by developers, for developers. It is

now a valuable resource for people who want to make the most of

their mobile devices, from customizing the look and feel to adding

new functionality. Are you a developer?

  ++POST REPLYPOST REPLY VIEW FIRST UNREADVIEW FIRST UNREADSUBSCRIBESUBSCRIBE

XDA's FAVORITE APPS

FROM THE COMMUNITY

UIDE][30/10/2013]New To Adb And Fastboot Guide - xda-developers http://forum.xda-developers.com/showthread.php?t=2225405