yashsingh1/xdaforums huggingface dataset:
[One (M9) Android Development] Pandosu1986:
Can't upgrade...

So... I am on the 4.14.617.6 firmware (upgraded with OPJMA.zip method). I received the OTA for 4.19 but after the download it says that my software is corrupt. I flashed the stok recovery, I even relocked the bootloader but that OTA won't install.... Any ideas? Here is the getvar all resume.

(bootloader) kernel: lk

(bootloader) product: htc_himaulatt

(bootloader) version: 1.0

(bootloader) serialno: HT52*******

(bootloader) current-slot:

(bootloader) imei: 357************

(bootloader) version-main: 4.14.617.6

(bootloader) boot-mode: download

(bootloader) version-baseband: 01.01_U11440971_103.00.61018G_F

(bootloader) version-bootloader: 1.0.0.0000

(bootloader) mid: 0PJA11000

(bootloader) cid: 11111111

Edit: Nvm, just had to change CID to BS__US001 and everything worked just fine.
[One (M9) Android Development] Roobwz:
Your firmware Will still be MM if you just restore The backup
[One (M9) Android Development] sachb_htc:
I installed nougat just yesterday and i feel my battery is draining faster and performance has gone down hill.
[One (M9) Android Development] michal383:
Same problem .:(:crying:
[One (M9) Android Development] sachb_htc:
You can try ICE rom, it should be better than stock.
[One (M9) Android Development] sachb_htc:
Damn even on ice rom the issue persists.

But the performance is superb on the ice rom 5.0 nougat 7.

I think the m9 is not capable to handle this os.

Since it's a pre release bugs are to be expected

But if HTC goes on delivering such mediocre firmwares and OS their sales will drop.
[One (M9) Android Development] vyper007:
Is this official firmware? Everything working? Signal, wifi, etc? Also does quick charge work correctly with this rom?

Thanks.
[One (M9) Android Development] Hai Karate:
Benchmarks on my phone improved under Nougat. Memory usage has slightly decreased. Performance and battery life is as good as or better than Marshmallow. Perhaps you need to do a full wipe of your phone?
[One (M9) Android Development] sachb_htc:
Yes did a full wipe on this phone, but somehow my phone doesn't like nougat.

I switched to ICE rom now, it's a slight improvement over the stock but still my phone is overheating and the charging has become painfully slow.
[One (M9) Android Development] piterdemon:
Because you didnt read op and posts, set to permissive and flash 2.79 supersu to fix overheating

Wyslane z mojego M9 przy uzyciu Tapatalka
[One (M9) Android Development] bigjailerman:
double post
[One (M9) Android Development] bigjailerman:
Can I use this OTA_HIMA_UL_N70_SENSE80_ATT_MR_NA_Gen_Unlock_4.14.617.6_R-3.35.617.31_release_490897lkj8xif5v3eoiykd.zip on the Unlocked M9, rooted, bootloader unlocked, S off on Viper 3.5, android 5.1? Do I need any midway steps before nougat??

Thanks
[One (M9) Android Development] bonesy:
Yes everything is working fine as expected with a stock rom. It does rapid charge too with a qualcomm quickcharger
[One (M9) Android Development] vyper007:
Okay, I think I'll give it a shot. So I just have to restore with TWRP? Nothing else needs to be flashed?? Is that right?
[One (M9) Android Development] maliken333:
Anyone have stock of 4.19.617.1???

the phone won't boot after i flashed dolby atmos and gltool.zip in the sametime

, i did unistall flashing but no result

im just waiting from htc official 4.19.617.1 RUU so we can back to stock safety
[One (M9) Android Development] maliken333:
this is untouchable system image backup?

hey im from Indonesia too :o
[One (M9) Android Development] zlebors:
I got the M9 T-mob S-OFF, change to Developer CID and flash the Developer RUU to take latest OTA update.. afterthat, I booted TWRP recovery to take nandroid nandroid backup (only boot and system)
[One (M9) Android Development] maliken333:
Thank you, im luckily my phone was developer edition with s-on:D

maybe you can do like Mr.

and the link

you can find at TWRP section 1
[One (M9) Android Development] vyper007:
Okay. I finally have a little free time over the weekend this week.

Looking up info about my phone, I just want to be sure of everything before I got ahead and flash this. Coming from Samsung devices, I find the flashing process isn't as straightforward.

I have an HTC ONE M9 that I originally bought on an EE contract in the UK. It has been Network unlocked and bootloader unlocked via HTC Dev.

My question is:

Am I able to safely flash this TWRP backup without screwing up my M9. I'm currently running the latest ViperONE ROM which is Android 6.0.1 according to the about device info page in settings.

Please advise. Sorry if this has been asked a multitude of times but I just want to be 100% sure before I go ahead with the flashing process as I don't want to end up with a gold brick that has fancy HTC Logo etched in the back of it :silly::laugh:

HTC HIMAUHL
[One (M9) Android Development] boroboy69r:
will this full wipe our M9 for fresh start.

---------- Post added at 09:50 AM ---------- Previous post was at 09:29 AM ----------

Just back up what you have already in TWRP then flash ROM only nothing should screw up tbh, just like restoring a normal backup.

You need to extract the files from a rar archive into your TWRP dir on phones sdcard.
[One (M9) Android Development] vyper007:
Sounds easy enough. I will give it a go.

Thanks very much.
[One (M9) Android Development] bonesy:
You can just restore either the backup in the OP or on page 2 using TWRP. Then flash supersu systemless latest or magisk root, download SELinux mode changer and set the mode to permissive.

You will have a full working, rooted rom that you can just unroot if you want to.

I've used magisk as above and the SU hider works fine for all the usual uk banking apps that usually wont open due to root :)
[One (M9) Android Development] hatedman95:
Question

Why do i need to set SELinux to permissive?

I just TWRP backed up this update and it seems that's draining more battery than usual.It's just me or it need a first charge?

I just can't manage to get the SELinux app to work with SuperSU flashed from TWRP.
[One (M9) Android Development] bonesy:
Setting SElinux to permissive stops core 3 being locked to full power (causing drain) im unsure why it does it as i am not a developer but i am trying to work it out.

Which SElinux app? You have to use SuperSU SYSTEMLESS latest - https://chainfire.eu/ (top link)

This SELinux app works flawlessly - https://xdaforums.com/showthread.php?t=2524485

Give the app root access when prompted :good:
[One (M9) Android Development] aryan_rulz_1983:
need help urgent

friends plz help me i restored 4.19.617.1 twrp, as i m s-on unlocked original mm firmware 401 europe, battery drain issue hardly 3hrs @ full charge, i read tht i need to root & set selinux to permissive, rooted using SuperSU R2 2.79 but no su app installled, so installed it frm store manually, works fine with adword & esexplorer etc, enabled init.d support tested with the log its fine, installed a script to enable permissive @ boot but not able to make it work kindly help me guys plz, help me with the basic steps & files needed for resolving this issue, u can guide me wht to do after the twrp restore. may b i m missing something there aswell
[One (M9) Android Development] bonesy:
Post right above you contains an app that sets linux to permissive (another xda post)

The way i did it was to use MAGISK SYSTEMLESS via the app on play store. Then using ES File explorer click the left side menu bar and go down to root explorer, click device from the left side, then go to the magisk folder>PHH and open services.sh with ES note editor. AT THE TOP OF THE FILE under #!/system/bin/sh add the line "setenforce 0" (without the quote marks) save the file and reboot.

This should set permissive on boot and if successful, will also allow you to hide root from apps and pass SafetyNet
[One (M9) Android Development] corrado85:
if i flash this via TWRP will this also update my FW to 4.x which is what I want done as well by upgrading to N?
[One (M9) Android Development] bonesy:
I'm afraid not, you will need to flash firmware separately from THIS THREAD choose the no wipe version unless you want to completely wipe the phone
[One (M9) Android Development] vyper007:
Is it necessary to flash the firmware too? Does updating the firmware bring any new benefits to the phone's performance?
[One (M9) Android Development] bonesy:
To be honest I cannot say. I flashed mine with the whole 0PAJIMG file but others have reported it works fine on MM firmware. Try it and see, if not you can always flash the firmware after ;)
[One (M9) Android Development] vyper007:
I see that I'm currently on 3.35 something or other, can't remember the full version number but I checked it the other day.

I'm still a bit concerned about flashing with stock firmware.

It took me a while to learn the procedure with the HTC M9 (it's not as simple as it was when I was messing around with my Samsung).

Also I'm not S-OFF which makes things difficult and limits what I can do, at least that seems to be the case from what I've read up on.

On another note, would it be difficult to flash the original stock ROM, it would be the EE Firmware, I believe it's CID ORANGE_001, something like that.

My phone is network unlocked. I'm worried that if I flash the original carrier firmware, it may re-lock it to the EE network again.
[One (M9) Android Development] bonesy:
If that's the case I would just restore the backup in TWRP (assuming you have twrp installed) I always S-OFF if it can be done so haven't tried S-ON I'm afraid. The simplest way would be to restore from twrp, it's been confirmed to work on MM 3.35 FW so should be Golden
[One (M9) Android Development] vyper007:
Okay thanks. Yes I have TWRP installed and I've made a backup of the phone today. Currently in the process of copying of the backup folder to my computer for safe keeping.

If in the future I want to completely return to the stock EE Firmware the phone originally came with. Am I able to easily do this or do I have to be S-OFF?
[One (M9) Android Development] tophe2009:
Okay, i have HTC one M9, S-on, T-mobile USA, unlocked from htcdev, but using Smart and globe GSM here in philippines. Tried, the ICE custom rom first coz i was having difficulties restoring this backup before. ICE custom rom installed correctly but i cant get 4G signal which i had before rooting it. tried their newest v.30,still cant get the 4g signal. just today,i managed to restore this backup(the november one) GOT the 4G signal back! however, temperature is way too high man. is there a fix on this problem? by the way, thanks [MENTION=1526163]bonesy[/MENTION]
[One (M9) Android Development] bonesy:
First post on the page, How to set SELINUX permissive will fix the heat
[One (M9) Android Development] tophe2009:
ill try that, but i thought since i am already rooted before restoring this rom sat selinux to permissive would do the job. but i will still do it. des the december update fix the problem?
[One (M9) Android Development] bonesy:
No it doesn't seem to, I think when restoring boot and system it overwrites where it stores selinux settings
[One (M9) Android Development] cyned:
Radio problem after latest OTA, any ideas ??

Still same issue with WiFi and LTE, a slight network delay/disconnection in Gmail app and messaging apps (whatsapp, wechat, etc..) , I am on stock no root RUU_HIMA_UL_N70_SENSE80_ATT_MR_NA_Gen_Unlock_4.19. 617.1.exe

HELP PLEASE

Any suggestions?
[One (M9) Android Development] tophe2009:
I tried to flash superSU 2.79 but I always stuck on HTC logo for almost 15 minutes. What I did is just wiped system,cache and so on and restore the December update. I think temperature is little less now. Ok, one more thing, I can only se 4g in my location now not the mixed 4gLTE. but I'll try in the city proper later,we'lol see. Good job still though and thank you for responding.
[One (M9) Android Development] benshoes:
Restore with TWRP 4.19.617.1 backup.

Work perfect on 4.19.617.1 firmware.

Thx
[One (M9) Android Development] vyper007:
Hi, so I downloaded and copied over the TWRP backup to backup folder on my SD card. Then proceeded to boot in to TWRP to attempt to restore but TWRP cannot see the backup?

Any ideas how I can get this sorted?
[One (M9) Android Development] benshoes:
Make a backup of boot for example and copy all files downloaded in the folder that your backup step has created.

When you'll restore, your phone will see boot and system backup for restoring.
[One (M9) Android Development] vyper007:
Sorry could explain that a little more please?
[One (M9) Android Development] benshoes:
After you create a backup in Twrp, twrp create a folder with a subfolder in TWRP/Backup/ (backup only boot, it's just for ceeate folders)

After that, you can copy/past the backup that you had downloaded in this subfolder.

After, when you go to Restore in TWRP, boot and system will can restore.

If you don't see your restore profil, it's what you don't choose the good storage.
[One (M9) Android Development] tophe2009:
I installed selinuxmodechanger. But app was unable to gain access [MENTION=4430258]bonesey[/MENTION] I was able to use the superSU 2.79 as well if that helps
[One (M9) Android Development] aryan_rulz_1983:
type & execute these commands in adb

su

mount -o remount,rw /system

mkdir /system/su.d

echo "#!/system/bin/sh" > /system/su.d/permissive.sh

echo "setenforce 0" > /system/su.d/permissive.sh

echo "0" > /sys/fs/selinux/enforce

chmod 755 /system/su.d/permissive.sh

if ur unable to mount system with the above command

busybox mount -o rw,remount system
[One (M9) Android Development] tophe2009:
i cant execute this commands on adb.

C:\adb>su

'su' is not recognized as an internal or external command,

operable program or batch file.
[One (M9) Android Development] bonesy:
You need to have superSU installed. Open the app, choose either expert or normal then try again. Nothing will be able to get root unless the app is run first
[One (M9) Android Development] tophe2009:
ok, i reverted back to supersu now. il try it. tried your method via script:Via Script - Use ES File Explorer, on the left menu bar scroll down to Root Explorer and turn it on, allow root access. Navigate to device/magisk/phh and open system.sh with ES note editor. Add the line setenforce 0 under #!system/bin/sh then press back, save & close. Reboot the phone and you should now have SElinux set to permissive.

i dont see phh and open system.sh. i have magisk too
[One (M9) Android Development] bonesy:
OK you don't need both magisk and suPerSU.

ONLY 1

If you want to use supersu then use the guide on this page via adb, use my method if you are using magisk but the method on this page will work with magisk or supersu.

You will need to remove superSU OR magisk, leave one installed ;)
[One (M9) Android Development] tophe2009:
this is what i did:

(Recommended) Restore your boot image back to stock

Download the latest Magisk zip file

If you choose to use SuperSU (only support Android 6.0+), first flash SuperSU in systemless mode

Flash Magisk zip, if no systemless SuperSU detected, or system installed root detected, it will automatically root your device with the included open source phh root (Using phh root requires installing phh's root manager)

---------- Post added at 05:01 AM ---------- Previous post was at 04:58 AM ----------

shoot i think i got it wrong...correct me if i'm wrong. so if i want to use your method via script, ill flash the Magisk zip thru twrp?

can i jst uninstall supersu inside the app?
[One (M9) Android Development] tophe2009:
[MENTION=1526163]bonesy[/MENTION] I only see "service.sh" in magisk not system.sh

Update:

Opened "service.sh" and saw the "#!system/bin/sh". Added the line setenforce 0 under it,saved and closed the program. rebooted phone. question, how to check if selinux is already permissive?
[One (M9) Android Development] tophe2009:
Whew,I've managed to get selinuxmodchanger to work. I'll observe this in the next few days.?
[One (M9) Android Development] bonesy:
Your previous post should have done it permanently, I use device info off the market to check
[One (M9) Android Development] tophe2009:
I did not install magisk, phh root manager and some prerequisites before so I finally figured it out. Don't need to edit the script or go to adb for su. Heating problem is gone now.:good:
[One (M9) Android Development] Crackfreak:
Had a ViperOneM9 3.5.0 , used the restore method...works fine...almost...

the settings crashes when I open the Developer Options...

Dunno why but I'll find out...

Thanks for posting the backup files:laugh::good:
[One (M9) Android Development] vyper007:
I restored this backup via TWRP and rebooted ... but I just kicked back to TWRP, it does not seem to want to boot in the OS. Any ideas on how I could fix this?
[One (M9) Android Development] sblonci65:
Flash again?
[One (M9) Android Development] vyper007:
Thanks, I tried that. Did not work. So I flashed stock boot and then restored the backup again. This time it restored fine.

Also a system update is available but it will not let me install it. Fails verification after downloading OTA update. How can I fix this?
[One (M9) Android Development] pinktheater:
Before I do something stupid and just to be cristal clear. I cannot do the backup thing unless I first s-off my phone so that I can modify the CID/MID to the Developers Edition version, right?

I have downloaded all posibilities (the backup method, the SD card method). I installed a custom ROM which already has Noughat and Root + Permissive Selinux. Is it really neccesary to do this backup thing, or is it safe to assume I'm already in Nougat?
[One (M9) Android Development] samfree91:
Complete Convert to Dev Edition from Stock

Hi there, i am doing some reading of Flippy's Thread on the HTC One M9, as i want to make my phone with this edition of android, in hope of better battery life, security etc

Currently my phone is as follows

(bootloader) kernel: lk

(bootloader) product: htc_himauhl

(bootloader) version: 1.0

(bootloader) imei: 357--------------------

(bootloader) version-main: 3.50.710.1

(bootloader) boot-mode: download

(bootloader) version-baseband: 01.01_U11440801_96.01.51207G_F

(bootloader) version-bootloader: 1.0.0.0000

(bootloader) mid: 0PJA10000

(bootloader) cid: OPTUS001

Prior to reading his thread i did just try to manually update to nougat, and found that it stopped me from doing so (as i now know it should)

What is the easiest way for me to do this, is it to restore from a backup, after updating the firmware, does my version number matter here,

In addition, iv'e noticed the Optus download here is out of date, to 3.29.170 or something along the like so id like to give the backup an upload to his thread if i can?

First thing i want to do it S-OFF the phone

Cheers :)
[One (M9) Android Development] vyper007:
Just received an OTA notification after restoring the 4.19.617.1 Stock TWRP backup.:

OTA_HIMA_UL_N70_SENSE80_ATT_MR_NA_Gen_Unlock_4.23.617.1-4.19.617.1_R_release_493370feq45xw64lxcwr1i.zip

It won't install via the OTA updater (fails verification), so I manually downloaded the OTA zip.

My question is;

Is it safe to update to this version? And if so, do I just flash it normally via the install option in TWRP or use something like FlashFire to flash the OTA update?

Please advise.

Thank you kindly :)

Unlocked Bootloader via HTCDev.

Sim unlocked HTC ONE M9 Himauhl

S-ON.
[One (M9) Android Development] Gmoney1988:
Can someone help me? I flashed the 4.14.617.6 firmware no wipe and didn't realize it would wipe my internal storage and create errors in TWRP such as mounting errors and putting my phone in a boot loop. I was able to flash a custom rom but when I boot into, it says my sim card is not a Verizon one and I have no data. I tried to use the backup posted but it did not work. Does someone know a solution? I am HTC One M9 Verizon, S-off, Unlocked bootloader, Latest TWRP Beta.
[One (M9) Android Development] minhnewpro:
Reflash Verizon RUU
[One (M9) Android Development] keithspg:
Ok, I thought I was almost 'there'. I had the rom, running. I installed majsik from recovery then installed the app from the OS and updated it. Then I tried to run superSU. It wanted to update then told me that it failed and I needed to download the flashable zip. I did that and now it is trying boot but is stuck on the white screen where it says "HTC android"... Any ideas?

Keith
[One (M9) Android Development] bonesy:
[MENTION=4233787]keithspg[/MENTION] you use one or the other, either SuperSU on its own or magisk and Superuser (not supersu) you're probably getting conflicts because they reside in different folders.

As for the notification of the update (sorry cannot remember who on the previous page) there are 2 versions on the OP. Go for the higher build number.

Verizon user - isn't Verizon CDMA? This is for GSM, the problem is with the kernel. Running a GSM device on a CDMA rom and vice versa will either not boot or will not get a signal.

User who is asking about turning to a dev phone.. Firstly you NEED s-off, this can be done with sunshine apk and is well worth the $25 to get s-off, not that you have to turn it to a dev phone though you can restore the backup with the higher build number
[One (M9) Android Development] keithspg:
Ok, This is getting difficult. I will prevail, though...

Wiped and reinstalled the backup from TWRP. Ran it like that for a day+ and it gets hot (no root, yet) and needs to be connected to a charger all the time. Installed regular superSU 2.79 (not systemless as I did not even know what that was) and was able to get root. From here, I was able to reinstall a couple apps from my Titanium Backup. so far so good. Still gets hot, though, and chews through the battery at a high rate. One App I tried to install was AdAway. Took a bit to get this installed and working (or I thought it was) and now notice that all my apps now need to be given access to data again. I had to mount /system 'rw' then back as 'ro' to get the host file arranged so AdAway would say it was happy. I notice that Ads show up in apps again, so it is probably not really working. SO, I thought I's try to get the SELinux set permissive to see if it will settle down and have decent battery life again. I tried the APK and superSU grants access but the app says it does not have access. So I tried the adb commands to try to set it 'manually'. Now, I cannot mount /system RW.

device
htc_himaulatt:/ $ su
htc_himaulatt:/ # mount -o remount,rw /system
mount: '/dev/block/bootdevice/by-name/system'->'/system': Device or resource busy
1|htc_himaulatt:/ #

Anyone know why I cannot mount /system as RW anymore? Best to wipe and reinstall?

Update1: I tried using recovery to 'repair' the partition and still the same response.

Update2: Ended up using the busybox command and was able to mount /system as RW.

busybox mount -o rw,remount system

Remember I am rooted using the old school superSU Free 2.79. but my files were not in /system, but in /su. I did the following:

su
busybox mount -o rw, remount system
echo "setenforce 0" > /su/su.d/permissive.sh
echo "0" > /sys/fs/selinux/enforce
chmod 755 /su/su.d/permissive.sh
busybox mount -o ro, remount system

When I rebooted and ran this:

htc_himaulatt:/ $ getenforce
Permissive

Temp went down and it may actually last the day. Will keep you posted.