yashsingh1/xdaforums huggingface dataset:
[One (M9) Q&A, Help & Troubleshooting] Monrad:
This is my device situation so far:

Bottloader: LOCKED

Oem Unlocked: NO (Can't flash any recovery)

Security: S-ON

Main version: 3.36.709.9

CID: HTC__621

Recovery: STOCK

Impossible to boot into OS even after wiping data through recovery.

When trying to flash OTA zip corresponding to the same main version or higher I always get Error 22. I've tried SDCard method, adb sideload and flashing zip through fastboot (rebootRUU, flash zip, etc).

Is there any other way to flash an official firmware for this device? It'd be great to have an official RUU for my version or higher. Or maybe some software from HTC to "restore upgrade errors"?

Thanks in advance!
[One (M9) Q&A, Help & Troubleshooting] shivadow:
Check the md5 hash of the file you downloaded and cross reference it on Google. You need to make sure the file you have is complete.

Beamed in by telepathy.
[One (M9) Q&A, Help & Troubleshooting] computerslayer:
What firmware are you attempting to flash? Recall that the final number in the RUU (xx.xx.xx.yy) does not have to match your phone's OS version.

The 709 SKU has a compatible RUU available in the readme thread (3.36.709.3). Since the file is hosted on Android File Host, the MD5 is posted there (look under download information). On your computer, you can install a MD5 checker (I use File Hasher) to verify that they match.
[One (M9) Q&A, Help & Troubleshooting] Monrad:
I've tried that file, hash is ok but file will not get flashed. This is the log:

fastboot flash zip 0PJAIMG_HIMA_UHL_L50_SENSE70_hTC_Asia_TW_1.40.709.4_Radio_01.02_U11440261_60.03.50505G_F_release_431851_signed.zip
target reported max download size of 800000000 bytes
Invalid sparse file format at header magi
error: write_sparse_skip_chunk: don't care size 2322433715 is not a multiple of the block size 4096
sending sparse 'zip' 1/1 (0 KB)...
error: write_sparse_skip_chunk: don't care size 2322433715 is not a multiple of the block size 4096
error: write_sparse_skip_chunk: don't care size 2322433715 is not a multiple of the block size 4096
OKAY [ 1.031s]
writing 'zip' 1/1...
(bootloader) HOSD CL#676746
(bootloader) ERR lzipv1_init : Cannot read header len bytes
(bootloader) ERR lzipv2_init : Cannot open file /dev/fastboot_download_m
(bootloader) ar4HL
FAILED (remote: 99 RU_UNKNOWN_FAIL terrible mishap )
finished. total time: 2.083s

I downloaded the file more than 4 times and it's always the same result.

I'm downloading another fastboot version because maybe the one I'm using is not compatible.
[One (M9) Q&A, Help & Troubleshooting] Monrad:
Same problem with htc fastboot...

htc_fastboot.exe flash zip 0PJAIMG_HIMA_UHL_L50_SENSE70_hTC_Asia_TW_1.40.709.4_Radio_01.02_U11440261_60.03.50505G_F_release_431851_signed.zip
htc_fastboot v3.0.9.2 (2015-05-29)
found large-zip header, file count: 7
processing file 1/7...
sending 'zip' (261353 KB)...
OKAY [ 15.207s]
writing 'zip'...
(bootloader) HOSD CL#676746
(bootloader) ERR [SD_UPDATE_ERR] Main version NOT ALLOWED
(bootloader) ERR [SD_UPDATE_ERR] sddownload failed: 19
(bootloader) ERR Update zip file failed.
(bootloader) ERR ZIP ERROR, exit read zip loop
(bootloader) ERR ZIP signature checking failed...
(bootloader) Update zip file OK
(bootloader) ERR ZIP ERROR CODE, 19
(bootloader) end@Done
FAILED (remote: 19 RU_MAIN_VER_FAIL os-version in android-info missing or i)
finished. total time: 23.551s
htc_fastboot finished. total time: 43.310s

EDIT: I've beenf lashing the wrong image, I'll try with the right one, sorry!

EDIT: it worked, problem was fastboot version!!! Use HTC FASTBOOT and everyithing is fine :) Thanks! You've inspired me into the solution :cool:
[One (M7) Q&A, Help & Troubleshooting] fadedmisty:
Hi,

Is there a way to disable vibration on boot with S-OFF? I found that it's really annoying that the device vibrates quite loud everytime I reboot the device. Going back to S-ON currently isn't an option for me, since I don't currently have a computer.

Thanks a lot!
[One (M7) Q&A, Help & Troubleshooting] maciclazar:
I didn't know if there is difference between s-off and s-on vibration. I think my phone vibrates same as it was s-on. I unlocked bootloader and did s-off on my phone as soon as I got it one year ago.

You can consider yourself lucky as it is only one vibration. My old htc desire c vibrates 7 times at every boot when I did s-off. Now that is annoying :D. Still I would rather let it vibrate 7 times than to leave it s-on so I'll need to flash kernel in fastboot every time when I flash a rom.
[One (M7) Q&A, Help & Troubleshooting] ★Michaelo★:
Actually, you don't need to flash kernel in fastboot on M7 while being S-ON
[One (M7) Q&A, Help & Troubleshooting] maciclazar:
I know. My m7 is s-off. I was talking of my old desire c where you must do it if you are s-on
[ZTE Axon 7 Guides, News, & Discussion] aLexzkter:
Thanks, I'm sure it'll help some people, but performing this when your phone has a software problem and you still have 3 years left of warranty seems a little crazy to me.
[ZTE Axon 7 Guides, News, & Discussion] Vick78:
Good point, but it mostly concerns chinese models when you buy the phone with no warranty.

Moreover, if you bricked you phone it is likely not a guarantee case.
[ZTE Axon 7 Guides, News, & Discussion] gpz1100:
Anyone define what "Circtuit" means?
[ZTE Axon 7 Guides, News, & Discussion] Vick78:
Like connect to housing, or body. Sorry for my bad English!
[ZTE Axon 7 Guides, News, & Discussion] gpz1100:
So connect to ground?
[ZTE Axon 7 Guides, News, & Discussion] Vick78:
Sounds more likely
[ZTE Axon 7 Guides, News, & Discussion] aLexzkter:
If the phone is completely bricked how can they prove it was your fault?
[ZTE Axon 7 Guides, News, & Discussion] Vick78:
I think by default you can't brick the phone with locked bootloader, on the other hand if you have bricked the phone, you have unblocked bootloader. And this is not a guarantee case.

In reality, I know that Chinese shops from AliExpress will not even bother with any kind of investigation. As minimum they will replace motherboard, as maximum replace the phone, but they will charge some fee in any case.
[ZTE Axon 7 Guides, News, & Discussion] Choose an username...:
Okay, all doable, except this part. I have an A2017G. Does anyone know what the package consists of, i.e. what we have to flash instead? Is there any package for G, or does anyone know about a way to do it on non-chinese?
[ZTE Axon 7 Guides, News, & Discussion] ultramag69:
I would say all the above except you'd use a European rom, specifically for the A2017G.

It should work if all the hardware is the same...
[ZTE Axon 7 Guides, News, & Discussion] djkuz:
A2017G_B10_FULL_EDL.zip

with aboot and fbop for unlock ;)

https://mega.nz/#!ZhwR1BAD!PuIWa5Vivk3DxZ1Dgk-wAoITxiKmBiR-j1U8wZZidTw
[ZTE Axon 7 Guides, News, & Discussion] Choose an username...:
:fingers-crossed:

If this works I'll friggin donate to you, I swear
[ZTE Axon 7 Guides, News, & Discussion] Choose an username...:
I got to the send configure command but it's failing every time... i'm keeping the pin held there
[ZTE Axon 7 Guides, News, & Discussion] Choose an username...:
Done! It's the most finicky process I ever made, what with the tiny copper contact and MiFlash flashing stuff only when it's on the mood. After around 30 tries and a successful flash of a zip I didn't have to flash, I managed to get to the configure command thing and left the short circuit there for 3 seconds more. after that it started flashing and I almost shat myself
[ZTE Axon 7 Guides, News, & Discussion] djkuz:
Did the phone come to life eventually?
[ZTE Axon 7 Guides, News, & Discussion] Choose an username...:
Yeah, perfectly fine as of now. I noticed that the bootloader was not unlocked when on B10 (no The software can't be checked for corruption message) but it got unlocked after updating to official 7.1.1 B01 for some reason.
[ZTE Axon 7 Guides, News, & Discussion] djkuz:
:D This message did not appear because in my B10 package I replaced aboot (used from the USA version of the phone B20). When installing firmware B01 7.1.1 aboot changes to the original and the message appears again!
[ZTE Axon 7 Guides, News, & Discussion] Exnocte:
So I'm trying to do this with my A2017g, but it only stay in com for like 3 seconds, then it's gone. I don't have the time to flash anything...

---------- Post added at 01:04 AM ---------- Previous post was at 12:47 AM ----------

I swear to god, if this work, I'm staying stock forever.
[ZTE Axon 7 Guides, News, & Discussion] Exnocte:
Okay, now this is annoying. is the EDL mode supposed to last 2 seconde, is there something really wrong with my phone ??? I don't have the time to flash anything before it dissapear ! I can't reach the "configure command" step...
[ZTE Axon 7 Guides, News, & Discussion] Choose an username...:
I had the same problem. You have to have the battery connected to the mobo! Pry the battery off really slowly if possible, it will help you a lot when trying to short the little copper thing
[ZTE Axon 7 Guides, News, & Discussion] Exnocte:
geez...silly me to blindly and stricly follow the step...thank you very much.
[ZTE Axon 7 Guides, News, & Discussion] Choose an username...:
Also a heads-up: be very careful not to touch anything else, my phone is unscathed but I saw some sparks when I touched a cap. And you'll probably have to try more than 10 times until you get the connection right. when you get there wait until it says sending programmer or whatever the guide says, and leave it connected for a couple of seconds.

---------- Post added at 03:21 AM ---------- Previous post was at 03:20 AM ----------

Not silly you... I made the same mistake. The guide does not cover every point actually. I didn't even know that this was possible to do on G versions until djkuz sent me the link...
[ZTE Axon 7 Guides, News, & Discussion] agrissirins:
I have a problem, MiFlash tool always says " send configure command failed". When I try to flash again, program says "cannot receive hello packet".
[ZTE Axon 7 Guides, News, & Discussion] Choose an username...:
Disconnect the USB cable, disconnect the battery and connect it again, then connect the USB while shorting the test point.

I had to try a fair amount of times until it succeeded, it failed at send configured command for like 10 times. Simply leave the test point connected for 3 seconds when the send configure command message appears, after 3 seconds disconnect it, and it should succeed after some time
[ZTE Axon 7 Guides, News, & Discussion] george241312:
Bravo amazing it's been a long time since I have seen this type of work done.
[ZTE Axon 7 Guides, News, & Discussion] blessingme:
Deep Flash Cable is all what you need.

Deep Flash Cable is all what you need.
[ZTE Axon 7 Guides, News, & Discussion] bornlivedie:
that doesnt work for must users, including me

i have 3 different deep flash cables and none is working

the phone just starts to charge and then boots up on its own
[ZTE Axon 7 Guides, News, & Discussion] ruslan.F.:
Can any one share the way how you connect testpoint to the ground?

I've spent about 2-3 hours and no luck with that tricky task...
[ZTE Axon 7 Guides, News, & Discussion] Choose an username...:
well you just take anything metal and connect it while the phone is unplugged and off, then you hold it in place with one finger

The battery has to be connected to the mobo though!

Then just connect the cable to the PC and pray
[ZTE Axon 7 Guides, News, & Discussion] yngwieromeo:
I've been trying this for a while and have even gotten the Qualcomm driver to show up, but I haven't been able to flash it yet. My problem is that out of nowhere for some reason, when I plug in the USB cable I get a solid red light with no vibration, even if I don't short the test point. Am I now officially bricked? Nothing shows up in device manager, and the red light persists even if I take out the cable.
[ZTE Axon 7 Guides, News, & Discussion] Reyad_W_K:
wooooo finaly it worked i dont have to open the device and circuit the pin to ground now .

you only need to be able to enter ftm mode .

all what i did is :

i entered ftm mode using vol- + pwr

then applied (( adb reboot edl )) command then the pc recognized it as qualcomm device .

using miflash tool i flashed twrp again and new rom and wow every thing works again

no need to open my device any more
[ZTE Axon 7 Guides, News, & Discussion] Choose an username...:
well yeah, but how do you get to ftm? The usual way is to drain the battery and fiddle with vol down and power, but that usually doesn't work for some reason
[ZTE Axon 7 Guides, News, & Discussion] SBFarooq:
I mright go insane for not knowing what am I doing wrong... Maybe..Maybe..A2017 doesn't have an ftm mode..only a2017u has it?
[ZTE Axon 7 Guides, News, & Discussion] Choose an username...:
Lol no, all of them have it. I believe there are different bricks, and some where you can't get to ftm. Just follow the 4th category brick repair manual
[ZTE Axon 7 Guides, News, & Discussion] SBFarooq:
I am OUT OF HELL!!! my GOD I have not known such feelings of relief ... but now that my phone is alive, the captive keys dont work, ??? something I should work over??
[ZTE Axon 7 Guides, News, & Discussion] Choose an username...:
Look, after restoring my A2017G to B10, I had random reboots, which didn't get resolved with updating the system. I had to install a custom ROM. But when I got bored, I installed the stock recovery and flashed an official system zip through there (I wrote a guide, it was gonna be for all 3 models but I only found the flashable recovery for the G), and i had zero problems. Try that, and if the capacitive keys still don't work, i guess you should review the screen's connection
[ZTE Axon 7 Guides, News, & Discussion] SBFarooq:
its not that all three are not working, its just the home button working while the back and recent are not! thought that was strange!
[ZTE Axon 7 Guides, News, & Discussion] Choose an username...:
Do they vibrate at least?
[ZTE Axon 7 Guides, News, & Discussion] Simulord:
How to

The explanation is a bit **** so, to circuit it use a metal tool to have a conduction between the test point and a big metallic place on the phone. Then at this point u need to unplug and plug back the usb, the red light will disappear and it s ok for the flash. Moreover, before doing that, a condition is to force the install of the qualcomm 9008 and not the standard qualcomm from zadig. Then it will work
[ZTE Axon 7 Guides, News, & Discussion] SBFarooq:
Nope..the home button is working flawlessly but the other two on the side are not doing ANYTHING at all..so..working on a workaround now.. scared ****less to flash anything... but gonna try something else in a while...
[ZTE Axon 7 Guides, News, & Discussion] Choose an username...:
What model do you have? I always do the same and never had a problem on my G

Just use axon7tool to flash TWRP (NOT axon7toolkit), then put the same TWRP img on your phone. After you get to TWRP, wipe system and data, flash the Universal Bootstack, the ROM you want, and the modem, then DO NOT REBOOT, select 'Install image', then select the TWRP.img that you have on the phone.

The bootstack has an older TWRP version, therefore you want to keep the one you just installed, that's why you have to do that

Reboot to the system and set it up if you want to stay on a custom rom

After that, if you want you can return to stock by finding a flashable version of the stock recovery for your phone model, downloading an official update zip and putting it on an SD card, flashing 'Reboot' --> 'Recovery', then installing that zip from the stock recovery
[ZTE Axon 7 Guides, News, & Discussion] SBFarooq:
Thanks for the info, info Have the ~A2017 CHINA 4gb 128gb. . Will follow your lead and would report back later, btw which custom rom would your recommend ?
[ZTE Axon 7 Guides, News, & Discussion] Choose an username...:
Lol I'd get MiFavor 5.0 if it actually worked okay on the G (after two hard reboots it doesn't boot). But as far as custom is concerned many people say that Dark ROM is pretty good, and I'm using VertexOS which also works pretty nicely
[ZTE Axon 7 Guides, News, & Discussion] SBFarooq:
Dude, your Have been AWESOME support for me these past few days, Ireally mean that. .Thanks. .
[ZTE Axon 7 Guides, News, & Discussion] Aviver:
Can someone help me? I get always the same error on the Miflasher.... [16,36 COM9]:send configure command failed

Please i did everything right... i got my circuit done and i connect to the pc with the right drivers. I need some help here.

This thing is really bricked
[ZTE Axon 7 Guides, News, & Discussion] SBFarooq:
Hi, I did this yesterday... What I would suggest is trying out with different versions of the Miflash and keeping the battery connected to the mobo helps as well..
[ZTE Axon 7 Guides, News, & Discussion] Choose an username...:
I believe your problem is caused because of the time you leave the pad shorted. I think you have to wait 2 seconds after the 'sending configure command' message appears, or something like that
[ZTE Axon 7 Guides, News, & Discussion] Choose an username...:
Then wait more or less. I had to try 30 times until it worked. If you look at my older posts, one says that I waited 3 seconds after the configure command message appeared. Try to do that many times until it works
[ZTE Axon 7 Guides, News, & Discussion] Aviver:
OMG! The 3 seconds wait before cuting the circuit worked right a way !!!

Thanks man, Flashed finaly.
[ZTE Axon 7 Guides, News, & Discussion] HVMan01:
Hello, So phone is disassembled and instructions followed closely. When I short the test point, the phone pops up on Device Manager as correct Qualcomm device in Ports & comms but disappears almost instantly. There isn't enough time to get MiFlash to work. I've tried many times and cannot seem to get beyond this stage. Any ideas welcome.
[ZTE Axon 7 Guides, News, & Discussion] Aviver:
I dont know, when i shorted mine, i had no problems with time... the only problem was flashing lol
[ZTE Axon 7 Guides, News, & Discussion] Choose an username...:
You need to have the battery connected to the motherboard, I had this same problem. I had to pry the battery off of the screen to do this lol (if you do this, get a rather blunt piece of plastic, and do it REALLY slowly!
[ZTE Axon 7 Guides, News, & Discussion] HVMan01:
Connected battery, worked a dream. Flashed, reassembled, one working phone. Thanks choose an username : )

Now.........following this guide "[GUIDE] [A2017G] Install TWRP, Unlock BL, Flash Custom ROM by controllerboy",

got all the way through to section "C) Update bootstack, Install LineageOS 14.1 and update your TWRP to latest version", when............

Lineage failed to install (via TWRP), I think it said error axon7.verify_trustzone. Following the troubleshooting advice, I installed the Universal bootloader zip, reinstalled the N modem zip, then tried the Lineage 14.1 zip again. Same result. Also the sdcard is undetectable now, though all the files are still on it. I have a phone that only boots to bootloader and recovery AND has become a 2017U model. I do have the backup recovery, boot and gpt. I'd prefer getting Lineage running but probably will have to restore to stock. What caused the change in version from G to U? As always, advice gratefully received.
[ZTE Axon 7 Guides, News, & Discussion] Choose an username...:
Nah that's normal. The universal bootloader does that. i guess it's for the sake of simplicity since you just call all of them "A2017U's"

Do this: Download the latest TWRP (from the download center should be fine), put it on the phone, go to Install --> Install image --> select the TWRP img, install to recovery. You have to do this because the Universal bootstack actually installs a very old version of TWRP. After doing this, attempt to flash Lineage again (Only flash Lineage and the modem file, not the bootstack, because it is already installed
[ZTE Axon 7 Guides, News, & Discussion] HVMan01:
Thanks for the info. I'll be doing it all over the weekend and I'll be reporting the results. Incidentally, re recovering the phone from the bricked state, the advice about connecting the battery was priceless. The relief at seeing MiFlash doing its stuff was something else. Anyways big thanks again to Choose a username and indeed controller boy and all other contributors to this thread.
[ZTE Axon 7 Guides, News, & Discussion] Aviver:
This helped me alot.

Check this out

https://4pda.ru/forum/index.php?showtopic=778560&st=200#entry61434296
[ZTE Axon 7 Guides, News, & Discussion] HVMan01:
Since the installed TWRP 3.0.N1-1 doesn't recognise the external sdcard, I've managed to get twrp-3.1.0-0-ailsa_ii.img, lineage-14.1-20170203-UNOFFICIAL-axon7 and A2017G_N_Modem.zip onto the internal memory (root). The TWRP doesn't see the newer TWRP 3.1.0.img and I can't install via TWRP. It sees the zips though. Do I need TWRP.img zip file?

Also was looking at ADB sideload options, could I use that method?
[ZTE Axon 7 Guides, News, & Discussion] Choose an username...:
No, look:

-Download the LATEST TWRP! I think it's 3.1.1-0

-You can use adb push for small files (i use it for stuff of less than 1 gb), you just need to put the location of the file on your PC and the destination location. google if you want to use it.

-If you go to Install, you should see a button at the right that says 'Install image'. after hitting that, TWRP will stop showing zips and show you only imgs.
[ZTE Axon 7 Guides, News, & Discussion] Aviver:
When you are in the twrp you click Install then you click Images to see the the twrp.img, the option is there
[ZTE Axon 7 Guides, News, & Discussion] HVMan01:
OK, managed to get TWRP 3.1.0 loaded. The lineage.zip install fails (cant install on top of incompatable data, Process ended with error 7 etc message.) This was the problem before the universal bootloader was installed. I'm using the lineage 20170203 unofficial.zip. Do I need to delete anything first? Thanks Choose a Username and Aviver.
[ZTE Axon 7 Guides, News, & Discussion] Aviver:
Flash this zip first https://androidfilehost.com/?fid=961840155545571037

Flash the modem.

Then install the lineage rom you want.

It worked for me.
[ZTE Axon 7 Guides, News, & Discussion] Choose an username...:
Well first of all, wipe system, data and cache (not internal). After that go to Install and install the modem zip and the Lineage zip

---------- Post added at 06:06 AM ---------- Previous post was at 06:05 AM ----------

he already installed it, all it will do is install the older TWRP version now really
[ZTE Axon 7 Guides, News, & Discussion] HVMan01:
Thank you : ), deleted system, data and cache, reinstalled the N modem zip then the lineage 20170203 zip. All fired up and lovely! Will get a Gapps package on phone shortly. Choose a username, I appreciate your time and effort on this thread. Thanks

---------- Post added at 09:28 AM ---------- Previous post was at 09:25 AM ----------

As you'll see my axon is alive (again, at last). Thanks for your input on this thread, much appreciated : )
[ZTE Axon 7 Guides, News, & Discussion] sportfuchs:
I have problems understanding this tutorial. Could anybody explain me what is meant by

"2. Circuit Test-point on the housing (there is sim-cards slot body nearby)."

I don't understand what I should do here. Any help would be greatly appreciated.

---------- Post added at 08:04 AM ---------- Previous post was at 07:59 AM ----------

Please what does mean connect to ground?
[ZTE Axon 7 Guides, News, & Discussion] Choose an username...:
When they say 'connect to ground' or 'short' it's simply connecting the test pin to the SIM/SD housing or any other housing. In other words you have to do a short circuit between the testpad and some housing
[ZTE Axon 7 Guides, News, & Discussion] sportfuchs:
thanks, I really appreciate your help. I dissected an USB cable and used the copper wire and it worked. But now I got a problem when flashing "send configure command failed"... any ideas? I got the A2017 model so the files should be correct.