What's new

Tutorial How to flash twrp via adb and create backup rom and restore

Status
Not open for further replies.

conviction

Forum Guru
Joined
Apr 24, 2013
Posts
5,124
Solutions
6
Reaction
7,406
Points
2,032
Pag ayaw nyo adb sideload at nais gumamit ng TWRP para magflash ng zip file kagaya ng custom rom, SuperSU.zip, Magisk.zip file, stock rom/firmware.zip file, or gamitin ang TWRP para gumawa ng back up stock rom.

Supplement
sa thread https://phcorner.net/threads/624072 using adb sideload

**********~~~~~~~~~~)))*****(((~~~~~~~~~~**********
Bago nyo gawin kung marunong kayong mag extract ng stock recovery.img para pwede nyo irestore via adb then download nyo stock firmware nyo sa official site ng device nyo at extract nyo yung recovery.img via 7-zip or winrar.

Pag advanced na kayo pwede nyo extract stock recovery.img via adb kaso dapat rooted ang phone ninyo para magawa ito so kung nagroot kayo via adb sideload(tutorial here) or via rooting apps extract nyo muna stock recovery.img (tutorial here) bago magflash ng custom recovery kagaya ng TWRP/CWM para manigurado.
**********~~~~~~~~~~)))*****(((~~~~~~~~~~**********

Two common usage ng TWRP: (custom recovery)
1. To create stock rom backup files (VERY important!!!)
2. To flash zip files to root your device, to upgrade your firmware, to install stock firmware zip file etc

other usage:
  • to partition sdcard (external micro sd cards) ala minitool partition para may ma-swap ka sa internal storage sa microsd para dina gagamitan ng Link2SD app etc
  • to wipe data/factory reset

Things needed:

1. Adb by shimp208
2. Your android drivers (google your device drivers if not auto detected when you connect to pc)
3. TWRP-*.*.*-*-****.img file compatible to your device (google yours)-you may rename to shorten when typing in command window
4. Your android device and usb cable

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.



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)
cmd.jpg

3. Download and install your android device drivers to your pc (google your device drivers if not auto detected), enable USB debugging then connect to pC

4. Download the twrp-*.*.*-*-****.img file 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)
twrp.jpg
4. 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.

5. Type from command window (cmd) to boot in fastboot mode(your cp screen will show fastboot mode)

adb reboot bootloader (hit enter key)
fastboot devices (hit enter)-optional to check if it can detect your device

5. Now you have an option to flash twrp temporarily, the next time you boot your phone will revert back to the stock recovery. Here is the command if you wish only as temporary.

command:

fastboot boot twrp-*.*.*-*.*-***.img (hit enter key)

sample only as shown below with fastboot boot twrp TEMPORARY
twrp_temporary.jpg

Your phone will reboot to recovery on TWRP if compatible with your device

5. To flash it PERMANENTLY follow the command below. Just rename the twrp in case you change it to some other name like twrp.img for shorter typing from command window.

command:

fastboot flash twrp-*.*.*-*.*-***.img
(hit enter key)

sample demo:
fastboot flash recovery twrp-3.0.2-5-Z00L.img
(hit enter key)
twrp_permanent.jpg
6. After flashing simply type the command:

fastboot reboot (hit enter)

Now boot into recovery power+vol down (google yours)
twrp_asus_zenfone_2.png


Congrats!!!

********************************************************************************
START CREATING BACK UP ROM
1. Click wipe
wipe_cache_dalvik.png
2. Select Dalvik cache, and cache then swipe to wipe
select_dalvik_cache.png
3. Go back and find BACKUP tab
backup.png
4. Select where you will store your back up rom internal or microsd (recommended) or create one from internal then create another in microsd then copy those TWRP folder and save to your pc or usb drive or other external devices in case you delete them from your device.
select_microsd.png
5. You may input your own backup name instead of the auto-generate with date, but I prefer the auto-generate so I can track the date when I made those backups.

Others select system, data, boot as you may check all if you want to.
select_storage.png
6. You may skip md5, since most errors come from this
skip_md5.png
7. You may skip "encrypt your backup" with password then swipe to back up
swipe_to_back_up.png
8. Backup progress
back_up_process.png
9. Backup complete you may reboot your system and your done
backup_complete.png
10. You may restore your backup if you have issues when flashing custom roms later on, now you can go to sdcard or internal storage where save your backup rom and you will notice a folder created named TWRP and inside would be random letter number folder and another folder inside with a date

Highly recommended to create number of backups and save to pc or usb

********************************************************************************
HOW TO RESTORE BACKUP FILE
1. Repeat steps 1 & 2 -wipe dalvik and cache (on how to create a backup rom steps)
2. This time select RESTORE tab
restore.png
3. Scroll and find your backup file then swipe to restore
restore_backup_file.png

4. Wait until restore backup complete, then reboot system

enjoy!

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 twrp.img (or CWM.img) to flash and place inside adb folder
4. Enable "usb debugging" then connect your device to PC via usb cable
5. From command window type
  • adb reboot bootloader (hit enter key)
  • fastboot devices (hit enter)
  • fastboot boot twrp-*.*.*-*.*-***.img (hit enter key)TEMPORARY
  • fastboot flash twrp-*.*.*-*.*-***.img (hit enter key)PERMANENT

6. If temporary it will auto reboot to TWRP recovery mode, if you chose permanent type then type this after flashing TWRP permanently
  • fastboot reboot (hit enter)
7. Test by pressing Power+Vol down (google if different device)

********************************************************************************
Spoonfeed! when in doubt google my friend :) Pag ayaw mo ng TWRP may You do not have permission to view the full content of this post. Log in or register now. ni Koushik kung compatible sa device mo download lang ng ROM manager app or via adb at download mo CWM.img then same step as above on how to flash twrp, change name lang sa CWM.img instead of TWRP.img

Paulit ulit lang yang process kahit ano pang android device pag nagflash ng TWRP/CWM via adb and same sa pag gawa ng back up rom at pagrestore via TWRP/CWM.
********************************************************************************
 

Attachments

Last edited:
ayoko gawin yan kase minsan tlga may mga unexpected na nangyayari sa mi devices like bootloop lalo nat redmi note 5 ai to
much better to go to technician
nasa sayo yan paps yung temporary na flash boot dun machecheck kung compatible since di yun magboot sa twrp kung ayaw at wala yun iinstall susubukan lang nya iboot sa twrp kung match pero para sa mga nais lang sumubok hehe
 
Nice tut ts sakto kakabootlop lng ng 5 plus ko kahapon nung nag re root ako from oreo miui10 buti narecover na downgrade pa miui 9. Bookmark ko muna to para sa mga gaya kong bago sa pagro root via flashing custom recovery. Mamats ulit
 
Status
Not open for further replies.

Similar threads

Back
Top