yashsingh1/xdaforums huggingface dataset:
[One (M7) General] TheDeano:
Hi all, I'm hoping someone can help me out please. I wasn't a fan of the latest release for my M7 by Optus so I decided I'd finally learn about rooting the device and installing custom ROMs (but the thing is I was perfectly happy with Sense 6.0 on KitKat 4.4), so I found a version of Sense 5.5 installed via TWRP, all of which has gone OK except now for some functionality issues (WiFi isn't working for some reason and a few other features I really liked from Sense 6.0), so I'm looking to restore it to an unbranded ROM with the stock recovery. It's not under warranty so I'm not too worried about Tampered flags or anything like that.

I've found the stock recoveries on this page -- can someone tell me the difference between 2.24.980.2, 4.20.980.1, 5.11.980.9 and 6.11.980.12 -- they all have the OPTUS001 and unbranded (HTC__039) CID. I've installed 2.24.980.2 but it's given me the red triangle/exclamation mark when I did an OTA update. If anyone also has a compatible version of unbranded Sense 6.0 on KitKat 4.4, that would also be ace :)

My CID is OPTUS001, my MainVer is 7.21.980.5 and I have S-On at the moment; should I get full root (i.e. S-Off) through Kingo or SuperSU using the TWRP recovery that seems to work perfectly well?

Thanks kindly :)
[One (M7) General] Joeisgood99:
...... "Hey, [MENTION=6703438]TheDeano[/MENTION], use the 6.11.980.12 Guru Reset ROM I kindly made (a few pages back)

But don't install the stock recovery that comes with it. That way, (you) will have an Australian unbranded Sense 6 KitKat 4.4 ROM, with TWRP recovery to install SuperSU and be rooted"

(Might be Optus branded, 4.3 can't remember.)

Good luck.
[One (M7) General] deeevan:
Wouldn't the shorter answer be: Hey, use the 6.11.980.12 Guru Reset ROM I (Joeisgood99 not me) kindly made?

But don't install the stock recovery that comes with it. That way, they'd have an Australian unbranded Sense 6 KitKat 4.4 ROM, with TWRP recovery to install SuperSU and be rooted?

I always wait for the Australian release firmware, so I'm regularly on a newer version ROM than my firmware. I don't know what impact the reverse would be (older ROM, newer firmware) but I doubt it will cause issues. Worst case scenario: Make a backup before you flash the Guru Reset ROM and revert.
[One (M7) General] Joeisgood99:
You could could try that as well [MENTION=6703438]TheDeano[/MENTION] :p

I skimmed over the first part of your post and thought u were a non rooted user that needed to be made aware of the various topics required to flash anything. My bad. I'll edit my reply

At one stage I had 4.xx. 980 firmware with a 2.xx980 rom and my phone worked fine so maybe older rom is fine with newer firmware.
[One (M7) General] Joeisgood99:
7.21.980.5 stock NAND, Guru reset & Installable .zip

Arguably little use for some of these items, but might get you out of a pinch. These files can be used for Australian unbranded, Vodafone and Telecom NZ m7 as well. .

TWRP backup of stock 7.21.980.5 above branded rom.(system & boot.)

https://mega.co.nz/#!xggB1bhB!wZf3DNQui1rk1IHMVGz_i_lyGXCNc6-czyEcpGCr2Sk

Just un zip, place in folder with other TWRP recoveries, boot to recovery and restore.

Depending on your phone settings, you may need to sign the next two zips with a zip signer from app store, before they install.

Guru reset to stock 7.21.980.5 OPTUS

Link removed temp. Back soon

Works like any other guru reset...except there will be no future OTA,s released for the m7 and most of our phones are no longer covered by warranty due to age which makes a lollipop reset a bit useless...Made from a combination of stock NAND, and the OTA, supplied by [MENTION=5184891]deeevan[/MENTION]

Stock 7.21.980.5 OPTUS Installable Rom .zip

https://mega.co.nz/#!pgxWASKR!sad6K3AHVblG5wXuoHgHqVcHPX-AylOgrHVBQ8jny7Q

Made from a combination of stock NAND, and partition dump. Flash in TWRP, give it a while to boot first time. Will install stock rom, stock/Optus, Vodafone, Telecom apps and data/preload. folder.

Recommended factory reset in recovery before flashing as the install script will not format partitions.

Not really needed if there is a guru reset of exactly the same rom in the same post...but ENJOY:victory:
[One (M7) General] deeevan:
An update with a changelog of just "system enhancements" has been doing the rounds around the world recently, so we might get another OTA.

Also, your files can be used for Australian unbranded, Vodafone and Telecom NZ not just Optus. That'll be handy info to put into your post
[One (M7) General] Joeisgood99:
HTC m7 Rooted Stock Rom. 7.21.980.5, deodexed, zipaligned, init.d support.

This is a stock rooted rom.,made from nand back up of 7.21.980.5. I ran it through ArchiKitchen and added init.d scripts.

Install with TWRP 2.8.4 or newer.

Stock Optimised Rom

https://mega.co.nz/#!ohoVFayK!ZYoF4P4zhYkzarsA-pYGurU1vgbze7JMYItJR4LythQ

de-bloated, de-odexed, zipalligned, init.d support, PIE security patch, sqlite 3, sys rw/ro, fstrim , zipallign on boot, EXT4 optimisations,other mods on boot to save battery use. SU and Busybox installed . Mod stock kernel to support init.d

Rom comes from OPTUS

Stock OTA/Rom can be found a few pages back here

http://xdaforums.com/showpost.php?p=60426449&postcount=1268

and here.

http://xdaforums.com/showpost.php?p=61075499&postcount=1310
[One (M7) General] Tweety78:
An update popped up on my unbranded M7 today (7.21.980.22).

I just rooted the other day. If I do decide to install the update, I understand I need to unroot first. do I just go into SuperSu app and click 'full unroot' & then must flash the recovery.img from firmware.7.21.980.5.zip uploaded by deeevan (Thanks!) to replace TWRP recovery I have now? will I be then able to install the update with no problem or I must relock the bootloader as well?

After installing the update, I need to flash TWRP recovery and SuperSu again and root will work again as it was?
[One (M7) General] PlayPetepp:
Yes, yes, yes, no and yes. You need to fully unroot then flash stock recovery, apply OTA and then you can do whatever you want. No need to relock your bootloader. Flash TWRP and install supersu to regain root after applying OTA, it'll work as it did before it.
[One (M7) General] Tweety78:
Thank you PlayPetepp, good to know I won't need to re-lock/unlock bootloader which will wipe everything and have to restore it all again, just did it a few days ago :)
[One (M7) General] deeevan:
Thanks for the heads up there's an update. OTA and firmware with stock recovery inside uploaded.

OTA_M7_UL_L50_SENSE60_MR_Optus_AU_7.21.980.22-7.21.980.5_release_4320373ik2954ekv40ludv.zip

https://mega.co.nz/#!805mTbxD!ksXy5Y9Dip9RFrlFlsDZ9uTD077TrKoJx37-rvqX33Y

firmware.7.21.980.22.zip

https://mega.co.nz/#!Y9pwyIpB!Maof18NLVEa3jvPWHfT1bthoJvG1OisxJ-_gOjm7XOA
[One (M7) General] Joeisgood99:
Thanks [MENTION=5184891]deeevan[/MENTION]. Ever reliable.

Thanks [MENTION=3347402]PlayPetepp[/MENTION] for the good spot.

Obviously this update contains a newer boot, hboot and rcdata image, but can anyone report a difference to the rom/user experience end of things?

Wonder how the kernel differs from .980.5?

For anyone interested I updated rooted stock rom from post 1312. (PIE security patch) Uploaded & updated download link on same post.
[One (M7) General] Tweety78:
Unfortunately I didn't have much luck. I clicked full unroot in SuperSu, flashed stock recovery and clicked to update. it seemed to update fine with no errors until it got to the bright htc boot screen with the beats logo at the bottom and just got stuck there for 40 minutes. I thought maybe deleting cache in bootloader would help but all it did was bring me to a black screen at bootup. now I entered recovery again and clicked factory reset which again brings me to a stuck htc boot screen. I'm not sure how to get out of it now. should I have needed to relock the bootloader after all? any ideas how to get out of it and boot to the regular phone state?
[One (M7) General] Joeisgood99:
R U s-off?
[One (M7) General] Tweety78:
No, I'm not, just unlocked. the bootloader shows the OS as updated to 7.21.980.22 and there's a date a few lines down saying May 13 2015. I either get the black screen or the bright htc logo screen, I don't know what's preventing it from loading normally. I wish I never updated.
[One (M7) General] Joeisgood99:
Ok.

Did you end up re locking the bootloader?
[One (M7) General] Tweety78:
No, I was told there's no need in order to update.
[One (M7) General] Joeisgood99:
I'm no expert but I'm pretty sure OTA won't install with unlocked boot loader.

R u familiar with adb and fastboot? if you have fastboot and adb insttalled on your pc then re lock the boot loader when booted in to boot loader. Or 're flash twrp then side load stock Rom zip or re flash stock nand and start again. you may have one of these saved on your ad card?
[One (M7) General] Tweety78:
Thank you for helping me with this, I did just root the other day so I'm a bit familiar with the adb.

I was told just yesterday by PlayPetepp that there is no need to relock the bootloader and it won't cause any issues. you think this is really the problem?

Do I get into bootloader - choose fastboot, connect to the pc and in the command window type:

fastboot oem lock and enter?

I never tried to flash nand or ROM before.

EDIT: I relocked and it says so in bootloader even though in adb window it showed this:

(bootloader) Lock successfully...

(bootloader) mipi display off

(bootloader) mipi_dsi_cmds_tx_ext

(bootloader) pm8921_vreg_disable function, vreg_id = 38

(bootloader) pm8921_vreg_disable function, vreg_id = 1

(bootloader) TZ_HTC_SVC_DISABLE ret = 534642044 (0x1FDDFD7C)

(bootloader) Use PSHOLD to reset device.

FAILED (status read failed (Invalid argument))

finished. total time: 1.153s

I then did wipe/factory reset again but still stuck in htc logo screen with the beats logo :(
[One (M7) General] Joeisgood99:
Before 're locking boot loader consider 're fllashing twrp and making sure your Rom is clean by flashing either stock nand, guru reset, or installable zip of stock Rom, a few pages back.

After getting stock system, boot and recovery the last step is to re lock bootloader .

fastboot oem lock

Or

fastboot oem relock.

Then

fastboot reboot.

I can't guarantee unlocked boot loader is the problem as ota wouldn't install, due to updater script checking the partition and aborting if boot loader flag = unlocked. I'd be surprised that youv got this far if that's the problem. Once you 're lock the boot loader the only way to un lock it again if u r s on is by 're submitting for unlock token from HTC. I wouldn't 're lock boot loader until your sure everything else is ok. As if it's not there is no going back. Do u have ota saved on root of sdcard, maybe 're flash twrp and flash stock zip.
[One (M7) General] Tweety78:
Thank you, I did that but I'm still stuck on the logo screen with the beats
[One (M7) General] Joeisgood99:
Obviously u didn't wanna go down the path of 're flashing twrp.

Now your only options r to wait to see if your phone boots given enough time. Or flash stock 721.980.22 firmwaref in ruu mode, but can't think what second option would solve

Has your phone booted yet?
[One (M7) General] Tweety78:
I relocked the bootloader by your suggestion thinking this might prevent it from finishing installing and booting up normally.

How do I flash stock 721.980.22 firmware in ruu mode?
[One (M7) General] Joeisgood99:
This is a link explaining how to install stock OTA with stock recovery.

http://llabtoofer.com/2014/02/24/how-to-manually-install-ota-updates/

let me know how u go.
[One (M7) General] Tweety78:
Thank you for the guide. first, is this the file I need to use, uploaded by deeevan on previous page?

OTA_M7_UL_L50_SENSE60_MR_Optus_AU_7.21.980.22-7.21.980.5_release_4320373ik2954ekv40ludv.zip

Secondly, I'm not sure how to transfer the file into the phone storage like the guide suggests if the pc can't see it?
[One (M7) General] Joeisgood99:
If your Optus or Vodafone that's the one.

If your in stock recovery try

adb devices

Does the phone s/n come up?
[One (M7) General] Tweety78:
I have the unbranded version (HTC__039). is this zip still good for my phone?

And no, not seeing my phone attached.

---------- Post added at 01:21 PM ---------- Previous post was at 01:15 PM ----------

This is the getvar all information if it helps:

Android Tools>fastboot getva

(bootloader) version: 0.5

(bootloader) version-bootloader: 1.61.0000

(bootloader) version-baseband: 4T.35.3218.16

(bootloader) version-cpld: None

(bootloader) version-microp: None

(bootloader) version-main: 7.21.980.22

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

(bootloader) serialno:

(bootloader) imei:

(bootloader) meid: 00000000000000

(bootloader) product: m7_ul

(bootloader) platform: HBOOT-8064

(bootloader) modelid: PN0714000

(bootloader) cidnum: HTC__039

(bootloader) battery-status: good

(bootloader) battery-voltage: 3769mV

(bootloader) partition-layout: Generic

(bootloader) security: on

(bootloader) build-mode: SHIP

(bootloader) boot-mode: FASTBOOT

(bootloader) commitno-bootloader: dirty-0e2a13e5

(bootloader) hbootpreupdate: 11

(bootloader) gencheckpt: 0

all: Done!

finished. total time: 0.084s
[One (M7) General] Joeisgood99:
I'm not sure. Who is your carrier?
[One (M7) General] Tweety78:
I only imported the unbranded phone from Australia but I don't live there.

Thanks for trying though, I might post it in general forum, maybe someone has an idea how to get out of this situation. I'm starting to think there's no OS installed and that's why it doesn't go pass the htc logo screen.
[One (M7) General] Joeisgood99:
Did your phone download the update automatically? Or did you loader it on the phone?

---------- Post added at 08:50 PM ---------- Previous post was at 08:47 PM ----------

Oh ok!

Not sure how it goes if you don't live in Australia and on a different carrier!

Assumed u were Aussie coz your on the Aussie thread. Better get help on it local thread. Good luck.
[One (M7) General] Tweety78:
Yes, that's because I bought the phone from Australia so I have your version.

To answer your question, yest, the update downloaded and installed via OTA as it should, at least until it got stuck on the bright htc logo screen :(
[One (M7) General] Tweety78:
Update to my situation:

I got the phone up and working thankfully. I unlocked the bootloader again, installed TWRP recovery and used the file in this thread: stock-sense-6-Rom-4 4 3- from OTA 6 11 980 12-TWRP-Backup.zip to restore via TWRP. I wasn't sure if it will work as it's an older version but it did and I could actually get booted into the system. I installed stock recovery again and re-locked bootloader and updated to the newest version 7.21.980.22. once it booted and finished optimizing the apps, I kept getting the error "System UI has stopped unexpectedly" and the notification bar was gone, home botton didn't respond. did a factory reset and it solved the issue, it is now a working, updated version.

I then just unlocked the bootloader again, flashed TWRP & installed SuperSu.

Thankfully I have a backup from a few days ago so now it's time to restore everything but glad it's finally working again :)

Added: I think I know what could be the reason for the nightmare. I had an app flashed as a system app so it might be why the update didn't go well, because it noticed a file that shouldn't be there. I even tried a few apps (when I was rooted ofcourse) to delete or turn back into user app which didn't work. this time I just installed it regularly.
[One (M7) General] Joeisgood99:
Well done!
[One (M7) General] Tweety78:
Thank you, I'm happy now :) and thank you so much for your help!!
[One (M7) General] theclaytons:
Hi,

I've flashed the guru reset for 7.21.980.5 and every time I boot the phone I go into recovery. This is true with stock and TWRP.

Does anyone know what I need to do to actually boot the phone after flashing guru reset rooms?

My steps are as follows;

Run RUU for developer edition

Flash TWRP recovery

Flash guru reset for 7.21.980.5 from above from TWRP recovery

Reboot

I get thrown into recovery every time.

Any help appreciated.
[One (M7) General] deeevan:
[MENTION=4736702]theclaytons[/MENTION] Which RUU and which TWRP?

My guess is to root cause is an early RUU with old firmware that for some reason isn't working with the ROM or a new version of TWRP that for some reason doesn't install the Guru Reset properly. It's a mystery really. The 6.11 Guru Reset worked with TWRP 2.6.3.3 and 2.7.?.?
[One (M7) General] Joeisgood99:
Also [MENTION=5481428]thec[/MENTION]laytons , the NAND used to make GURU 7.21.980.5, most likely, was created with TWRP 2.8.4. Apparently 2.8.4 is oldest version recommended for backing up/flashing Android L.

---------- Post added at 11:32 PM ---------- Previous post was at 11:13 PM ----------

Not exactly the correct thread but at least I know you guys all have m7's and might know the answer to my Q.

From an edify script what’s the correct path to sd card for the m7? As part of an instillation process Im using dd to copy boot.img to the sd card.

I know what the correct path is from shell but want to be sure its not different from an install script.

would the correct command be :

run_program("/tmp/busybox", "dd", "if=/dev/block/mmcblk0p33", "of=/[B]sdcard/boot.img[/B]");

or

run_program("/tmp/busybox", "dd", "if=/dev/block/mmcblk0p33", "of=/[B]storage/emulated/0/boot.img[/B]");

or via one of the other partitions listed in a

cat /proc/emmc

such as mmcblk0p37: - userdata or mmcblk0p24: -pdata.

If you know, please let me know!

Regards.
[One (M7) General] Tweety78:
Did you get it working? hope so. I would help if I knew anything about it.
[One (M7) General] Joeisgood99:
Ended up being "if=/dev/block/mmcblk0pxx" "of =/sdcard/object-name
[One (M7) General] Tweety78:
Glad to see you found the correct command and it's working for you now :)
[One (M7) General] Gokulbalram:
Hey guys, my friend recently managed to brick his One M7. The MID and CID are:

version-bootloader: 1.57.0000
version-baseband: 4T.30.3218.21
version-cpld: None
version-microp: None
version-main: 6.11.980.12
version-misc: PVT SHIP S-ON
product: m7_ul
platform: HBOOT-8064
modelid: PN0714000
cidnum: OPTUS001

The device won't boot, I tried booting to recovery only to find out that SDcard couldn't be mounted. I can't find an RUU zip file, neither a stock firmware zip. Could anybody help me here? Thanks!
[One (M7) General] MaratabHashmi:
Flash custom recovery TWRP through fastboot,mount and install custom rom or stock backup because Official ruu not available for pn071400 mid
[One (M7) General] Gokulbalram:
I can't flash TWRP, my bootloader is locked
[One (M7) General] MaratabHashmi:
You won't need rom for unlock bootloader just need working fastboot

Unlock through htcdev.com
[One (M7) General] Gokulbalram:
I tried unlocking, but the unlock confirmation screen wouldn't come
[One (M7) General] ach1:
I had the same problem but rectified with http://xdaforums.com/showthread.php?t=2475914
[One (M7) General] wckong:
I was on ARHD71.1 for over a year with no issues, but just a few days ago, I began to not be able to hear anything when receiving or initiating a call. I then restored, and performed all OTA updates to 7.21.980.22, but the issue remained. I also installed ARHD92.0, which also exhibited the same behaviour.

Has anyone experienced this? I've tried everything I could, from clearing cache and google framework data, but they just seemed to be temporary fixes. I've also only tried Sense ROMs, and was contemplating installing a GE ROM to see if it also has problems.

Thanks in advance.
[One (M7) General] MaratabHashmi:
Only one solution when you receive or make call use open speaker then your voice hear by the another
[One (M7) General] mr_bbi:
Same here, no solution, stuck with a speaker phone only. Tried various Roms from ARHD, GPE, switched to stock & locked bootloader, even tried Viper Rom which is meant to have an audio fix built in...no luck. Most ppl had the Mic issue sorted with an OTA Update back in Dec/Jan. All the various solution for me have failed.
[One (M7) General] TornadoF6:
Anyone have any idea how to get my old M7 out of usb host mode?

Tried all the known tricks to no avail...

Edit:M7 can sense an OTG cable & usb thumb drive(16gb Sandisk),mounts properly and can see photos on it.Unmounts fine.

M7 also seems to mount(kind of),to my laptop,but it mounts and unmounts nonstop,tried a few difderent cables but still the same issue.All i did was update the Car app,and disable it.

Phone still needs to be tyrned off for charging,and it mounts and unmounts from the charger nonstop
[One (M7) General] WildfireDEV:
Hey Guys

I need to return my Vodafone AU M7 for warranty purposes due to issues with the sim tray and it not detecting the sim at all. I was hoping that someone could help me out and provide me with the latest Vodafone ROM (TWRP backup?) and also the latest stock recovery corresponding to the rom version. I am extremely grateful to all that help.
[One (M7) General] TornadoF6:
Have you tried putting a strip of sticky tape onto the back of the sim card?

I did this on my M7 due to the same issue
[One (M7) General] WildfireDEV:
Yeah I did try that and now it sporadically goes from having the sim to having no sim and then back to having a sim again. So I thought I might as well get it replaced.

Regarding the files I asked for I found a old backup of 7.21.980.5 and using the recovery I posted updated all the way to .35

Will post the files here soon so others in my position will find it much easier.
[One (M7) General] Joeisgood99:
I pm you with link to 7.21.980.5 stock zip....
[One (M7) General] WildfireDEV:
Hey

Thanks got it.
[One (M7) General] Aaren11:
I don't suppose anyone still has a link to the 7.21.980.22 OTA zip? Even just a nandroid of it would do.
[One (M7) General] deeevan:
New link + the 2 newer OTAs

OTA_M7_UL_L50_SENSE60_MR_Optus_AU_7.21.980.22-7.21.980.5_release_4320373ik2954ekv40ludv.zip

https://mega.nz/#!M9ZSiR4I!ksXy5Y9Dip9RFrlFlsDZ9uTD077TrKoJx37-rvqX33Y

OTA_M7_UL_L50_SENSE60_MR_Optus_AU_7.21.980.35_R-7.21.980.22_release_449676.zip

https://mega.nz/#!dlIjjJ5B!joR_AYN6TO5qxtsuyFnNP2fBCWJcLBeikVidybbJopY

OTA_M7_UL_L50_SENSE60_MR_Optus_AU_7.21.980.51-7.21.980.35_R_release_4590240kumcie99c4w3uo8.zip

https://mega.nz/#!8ow3HIpD!JnOWvcAt4LqQ37aKl2h3lAtG8rbz7CztH2n116gf64s

Sorry, either MEGA changed the encryption keys or I broke them organising my files into folders (I think I did that before without breaking it)
[One (M7) General] Danny201281:
I'm looking for 7.21.980.5 firmware.zip from the OTA. These links are dead don't suppose any body has a working link?
[One (M7) General] deeevan:
7.21.980.5 OTA

https://mega.nz/#!M0wCVZgL!3269nfwgJ5Bp7g_v-Bw2-VTUdNJDSeCqJd6iXW-zvV4

7.21.980.5 firmware.zip

https://mega.nz/#!84wwASjC!xjgCMvfa0rGIN5fhvjnTpCb3eV2lW4mpS53Lx1cfjfg
[One (M7) General] Azurewren:
[MENTION=6300794]Joeisgood99[/MENTION] Would you happen to have or know where to get a more recent Guru Reset for a Aus Vodafone HTC One m7

Relevant getvar details:

(bootloader) version: 0.5

(bootloader) version-bootloader: 1.61.0000

(bootloader) version-baseband: 4A.17.3250.14

(bootloader) version-main: 7.19.980.5

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

(bootloader) product: m7_ul

(bootloader) platform: HBOOT-8064

(bootloader) modelid: PN0714000

(bootloader) cidnum: VODAP021

(bootloader) security: on
[One (M7) General] Joeisgood99:
Hi mate.

I'm not aware of any Vodafone M7 users who made a Guru reset. If you have the most recent ota from Vodafone and a TWRP backup (made of the same ota) it's pretty easy to make one. If you find the bits needed I can step you through it.
[One (M7) General] kamold:
Could anyone please point me in the right direction of a GURU reset or most recent RUU for Optus x.980.x stock ROM?

Thanks
[One (M7) General] alray:
See RUU sticky thread
[One (M7) General] Joeisgood99:
I made one, it's a few pages back.