[Guide][Mac OS] How to save Nexus 5 - Soft Brick - Nexus 5 Q&A, Help & Troubleshooting

I ran into this today after wiping my "internal storage" in TWRP (oops).
This guide assumes you have bricked the Nexus 5 with an unlocked bootloader and root'd device
**Download before starting**
- Latest TWRP: http://teamw.in/project/twrp2/205
- Latest Hammerhead stock images: https://developers.google.com/android/nexus/images#hammerhead
- One Click TWRP Recovery Toolkit: http://www.androidrootz.com/2013/11/nexus-5-one-click-toolkit-for-mac.html
- Latest SuperSU (GA or beta): http://forum.xda-developers.com/showthread.php?t=1538053
**Recover Stock OS**
- Extract the Hammerhead stock images .tgz archive contents on your mac
- Ensure you have copies of "fastboot" and "adb" and place them in the same folder (optional but easier)
- Edit "flash-all.sh" script with complete path to "fastboot", or simply "./fastboot". An example:
/Users/james/Downloads/hammerhead-lrx22c/fastboot
- Boot the device in Fastboot Mode (volume up + down and power)
- Use the USB Cable to connect the Nexus 5 to your PC.
- Open "Terminal" > change directory to correct folder > Execute "flash-all.sh"
- Wait for the installation process to complete
- Reboot once you can, and go back into fastboot
**Reflash recovery (stock images rewrite recovery)**
- Extract "TWRP.RecoveryNexus5.zip" into a folder
- Place downloaded TWRP .img into the same folder (i.e "openrecovery-twrp-2.8.3.0-hammerhead.img")
- Edit "TWRP.Recovery.Nexus5" file > line 36 > change to above .img. An example:
./fastboot flash recovery openrecovery-twrp-2.8.3.0-hammerhead.img
- Open "Terminal" > change directory to the correct folder > Execute "TWRP.Recovery.Nexus5", or just open it in finder (like any app)
- Follow instructions in cmd window
Once completed you can let your phone boot normally (i.e, reboot into system).
Now you can mount the file system and place ROM files via USB again.... then boot into recovery and flash whatever you need... Remember to flash SuperSU!
Good Resources:
- http://forum.xda-developers.com/goo...olkit-root-twrp-recovery-unroot-11-6-t2515640
- http://www.android.gs/how-to-unbrick-google-nexus-5/
Thanks to @techfanatic9 for creating the toolkits!

Related

Easy (but long) sgs2 to ext4 image unpack script for Windows+adb+Phone

The common way to unpack such images - is to convert img file to ext4 with sgs2toext4.jar utility, and then, using LinuxReader to open and save files.
The other way I suppose to you - to use android phone and adb. It takes a few minutes - so it`s quite long.
Theory step by step:
1. Convert system.img to ext4.img with the same sgs2toext4.jar
2. Push ext4.img to sdcard
3. Loop mount image to data/ext4 folder
4. Make tar archive of it
5. Pull back ext4.img.tar to PC
6 Unpack it as zip - and you have unpacked image on PC.
Conditions:
- ADB, Java on PC
- root and busybox in the phone
- important! loop mounting support in kernel (boot)
- sdcard with free space mounted as /sdcard/
How to:
drag system.img to system_unpaсk.bat
Bonus:
system_img_remake.bat - all th same, but it let You to make changes in data/ext4/system folder - change apk and so on - and get back to PC new ext4 image - and flash it via FlashTool for ex.
michfood said:
The common way to unpack such images - is to convert img file to ext4 with sgs2toext4.jar utility, and then, using LinuxReader to open and save files.
The other way I suppose to you - to use android phone and adb. It takes a few minutes - so it`s quite long.
Theory step by step:
1. Convert system.img to ext4.img with the same sgs2toext4.jar
2. Push ext4.img to sdcard
3. Loop mount image to data/ext4 folder
4. Make tar archive of it
5. Pull back ext4.img.tar to PC
6 Unpack it as zip - and you have unpacked image on PC.
Conditions:
- ADB, Java on PC
- root and busybox in the phone
- important! loop mounting support in kernel (boot)
- sdcard with free space mounted as /sdcard/
How to:
drag system.img to system_unpaсk.bat
Bonus:
system_img_remake.bat - all th same, but it let You to make changes in data/ext4/system folder - change apk and so on - and get back to PC new ext4 image - and flash it via FlashTool for ex.
Click to expand...
Click to collapse
You sir are a Genius (гений) pure and simple :highfive:
PS: Can you please support your MoreApp.apk here on xda so you can be given credit for this too :good:
MoreApp.apk is not mine ))) - some time ago I`ve made some changes to it - but I do not really think it is needed - my device (and others) have a lot of free memory to install apps - 2,5gb and internal flash 27gb - can be resized to increase data partition - so moreapp or app2sd and so on - are not actual anymore

Root Huawei Mediapad M5 10.8" LTE with Magisk

Preliminaries
open bootloader
a little bit understand what you doing
flash nothing if you NOT have FULL-Update from your build !
inside Update.app is all partitions you need
My device and build : Huawei Mediapad M5 - CMR-AL09 8.0.0.161(C432) 10.8" LTE
Huawei Bootloader-Unlock Site is closed, only way for BL-unlock-code is dc-unlocker (cost = 4€)
- M5 run
- Menu / System / over the Device : tap 7x on "build" (activate developer-options)
- Menu / System / developer-options : OEM-unblocking = aktiv, USB-Debugging = aktiv
- USB-Wire M5 to PC
- on PC / web-browser go to dc-unlocker, download Client, start Client and follow instructions
- you need dc-unlocker account, save username and password on PC (for use in future)
- i am use paypal to pay "credits" for dc-unlocker
- if finished now you have BL-unlock-code (save on PC for use in future)
boot in bootloader
- fastboot flash oem unlock "your BL-unlock-code"
TWRP
i am use https://forum.xda-developers.com/p10/development/recovery-twrp-3-2-1-0-emui-8-0-4-04-2018-t3773449
"twrp_p10_0.1 .img" : this work on my M5
IMPORTANT: /data decryption is only necessary if you have set up fingerprint and pin code.
boot in bootloader
- fastboot flash recovery_ramdisk twrp_p10_0.1 .img
if decryption work : TWRP need by start the PIN and then decrypt "data"
"Data successfully decrypted"
Root with Magisk
download https://forum.xda-developers.com/apps/magisk/official-magisk-v7-universal-systemless-t3473445
Magisk.zip, copy to M5 (external_sd or intern/Download)
boot to recovery(TWRP)
- TWRP / Install Magisk.zip
- TWRP / Reboot "System"
if M5 run
start MagiskManager (if write update available then update)
check SafetyNet
check root with RootChecker or other root-app (example : TitaniumBackup)
NOW is M5 rooted
For your Security (and Self-Repair) is a good idea you have from your build "Full-Update"
https://forum.xda-developers.com/tools/general/huawei-firmware-finder-team-mt-t3469146 [HFF]
search with HFF example : CMR-AL09 8.0.0.161(C432) = in HFF CMR-AL09C432B161
https://forum.xda-developers.com/showthread.php?t=2433454 [HUE]
unzip Update.app from Update.zip
with HUE extract from Update.app
- ramdisk.img
- recovery_ramdis.img
- system.img
HUE do automatic for all *.img *.img.header
- this 6 files copy to your adb-folder
Now you can Self-Repair with
- fastboot flash ramdisk ramdisk.img
- fastboot flash recovery_ramdisk recovery_ramdis.img
- fastboot flash system system.img
and your M5 is reset to stock-rom.
If you NOT use TWRP you can install Magisk with "patched_boot.img" with self-create
- copy "ramdisk.img" to your M5/Download
- download MagiskManager-v5.x.x.apk and copy to your M5/Download
- install MagiskManager
- if MagiskManager run inside "install", "download Magisk-v16.0.zip ?" = yes, "modify boot.img" = yes
select in M5/Download your "ramdisk.img", Magisk modify this and save in your Pad/MagiskManager/patched_boot.img
- copy patched_boot.img to your PC/"your adb-folder"
- in Windows open Command (DOS-Prompt-Window)
- go to your adb-folder (example: cd C:\ADB)
- if Pad run : adb devices (answer: your ID adb), adb reboot bootloader
- fastboot devices (check if Pad is online?)
- fastboot flash ramdisk patched_boot.img
if Pad rebootet check Magisk. if work : done!
i think this work for all Huawei-OREO-build's
this Site updated 20180820
Didn't you see this thread?!!! https://forum.xda-developers.com/mediapad-m5/how-to/root-root-guide-huawei-mediapad-m5-t3786157
I accidently flashed the patched_boot.img to the wrong partition - Please tell me that there is any way to get it back working ...
Huawei Erecovery boots ....
shouldn't dload work?
kev1807 said:
I accidently flashed the patched_boot.img to the wrong partition - Please tell me that there is any way to get it back working ...
Huawei Erecovery boots ....
shouldn't dload work?
Click to expand...
Click to collapse
Can you still get into fastboot? If yes, try hurupdater to go back to stock.
luckily, I was able to adb reboot bootloader from erecovery, however, I think dload should work (I won't test this though ....)
My fix was after simply reflashing the ROM once I was in the bootloader (I did not disconnect the tab while doing all this stuff ... )

ZTE Zmax Pro EDL Tool - Flash / Backup / Restore in the EDL mode

This tool has been heavily modified for the zte max pro, it was originally posted as the axon 7 tool. Not all features have been included as not all work as of yet for the pro.
ZTE Zmax Pro EDL Tool
BAT-program for Flash / Backup / Restore / Unlock the phone in EDL mode
Qualcomm HS-USB QDLoader 9008 (COM ...)​
!!! Whatever you do, you do at your own risk !!!"
!!! If you are not sure of yourself do not use this program !!!​
Special requirements (read first) !!!
1. The program must be unpacked
2. Before using the program, make sure that:
- It is desirable to copy the program to the root of the disc, for example: C:\ZTE_Zmax_Pro_edl\ or D:\ZTE_Zmax_Pro_edl
- You launched this program as administrator
- You have drivers installed, preferably original for ZTE Zmax Pro
3. Read carefully what the program displays on the screen (I specially wrote the tips, the information is very useful, many questions disappear)
Features of the program:
1. Automatically reboot the phone into EDL mode
2. Finds the connected phone and forces the COM-port speed to 115200
3. Can flash , backup, restore
4. Analyzes folders for missing required files
5. and others ...)))
Structure of program folders:
1. Folder flash - in this folder you need to copy the files you want to flash
Subfolders:
folder full - if you want to flash full firmware (official, adapted for EDL mode), then in this folder you need to put all the files from the firmware for EDL mode:
its name usually looks like this: A2017 _......._ FULL_EDL
folder boot - if you want to flash your kernel file, you need to put a file named: boot.img in this folder (the file name must be exactly that!)
folder recovery - if you want to flash your recovery file, you need to put a file named: recovery.img in this folder (the file name must be exactly that!)
folder modem - if you want to flash your modem file, you need to put a file named: NON-HLOS.bin in this folder (the file name must be exactly that!)
folder splash - if you want to flash your splash file, you need to put a file named: splash.img in this folder (the file name must be exactly that!)
2. Folder backup - the folder contains backup copies of the phone partitions created by the program
Subfolders:
folder all - this folder contains backups of all partitions, except userdata
folder full - this folder contains backup of all partitions included in the FULL EDL firmware
folder boot - this folder contains a backup of the boot partition
folder recovery - this folder contains a backup of the recovery partition
folder modem - this folder contains a backup of the modem partition
folder splash - this folder contains a backup of the splash partition
folder efs - this folder contains backup of the efs partition
3. Folder unlock - contains all the necessary files to unlock (do not touch it!)
4. Folder logs - contains all the logs of the program
5. Folder tools - contains all the necessary files for the program (do not touch it!)
For those who still do not understand how to flash (FAQ):
Question: I want to flash a patched or original boot, how to do this ???
Answer: Download the boot you need, rename it to boot.img and place it in the folder ZTE_Zmax_Pro_edl\flash\boot\. Run the program ZTE_Zmax_Pro_edl.bat and select Flash -> Flash Boot
Question: I want to flash TWRP, how to do this ??? !!! Only for those who unlocked the bootloader !!!
Answer: Download official TWRP or TWRP by @NFound, rename it to recovery.img and place it in the folder ZTE_Zmax_Pro_edl\flash\recovery\. Run the program ZTE_Zmax_Pro_edl.bat and select Flash -> Flash Recovery
Question: I want to flash the modem, how to do this ???
Answer: Download or take the NON-HLOS.bin file from firmware and put it in the folder ZTE_Zmax_Pro_edl\flash\modem\. Run the program ZTE_Zmax_Pro_edl.bat and select Flash -> Flash Modem
Question: I want to flash the splash, how to do this ???
Answer: Download or take the splash.img file from firmware and put it in the folder ZTE_Zmax_Pro_edl\flash\splash\. Run the program ZTE_Zmax_Pro_edl.bat and select Flash -> Flash Splash
!!! Download !!!
View attachment ZTE_Zmax_Pro_edl.zip​
Hi loonycgb2. I have a question. I want flash a full firmware but there in not the optionin the app. Can you help me?
How do you unlock the bootloader on z981?
How do you unlock the bootloader on z981?
fastboot oem unlock command does not work.
the efs backup feature throws an error where it cannot find persist.bin. it also cant restore the backup for the same reason. all done according to instructions

Need help for rooting my Galaxy A7 2018 (SM-A750FN/DS)

Hi,
i want to root my samsung Galaxy A7 2018 (SM-A750FN/DS) in Android 10 but i tested and it dont work at all, i got a bootloop.
So i need help
To restore oneui (fix bootloop):
1. Download your device's firmware using samfw (or any other samsumg firwmare download site/tool)
2. unzip the downloaded file
3. Open Odin3
4. Click on the AP button and select a file named AP_sometext from the extracted zip folder
5. Do the same for BL, CP and CSC (for CSC use CSC_OMC_OJM_sometext and not HOME_CSC_OMC_OJM_sometext)
6. Click on flash, your phone should reboot automatically to samsung oneui
To root your device:
1. Install a custom recovery (try TWRP (works better for A750FN), if it doesnt work then try PBRP)
2. Download latest magisk apk to your PC from the Github Releases page (direct link)
3. boot into your custom recovery
4. go to advanced > ADB sideload
5. open terminal and run
Code:
adb sideload magisk.apk
(replace magisk.apk with the path to the downloaded magisk apk)
6. delete cache and reboot system
7. Enjoy!
itmr said:
To restore oneui (fix bootloop):
1. Download your device's firmware using samfw (or any other samsumg firwmare download site/tool)
2. unzip the downloaded file
3. Open Odin3
4. Click on the AP button and select a file named AP_sometext from the extracted zip folder
5. Do the same for BL, CP and CSC (for CSC use CSC_OMC_OJM_sometext and not HOME_CSC_OMC_OJM_sometext)
6. Click on flash, your phone should reboot automatically to samsung oneui
To root your device:
1. Install a custom recovery (try TWRP (works better for A750FN), if it doesnt work then try PBRP)
2. Download latest magisk apk to your PC from the Github Releases page (direct link)
3. boot into your custom recovery
4. go to advanced > ADB sideload
5. open terminal and run
Code:
adb sideload magisk.apk
(replace magisk.apk with the path to the downloaded magisk apk)
6. delete cache and reboot system
7. Enjoy!
Click to expand...
Click to collapse
i just install twrp but i got the start twrp screen and next some black line appeared in the screen and next a black screen
Update : i just restore to one ui
If you still want to root your phone, try using PBRP. I also had black lines but I dont with PBRP.
okay but how to flash PBRP ? there is no .tar file
Use this
NOTE: this is untested, if this doesnt work try to unzip the zip file from the post, and use heimdall to flash TWRP\recovery.img
PBRP work but whan i start sideload in PBRP Its write :
Code:
Starting ADB sideload feature...
But nothing next
Edit : Nvm
Now i have Integrity check failure when i reboot and it said to reset it but it dont disappears
Did you get an error while flashing magisk?
You can also use magisk without a custom recovery, see magisk's installation page
itmr said:
To root your device:
1. Install a custom recovery (try TWRP (works better for A750FN), if it doesnt work then try PBRP)
Click to expand...
Click to collapse
I cant install twrp, i get a lot of horizontal black lines on the twrp logo, and a lot of bootloops.
because i cant install twrp, and the only thing that i can access is the download "page", i cant try pbrp ither.
itamarBL8844 said:
I cant install twrp, i get a lot of horizontal black lines on the twrp logo, and a lot of bootloops.
because i cant install twrp, and the only thing that i can access is the download "page", i cant try pbrp ither.
Click to expand...
Click to collapse
There are 2 fixes i know for black lines:
1. You can flash PBRP using heimdall/odin:
- Using heimdall (works for Linux, Mac and Windows, but from my experience it doesnt work well with Windows):
- - 1. Unzip the PBRP installer
- - 2. Open terminal/cmd in the TWRP folder (inside the extracted PBRP zip)
- - 3. Run
Code:
heimdall flash --RECOVERY recovery.img
to flash PBRP
- - 4. Enjoy!
- Using Odin3 (only for Windows):
- - 1. Unzip the PBRP installer
- - 2. Open the TWRP folder (inside the extracted PBRP zip)
- - 3. I don't use Windows, so i don't know for sure. Try to search online on how to convert .img files to odin format, then convert recovery.img to odin format and flash it.
2. Reverting to older firmware:
NOTE: this will revert security patches, therefore it is NOT RECOMMENDED. Do it only if method 1 didnt work and if you don't care about security patches.
NOTE: this will wipe your data. Make sure to have a backup.
- 1. Find your CSC code (search online for a CSC code list)
- 2. Go to https://samfw.com/firmware/SM-A750FN
- 3. Search your CSC code and click on it
- 4. You should see a list of firmware versions.
- 5. There should be a Bit/SW REV. Security Patch Lvl. section.
- 6. There should be around four versions that have the number 5 on the Bit/SW REV. Security Patch Lvl. section.
- 7. Download the OLDEST (most lower) one of those versions.
- 8. Unzip the downloaded zip file
- 9. Flash the extracted files using Odin3 (AP_sometext.tar.md5 to the AP slot, BL_sometext.tar.md5 to the BL slot and so on.)
- 10. Flash TWRP or PBRP
- 11. Enjoy!
You can also use magisk without a custom recovery, see magisk's installation page
itmr said:
There are 2 fixes i know for black lines:
1. You can flash PBRP using heimdall/odin:
- Using heimdall (works for Linux, Mac and Windows, but from my experience it doesnt work well with Windows):
- - 1. Unzip the PBRP installer
- - 2. Open terminal/cmd in the TWRP folder (inside the extracted PBRP zip)
- - 3. Run
Code:
heimdall flash --RECOVERY recovery.img
to flash PBRP
- - 4. Enjoy!
- Using Odin3 (only for Windows):
- - 1. Unzip the PBRP installer
- - 2. Open the TWRP folder (inside the extracted PBRP zip)
- - 3. I don't use Windows, so i don't know for sure. Try to search online on how to convert .img files to odin format, then convert recovery.img to odin format and flash it.
2. Reverting to older firmware:
NOTE: this will revert security patches, therefore it is NOT RECOMMENDED. Do it only if method 1 didnt work and if you don't care about security patches.
NOTE: this will wipe your data. Make sure to have a backup.
- 1. Find your CSC code (search online for a CSC code list)
- 2. Go to https://samfw.com/firmware/SM-A750FN
- 3. Search your CSC code and click on it
- 4. You should see a list of firmware versions.
- 5. There should be a Bit/SW REV. Security Patch Lvl. section.
- 6. There should be around four versions that have the number 5 on the Bit/SW REV. Security Patch Lvl. section.
- 7. Download the OLDEST (most lower) one of those versions.
- 8. Unzip the downloaded zip file
- 9. Flash the extracted files using Odin3 (AP_sometext.tar.md5 to the AP slot, BL_sometext.tar.md5 to the BL slot and so on.)
- 10. Flash TWRP or PBRP
- 11. Enjoy!
You can also use magisk without a custom recovery, see magisk's installation page
Click to expand...
Click to collapse
I have carried out this procedure and tried to flash tar versions of TWRP and PBRP using Odin3, but both fail.
Software is Android 10 with patch level 1 November 2020, was previously the latest patch level.
Does anyone know what is causing the custom recovery flash to fail?

[Guide] Install Android 10 firmware on Nokia 7.2 (DDV) using Stock recovery

Hello everyone!
There are some handy tools to flash stock firmware on Nokia devices. In this guide, we'll explain how to install stock firmware without the need of any flashing tools.
Here's the download links for Android 10 Firmware (build v2_410_SP02) & boot image.
Download:
Android 10 - Nov 2020 - 00WW_2_410_SP02
Boot img
NOTE:
This is an OTA package which contains payload.bin file. You can sideload the package through stock recovery by following method
or
You can extract the payload.bin file using payload dumper and flash using Nokia Tool or pack the extracted contents as a zip file, then flash using Nokia Flash Tool (NFT)
___________________
How to install?
[This method is useful if you are from any other ROM / have erased all the data from your device using TWRP; Now want to flash the stock rom, but not ready to flash using above mentioned tools as they take more time for payload.bin extraction, repacking etc.,]
Let's get started!
- Keep the boot img on your PC
- Move the downloaded OTA file to the external SD Card
- Power off the phone
- Hold Volume down + Power button (device will boot into bootloader mode)
- Connect the device to PC with USB cable
- Open command prompt on your PC
- Flash the boot img using fastboot command
fastboot flash boot boot.img
- Reboot to Recovery mode (Select "Recovery mode" from bootloader. Android logo will appear. Press Volume up + Power button at the same time. Now the device will boot into Recovery mode)
- Select "Apply update from SD card"
- Navigate to the downloaded OTA zip from external SD card and select it
- After installation compete, you can reboot the device into stock Android 10.
That's all!
(In some cases, the recovery may ask to perform a factory data reset. Proceed to reset and then reboot the device)
Thanks: @Raghu varma @singhnsk @hikari_calyx @sayaoks
hello! thank you for the tutorial
this seems like the only method to downgrade to be able to unlock the bootloader.. unfortunately the boot.img link is dead, do you have it somewhere? would you mind reuploading?
this is ddva any ddv?
Is this the way how to get back to "normal" Nokia images?
The one linked in the first post can also be replaced with newer ota images? Like
https://android.googleapis.com/packages/ota-api/package/3835d2733c190ef38b7064b94dd32cb26615e3ea.zip ?

Categories

Resources