ZTE Axon 7 (zte-axon7): Difference between revisions
Appearance
Ungeskriptet (talk | contribs) m →How to enter flash mode: Entering bootloader is a bit different |
Ungeskriptet (talk | contribs) A few corrections |
||
Line 71: | Line 71: | ||
# Reboot into EDL mode again | # Reboot into EDL mode again | ||
# Download new bootloader files [https://www.androidfilehost.com/?fid=7161016148664813850 aboot_unlock.img] and [https://www.androidfilehost.com/?fid=7161016148664813851 fbop_unlock.img] to allow unlocking | # Download new bootloader files [https://www.androidfilehost.com/?fid=7161016148664813850 aboot_unlock.img] and [https://www.androidfilehost.com/?fid=7161016148664813851 fbop_unlock.img] to allow unlocking | ||
# Flash new bootloader files | # Flash new bootloader files (these files will also restore access to fastboot) | ||
#:<syntaxhighlight lang="shell-session"> | #:<syntaxhighlight lang="shell-session"> | ||
$ ./edl --loader=Loaders/zte/009470e100040000_d1b89b1385b0db46_fhprg_peek.bin --memory=ufs --lun=4 w aboot aboot_unlock.img | $ ./edl --loader=Loaders/zte/009470e100040000_d1b89b1385b0db46_fhprg_peek.bin --memory=ufs --lun=4 w aboot aboot_unlock.img | ||
Line 92: | Line 92: | ||
| UFS || Samsung KLUCG4J1CB-B0B1 || Y || 64GB variant | | UFS || Samsung KLUCG4J1CB-B0B1 || Y || 64GB variant | ||
|- | |- | ||
| Display || Samsung s6e3ha3 || | | Display || Samsung s6e3ha3 || P || Using dual DSI | ||
|- | |- | ||
| Touchscreen || Synaptics rmi4 || Y || | | Touchscreen || Synaptics rmi4 || Y || | ||
Line 104: | Line 104: | ||
| Ambient light and proximity sensor || ROHM rpr0521 || N || Driver available in mainline | | Ambient light and proximity sensor || ROHM rpr0521 || N || Driver available in mainline | ||
|- | |- | ||
| Magnetometer || AKM (Asahi Kasei Microdevices) | | Magnetometer || AKM (Asahi Kasei Microdevices) ak09915 || N || | ||
|- | |- | ||
| Audio || AKM (Asahi Kasei Microdevices) ak4490 || N || <code>ak4961</code> codec | | Audio || AKM (Asahi Kasei Microdevices) ak4490 || N || <code>ak4961</code> codec | ||
Line 110: | Line 110: | ||
| GPU || Qualcomm Adreno 530 || N || | | GPU || Qualcomm Adreno 530 || N || | ||
|- | |- | ||
| Wi-Fi || Qualcomm qca6174 || Y || Connected through PCIe | | Wi-Fi || rowspan = 2 | Qualcomm qca6174 || Y || Connected through PCIe | ||
|- | |- | ||
| Bluetooth | | Bluetooth || N || Connected through UART | ||
|- | |- | ||
| Front camera || OmniVision ov8856 || N || | | Front camera || OmniVision ov8856 || N || | ||
Line 127: | Line 127: | ||
# [[ZTE_Axon_7_(zte-axon7)#How_to_enter_flash_mode|Enter EDL Mode]] | # [[ZTE_Axon_7_(zte-axon7)#How_to_enter_flash_mode|Enter EDL Mode]] | ||
# Download the '''qdl''' tool from [https://www.96boards.org/documentation/consumer/guides/qdl.md.html here] and build it. Arch Linux users can simply install the '''[https://aur.archlinux.org/packages/qdl qdl]''' AUR package. | # Download the '''qdl''' tool from [https://www.96boards.org/documentation/consumer/guides/qdl.md.html here] and build it. Arch Linux users can simply install the '''[https://aur.archlinux.org/packages/qdl qdl]''' AUR package. | ||
# Download | # Download firmware for your model from [https://androidfilehost.com/?w=files&flid=220826 here]. | ||
# Open a terminal inside the extracted ZIP directory | # Open a terminal inside the extracted ZIP directory | ||
# Execute the following command: <code>qdl --storage ufs --include ./ ./prog_ufs_firehose_8996_ddr.elf ./rawprogram0.xml ./patch0.xml ./rawprogram1.xml ./patch1.xml ./rawprogram2.xml ./patch2.xml ./rawprogram3.xml ./patch3.xml ./rawprogram4.xml ./patch4.xml ./rawprogram5.xml ./patch5.xml</code> | # Execute the following command: <code>qdl --storage ufs --include ./ ./prog_ufs_firehose_8996_ddr.elf ./rawprogram0.xml ./patch0.xml ./rawprogram1.xml ./patch1.xml ./rawprogram2.xml ./patch2.xml ./rawprogram3.xml ./patch3.xml ./rawprogram4.xml ./patch4.xml ./rawprogram5.xml ./patch5.xml</code> | ||
Line 135: | Line 135: | ||
* [https://www.gsmarena.com/zte_axon_7-8067.php GSMArena page] | * [https://www.gsmarena.com/zte_axon_7-8067.php GSMArena page] | ||
* [https://forum.xda-developers.com/t/guide-a2017g-install-twrp-unlock-bl-flash-custom-rom.3517379/ How to unlock the bootloader] | * [https://forum.xda-developers.com/t/guide-a2017g-install-twrp-unlock-bl-flash-custom-rom.3517379/ How to unlock the bootloader] | ||
* [https://github.com/ungeskriptet/linux/tree/ | * [https://github.com/ungeskriptet/linux/tree/msm8996 Mainline kernel fork] | ||
* [http://deviceinfohw.ru/devices/item.php?item=85921 Device Info HW] | * [http://deviceinfohw.ru/devices/item.php?item=85921 Device Info HW] |
Revision as of 13:46, 1 August 2023
![]() ZTE Axon 7 | |
Manufacturer | ZTE |
---|---|
Name | Axon 7 |
Codename | zte-axon7 |
Released | 2016 |
Hardware | |
Chipset | Qualcomm Snapdragon 820 (MSM8996) |
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 |
Mainline | partial |
Flashing |
No data |
---|---|
USB Networking |
No data |
Internal storage |
No data |
SD card |
No data |
Battery |
No data |
Screen |
No data |
Touchscreen |
No data |
Multimedia | |
3D Acceleration |
No data |
Audio |
No data |
Camera |
No data |
Camera Flash |
No data |
Connectivity | |
WiFi |
No data |
Bluetooth |
No data |
GPS |
No data |
NFC |
No data |
Modem | |
Calls |
No data |
SMS |
No data |
Mobile data |
No data |
Miscellaneous | |
FDE |
No data |
USB OTG |
No data |
HDMI/DP |
No data |
Sensors | |
Accelerometer |
No data |
Magnetometer |
No data |
Ambient Light |
No data |
Proximity |
No data |
Hall Effect |
No data |
Haptics |
No data |
Barometer |
No data |
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
WARNING: Device may get stuck in EDL mode. To reset drain or disconnect the battery. |
Note: Fastboot may not be available on latest stock firmware |
- EDL Mode: Hold down and while connecting the device to a computer with a USB cable.
- Bootloader: Boot into recovery and select 'Reboot to bootloader' or run
adb reboot bootloader
on a computer from Android or factory test mode - Recovery: Power on the device by holding and .
- Factory test mode (FTM): Power on the device by 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 with
adb reboot edl
from Android or with the key combination - 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 Android 7 (Nougat) firmware:
- Download the Android 7 EDL flashable firmware from 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/rawprogram*.xml A2017G_B12_NOUGAT_FULL_EDL/patch*.xml A2017G_B12_NOUGAT_FULL_EDL
- This step can also be done with
qdl
like this
- Reboot the phone by holding down for a few seconds
- Boot into the stock Nougat ROM and enable OEM Unlocking in the developer settings
- Reboot into EDL mode again
- Download new bootloader files aboot_unlock.img and fbop_unlock.img to allow unlocking
- Flash new bootloader files (these files will also restore access to fastboot)
$ ./edl --loader=Loaders/zte/009470e100040000_d1b89b1385b0db46_fhprg_peek.bin --memory=ufs --lun=4 w aboot aboot_unlock.img $ ./edl --loader=Loaders/zte/009470e100040000_d1b89b1385b0db46_fhprg_peek.bin --memory=ufs --lun=0 w fbop fbop_unlock.img
- Unlock the bootloader:
fastboot oem unlock
Your ZTE Axon 7 should now have an unlocked bootloader. For questions ask @ungeskriptet:matrix.org on Matrix.
Installation
/* Not yet */
Mainline status
Component | Model | Status | Notes |
---|---|---|---|
SoC | Qualcomm MSM8996 Snapdragon 820 | Y | |
USB | TI hd3ss3220 | P | USB Type-C 3.0 |
UFS | Samsung KLUCG4J1CB-B0B1 | Y | 64GB variant |
Display | Samsung s6e3ha3 | P | Using dual DSI |
Touchscreen | Synaptics rmi4 | Y | |
Charging | smb1351 | N | |
Buttons | - | N | GPIO |
Accelerometer and gyroscope | Bosh bmi160 | N | Driver available in mainline |
Ambient light and proximity sensor | ROHM rpr0521 | N | Driver available in mainline |
Magnetometer | AKM (Asahi Kasei Microdevices) ak09915 | N | |
Audio | AKM (Asahi Kasei Microdevices) ak4490 | N | ak4961 codec
|
GPU | Qualcomm Adreno 530 | N | |
Wi-Fi | Qualcomm qca6174 | Y | Connected through PCIe |
Bluetooth | N | Connected through UART | |
Front camera | OmniVision ov8856 | N | |
Main camera | Samsung s5k2t8 | N | |
RAM console (ramoops ) |
- | Y | |
Panel power supply | Renesas isl98608 | - | Datasheet |
Back to stock firmware
Linux tutorial:
- Enter EDL Mode
- Download the qdl tool from here and build it. Arch Linux users can simply install the qdl AUR package.
- Download firmware for your model from here.
- Open a terminal inside the extracted ZIP directory
- Execute the following command:
qdl --storage ufs --include ./ ./prog_ufs_firehose_8996_ddr.elf ./rawprogram0.xml ./patch0.xml ./rawprogram1.xml ./patch1.xml ./rawprogram2.xml ./patch2.xml ./rawprogram3.xml ./patch3.xml ./rawprogram4.xml ./patch4.xml ./rawprogram5.xml ./patch5.xml
- After it has finished, the command will exit itself and the phone should reset. If it does not reset automatically, hold down the power button. Now you should be able to boot back into stock firmware.