yashsingh1/xdaforums huggingface dataset:
[One (M7) General] ruiz64:
Can somebody help me, please? I cannot install OTA updates

Somebody said that I would need a NAND Backup of image OS-4.21.402.5 and a custom recovery image to restore it. Otherwise I need to S-Off, downgrade HBOOT, re-lock the HBOOT re-flash Jelly Bean, install all OTA updates as listed on this thread, take a NAND backup, go through out the official last OTA update and reconfigure my phone from scratch. If everything goes well, I may be two days without phone at least I do not sleep at all :) And I need the phone for both work and private usages (reason why I got a DUAL SIM) Having not a good phone for backup, therefore I dream of somebody being so kind of passing me a NAND backup of 4.21.402.5 and telling me the way to restore it. That could simplify my adventure to few hours at worst. Can any one do that for me?

INITIAL POST WITHOUT REPLY YET:

I am lost. I have a HTC one M7 802w and I cannot achieve the installation of the latest OTA update. My phone remains me that an update is available, but the update always fails with messages like: /data/preload/xxxxxx.apk File not found!

This is the status of my phone:

M7C_DUG – Device ID: HTC 802w  Networks: Dual Sim W-CDMA/GSM  MID: PN0771000, PN0772000  Region: China, Russia, Europe.

M7CDUG PVT SHIP S-ON RL

Tampered

Unlocked

HBOOT-2.49 0000

RADIO U3.14.3509.14

Open DSP v32.120.274.0909

QSC-E1237.29.35.0100

OS-4.21.402.5

Feb 19 2014

SDK API 5.69

Android 4.4.2

HTC Sense 5.5

Rooted : SuperSU Chainfire v2.01

CERBERUS installed as a System APP

No NAND backup available

I could not flash the stock ROM, I guess because my HBOOT is newer than the stock ROM will support. So, I am stuck here.

Help would be very much appreciated

Regards

---------- Post added at 12:57 PM ---------- Previous post was at 12:01 PM ----------

Hi, I am new and far from being a specialist, but I experienced something similar with a TWRP recovery image and I had to first reinstall the stock recovery with HTC Unlock + Fast boot USB + "fastboot-mac flash recovery recovery.img" command and repeat the process with a different version of TWRP recovery. That worked for me. Then, I went back to the stock one because of the OTA updates, that by the way I am unable to install. I guess I will need to go back to another custom recovery once somebody nice has shared his NAND backup with me.
[One (M7) General] ascot17:
You need stock recovery from here: (Post 1.5)

You can't OTA while on a custom recovery
[One (M7) General] ruiz64:
Thanks for your replay.

I have the stock recovery in. I stated it on my post. I will only use a custom recovery to restore a NAND backup of my software version OS-4.21.402.5 once a kind person share it with me as I have no NAND backup. The reason I believe I need a NAND backup is that somebody said: "When you unlock the HBOOT of a HTC using the official method (as per HTC support website) the phone is wiped out and you loose the folder /data/preload and its content". That can be prevented by making a NAND backup before unlocking takes place. I did not make a NAND backup and I did unlocked my phone following HTC's method. Now when trying to install the OTA update, I get errors like: error /data/preload/xxxxx.apk File not found! and the update process stops. That it looks pretty much like in line with the comment I mentioned.

I repeat the status of my phone:

M7CDUG PVT SHIP S-ON RL

Tampered

Unlocked

HBOOT-2.49 0000

RADIO U3.14.3509.14

Open DSP v32.120.274.0909

QSC-E1237.29.35.0100

OS-4.21.402.5

STOCK RECOVERY

Feb 19 2014

SDK API 5.69

Android 4.4.2

HTC Sense 5.5

Rooted : SuperSU Chainfire v2.01

No NAND backup available

Can somebody help me with a NAND backup of with a trick to go over my problem?
[One (M7) General] amit_coolcampus:
4.4.3 OTA update received - 802d INDIA

I got the update and installed. Awesome.:good::good::good::good::good:
[One (M7) General] doshirajeshr:
What's new in this update?
[One (M7) General] ovidium_gio:
pull hboot.img

Hello,

Could someone please tell me how can i pull the hboot.img from my phone using adb shell? The phone is 802d s-off. Thank you!
[One (M7) General] superpfpf:
ok i think this way:

in adb shell enter the command: cat /proc/emmc

the output should look similar to this

dev: size erasesize name
mmcblk0p20: 000ffa00 00000200 "misc"
mmcblk0p37: 00fffe00 00000200 "recovery"
mmcblk0p36: 01000000 00000200 "boot"
mmcblk0p38: 93fffc00 00000200 "system"
mmcblk0p27: 00140200 00000200 "local"
mmcblk0p39: 17fffe00 00000200 "cache"
mmcblk0p40: 670000000 00000200 "userdata"
mmcblk0p23: 01400000 00000200 "devlog"
mmcblk0p25: 00040000 00000200 "pdata"
mmcblk0p28: 00010000 00000200 "extra"
mmcblk0p34: 04b00200 00000200 "radio"
mmcblk0p16: 03c00400 00000200 "adsp"
mmcblk0p15: 00100000 00000200 "dsps"
mmcblk0p18: 00500000 00000200 "wcnss"
mmcblk0p17: 007ffa00 00000200 "radio_config"
mmcblk0p21: 00400000 00000200 "modem_st1"
mmcblk0p22: 00400000 00000200 "modem_st2"
mmcblk0p30: 00040000 00000200 "skylink"
mmcblk0p31: 01900000 00000200 "carrier"
mmcblk0p29: 00100000 00000200 "cdma_record"
mmcblk0p19: 01affe00 00000200 "reserve_1"
mmcblk0p33: 034ffa00 00000200 "reserve_2"
mmcblk0p35: 05fffc00 00000200 "reserve_3"
mmcblk0p32: 04729a00 00000200 "reserve"
mmcblk0p26: 00004000 00000200 "control"

in my example ist hboot in: mmcblk0p36

with the command

dd if=/dev/block/mmcblk0p36 of=/sdcard/boot.img

you get a comy of yout hboot on the internal storagr
[One (M7) General] bgcngm:
Boot partition is not the same as bootloader (HBOOT).
[One (M7) General] superpfpf:
oups ok sorry
[One (M7) General] bgcngm:
No problem, the theory is correct anyway. ;)
[One (M7) General] ovidium_gio:
I did " dd if=/dev/block/mmcblk0p12 of=/sdcard/hboot.img " , I think is the right file as I can find in the HEX Editor the "This build is...." text.
[One (M7) General] wewenk:
hi there.. I try to get back my 802w to China RUU.. I changed back my cid to HTCCN703

so i flash PN07IMG_M7C_DUG_K44_SENSE60_MR_HTCCN_CHS_CU_5.15.1 402.3_Radio_1237.28.34.0106_release_373024_signed_ 2.zip

then I get this error:

sending 'zip' (1150783 KB)...

OKAY [ 43.624s]

writing 'zip'...

(bootloader) zip header checking...

(bootloader) shift signature_size for header checking...

FAILED (remote: 32 header error)

finished. total time: 45.161s

how to fix it?
[One (M7) General] geek-baba:
corrupt file?
[One (M7) General] ovidium_gio:
Removed red warning text

I finally managed to pull the original hboot.img from the phone, modified it with HxD, created a zip with hboot.img modified and android.txt file, copied the file to external SD Card and updated the bootloader. Now the red warning text is gone (replaced by blank spaces).

So if anyone with 802d, ( CID HTC__044, modelid: PN0751000, mainver: 6.14.707.1, version-bootloader: 2.49.0000 ) needs the zip to remove the red warning, PM me.

I searched for a modified hboot for this model and could not find one.
[One (M7) General] wewenk:
I don't think so.. I've downloaded it again and again and still the result is the same.

However the checksum is valid.
[One (M7) General] geek-baba:
post your getvar and also make sure you match the md5 (i believe thats what you mean by checksum is valid).
[One (M7) General] wewenk:
here:

(bootloader) version: 0.5

(bootloader) version-bootloader: 2.49.0000

(bootloader) version-baseband: U3.15.3509.12

(bootloader) version-cpld: None

(bootloader) version-microp: None

(bootloader) version-main: 5.17.401.6

(bootloader) version-misc: PVT SHIP S-OFF

(bootloader) serialno:

(bootloader) imei:

(bootloader) meid: 00000000000000

(bootloader) product: m7cdug

(bootloader) platform: HBOOT-8064

(bootloader) modelid: PN0771000

(bootloader) cidnum: HTCCN703

(bootloader) battery-status: good

(bootloader) battery-voltage: 3701mV

(bootloader) partition-layout: Generic

(bootloader) security: off

(bootloader) build-mode: SHIP

(bootloader) boot-mode: FASTBOOT

(bootloader) commitno-bootloader: dirty-1f512bb6

(bootloader) hbootpreupdate: 11

(bootloader) gencheckpt: 0
[One (M7) General] bgcngm:
Did you try to flash RUU via HBOOT?
[One (M7) General] wewenk:
nope, it was via fastboot... never succeed flash via HBOOT
[One (M7) General] bgcngm:
Really? I never succeed flashing RUU via fastboot because of the size.
[One (M7) General] pdelmazo:
Hello ovidium_gio.

I have an HTC 802d M7C_CWG (Cid HTC_044 en PN0751000) ... but it is bricked (i think).... Can u tell me where to find the RUU 6.14.707.1 that you have installed on your phone?

Thanks!!!!!
[One (M7) General] ovidium_gio:
Hi pdelmazo,

I don't really know where you can find the RUU. I have a TWRP backup of the official stock I had installed before flashing the custom ROM. If that would help you I could upload it Also, if you need me to extract something from the phone and send it to you, I can do it, you just need to tell me what and how...
[One (M7) General] geek-baba:
I dont see an obvious issue, try to downgrade to hboot 2.27 or lower and then flash one of the JB ruu.
[One (M7) General] sharma_kvs:
Dear All,

I have HTC One Dual Sim 802D M7CDWG india with S-Off and H.Boot 2.27.0000 and CID HTC__038 O.S 2.37.720.1.Unfortunately I wiped all chake and system. Now I lost O.S. .I don't have backup. Please provide Full RUU for flashing. I am unable to flash OTA due to Build prop lost. Also I am downloaded Nandroid backup but I get 'couldn't open directory' and 'No files found'. Please provide solution to come back the phone into working.
[One (M7) General] aoprea:
There is 4.4.3 firmware Rom somewhere ?
[One (M7) General] pdelmazo:
First, thank you very much for your reply.

It is wonderful if I can get back up .... I tried flashing other ROMs and no 3G data works .

Please let me know when you are unable to load the backup .

Thank you very much again !!!
[One (M7) General] ovidium_gio:
Stock 4.4.3 Sense 6 TWRP

Hi pdelmazo, here is the backup. It's a TWRP backup , stock Android 4.4.3 , Sense 6. You need to have TWRP recovery.

http://bit.ly/Z3jZCa

1. Flash TWRP for 802d

2. Make a backup of you current configuration, so a folder with your phone serial number will be created inside TWRP BACKUP folder. (skip 1 and 2 if you already have TWRP and you made a backup before)

3. Download and unzip the backup I uploaded

4. Copy the 2014-09-20--15-38-46 folder to your TWRP/BACKUPS/HXXXXXXXX folder

5. Reboot to recovery and restore the backup

And this is the software info :

[IMG="backup"]http://s17.postimg.org/cn5axx4ov/Screenshot_2014_09_20_23_34_47.png[/IMG]

Let me know if it helped.
[One (M7) General] nkhater:
anyone has a good 802w RUU, all files I have downloaded in OP are corrupt
[One (M7) General] bgcngm:
The files are okay, why do you say that? If you're trying to open the files, then you should not.
[One (M7) General] geek-baba:
4.4.3 released for 802T - OP updated!

OTA_M7C_DTU_K443_SENSE60_MR_HTCCN_CHS_CMCC_6.11.1403.33-5.15.1403.32_release_389297.zip - 286.11 MB
[One (M7) General] bgcngm:
Good news! I thought we were not meant to receive that OTA.
[One (M7) General] nkhater:
Then I am not sure why I am getting the following error, I am fully bricked and I am trying to restore stock from fastboot

fastboot flash zip Firmware.zip

sending 'zip' (939946 KB)... OKAY [ 79.496s]

writing 'zip'... INFOrom parsing start ...

INFOrom parsing finish ...

INFOzip header checking...

INFOzip info parsing...

INFORead zipped android_info fail

FAILED (status read failed (Too many links))

finished. total time: 88.519s

can someone shed some light? Thanks
[One (M7) General] bgcngm:
Put the RUU on the external sdcard and flash from HBOOT.
[One (M7) General] nkhater:
I tried putting the RUU in the external SDcard, "update.zip" it flashed ok, but kept going into loops and never recovered
[One (M7) General] bgcngm:
The RUU should not be named update.zip, but PN07IMG.zip. Otherwise it is not detected by HBOOT, thus not flashed.
[One (M7) General] nkhater:
true, it was named PN07IMG.zip, my bad, still same results, boot loop
[One (M7) General] J_M_V_S:
Question... I have no 3G on my 802w in Argentina. I believe is because of the frequencies used here (850 & 1900Mhz). Could flashing a radio help with this or I'm stuck at 2G?
[One (M7) General] geek-baba:
I have the same issue with T-mobile in USA, I am not sure if flashing radio will help or its hardware dependency since 802w Modem version: MSM8960 is different from 801x Modem version: MDM9215, MDM8215.
[One (M7) General] J_M_V_S:
According to Wikipedia:

Source: http://www.anandtech.com/show/4940/qualcomm-new-snapdragon-s4-msm8960-krait-architecture/4

And the holy grail: http://xdaforums.com/showthread.php?t=1856327

I would love to get 3G on my Dual Sim!
[One (M7) General] mandrive:
Thanks mate
[One (M7) General] geek-baba:
did it work?
[One (M7) General] mandrive:
Already flash CWM recovery and try to restore.but i got md5 mismatch
[One (M7) General] geek-baba:
You can ignore md5 check in cwm settings.
[One (M7) General] sankar24:
Hi a small correction the CWM back up is that of 720 firmware
[One (M7) General] geek-baba:
updated it, my bad.
[One (M7) General] geek-baba:
did it work for any indian 802d model?
[One (M7) General] hadi207:
yes it worked for me

see here please

http://xdaforums.com/showthread.php?p=50314247
[One (M7) General] geek-baba:
nice! glad to hear that.
[One (M7) General] geek-baba:
Since the new Taiwan firmware along with your CWM backup is working, I will upload it to dev-host with due credit, I hope you will be ok?
[One (M7) General] sankar24:
Sure do that . I appreciate your hard work and would love to be part even if a small one.
[One (M7) General] geek-baba:
Thanks! But you may want to change your signature :angel:
[One (M7) General] hadi207:
[MENTION=5488328]shwetkprabhat[/MENTION]

please wait to confirm from one user more to ensure. then upload it

because i did jtag repair during my steps

so if any body could recover the the device with out jtag repair then that means taiwan firmware along cwm backup is working.
[One (M7) General] sankar24:
I would,if I could. I am still at the reboot screen.Flashing this Firmware has not helped me. Still trying . I dont have the Jtag riff box option with me.
[One (M7) General] geek-baba:
Oh ok - I did not realised that its dependent on jtag repair. I will keep looking for software solution.
[One (M7) General] northtoremember:
is there any kitkat update for my HTC One 802d my software number now => x.xx.707.x – Asia WWE (World Wide English))
[One (M7) General] geek-baba:
not yet.
[One (M7) General] bgcngm:
Bootloop after successful flashing of RUU?
[One (M7) General] nkhater:
Yes, I am unable to access recovery either, nothing but boot loop
[One (M7) General] bgcngm:
Then you must have a hardware problem. How do you know that RUU flashing was successful? Can you post your getvar info?
[One (M7) General] nkhater:
after flashing the RUU, it said something about complete, and asked me to press power to reboot

INFOversion: 0.5

INFOversion-bootloader: 2.49.0000

INFOversion-baseband: U3.15.3509.12

INFOversion-cpld: None

INFOversion-microp: None

INFOversion-main: 2.17.1402.2

INFOversion-misc: PVT SHIP S-OFF

INFOserialno:

INFOimei:

INFOmeid: 00000000000000

INFOproduct: m7cdug

INFOplatform: HBOOT-8064

INFOmodelid: PN0771000

INFOcidnum: HTC__A07

INFObattery-status: good

INFObattery-voltage: 4257mV

INFOpartition-layout: Generic

INFOsecurity: off

INFObuild-mode: SHIP

INFOboot-mode: FASTBOOT

INFOcommitno-bootloader: dirty-1f512bb6

INFOhbootpreupdate: 11

INFOgencheckpt: 0

all: Done!

finished. total time: 0.066s
[One (M7) General] bgcngm:
Great mess you have there. The latest HBOOT version with OS 2.17.1402.2? For sure something is terribly wrong. Taking into consideration that phone is S-OFF, I advise you to downgrade HBOOT and then flash this RUU: http://d-h.st/3Cd.
[One (M7) General] nkhater:
How to downgrade the Hboot and to what version?
[One (M7) General] bgcngm:
To the lowest version you can get for now. By flashing for example firmware.zip from one of the first OTA updates. Download this one, extract its firmware.zip and flash it via fastboot:

fastboot oem rebootRUU
fastboot flash zip firmware.zip (maybe needed to run twice)
fastboot reboot

After HBOOT downgrade, flash the RUU that I mentioned above.
[One (M7) General] nkhater:
I am on it, obrigado thank you

---------- Post added at 07:37 PM ---------- Previous post was at 06:55 PM ----------

I have tried couple of time to flash using fastboot to no luck, I kept getting this:

fastboot flash zip firmware.zip

sending 'zip' (134766 KB)... OKAY [ 13.415s]

writing 'zip'... INFOzip header checking...

INFOzip info parsing...

INFORead zipped android_info fail

FAILED (remote: 24 parsing android-info fail)

finished. total time: 15.272s

I tried flashing using HBOOT, it flashed , but the HBOOT ver did not change
[One (M7) General] bgcngm:
Unlock the bootloader and keep it unlocked.
[One (M7) General] nkhater:
fastboot oem unlock

... INFO[ERR] Command error !!!

OKAY [ 0.011s]

finished. total time: 0.011s
[One (M7) General] bgcngm:
No, do it the official way, HTC Dev method.
[One (M7) General] nkhater:
same results

fastboot flash zip firmware.zip

sending 'zip' (134766 KB)... OKAY [ 13.012s]

writing 'zip'... INFOzip header checking...

INFOzip info parsing...

INFORead zipped android_info fail

FAILED (remote: 24 parsing android-info fail)

finished. total time: 14.897s
[One (M7) General] geek-baba:
Yeah and surprisingly its out for 802D as well, as I see it in the screen print by [MENTION=4329944]ovidium_gio[/MENTION]
[One (M7) General] bgcngm:
Flash the attached file (extract PN07IMG.zip first) through HBOOT. After flashing the new HBOOT version should be 2.27.
[One (M7) General] pogs24ever:
Hope they will release for 802w aswell

Sent from mobile
[One (M7) General] nkhater:
The file is empty, but I have the HBOOT 2.27 from here http://xdaforums.com/showthread.php?t=2559891&page=57

I have tried it, and and then I flash this PN07IMG_M7C_DUG_JB_50_S1_HTC_Europe_2.19.401.1_Radio_1237.21.28.0627_release_326125.zip

the above file even put a 2.26 HBOOT, still boot loop
[One (M7) General] bgcngm:
Really don't know what to say more. With HBOOT 2.27, S-OFF, bootloader unlocked and after succefully flashing RUU?
[One (M7) General] geek-baba:
I feel like driving to DC and look at the phone myself ;)
[One (M7) General] nkhater:
I truly believe it has a bad hardware, yeah I have been working with HTC even before they went Android, never had such a stubborn phone

sending it back to Swappa seller

---------- Post added at 02:04 PM ---------- Previous post was at 02:04 PM ----------

let me know when you are in town,
[One (M7) General] pdelmazo:
First, thanks for all this information.

I have an HTC ONE 802d which does not work on 3G.... I dont know why.... I want to install a stock rom to verify.

I downloaded several times, different RUU.zip but I can not open them in any case. They seem to be corrupted ... Is there another link to prove?

Thank you.
[One (M7) General] ovidium_gio:
HI pdelmazo,

Are you trying to open the zip or flash the RUU in ruu mode?
[One (M7) General] superpfpf:
the zip files are nor corrupted, some files in the zipfile are password protected

3g works with some 802d after executing in adb

setprop persist.radio.simlock.enable 0
[One (M7) General] bgcngm:
Not password protected. The RUU files are encrypted by HTC, simple as that.
[One (M7) General] pdelmazo:
Hi... thank u for you help...

I wrote that sentences and this is the result:

c:\fastboot>setprop persist.radio.simlock.enable

"setprop" no se reconoce como un comando interno o externo,

programa o archivo por lotes ejecutable.

Did I write it ok?
[One (M7) General] bgcngm:
Should be:

adb shell
setprop persist.radio.simlock.enable 0

However, this is only temporary, since you have to do it on every boot. To make it permanent, you can edit build.prop and add the line:

persist.radio.simlock.enable=0
[One (M7) General] pdelmazo:
Ok, thank you both. I tell you: I was trying to open these files with 7zip because when I flash the phone from TWRP or CWM gives me "error". If you would like to return to a previous Stock Rom, Should I flash an older HBOOT first?
[One (M7) General] ovidium_gio:
Did you try to flash the TWRP Backup stock 4.4.3 that I uploaded? It should work just fine, we have the same hboot version. As for the ruu you should not unzip the files, flash the zip in ruu mode or from the sdcard.
[One (M7) General] pdelmazo:
Then? Do I need reboot the phone or I have to wait?

How can I edit the build.prop? where can I find it?

---------- Post added at 09:31 PM ---------- Previous post was at 09:14 PM ----------

Yes, I flashed the phone with your nandroid backup but 3G is still not working.

I'm in Argentina, Latin Amerca... Our 3G bands are 850/1900.

I entered the radio menu with * # * # 4636 # * # * and switched to GSM / WCDMA / LTE auto but nothing happens either.

Of course I also check the APN again

Where are you from?
[One (M7) General] ovidium_gio:
I'm from Romania, I think that the 3G Bands here are 900/2100...
[One (M7) General] wewenk:
updating my 802w now.. yoo hoo
[One (M7) General] pdelmazo:
Could the ROM be different? Does Anyone know?
[One (M7) General] ovidium_gio:
stock recovery

Hi all,

I restored a TWRP 4.4.3 backup on a 802d phone, now I'm trying to flash the custom recovery over TWRP recovery.

I downloaded the stock 802d KK recovery from the first page, entered fastboot and :

C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot flash recovery 802d_stock_kitkat.img

sending 'recovery' (14500 KB)...

OKAY [ 1.820s]

writing 'recovery'...

OKAY [ 1.039s]

finished. total time: 2.866s

The problem is that after rebooting , when I try to enter stock recovery the "Entering recovery" TWRP text appears then the phone reboots to Android. Also ADB reboot recovery just reboots the phone, without entering recovery. If I reflash the TWRP recovery it works, just the stock one doesn't.

Am I doing something wrong? Thank you.
[One (M7) General] wewenk:
It is: adb reboot-recovery

You are flashing stock recovery, not custom recovery
[One (M7) General] ovidium_gio:
Thank you for your reply. I tried that but "adb reboot-recovery" it's not recognised as a command.

C:\Program Files (x86)\Minimal ADB and Fastboot>adb reboot-recovery

Android Debug Bridge version 1.0.31

-d - directs command to the only connected USB devic

e

returns an error if more than one USB device is

present.

-e - directs command to the only running emulator.

returns an error if more than one emulator is r

unning.

-s <specific device> - directs command to the device or emulator with

the given

...etc

Also , after flashing the stock recovery, if I try to enter recovery from Bootloader-Recovery, without using ADB, it says "Entering recovery..." then reboots. I don't think that text should appear if the stock recovery is flashed correctly.
[One (M7) General] bgcngm:
That means the image is broken or not compatible. That is what happens when the phone tries to enter recovery and reboots.
[One (M7) General] ovidium_gio:
So, it could be possible that the stock KK recovery from the collection (802d_stock_kitkat.img) doesn't work on all 802d models?

I saw on the HTC ONE single sim thread that there different stock recoveries depending on the CID and main-version of the phone.

Thank you.
[One (M7) General] chubb861:
Hey guys!! I own an HTC One 802D, which is currently running Kitkat 4.4.3, and I want to be able to use applications which require root access. Is there any guide with detailed instructions to help me with this? :) If not can anyone please instruct me on how to go about this? Thanks!! :D
[One (M7) General] bgcngm:
It is as easy as flashing a custom recovery (CWM or TWRP) and install SuperSU update.zip. Of course, in order to flash the custom recovery you will need bootloader to be unlocked.