yashsingh1/xdaforums huggingface dataset:
[Sprint HTC One (M9)] SirDeuce:
I'm still getting the same errors after updating to N when flashing the 0PJAIMG.zip

12 RU_ZIP_ERROR

12 RU_ZIP_ERROR

FAIL 12 RU_ZIP_ERROR

any ideas?
[Sprint HTC One (M9)] OMJ:
yes, you can also go back to s-on too
[Sprint HTC One (M9)] SirDeuce:
So i managed a work around. I was able to get unsigned 3.41.651.41 to work and it is currently downloading the update to 4.27.651.4. I cannot however seem to flash the official Sprint ROM and not sure why. I have tried multiple downloads for it, but keep getting the 12_RU_ERROR message every time. Is it becuz I'm S-Off Unlocked? I found a signed Sprint RUU.exe file that is suppose to flash if I connect my phone to the computer and run that file, but I don't want to brick my phone.
[Sprint HTC One (M9)] OMJ:
I would just flash the 3.41.651.41 ruu and leave it like that
[Sprint HTC One (M9)] SirDeuce:
Thanks for all your help.
[Sprint HTC One (M9)] mswlogo:
Bad Boys Sprint ONE M9 Marshmallow v3.2

Build 3.41.651.4

Kernel 3.10.84

Recovery: Team Win 3.0.2-0
[Sprint HTC One (M9)] OMJ:
it's been stated, if you're trying to update from M to N, you have to flash the N firmware 1st then you can flash the N RUU...after RUU, make sure u flash the latest twrp
[Sprint HTC One (M9)] mswlogo:
I tried that. I tried the FUU method and it failed the same as the RUU. I didn't try it through the SD Card method though.
[Sprint HTC One (M9)] mswlogo:
I ran RUU_HIMA_WHL_M60_SENSE70_SPCS_MR_Sprint_WWE_3.41.651.41.exe successfully to get things in a known state and verify USB is ok etc. So only thing is UNLOCKED and S-On.

I tried Firmware only on the SD Card and it reports Signature Errors.

I even reformatted the SD Card (from phone) and tried again.

Then I tried FastBoot and that fails with signature error.

Tried RUU RUU_HIMA_WHL_N70_SENSE80_SPCS_MR_Sprint_WWE_4.27.651.4.exe for grins and that fails.

I also tried copying the full ROM to SD CARD and it won't let me?

---------- Post added at 05:16 PM ---------- Previous post was at 04:37 PM ----------

It appears I've lost my S-Off status.

Does that mean I must ReLock in order to flash anything?
[Sprint HTC One (M9)] xda26:
Hi can I install lollipop rom on the latest firmware???
[Sprint HTC One (M9)] OMJ:
ruu'ing or flashing firmware should never cause you to lose s-off, I've never heard this....no, u don't don't need to relock BL

very unlikely
[Sprint HTC One (M9)] Sumit Khuha:
Unable to install diag drivers, using android 7
[Sprint HTC One (M9)] Sumit Khuha:
Simlock enabled in my phone, as i flashed bad boyz nougat rom, now i want to unlock sim with getting spc method, bt i am not able to get this command working

"echo 1 > /sys/devices/virtual/android_usb/android0/f_diag/func_en"

Currently on stock nougat
[Sprint HTC One (M9)] xda26:
Please help I can't download the ruu exe 3.41.651.41
[Sprint HTC One (M9)] apolousm:
Hi guys, girls. I hope you are all doing great today.

I know this might not be the thread to post my problem but this is the must active thread for a 2 years phone like the One M9. The fact is that i bought a HTC One M9 on eBay. It was supposed to work on AT&T, and it did (for one day). The modem was working well (Hsdpa and calls), but it suddenly stopped to connect to my carrier's network.

Symptoms:

1. As soon as the phone arrived, i tested it. HSPA and calls were working fine.

2. After some days, If i insert the sim card, the phone recognizes that there is one simcard in the slot, but it doesn't connect to any network.

3. I have tried to install a stock RUU because I cannot identify what kind of software was installed on the phone. But I get a signature error for every single try to install a RUU.

4. The phone only shows the network types as LTE/CMDA or CDMA only.

5. When I insert the simcard, i am not directed to insert any simunlock code.

6. The phone model is OPJA200 (which I understand works under the Spring network).

7. I've been trying to run a factory reset to delete any kind of software, but it is not possible. The phone just restart and gets into the bootload/recovery/restart, etc screen.

When running fastboot to install a RUU, this is what I get:

C:\adb>fastboot flash zip 0PJAIMG.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 1934862309 is not a multiple of the block size 4096

sending sparse 'zip' (0 KB)...

error: write_sparse_skip_chunk: don't care size 1934862309 is not a multiple of the block size 4096

error: write_sparse_skip_chunk: don't care size 1934862309 is not a multiple of the block size 4096

OKAY [ 1.026s]

writing 'zip'...

(bootloader) HOSD CL#591203

(bootloader) ERR lzipv1_init : Cannot read header len bytes

(bootloader) ERR lzipv2_init : Cannot open file /dev/fastboot_download_q

(bootloader) mSDpK

I am really sorry to bother you with this problem, but I need expert advice at this point.

Thanks a lot and have a great day.
[Sprint HTC One (M9)] OMJ:
HTC recently cleaned up their downloads, and only have the latest exe version available...I deleted all my local copys exe versions a long time ago...you'll have to use the 0PJAIMG.zip version

0PJAIMG_Sprint_HTC_One_M9_3.41.651.41_RUU.zip

sounds like SIM may be locked...

post the output of fastboot getvar all ...edit out your serial & IMEI
[Sprint HTC One (M9)] jpwhre:
File removed by me.
[Sprint HTC One (M9)] xda26:
thanks

---------- Post added at 01:55 PM ---------- Previous post was at 01:08 PM ----------

how to downgrade the firmware to marshmallow?
[Sprint HTC One (M9)] jpwhre:
s-off

---------- Post added at 03:13 PM ---------- Previous post was at 03:13 PM ----------

S-off
[Sprint HTC One (M9)] xda26:
how to s-off?
[Sprint HTC One (M9)] jpwhre:
https://xdaforums.com/sprint-one-m9/general/guide-s-off-m9-spr-t3086696
[Sprint HTC One (M9)] xda26:
$25 haha
[Sprint HTC One (M9)] Kisakuku:
No, S-Off is $25, haha is free.
[Sprint HTC One (M9)] xda26:
$25 convert it to Philippine money is 3,000 haha
[Sprint HTC One (M9)] OMJ:
Well, there is no other option. S-off is required to downgrade... Not sure why you'd want to go backwards though...
[Sprint HTC One (M9)] jpwhre:
I didn't build the s-off app, all I did was answer your questions..
[Sprint HTC One (M9)] xda26:
Its ok:):)

---------- Post added at 01:38 PM ---------- Previous post was at 01:37 PM ----------

It's ok:)
[Sprint HTC One (M9)] jpwhre:
Why you trying to roll back?
[Sprint HTC One (M9)] MEHRABISLAM:
for upgrade
[Sprint HTC One (M9)] OMJ:
1st, flashing a RUU will wipe everything including internal storage. If this is what you want, just follow instructions to OP to flash, no need to lock, s-off is ok.
[Sprint HTC One (M9)] MEHRABISLAM:
one more thing ..nougat update in sprint m9 drains battery 3 times faster ., is that true??
[Sprint HTC One (M9)] OMJ:
Couldn't tell you, I switched to the HTC10 long b4 Nougat came to the M9. I highly doubt it though.
[Sprint HTC One (M9)] jpwhre:
Not true.

Update to latest nougat. Name it to 0PJAIMG.zip and flash in download mode.

Won't delete internal storage, just update from where you are. Doesn't install firmware I believe, so you must do yourself.
[Sprint HTC One (M9)] sagarrayhan:
I cant recieve files from other phones by share, And cant install the ruu

I am facing a problem. Cant Install the ruu (Zip and exe).. It says Zip error.......... My phone don't show 3g, Only G appears. and can't share files by Share it:angel::angel::angel::angel::angel::angel::angel:
[Sprint HTC One (M9)] Lisandro F:
Hi I would like someone to help me recover my phone for "stock",i dont not understand any of this and do not have a backup.

I have unlocked bootloader and root.

Please explain me what to do and where to get the files.

I have the HTC ONE M9

Rom: 4.14.401.7

Radio_01.01_U11440792_97.00.51203G_F

Build number 4.14.401.7 Cl836547 release-keys

Kernel version 3.10.84-perd-g9b2a640

and@AABM #1

SMP PREEMPT

OpenDSP-V46.2.2-00564-M8974_F0.0811

S-ON

In boot recovery twrp-3.1.1-0-hima

Android version 7.0

So, i want to update the software for 4.28.401.3

Because i have a problem the phone doesn't install the new update because of TeamWin.

If i take the unlocked bootloader will it accept the update?

I bought the phone already without system stuck in bootloop, i just put this system and is working nice, but i need this phone back to stock.

Do I need to do it in S-On or S-OFF?

More info just ask me.

thank you very much
[Sprint HTC One (M9)] OMJ:
This forum is specifically for the Sprint M9, check the international forum.... https://xdaforums.com/one-m9/development
[Sprint HTC One (M9)] BodhiBrock:
Trying to update my son's m9. There's no mirrors for Bad Boyz rom or stock rooted rom.
[Sprint HTC One (M9)] OMJ:
AFH seems to be working fine
[Sprint HTC One (M9)] jpwhre:
First page, first post, this thread.
[Sprint HTC One (M9)] LuisLasso:
Hello friends what happens is that I download a firmware for my HTC M9 OPJA200 and it worked fine and everything rebooted my cell phone and I entered the download mode and everything but when I enter the recovery mode twrp I deleted and I do not know what to do to install it to be able to install a room? I can do need help my phone does not enter android or nd I will install a RUU if everything returns to normal :(
[Sprint HTC One (M9)] hammer400:
Only got Fastboot

I am hoping you smart folks can help me out. Out of the blue, my phone just started to bootloop today. Can't access recovery nor download mode. Just bootloops when trying to get there. Seems I can only do things through fastboot. Tried running the full RUU and got the message about the battery being under 30%, when it was actually at 72%. So that didn't work. Tried flashing a recovery which looked like it worked through fastboot commands, but still just bootlooped when trying to boot to recovery. Event the command "fastboot oem rebootRUU" throws the phone into a bootloop. Is it safe to say this HTC One M9 is officially toast or is there anything else I can try to do to save it?
[Sprint HTC One (M9)] mswlogo:
Duplicate POST: I put this in the Q/A section and didn't get any replies so I'll try here.

I'm baffled by the behavior of my HTC M9.

This is not my primary phone as I now use iOS Phones, but I'm using the phone for development of an Android App that I also developed on iOS.

Anyway the phone was working fine and I thought was kind of draining battery fast so I rebooted it. Then it boot looped just as the Window Manager loaded.

So I ran the latest RUU on it, and all was fine. It is completely stock now (it was formerly S-Off Bad Boys etc.).

I go a couple weeks and I was trying a competing app and it had trouble connected to a dedicated bluetooth LE device. So I rebooted.

It boot looped again. Tried clearing cache, removed SD card etc. Sometimes it would not even make it to the Window Manager before it rebooted.

Run RUU again, and everything seems fine including the app(s) I was testing.

The only thing it has on it, is all the Sprint Crapware (oh how I don't miss that on Android), and a My App I'm developing and a couple competitors Apps.

They all use GPS, Maps, and Dedicated Bluetooth (LE) Device. And it does have Developer Mode enabled.

I thought Hardware was going bad and seen some reports of this and having to go back to HTC for repair. But the RUU works every time.

I've ordered a Pixel for further development but I could use multiple phones for testing.
[Sprint HTC One (M9)] chimpsinties:
Ok now I'm really confused.

I have a Sprint M9 but I live in the UK and my network lets me tether no problem. However, I just can't get tethering working on this phone. I've used ViperRom for ages. I went from 6.1 to 6.2 because they said they had Sprint tethering working. It didn't allow me to do it still. The closest I've come is using a 3rd party app I can get the other device to try and connect but it always sticks on "acquiring IP address" and never actually lets data flow.

So today I thought I'd try a fulll wipe and flash their latest 6.2 rom. Still the same issue. The tethering option just doesn't show up in the Settings | More area and tethering doesn't work.

So after googling a bit and reading many posts on XDA everyone seems to think that it works ok on Bad Boys Rom. I downloaded and installed it only to find that it still doesn't work. Are there other steps I must go through to get it to work? It's so frustrating and I've got to admit, buying a sprint phone by accident (it wasn't mentioned in the ebay listing) has been one of the worst tech mistakes I've made recently.

I know it's not your fault at all. I'm just having a rant. I'm kind of hoping I've just missed something simple and someone will point how silly I've been.
[Sprint HTC One (M9)] OMJ:
sorry, don't have a good answer for u...the fact that this is happening on stock, would indicate a possible hardware issue, I know the RUU temporarily solves the issue, but if it was software related, I would assume there would be a ton of ppl complaining. I would probably contact either Sprint or HTC

the problem is those settings don't appear until the phone has been activated on the Sprint network....I never had the issue of the setting missing since I was always on Sprint....IIRC, for those using the phone outside the US, the fix was editing \system\customize\clientid\default.prop

changing:

ro.wifi.hotspotUI=0

ro.bt.tetheringUI=0

ro.usb.tetheringUI=0

to:

ro.wifi.hotspotUI=1

ro.bt.tetheringUI=1

ro.usb.tetheringUI=1

I did make the change in the svn back in June, but it's not in the posted ROM

see attached for a flashable zip to change this....there's a possibility you may have to clean flash for it to work, but hopefully not....if u did, you would want to wipe data, flash ROM, then flash the fix b4 1st boot
[Sprint HTC One (M9)] chimpsinties:
Thanks for the quick reply. You're the best.

OK, do you know if I can make these changes if using another rom. I've actually reverted back to my backup on ViperOne now as I thought there was no point changing and redoing everything if I didn't gain from it. Is there a way to edit that file when the rom is already installed?
[Sprint HTC One (M9)] OMJ:
You can still flash that zip...or u can manually make the changes via a root explorer/editor
[Sprint HTC One (M9)] chimpsinties:
OMG OMJ you are amazing. You've solved the problem that has been plaguing me for about a year ever since I got this phone. I've never been able to tether until I just flashed that little zip you provided. Now the item shows up in the menu and it connects immediately via wifi and works great. Thank you, thank you. Can I buy you a beer?
[Sprint HTC One (M9)] OMJ:
Thank you for the beer :) glad to help!
[Sprint HTC One (M9)] huzaifaaleem:
Revert to MM Possible?

If I take the OTA of Nougat on Sprint HTC One M9 after relocking bootloader, can I unlock it again and revert back to Marshmallow?

Thanks.
[Sprint HTC One (M9)] OMJ:
no need to lock bootloader....but to downgrade you must have s-off
[Sprint HTC One (M9)] huzaifaaleem:
Stock Rooted ROMs

Before flashing this Stock Rooted ROM or making any system change, make sure you have done a clean SYSTEM IMG BACKUP using TWRP 2.8.6.0 or newer!!! See post# 2 for more information.

Stock Rooted 3.41.651.41 ROM

Bad_Boyz_Sprint_ONE_M9_4.27.651.4_stock_rooted.zip

-SuperSu & BusyBox added

Can I use TWRP to flash this stock rooted ROM?
[Sprint HTC One (M9)] LordAli10:
Right now i'm in 3.41.651.4

S-off

Experiencincing crazy battery drain and not connecting to 3g or 4g. Im from India. I bought the phone via ebay.

Suggest me on what to do.
[Sprint HTC One (M9)] atroph:
Maybe the battery is weak and needs to be replaced. Was the phone new when your purchased it?
[Sprint HTC One (M9)] hellcell:
stock recovery

hi , i need the original 2.6.651.11 recovery to flash it so i can update my software , could you please give me a link of an image recovery , thank u .
[Sprint HTC One (M9)] mswlogo:
Turns out all my issues were the battery going bad. I did manage to get it to hobble along for quite some time if I kept it plugged in. Finally it died.

Screen was "swelling" up out of it's mount due to bad battery swelling up.

I thought the phone was toast and decided to take it apart. It was not too bad. Hardest part was getting off the back cover and getting it back on.

Well a grand total of $11.50 via Amazon and the phone is like new again. Too bad already just purchases and HTC 10 (Verizon) just for Android 7 testing, wow, nice phone though.

Any way with that whole fiasco, I somehow lost my S-Off. I have re-unlocked it, latest TWRP and stock rooted ROM, all good.

Back in the day I would always S-Off my HTC phones.

Since the biggest thing S-Off gives you is controlling OTA updates and what Firmware you load and that it is doubtful to change much going forward is there much advantage in getting it back to S-Off at this point?

I also don't know how to recover my payment of Sunshine S-Off and I didn't mind paying once, but twice kind of hurts. Especially where I lost it and never lost it before.

Also to get back on the topic of this thread, is there a Stock Rooted M9 Sprint ROM that has been also debloated?

I know Bad Boys historically doesn't go too far off from Stock but I'd prefer straight Stock for Software Testing. But the Bloatware is driving me crazy. I may just use Bad Boys.

I always totally respect and thank folks that keep these HTC phones going. Sunshine folks, Captain and [MENTION=506238]OMJ[/MENTION] etc.
[Sprint HTC One (M9)] SadZaf:
Hello!I am currently on 3.41.651.4 i am rooted s-off and bootloader unlocked.How would i update to nougat 7.0 official.Twrp is not installed.It would be good if i wouldn't lose data while updating?
[Sprint HTC One (M9)] warmachine00:
I just want to say thank you. I tried upgrading from badboyz M to N, flashed the RUU (not the firmware) version required for the upgrade, and it somehow wiped TWRP, my rom, and got me stuck on the htc logo even though the RUU was signed without recovery. I spent hours googling and digging through this forum, including making my own post, and I just could not get a stock firmware version that wouldnt throw an error code at me. this worked. the phone did stick at the htc logo for a bit (roughly 10 min) and I was almost going to say screw it, but it eventually loaded the apps. thanks again
[Sprint HTC One (M9)] SadZaf:
Hello Guys.I want to upgrade my m9 to Nougat.How can i do that.I am Rooted and S-Off and Bootloader is Unlocked.I am running version 3.41.651.4.Please suggest me what to do.Your Help will be Appreciated.
[Sprint HTC One (M9)] SadZaf:
Do i need to install the firmware 1st before installing the ruu.Which firmware do i need to install.I am currently on 3.41.651.4 and want to update to N.I am rooted,S-off and bootloader unlocked.And does installing the firmware will erase all the data and after installing the firmware can the still boot.And which method i use to install ruu opjaimg or exe ruu.Please tell me?
[Sprint HTC One (M9)] minhnewpro:
Hello [MENTION=506238]OMJ[/MENTION]. Seem this file is damaged https://www.androidfilehost.com/?fid=673368273298946816
[Sprint HTC One (M9)] OMJ:
I doubt that...
[Sprint HTC One (M9)] minhnewpro:
I sent link of this file for 2 people and both of them can not flash. I don't have M9 Sprint so i can not test this file for you.
[Sprint HTC One (M9)] OMJ:
I cannot test either, I'm done with the M9
[Sprint HTC One (M9)] minhnewpro:
?. I'm done too. I'm using U Ultra. Thank you.
[Sprint HTC One (M9)] neromcc:
i cant flash using this

12 RU_ZIP_ERROR
[Sprint HTC One (M9)] Be6i4:
I also think file is corrupt. I downloaded 2 times and this is not a valid archive. Not only I can't copy to the phone, but I can't extract, nor open with 7zip. I downloaded this one:

0PJAIMG_Sprint_HTC_One_M9_4.27.651.4_RUU.zip
[Sprint HTC One (M9)] SadZaf:
Htc one m9 sprint

Simlock enabled after installing opjaimg 4.27.651.4.zip.Need help OMJ
[Sprint HTC One (M9)] Khanghtc:
Downgrade

How to downgrade android 7 to 6 on htc one m9 sprint with s-off and unlocked bootloader ? [MENTION=506238]OMJ[/MENTION] thank you for your help.
[Sprint HTC One (M9)] OMJ:
if I recall, u just need to flash the appropriate android 6 ruu
[Sprint HTC One (M9)] Khanghtc:
Thank you !

thanks for ur help
[Sprint HTC One (M9)] jdjohn:
Bricked?

I flashed Modified Firmware from RUU, removed recovery & boot (fastboot flashable), and now only get the HTC whitescreen. Am I bricked? I wanted to leave the boot I had in place, but do I now have no boot at all?
[Sprint HTC One (M9)] OMJ:
no, not bricked...flash the latest modified firmware that only removes recovery, that should at least get you booted
[Sprint HTC One (M9)] jdjohn:
Thanks for your reply. I can't get to bootloader or download mode, though...is there another way to flash?

---------- Post added at 11:13 AM ---------- Previous post was at 11:04 AM ----------

Sorry, nevermind...I got into download mode. I've been out of the flashing game awhile, so back on the learning curve!
[Sprint HTC One (M9)] jdjohn:
Ok, I got the firmware updated, and also updated recovery to TWRP 3.3.1.0, but I still get stuck on white screen during normal reboot. In bootloader, I see 'DDR (Loop)', which I don't believe has been there before. I'm coming off an older version of ViperROM (maybe 6.0 MM?), so now I'm wondering if it's just a matter of flashing this stock (or another) new 7.0 Nougat ROM to match the firmware. I'm able to mount internal storage in TWRP, and should be able to download and copy a ROM into the Download folder.
[Sprint HTC One (M9)] OMJ:
yeah, I'm not sure, I've been out of the game for some time now...maybe viperROM needs the modded boot to bootup...I'd probably backup data in twrp, clean flash a ROM whether stock or viper, then restore the data
[Sprint HTC One (M9)] blacksoul:
What are all requirements

Can it be used to root my device

Its htc m9 sprint /OPJA2/s.on/ nougat

I don't have twrp recovery

Just app

I need root my phone without any help from pc

Please!
[Sprint HTC One (M9)] OMJ:
I'll do my best to clear some things up....we're all still learning, as this is new to us all, so I don't have all the answers.

1st, you may already know this but I'll state anyways (it's also in post #2)....When trying to install a OTA, it confirms the checksum (md5) of the system block, if it has changed, OTA will not install. It doesn't take much to change the checksum, just mounting system in TWRP (using a older version) will change it, flashing SuperSu certainly will too.

the initial backup is restorable in TWRP but it does not restore that checksum, I wont pretend to know why, just what I've read. If you restore (flash) that system backup (which is basically a image) in bootloader/download mode, then it restores that system img & checksum. of course, recovery must be stock too to install OTA.

That system img is the same for all devices, so yes, the backups posted in OP should work for anyone (Sprint M9). I would still copy your own initial TWRP to your pc for safe keeping. This will need to be done after every OTA, as there will be a different checksum for the new system (I'm assuming).

After root or other modification, subsequent backups are restored as usual in TWRP.

those having trouble restoring to virgin status for ota: A few days ago, it was posted that after fastboot flashing the virgin system img that it was also necessary to restore that same img in TWRP, I don't know why, but it sounds like it resolved the issue.

as far as running the exe RUU, for s-on users, you'll probably have to lock bootloader like always & flash. I don't think it will matter if the system checksum has changed or not.

hope this helps...
[Sprint HTC One (M9)] Captain_Throwback:
Actually - there is (and I didn't just add this, in case you were wondering):

The important part of that is where it says "exact variant and current software number." Sprint always provides RUUs for us, so that should always be an option.

EDIT: I will add a specific Q&A for this, though, to make it clearer.

---------- Post added at 02:56 PM ---------- Previous post was at 02:52 PM ----------

I do explain the reason for the TWRP restoring issue in the TWRP thread (which was also already there) . . . I've re-worked that Post #2 now so hopefully it'll be clearer to everyone now.