What's new

Tutorial How to use adb side load to flash zip file (root or update firmware)

Status
Not open for further replies.

conviction

Forum Guru
Joined
Apr 24, 2013
Posts
5,124
Solutions
6
Reaction
7,407
Points
1,982
Things needed:

1. Adb by shimp208
2. Your android drivers (google your device drivers if not auto detected when you connect to pc)
3. Zip file (either SuperSu.zip or Magisk.zip)-you may rename file if you wish to shorten the name when you will be typing in command window
4. Your android device and usb cable

***patalastas: Sa mga paps na medyo mahilig sa kape(joke) visit thread (here) para extract nyo stock recovery via adb pag rooted na or the best download nyo stock firmware sa official site ng android device nyo bago nyo iflash TWRP (custom recovery-tutorial here) kung nais nyo gumawa ng nandroid backup or simply stock rom back up files kung wala kayong makuhang stock rom***

Steps:
1. Download adb exe and install on your PC (you may save in desktop for easier access) or download portable zip file and extract on your desktop.

first one is the application and the second one is the portable zip, choose any of these two
credits to You do not have permission to view the full content of this post. Log in or register now.

adb_tools_download.jpg

download direct link click below from shimp208:

You do not have permission to view the full content of this post. Log in or register now.
You do not have permission to view the full content of this post. Log in or register now.

2. Open adb folder point to any blank space then hold Shift+Right click on your mouse to open command window (cmd)
open_command_window.jpg
3. Download and install your android device drivers to your pc (google your device drivers if not auto detected)

4. Download the zip file you wish to flash and save inside adb folder (you may rename the zip file to your own liking for easier input when you type on command window-optional)

sample only Magisk-v17.1.zip file

portable_adb_folder.jpg
5. On your phone enable "usb debugging" under developer tab in settings, if you have no developer tab on settings go to settings then scroll to About>Software information>Build number tap build number 7 times to unlock developer options.

6. Now on your android device boot to your stock recovery by either pressing power+vol down or power+vol up (google your device method to boot into recovery)

7. Connect your device to pc (allow your computer to connect to your device if a pop up window appears on your device screen)

8. From phone scroll to "apply update from adb"
apply_update_from_ADB.jpg

9. From command window type the following:
  • adb devices (hit enter key)

now check if pc can detect your device and if connected it will give you a random Number/letters of your device when connected as shown below.

adb_devices.jpg

10. Once your device is recognized, simply type the following code:
  • adb sideload (name of zip file).zip (hit enter key)
sample only:
if you are flashing Magisk-v17.zip (if in case you did not rename to another name like magisk.zip etc.)
  • adb sideload Magisk-v17.zip (hit enter key)

adb_sideload_command.jpg

or if you rename it to root.zip for example then type:
  • adb sideload root.zip (hit enter key)

11. Simply wait as it complete the installation and you should see the progress from 0%-100%

sample on adb sideload progress only to give you an idea:
adb_sideload_ota_zip_progress.jpg

Install from ADB complete

Congrats!


************************************************************************************
SAMPLE ERRORS ONLY and QUICK FIX with step on how to unlock bootloader if needed

error1. If you see this in your screen this is already an error and will not push through
adb side load error.jpg

or you get errors like:

error2. "Can't read XXX.zip file/Can't read adb sideload", or "device detected but unauthorized"

Quick fix for 1 and 2
From your command window type the following code:

adb kill-server (hit enter)
set ADB_TRACE=all (hit enter)

adb side load task killer.jpg

or disable/enable usb debugging then connect or go back to your settings>developer options>revoke usb debugging authorizations then try again to connect device to pc
Screenshot_20181026-154659.jpg
Now repeat again the adb sideload command
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

error 3. "You need adb 1.0.32 or newer to sideload to this device"

Quick fix of error 3: Update adb exe

Now repeat again the adb sideload command
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

error4: if error still exist and requires you to unlock bootloader?

Quick fix for error4 locked bootloader-option 1

check first and confirm if bootloader is locked

type from command window (cmd)
  • adb reboot bootloader (hit enter key)
  • fastboot oem device-info (hit enter key)

How to unlock bootloader:
(warning this can not be undone once unlocked no tutorial yet to lock bootloader)


type from command window (cmd) if not in fastboot mode
  • adb reboot bootloader (hit enter key)
  • fastboot oem unlock (hit enter key)

follow instruction on screen using volume keys

check if successful, type again the following
  • fastboot oem device-info (hit enter key)

if bootloader is unlocked then type
  • fastboot reboot (hit enter key)

done

Now do the adb sideload steps again above

Quick fix for error4 locked bootloader-option 2 for supported device only

From device settings scroll to developer options and check if you have "OEM Unlocking" then enable

Connect device and from command window type the following:
  • adb reboot bootloader (hit enter key)
  • fastboot flashing unlock (hit enter key)
Now check from your device screen it should say "Unlock bootloader" and simply follow instruction on what volume keys to confirm.

Once it goes back to fastboot mode simply type the following:
  • fastboot reboot (hit enter key)
done

Now do the adb sideload steps again above
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

error5. unknown errors

Quick fix on unknown errors

If still encountering errors, simply download Large Address Aware zip file, no need to extract just open with winrar or other zip programs then run application, now simply browse and link the adb.exe, tick the check box and save
Large Address Aware.jpg

download LAA files either of the two:
You do not have permission to view the full content of this post. Log in or register now.
You do not have permission to view the full content of this post. Log in or register now.

Now do the adb sideload steps again above
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

error6. on your device screen "Installation aborted"

Quick fix on "Installation aborted" errors

type from command window (cmd) to boot in fastboot mode, make sure to download compatible custom recovery.img (TWRP) for your device and save to adb folder and may rename to TWRP.img for fast encoding in cmd
  • adb reboot bootloader (hit enter key)
  • fastboot boot twrp.img (hit enter key)-this will temporarily boot your device in TWRP
if you want it permanent type this code
  • fastboot flash twrp.img (hit enter key)
once booted in recovery via TWRP simply swipe then go to Advanced and select ADB Sideload, optional you may tick wipe dalvik and cache

Now do the adb sideload steps again above
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

error7. on your device screen "Updater process ended with ERROR: 1"

Quick fix on "Updater process ended with ERROR: 1"

this error will ask for your stock boot image, type from command window (cmd) to boot in fastboot mode, make sure to download your stock boot.img for your device and save to adb folder, you must also flash TWRP in quick fix error 6 step above
  • adb reboot bootloader (hit enter key)
  • fastboot flash boot boot.img (hit enter key)
  • fastboot boot twrp.img (hit enter key)-temporary boot of TWRP
once booted in recovery via TWRP simply swipe then go to Advanced and select ADB Sideload, optional you may tick wipe dalvik and cache

Now do the adb sideload steps again above
************************************************************************************

Summary:
1. Download adb tools and install to desktop or extract the portable zip to desktop and open command window (shift+right click)
2. Download install your android drivers
3. Download the zip file you wish to flash and place inside adb folder
4. Enable "usb debugging" then Boot into recovery from your device and select "apply update from adb" now connect your device to PC via usb cable, (allow your computer to connect to your device if a pop up window appears on your device screen)-for best results flash TWRP or boot TWRP temporarily and go to advanced and select adb sideload to minimize errors when rooting, for firmware updates stock recovery is better.
5. Type "adb sideload (nameofzip).zip" then hit enter key
6. Wait until it completes the process to 100% and say install from adb complete

enjoy!

Applicable not only for rooting also for flashing update firmwares/stock firmwares as long as it is in zip file

Reminder: make it a habit to always test your downloaded zip files using your zip program files
test.jpg
test_2.jpg

Sample update firmware installed via adb sideload (complete)
complete.jpg

if all things fail?
*buy a new cellphone* joke :)

~~~~~*****~~~~~*****~~~~~**00000**~~~~~*****~~~~~*****~~~~~
B O N U S

Sa mga nahirapan magroot, mag flash ng TWRP, or mag unlock ng boot loader share ko lang tong toolkit ni Rapscallion16 from xda sa mga gusto sumubok kayo na po bahala kung supported ang inyong device unless ibigay nyo mga cp nyo saken para ako mag test hehe (joke lang).

Ayon sa toolkit pwede din daw ilock yung boot loader kayo na po bahala mga paps.

Download zip file then open with zip program files, no need to install.
winDroid_toolkit.jpg

Go to settings and check if your device is supported
winDroid_toolkit_settings.jpg

Unlock bootloader
winDroid_toolkit_flash_unlock_bootloader.jpg

Relock your bootloader
winDroid_toolkit_flash_relock_bootloader.jpg

Flash custom recovery to your device
winDroid_toolkit_flash_recovery.jpg

Gain root to your device
gain root.jpg

Downloading adb drivers for your device to be read by toolkit

Check nyo nalang sa thread (t=2499926&page=69) sa xda for some comments sa mga successful na gumamit nito.

Download link
You do not have permission to view the full content of this post. Log in or register now.


ROOTING APPS
Sa mga ayaw gumamit ng PC for rooting check this thread on applicable rooting apps for your device, credits to TS
https://phcorner.net/threads/169563/
 

Attachments

Last edited:
Paps pahabol ng tanong
alam kong masasagot niyo po
diba po nais ko iroot
ang tanong pag na iflash ko na po ba ang SuperSU.zip

rooted na po cp ko?
 
Dito lang ako sa adb driver nahirapan kaya hayun unsuccessful padin, kunsaan saan nako nadownload at install, ito nadownload ko sa You do not have permission to view the full content of this post. Log in or register now. ,detected na device ko sa adb device kaya lang unauthorised naman
 
Dito lang ako sa adb driver nahirapan kaya hayun unsuccessful padin, kunsaan saan nako nadownload at install, ito nadownload ko sa You do not have permission to view the full content of this post. Log in or register now. ,detected na device ko sa adb device kaya lang unauthorised naman
usb debugging paps enabled na ba? once connected sa pc my pop up sa screen sa device to allow transfer or connect to pc etc
 
Status
Not open for further replies.

Similar threads

Back
Top