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

Search This thread

DeadXperiance

Senior Member
Jun 4, 2014
409
144
Mehsana
No luck wait about 1 hour stuck on erasing system..........

---------- Post added at 02:18 PM ---------- Previous post was at 02:16 PM ----------

Its possible to flash a custom rom with fastboot

---------- Post added at 02:18 PM ---------- Previous post was at 02:18 PM ----------

Its possible to flash a custom rom with fastboot?
You can flash zip file of custom rom but your phone must be unlocked.
 

waheem

Senior Member
Dec 10, 2014
487
87
I'm trying to flash custom rom rename update.zip both of method are failed see picture
 

Attachments

  • 1452140844579.jpg
    1452140844579.jpg
    122.8 KB · Views: 159

waheem

Senior Member
Dec 10, 2014
487
87
Sir will you explain how to signed a zip because its a custom rom normal zip content meta-inf system or boot.img
 

waheem

Senior Member
Dec 10, 2014
487
87
Sorry not working for me how sign a zip with cygwin?

---------- Post added at 08:39 AM ---------- Previous post was at 08:38 AM ----------

What is the command ? And how to use?
 

coolbeans2016

Senior Member
Feb 9, 2015
630
162
33
Atlanta
)*&)(*&)(

is it an official android phone release by samsung, google, htc etc.. or is it a look-alike?

I am trying to learn how to pull my system.img & boot.img from a Asus Memo Pad 8 (181). For the amount of reading and going in circles this is incurring, getting about $0 bang for my $buck........... :mad:
I cannot even get the mount points figured out. got it to pull:
lrwxrwxrwx root root 2016-07-27 19:24 ADF -> /dev/block/mmcblk0p9
lrwxrwxrwx root root 2016-07-27 19:24 APD -> /dev/block/mmcblk0p8
lrwxrwxrwx root root 2016-07-27 19:24 FWUP -> /dev/block/mmcblk0p2
lrwxrwxrwx root root 2016-07-27 19:24 cache -> /dev/block/mmcblk0p7
lrwxrwxrwx root root 2016-07-27 19:24 config -> /dev/block/mmcblk0p6
lrwxrwxrwx root root 2016-07-27 19:24 data -> /dev/block/mmcblk0p11
lrwxrwxrwx root root 2016-07-27 19:24 factory -> /dev/block/mmcblk0p4
lrwxrwxrwx root root 2016-07-27 19:24 misc -> /dev/block/mmcblk0p5
lrwxrwxrwx root root 2016-07-27 19:24 panic -> /dev/block/mmcblk0p3
lrwxrwxrwx root root 2016-07-27 19:24 reserved -> /dev/block/mmcblk0p1
lrwxrwxrwx root root 2016-07-27 19:24 system -> /dev/block/mmcblk0p10
as far as I can get.........
zach
 

Ricky Divjakovski

Recognized Developer / Inactive RC
Feb 4, 2013
5,255
7,678
28
Sydney
I am trying to learn how to pull my system.img & boot.img from a Asus Memo Pad 8 (181). For the amount of reading and going in circles this is incurring, getting about $0 bang for my $buck........... :mad:
I cannot even get the mount points figured out. got it to pull:
lrwxrwxrwx root root 2016-07-27 19:24 ADF -> /dev/block/mmcblk0p9
lrwxrwxrwx root root 2016-07-27 19:24 APD -> /dev/block/mmcblk0p8
lrwxrwxrwx root root 2016-07-27 19:24 FWUP -> /dev/block/mmcblk0p2
lrwxrwxrwx root root 2016-07-27 19:24 cache -> /dev/block/mmcblk0p7
lrwxrwxrwx root root 2016-07-27 19:24 config -> /dev/block/mmcblk0p6
lrwxrwxrwx root root 2016-07-27 19:24 data -> /dev/block/mmcblk0p11
lrwxrwxrwx root root 2016-07-27 19:24 factory -> /dev/block/mmcblk0p4
lrwxrwxrwx root root 2016-07-27 19:24 misc -> /dev/block/mmcblk0p5
lrwxrwxrwx root root 2016-07-27 19:24 panic -> /dev/block/mmcblk0p3
lrwxrwxrwx root root 2016-07-27 19:24 reserved -> /dev/block/mmcblk0p1
lrwxrwxrwx root root 2016-07-27 19:24 system -> /dev/block/mmcblk0p10
as far as I can get.........
zach
What you wanna do is
adb shell
su
dd if=/dev/block/mmcblk0p10 of=/sdcard/system.img
exit
adb pull /sdcard/system.img
adb shell rm /sdcard/system.img
 

coolbeans2016

Senior Member
Feb 9, 2015
630
162
33
Atlanta
What you wanna do is
adb shell
su
dd if=/dev/block/mmcblk0p10 of=/sdcard/system.img
exit
adb pull /sdcard/system.img
adb shell rm /sdcard/system.img

when I get to the part "exit", just keep getting duplicates, it retypes why I've typed above it, not getting out of it so I can type the last two commands............ ??

c:\ADB>adb shell
shell@K011:/ $ su
su
root@K011:/ # dd if=/dev/block/mmcblk0p10 of=/sdcard/system.img
dd if=/dev/block/mmcblk0p10 of=/sdcard/system.img
exit
exit
adb pull /sdcard/system.img
adb pull /sdcard/system.img
adb shell rm /sdcard/system.img
adb shell rm /sdcard/system.img - this is on the Asus Memo Pad 8 181c

When I try the same on my Samsung Galaxy J3 (2016) I get:
c:\ADB>adb shell
shell@j3ltespr:/ $ su
su
shell@j3ltespr:/ $ dd if=/dev/block/mmcblk0p10 of=/sdcard/system.img
dd if=/dev/block/mmcblk0p10 of=/sdcard/system.img
dd: /dev/block/mmcblk0p10: Permission denied
1|shell@j3ltespr:/ $
any ideas to help me over this speed bump, appreciate it!
zach
 
Last edited:

Ricky Divjakovski

Recognized Developer / Inactive RC
Feb 4, 2013
5,255
7,678
28
Sydney
I am trying to learn how to pull my system.img & boot.img from a Asus Memo Pad 8 (181). For the amount of reading and going in circles this is incurring, getting about $0 bang for my $buck........... :mad:
I cannot even get the mount points figured out. got it to pull:
lrwxrwxrwx root root 2016-07-27 19:24 ADF -> /dev/block/mmcblk0p9
lrwxrwxrwx root root 2016-07-27 19:24 APD -> /dev/block/mmcblk0p8
lrwxrwxrwx root root 2016-07-27 19:24 FWUP -> /dev/block/mmcblk0p2
lrwxrwxrwx root root 2016-07-27 19:24 cache -> /dev/block/mmcblk0p7
lrwxrwxrwx root root 2016-07-27 19:24 config -> /dev/block/mmcblk0p6
lrwxrwxrwx root root 2016-07-27 19:24 data -> /dev/block/mmcblk0p11
lrwxrwxrwx root root 2016-07-27 19:24 factory -> /dev/block/mmcblk0p4
lrwxrwxrwx root root 2016-07-27 19:24 misc -> /dev/block/mmcblk0p5
lrwxrwxrwx root root 2016-07-27 19:24 panic -> /dev/block/mmcblk0p3
lrwxrwxrwx root root 2016-07-27 19:24 reserved -> /dev/block/mmcblk0p1
lrwxrwxrwx root root 2016-07-27 19:24 system -> /dev/block/mmcblk0p10
as far as I can get.........
zach

when I get to the part "exit", just keep getting duplicates, it retypes why I've typed above it, not getting out of it so I can type the last two commands............ ??

c:\ADB>adb shell
shell@K011:/ $ su
su
root@K011:/ # dd if=/dev/block/mmcblk0p10 of=/sdcard/system.img
dd if=/dev/block/mmcblk0p10 of=/sdcard/system.img
exit
exit
adb pull /sdcard/system.img
adb pull /sdcard/system.img
adb shell rm /sdcard/system.img
adb shell rm /sdcard/system.img - this is on the Asus Memo Pad 8 181c

When I try the same on my Samsung Galaxy J3 (2016) I get:
c:\ADB>adb shell
shell@j3ltespr:/ $ su
su
shell@j3ltespr:/ $ dd if=/dev/block/mmcblk0p10 of=/sdcard/system.img
dd if=/dev/block/mmcblk0p10 of=/sdcard/system.img
dd: /dev/block/mmcblk0p10: Permission denied
1|shell@j3ltespr:/ $
any ideas to help me over this speed bump, appreciate it!
zach

1. You need to make sure your system partition is stored on mmcblk0p10, i highly doubt it would be on block 10

2. Make sure your device has root permissions
 

Top Liked Posts

  • There are no posts matching your filters.
  • 213
    ADB.png


    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

    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 -
    this is the folder we will be working with. so unzip it and open the OpenCMD.bat file and a command prompt will appear.


    ADB2.png

    ADB INTRODUCTION
    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 from 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
    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)
    adb root
    adb pull \system\media\bootanimation.zip c:\users\ricky\desktop
    LEAVE A SPACE.............................................^

    HOW TO PUSH A FILE
    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
    adb root
    adb push c:\users\ricky\desktop\bootanimation.zip \system\media
    .........................^^computer location^^............................^^phone location^^

    HOW TO INSTALL AN APP FROM YOUR PC
    to install an app, for example on my desktop named facebook.apk i would write
    adb install c:/users/Ricky/desktop/facebook.apk

    HOW TO BACKUP APPS WITH ADB
    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
    adb pull /system/app backup/systemapps
    -To backup apps all installed apps
    adb pull /data/app backup/installedapps

    HOW TO RUN SHELL VIA ADB(BACKGROUND TERMINAL)
    to run shell type
    to exit shell press CTRL+C or type
    to run shell silently type
    adb shell (type any command)

    HOW TO REBOOT INTO FASTBOOT, RECOVERY AND NORMAL REBOOT
    to reboot your phone normally type
    to reboot recovery
    to reboot fastboot

    HOW TO START AND STOP ADB SERVER
    to start the server type
    to stop the server type

    FASTBOOT.png

    FASTBOOT INTRODUCTION
    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, unlock bootloader, lock bootloader, flash .img files, wipe 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
    to flash a .zip file called flashme.zip put the zip file in your fastboot folder and type
    fastboot flash flashme.zip

    FLASH A RECOVERY IMAGE (.IMG)
    to flash a recovery called twrp.img, put it in your fastboot folder and type
    fastboot flash recovery twrp.img

    UNLOCK BOOTLOADER
    to unlock bootloader from htc you get your identifier token then download the unlock_code.bin they email you and flash it
    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)
    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
    fastboot erase system
    fastboot flash system system.img
    to flash data image file
    fastboot erase data
    fastboot flash data data.img
    to flash cache image file
    fastboot erase cache
    fastboot flash cache cache.img

    FLASH A BOOT IMAGE OR KERNEL(BOOT.IMG)
    to flash boot image file
    fastboot flash boot boot.img

    HOW TO GET CID NUMBER
    this is how you get your cid
    fastboot getvar cid
    NO SPACE.^

    HOW TO WRITE SUPERCID
    this is how to write super cid
    fastboot oem writecid 11111111
    NO SPACE.............^

    HOW TO RESTORE DEVICE BACKUP FROM COMPUTER
    if you wanna restore your phone on your from your computer, simply backup your phone in recovery and transfer the 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,
    fastboot erase system
    fastboot erase data
    fastboot erase cache

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

    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!​
    7
    Sorry for the interuption. This thread needed little cleaning. It was going a little bit of course.

    ADB and fastboot are incredibly useful tools and a lot of problems can be solved using these tools. The OP has made an installer and a "quick launcher" that makes using ADB and fastboot a lot easier for people who are unfamiliar with using the command line and he provides an introduction into entering commands. This thread can be a valuable resource for people who need help getting started with ADB and Fastboot - let's not derail it by arguing!

    Thanks!
    6
    3
    Thanks for this! It helped a lot
    2
    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


    This is for all android phones, if you knew what Adb and fastboot are you would be quite happy that I have posted this guid.
    Also if it wasn't worth a sticky it wouldn't be here as it has to be approved.