ZTE Axon 7 (zte-axon7): Difference between revisions
Appearance
Ungeskriptet (talk | contribs) zte-axon7: added instructions for unlocking the bootloader on A2017G |
Ungeskriptet (talk | contribs) Change "python edl.py" to "./edl" |
||
Line 54: | Line 54: | ||
# Boot into EDL mode: <code>adb reboot edl</code> | # Boot into EDL mode: <code>adb reboot edl</code> | ||
# Backup all partitions from the phone (without userdata): | # Backup all partitions from the phone (without userdata): | ||
#:<code> | #:<code>./edl --loader=Loaders/zte/009470e100040000_d1b89b1385b0db46_fhprg_peek.bin --memory=ufs rl backup --skip=userdata --genxml</code> | ||
# Downgrade the phone to B12 Nougat firmware from EDL mode from B04 Oreo (might not be necessary at all, not sure): | # Downgrade the phone to B12 Nougat firmware from EDL mode from B04 Oreo (might not be necessary at all, not sure): | ||
## Download the EDL mode compatible firmware from [https://androidfilehost.com/?fid=1322778262903993129 here] or [https://androidfilehost.com/?fid=7161016148664813849 here] and extract it | ## Download the EDL mode compatible firmware from [https://androidfilehost.com/?fid=1322778262903993129 here] or [https://androidfilehost.com/?fid=7161016148664813849 here] and extract it | ||
## Flash the firmware (Only proceed if partitions were backed up!) | ## Flash the firmware (Only proceed if partitions were backed up!) | ||
##:<syntaxhighlight lang="shell-session"> | ##:<syntaxhighlight lang="shell-session"> | ||
$ | $ ./edl --loader=Loaders/zte/009470e100040000_d1b89b1385b0db46_fhprg_peek.bin --memory=ufs qfil A2017G_B12_NOUGAT_FULL_EDL/rawprogram0.xml A2017G_B12_NOUGAT_FULL_EDL/patch0.xml A2017G_B12_NOUGAT_FULL_EDL | ||
$ | $ ./edl --loader=Loaders/zte/009470e100040000_d1b89b1385b0db46_fhprg_peek.bin --memory=ufs qfil A2017G_B12_NOUGAT_FULL_EDL/rawprogram1.xml A2017G_B12_NOUGAT_FULL_EDL/patch1.xml A2017G_B12_NOUGAT_FULL_EDL | ||
$ | $ ./edl --loader=Loaders/zte/009470e100040000_d1b89b1385b0db46_fhprg_peek.bin --memory=ufs qfil A2017G_B12_NOUGAT_FULL_EDL/rawprogram2.xml A2017G_B12_NOUGAT_FULL_EDL/patch2.xml A2017G_B12_NOUGAT_FULL_EDL | ||
$ | $ ./edl --loader=Loaders/zte/009470e100040000_d1b89b1385b0db46_fhprg_peek.bin --memory=ufs qfil A2017G_B12_NOUGAT_FULL_EDL/rawprogram3.xml A2017G_B12_NOUGAT_FULL_EDL/patch3.xml A2017G_B12_NOUGAT_FULL_EDL | ||
$ | $ ./edl --loader=Loaders/zte/009470e100040000_d1b89b1385b0db46_fhprg_peek.bin --memory=ufs qfil A2017G_B12_NOUGAT_FULL_EDL/rawprogram4.xml A2017G_B12_NOUGAT_FULL_EDL/patch4.xml A2017G_B12_NOUGAT_FULL_EDL | ||
$ | $ ./edl --loader=Loaders/zte/009470e100040000_d1b89b1385b0db46_fhprg_peek.bin --memory=ufs qfil A2017G_B12_NOUGAT_FULL_EDL/rawprogram5.xml A2017G_B12_NOUGAT_FULL_EDL/patch5.xml A2017G_B12_NOUGAT_FULL_EDL | ||
</syntaxhighlight> | </syntaxhighlight> | ||
# Reboot the phone by just holding {{Button|Power}} for a few seconds | # Reboot the phone by just holding {{Button|Power}} for a few seconds | ||
Line 70: | Line 70: | ||
# Reboot into EDL mode again: <code>adb reboot edl</code> | # Reboot into EDL mode again: <code>adb reboot edl</code> | ||
# Download and flash signed TWRP from [https://www.androidfilehost.com/?fid=7161016148664813848 here] or [https://androidfilehost.com/?fid=673956719939817588 here] (look for recovery.bin) | # Download and flash signed TWRP from [https://www.androidfilehost.com/?fid=7161016148664813848 here] or [https://androidfilehost.com/?fid=673956719939817588 here] (look for recovery.bin) | ||
#:<code> | #:<code>./edl --loader=Loaders/zte/009470e100040000_d1b89b1385b0db46_fhprg_peek.bin --memory=ufs w recovery twrp_signed-axon7.bin --lun=4</code> | ||
# Reboot the phone into recovery (see above) | # Reboot the phone into recovery (see above) | ||
# Download patched [https://www.androidfilehost.com/?fid=7161016148664813850 aboot.img] and [https://www.androidfilehost.com/?fid=7161016148664813851 fbop/fastboot_unlock.img] ([https://mega.nz/#F!rcFCQZ7C!vn457hU1zDwc0uVpvm5otw aboot.img mirror] and [https://androidfilehost.com/?fid=529152257862665656 fbop/fastboot_unlock.img mirror]) | # Download patched [https://www.androidfilehost.com/?fid=7161016148664813850 aboot.img] and [https://www.androidfilehost.com/?fid=7161016148664813851 fbop/fastboot_unlock.img] ([https://mega.nz/#F!rcFCQZ7C!vn457hU1zDwc0uVpvm5otw aboot.img mirror] and [https://androidfilehost.com/?fid=529152257862665656 fbop/fastboot_unlock.img mirror]) |
Revision as of 09:19, 29 December 2021
This device is marked as not booting.
![]() ZTE Axon 7 | |
Manufacturer | ZTE |
---|---|
Name | Axon 7 |
Codename | zte-axon7 |
Released | 2016 |
Hardware | |
Chipset | Qualcomm MSM8996 Snapdragon 820 |
CPU | Quad-core (2x 2.15 GHz Kryo & 2x 1.6 GHz Kryo) |
GPU | Adreno 530 |
Display | 1440x2560 AMOLED |
Storage | 64 GB |
Memory | 4 GB |
Architecture | aarch64 |
Software | |
Original software | MiFavor 4.0 (Android 6.0.1) |
postmarketOS | |
Category | testing |
Pre-built images | no |
This device is based on the Snapdragon 820. See the SoC page for common tips, guides and troubleshooting steps |
Contributors
Users owning this device
- DrGit (Notes: 64GB)
- JuniorJPDJ (Notes: running own build of Lineage-microG)
- Segfault (Notes: Bricked)
- Ungeskriptet (Notes: stupid dual dsi)
How to enter flash mode
- Fastboot: Power on the device by pressing and holding and .
- Recovery: Power on the device by pressing and holding and .
Unlocking the bootloader
Note: This has been only tested on A2017G version of the Axon 7 |
Unlocking the bootloader on this phone is quite complicated and dangerous so only proceed with caution. This will also wipe userdata so be sure to backup any important files.
- Download and Install the EDL tool (follow the instrucitons on the GitHub page to install it)
- Boot into EDL mode:
adb reboot edl
- Backup all partitions from the phone (without userdata):
./edl --loader=Loaders/zte/009470e100040000_d1b89b1385b0db46_fhprg_peek.bin --memory=ufs rl backup --skip=userdata --genxml
- Downgrade the phone to B12 Nougat firmware from EDL mode from B04 Oreo (might not be necessary at all, not sure):
- Download the EDL mode compatible firmware from here or here and extract it
- Flash the firmware (Only proceed if partitions were backed up!)
$ ./edl --loader=Loaders/zte/009470e100040000_d1b89b1385b0db46_fhprg_peek.bin --memory=ufs qfil A2017G_B12_NOUGAT_FULL_EDL/rawprogram0.xml A2017G_B12_NOUGAT_FULL_EDL/patch0.xml A2017G_B12_NOUGAT_FULL_EDL $ ./edl --loader=Loaders/zte/009470e100040000_d1b89b1385b0db46_fhprg_peek.bin --memory=ufs qfil A2017G_B12_NOUGAT_FULL_EDL/rawprogram1.xml A2017G_B12_NOUGAT_FULL_EDL/patch1.xml A2017G_B12_NOUGAT_FULL_EDL $ ./edl --loader=Loaders/zte/009470e100040000_d1b89b1385b0db46_fhprg_peek.bin --memory=ufs qfil A2017G_B12_NOUGAT_FULL_EDL/rawprogram2.xml A2017G_B12_NOUGAT_FULL_EDL/patch2.xml A2017G_B12_NOUGAT_FULL_EDL $ ./edl --loader=Loaders/zte/009470e100040000_d1b89b1385b0db46_fhprg_peek.bin --memory=ufs qfil A2017G_B12_NOUGAT_FULL_EDL/rawprogram3.xml A2017G_B12_NOUGAT_FULL_EDL/patch3.xml A2017G_B12_NOUGAT_FULL_EDL $ ./edl --loader=Loaders/zte/009470e100040000_d1b89b1385b0db46_fhprg_peek.bin --memory=ufs qfil A2017G_B12_NOUGAT_FULL_EDL/rawprogram4.xml A2017G_B12_NOUGAT_FULL_EDL/patch4.xml A2017G_B12_NOUGAT_FULL_EDL $ ./edl --loader=Loaders/zte/009470e100040000_d1b89b1385b0db46_fhprg_peek.bin --memory=ufs qfil A2017G_B12_NOUGAT_FULL_EDL/rawprogram5.xml A2017G_B12_NOUGAT_FULL_EDL/patch5.xml A2017G_B12_NOUGAT_FULL_EDL
- Reboot the phone by just holding for a few seconds
- Boot into the stock Nougat system and enable "OEM Unlocking"
- Reboot into EDL mode again:
adb reboot edl
- Download and flash signed TWRP from here or here (look for recovery.bin)
./edl --loader=Loaders/zte/009470e100040000_d1b89b1385b0db46_fhprg_peek.bin --memory=ufs w recovery twrp_signed-axon7.bin --lun=4
- Reboot the phone into recovery (see above)
- Download patched aboot.img and fbop/fastboot_unlock.img (aboot.img mirror and fbop/fastboot_unlock.img mirror)
- Backup current partitions and flash the patched ones
$ adb push aboot.img fastboot_unlock.img /sdcard $ adb shell dd if=/dev/block/bootdevice/by-name/fbop of=/sdcard/fbop_lock.img $ adb shell dd if=/dev/block/bootdevice/by-name/aboot of=/sdcard/aboot_lock.img $ adb pull /sdcard/fbop_lock.img /sdcard/aboot_lock.img . #save in safe place $ adb shell dd if=/sdcard/fastboot_unlock.img of=/dev/block/bootdevice/by-name/fbop $ adb shell dd if=/sdcard/aboot.img of=/dev/block/bootdevice/by-name/aboot $ adb reboot bootloader
- Unlock the bootloader (finally):
fastboot oem unlock
- Reboot back into the bootloader and flash the latest official TWRP:
fastboot flash recovery twrp-3.5.2_9-0-ailsa_ii.img
Your ZTE Axon 7 should now have an unlocked bootloader with latest TWRP, for questions ask @ungeskriptet:matrix.org on Matrix.
Installation
/* Not yet */