yashsingh1/xdaforums huggingface dataset:
[HTC One A9] Captain_Throwback:
No decryption, unfortunately, but at least it boots. I'll be releasing an unofficial version in the TWRP thread shortly.

EDIT: I'm an idiot. Forgot I had a password set and didn't enter it in recovery. It seems that decryption on Nougat is in fact working after all :).
[HTC One A9] scott8281:
Oh wow that's awesome. Thanks for your work!
[HTC One A9] Captain_Throwback:
https://xdaforums.com/one-a9/orig-development/recovery-twrp-touch-recovery-t3257023/post70596503
[HTC One A9] Wonders_Never_Cease:
Thank you sir... Anyone grab the ota? Need the firmware.zip... Thanks in advance
[HTC One A9] jianC:
https://xdaforums.com/showpost.php?p=70589415&postcount=48
[HTC One A9] Wonders_Never_Cease:
Very cool... Thank you.... Just need the firmware.zip though... Im sure others will grab this....
[HTC One A9] MGfusion:
Here you go, I extracted the firmware.zip from the nougat ota, hope it helps

https://drive.google.com/file/d/0B5OepR19MbAOMmNsbGNjYklMS2s/view?usp=drivesdk
[HTC One A9] Wonders_Never_Cease:
Thank you much appreciated
[HTC One A9] Miramontes:
Hi Captain, thanks for your work, So after installing your TWRP build I flashed the latest stable version of SuperSU v2.79, I only got a reboot on first boot, after that everything is working great so far, only thing I noticed is that I am getting the red warning legend at booting start after I installed TWRP.
[HTC One A9] Wonders_Never_Cease:
Thats normal@red warning...anytime you alter the stock ROM,youll have this
[HTC One A9] Sympl3x:
Has anyone else had an issue with the HTC BoomSound being disabled in settings even with headphones plugged in? I've tried 3 different sets of headphones and the option stays grayed out.
[HTC One A9] ouioui01:
Hi WNC,

I presume you're working on a new rom, with the last release. Would you care about a rom with magisk and superuser in order to pass SafetyNet check ?

Cheers?
[HTC One A9] Wonders_Never_Cease:
This was an issue awhile ago... was fixed...full wipe is necessary...Was fixed back in July.. but I may have messed up and not fixed the .60 build...As I am unable to return to .60 after taking Nougat update..unable to see if I did mess up or not.

https://xdaforums.com/showpost.php?p=66525514&postcount=2
[HTC One A9] Wonders_Never_Cease:
As those can be flashed after the ROM is installed by those who use Android Pay...Base I think is sufficient imo...I may release one with it preinstalled...unsure as of right now...
[HTC One A9] Sympl3x:
Ah OK. I just got the phone last week and installed .60 from scratch. No big deal, was mainly just curious to see what the feature was all about.
[HTC One A9] Wonders_Never_Cease:
Nougat builds will go up soon...So stay tuned
[HTC One A9] loner.:
Does the Nougat build still have the FM-Radio libraries in it?

Gotta have FM while biking.
[HTC One A9] Wonders_Never_Cease:
I dont remove it
[HTC One A9] Sympl3x:
Any ETA on nougat build release?
[HTC One A9] breakwaterr:
Does anyone have any links for the latest marshmallow build? I prefer to stick with 6.0.1 for now because of xposed compatibility.
[HTC One A9] CSnowRules:
WNC had an accident over the weekend. He'll be OK, but he's in quite a bit of pain.

Also, keep in mind, this is a hobby for him. He'll work on it when he feels better and has the time.

Thank you [MENTION=5345690]Wonders_Never_Cease[/MENTION] for your contributions here.

The Nougat release will be available soon. I think that's the best answer to your question at this point.

---------- Post added at 08:21 PM ---------- Previous post was at 08:07 PM ----------

No links are available.
[HTC One A9] Sympl3x:
My condolences and hopes for a quick recovery. Thank you for the update. Let him know the hard work is much appreciated.
[HTC One A9] Wonders_Never_Cease:
Thanks for the well wishes... Up and around now... Working on ROM for past 3 days...Nougat is a pita...:cool::cool:
[HTC One A9] Wonders_Never_Cease:
Nougat 2.18.617.1 build is uploading for those interested
[HTC One A9] loner.:
Is there forced encryption?
[HTC One A9] Captain_Throwback:
Doesn't matter so much anymore, since the unofficial TWRP can decrypt it now.
[HTC One A9] Wonders_Never_Cease:
What he said...^^^ :p:p Alls well with entire ROM...Took awhile (3 days) to figure out how/what HTC/Google had screwed up again...But all sorted... About 20 min till upload is finished... Then Im going back to resting...this has killed me y'all...lol
[HTC One A9] CarinaPDX:
Thanks WNC. Glad to hear you are up and about. Do take it easy - we need you for the long haul.

So, I suppose the recommended upgrade is

1) return to stock MM,

2) install OTA, or firmware.zip from OTA and then N RUU, (which would do a factory reset?)

3) boot stock N and create PIN for disk encryption, enable developer and USB,

4) go into download mode through htc_fastboot, then install TWRP 3.0.3-beta3 (?),

5) download the ROM and install with TWRP,

6) enjoy.

Is that right? If not, could you please correct?

Greg
[HTC One A9] Captain_Throwback:
You don't need to do 1 or the first part of 2 if you're going to run the Nougat RUU. That'll take care of the firmware and yes, it will factory reset the device and clean out internal storage as well. Then boot up the ROM, but you don't need to set it up. You can just skip through the wizard so you can enable USB Debugging and adb reboot download so you can flash TWRP.

Which TWRP is a good question, as some versions aren't working for some people. I'd try the version linked in the announcement in the TWRP thread. If that one works, go with it. If not, check the end of the thread for a few more possibly working versions.

Then, you can just install the ROM.
[HTC One A9] Wonders_Never_Cease:
You haven't upgraded to Nougat yet?.. I would just run the RUU from download personally... No need to go through all the mess... Run RUU,don't need to set up pin till after custom ROM is flashed imo (fully boot it once,reboot into bootloader/download mode), flash twrp-3.0.3-5_CPTB-TEST1-hiae.img, copy ROM to sdcard,regular wipe and flash ROM.
[HTC One A9] Wonders_Never_Cease:
Links live in O.P.

Enjoy
[HTC One A9] CarinaPDX:
No, I thought I would wait until you had your ROM and TWRP settled out a bit. Oddly enough it works just fine on the older ROM :D - other than the constant upgrade reminders :(

I think I would have to flash the firmware.zip file before the RUU in order to have the new key to decrypt the RUU, so a bit messier than previously. That would be the advantage of just taking the OTA.

I'll go with Capt. Throwback on trying the current TWRP version on his thread's first post, 3.0.3-1_UNOFFICIAL and hope that flies. Otherwise I'll try later versions.

Thanks again for the ROM.

Greg
[HTC One A9] loner.:
I have the AT&T stock loaded now, on a unlocked phone with S-off.

I ran CM 14 until they discontinued, then went back to the stock AT&T stock release.

My question is that I should be able to flash twtp-3.0.3-5 and the the ROM?
[HTC One A9] Wonders_Never_Cease:
Quit restoring old data...lol...I never had any upgrade reminders and your only one that said anything about it...Key is already posted in the decryption thread,no need to flash a firmware...RUU covers all of it...making it a lot harder on yaself than needed...Also...I would not suggest restoring data from MM to a Nougat build...just a thought...
[HTC One A9] Captain_Throwback:
No I think he's right - the full RUU won't install without first installing the incremental firmware.
[HTC One A9] Wonders_Never_Cease:
First post of thread states what this build will run on and requirements.
[HTC One A9] Wonders_Never_Cease:
Hmm..maybe I don't remember what I did ...Thank's .... lol ... So follow Captain_Throwback's suggestion's CarinaPDX...:cool::cool:
[HTC One A9] CarinaPDX:
Actually, I've never taken an OTA before, and always do a wipe/factory reset with a major change to the ROM. After a wipe I reinstall TiBU (pro) from the Play Store, reset the folder location, and then reinstall the apps from there. A PITA but worth it to have a fresh /data.

I didn't realize the key was available separately to firmware.zip - thanks. I'll go get it.

Greg
[HTC One A9] Captain_Throwback:
The key isn't something you can use. You'll have to flash the firmware zip.
[HTC One A9] loner.:
Then I think I am stuck since from what I can tell your saying I need the flash the stock upgrades and the links here are gone.

I thought I was OK since I did all necessary to flash the CM Nougat previously.

So I need the last ROM you developed? Or just download the Nougat ROM from HTC?
[HTC One A9] CarinaPDX:
Thanks - no problem doing that.

2 hours to go on the download :rolleyes:

Greg
[HTC One A9] Wonders_Never_Cease:
ATT Version can be converted... https://xdaforums.com/one-a9/development/s-off-convert-to-htc-usa-unlocked-1-12-t3271861 And what I am saying is you have to be on either an ATT Converted to Developer device OR a US Unlocked/Developer device in order to flash this ROM... ATT device hasnt gotten an update since 2015... I believe CM patches something in order to run Nougat...Unsure as Ive never run CM or even looked at it...
[HTC One A9] Wonders_Never_Cease:
Please do not restore data from titanium backup from MM on a Nougat build.. install your apps fresh and make a new Titanium backup AFTER its all set up...
[HTC One A9] loner.:
I have already done this in order to flash CM 14 last year. That why I thought I was gtg.

My cell is unlocked and S-off
[HTC One A9] Wonders_Never_Cease:
Unlocked isnt converted... You didnt state you had converted the device, that being said...IF it is now a developer device..then yes you will need to upgrade incrementally until you get to Nougat
[HTC One A9] loner.:
My bad.

Can you link me to the files needed to update incrementally?
[HTC One A9] Wonders_Never_Cease:
Here is some.. Do a search... I believe everything is on here in one loacation or another...

https://xdaforums.com/one-a9/general/wip-ruu-htc-one-a9-t3240344#post63640734
[HTC One A9] loner.:
I thought I could do it with the Roms you worked on linked here at one time, that's why I didn't search for others.
[HTC One A9] Wonders_Never_Cease:
No..No deodex'd roms will work...have to be stock to get where ya need to be...
[HTC One A9] loner.:
Thanks for the information, but I am going to hold off. There is to much room for me to mess up and brick the phone. I wanted stock Android 7, but if I wait until the htc source code is released I can try lineageOS.
[HTC One A9] Wonders_Never_Cease:
Well eventually your firmware will be outdated enough even that wont run.Good luck...:good::good:
[HTC One A9] loner.:
That's rather mean spirited and somewhat untrue.
[HTC One A9] Captain_Throwback:
How so? Many ROMs get updated to require a certain minimum firmware. On the M9, Lineage/AOSP-based ROMs won't install or work properly unless you meet a minimum firmware requirement. Updating now really just saves you hassle later. I think that's all WNC was trying to help you understand...:rolleyes:
[HTC One A9] Wonders_Never_Cease:
Correct...
[HTC One A9] loner.:
As limited as it is I still have a old device the runs as well as it did the day I bought it with Honeycomb.

I have updated enough on my HTC One A 9 enough to run cm14 but to update further I would have to know which files to use and I don't want to mess up and hard brick...
[HTC One A9] Wonders_Never_Cease:
Wasnt meant to be mean or anything of the sort... After a certain amount of advances... Many things just wont work anymore...
[HTC One A9] Captain_Throwback:
It's doubtful that you'll hard brick the device. The only real way to do that is to be S-OFF and flash an unsigned aboot. Upgrading to Nougat isn't as difficult as you think it is, believe me.
[HTC One A9] loner.:
My device is S-OFF. If there is a way to mess up I can do it.

You correct it shouldn't be as hard as I think to upgrade to Nougat. I hope some day know how, correctly. I do not want to brick and then seem desperate to find a fix. I am unlocked and did the convert at&t to dev on my device and am presently back on at&t stock firmware.
[HTC One A9] CarinaPDX:
I just finished the install, from MM. It went very smoothly, albeit a bit differently than planned as I couldn't find a copy of the OTA. I still had the stock .60 zip so I flashed that, then went into Settings/About/Software Update and requested the OTA. It took some time for the download of course but otherwise just booted up in stock Nougat. The flash of TWRP 3.0.3-1_Unofficial then WNC's zip was also smooth. I just finished updating all of the included software and will start installing my favorite programs this evening. Thanks WNC - very clean.

[MENTION=5142831]loner.[/MENTION] : There are multiple reasons why WNC has been pushing you to the current version, and you should be listening. Personally I get waiting a bit, not being the first to discover anything strange, which is why I waited to upgrade to Nougat (along with not wanting to duplicate a lot of work). But it is time now - the odd stuff has been worked out. Every step of the upgrade went well. Do as I did and it will be very difficult to get into trouble; I used the zip from the stock MM .60 to get back to HTC stock, then used their update. If the OTA would have denied the upgrade - no harm done. As long as you have the proper CID/MID set (no superCID) the OTA should work. Once complete you will be able to use the Nougat RUU if you get into trouble. Then install TWRP and this ROM and you should be good. Otherwise stay on an increasingly insecure ROM, while pissing off the guy that made it. That should not really be a difficult choice...

WNC - thanks again. It's looking good.

Greg
[HTC One A9] Wonders_Never_Cease:
Thank you for the clean out of thread sir... Appreciated
[HTC One A9] Wonders_Never_Cease:
And thank you for kind words PDX
[HTC One A9] CarinaPDX:
Hey WNC- Just a question for my curiosity. When you say you removed bloatware, what did you do? Since it passes safety checks I assume you didn't remove anything from /system, and I assume that is where they were located. So I am either making wrong assumptions, or something else? Please enlighten me. Thanks.

Greg
[HTC One A9] Wonders_Never_Cease:
Logging apps for the most part...They have removed a buncha of it themselves .. And yes things were removed from system and some configs changed... It is deodex'd so will not be able to take an ota...Will release another maybe thats all stock and can except an ota by disabling magisk...

[Q2UOTE=CarinaPDX;71178321]Hey WNC- Just a question for my curiosity. When you say you removed bloatware, what did you do? Since it passes safety checks I assume you didn't remove anything from /system, and I assume that is where they were located. So I am either making wrong assumptions, or something else? Please enlighten me. Thanks.

Greg[/QUOTE]
[HTC One A9] CarinaPDX:
I'm not understanding that term. But you answered the larger question, which I should have figured out - no OTA.

If you could limit the mods to those that use Magisk, it would be nice to have the OTA. Another alternative I would be interested in would be putting up the Magisk-based version of Venom, like the Viper10 for the M10. Have you looked at that? It is really a neat idea, although perhaps more of a mod than you or others want.

Thanks again,

Greg
[HTC One A9] Wonders_Never_Cease:
Every device has built in apps that report errors,log usage and send reports back to companies.. And no I wont be doing anything like Viper ROM, do not have the time or resources to maintain something like that...And Im sure it would be nice... :silly: ... But not my thing...I dont use any mods and I build these for my own usage and then decided to share it...Nothing fancy as it says in first post...lol... Plane and simple...necessary apps nothing more nothing less... Just my way...
[HTC One A9] CarinaPDX:
I guess the quality of my questions takes a nose dive when the sugar levels are running low. Of course I do know what logging apps are.

I like simple - keep it up :)

Greg
[HTC One A9] Wonders_Never_Cease:
It happens...lol...No worries
[HTC One A9] wusaicheong:
thanks your roms

I want to ask .. that rom also is deodex rom??
[HTC One A9] Wonders_Never_Cease:
Post #325 Answers your question
[HTC One A9] patrixs94:
hello everyone. I have problem with installation this rom. I had european device s-off so I converted it to HTC USA Unlocked 1.12.617.6 (without installing twrp and root)

I have installed all updates OTA and then I installed twrp:

1. twrp-3.0.3-5_CPTB-TEST1-hiae - it cause black screen and I can not enter recovery, it boot up the system after 10 second

2. twrp 3.0.3-1_UNOFFICIAL - (from twrp topic) same problem

3. TWRP 3.0.3-0_UNOFFICIAL-REPACK - same problem

4. twrp-3.0.3-5_CPTB-TEST2-hiae - it works and boot up the recovery without the problem, but then I can not start system anymore it cause boot loop. (I havent do anything in twrp, just start it for test - it was working so I reboot phone..)

So.. when i can not start official system anymore I tried to install your rom. When it finished installation process I tried to run it, but it freeze for 20min on htc screen (device is for testing purposes..)

I tried lot combination of wipe before/ after installing rom, but I can not still launch it without problem. Anybody can help me or suggest what should I try?
[HTC One A9] Captain_Throwback:
Leave system read-only enabled in TWRP. If you didn't do that, your system would be modified and the device won't boot due to dm-verity. Only way out of that is to flash a root zip or a custom ROM. Though at this point you may need to RUU and start over.
[HTC One A9] patrixs94:
So I installed again official "RUU_HIA_AERO_UL_N70_SENSE80GP_ATT_MR_NA_Gen_Unlock_2.18.617.1" installed working for me twrp, clicked leave system read-only and tried to install your rom from my sdcard, still the same result ;/

Maybe I have to install manually any boot.img or something?
[HTC One A9] Wonders_Never_Cease:
No clue on this one...if flashes correctly with no errors,boots/runs on Unlocked and converted ATT devices...Maybe its the differences in partitions or hardware between two??
[HTC One A9] CSnowRules:
This is a strange error to have. I suggest RUU again, let it boot once stock, then repeat TWRP and [MENTION=5345690]Wonders_Never_Cease[/MENTION]'s ROM install.

If it doesn't work then, please attach the output of fastboot getvar all and TWRP log of the zip install.
[HTC One A9] patrixs94:
Ok, I will do that, can you say me more - should I set password or password to start device or it doesnt matter (when I run first time stock )?

I should only flash latest ruu, right? Before I install this custom rom should I do any wipe? If yes, what sohuld I wipe?

Thanks for help!
[HTC One A9] CSnowRules:
I wouldn't bother with a password in stock ROM. In TWRP, do a normal data wipe with TWRP's defaults, not a format, to keep the encryption intact.

Also post the output of cat /proc/emmc from TWRP's terminal.
[HTC One A9] patrixs94:
Still the same problem..

All logs in attachment, dont know how copy log of " cat /proc/emmc" so I made "screens"

Thanks for help!
[HTC One A9] CSnowRules:
Thanks for the logs. Please remove that zip, since it looks like you forgot to remove your IMEI from the getvar all output.

Reviewing the logs now.
[HTC One A9] Wonders_Never_Cease:
Id change your cid to correct one and try again... Should be BS_US001
[HTC One A9] patrixs94:
Had it 2h ago, cause the same problem.
[HTC One A9] Wonders_Never_Cease:
I just reflashed from complete stock RUU,booted up into stock build...just did a factory reset wipe and flashed with twrp-3.0.3-5_CPTB-TEST1-hiae.img and it booted fine...so im kinda at a loss now
[HTC One A9] patrixs94:
For me twrp-3.0.3-5_CPTB-TEST1-hiae.img cause black screen when I try to eneter it from bootloader.. ;/ Is there any other way to enter it?

Maybe try to run test2?
[HTC One A9] Wonders_Never_Cease:
We were able to replicate the error your getting...Working to narrow down EXACT issue now
[HTC One A9] CSnowRules:
Ok, we've traced the issue back to a known bug in TWRP. Test1 fixes the bug in question, but doesn't boot for some "weird" devices. Test2 boots, but has the bug. You can try test4 https://www.androidfilehost.com/?fid=817550096634746933 and see if that works for you.

[MENTION=1162986]Captain_Throwback[/MENTION], do you have any input on this?

If not, there is a workaround:

1. Flash [MENTION=5345690]Wonders_Never_Cease[/MENTION]'s zip

2. Manually flash the latest Magisk and Phh

We aren't 100% certain that this ROM will work on your 16GB/2GB device due to partition differences, but I believe it will work.
[HTC One A9] Captain_Throwback:
Where is the zip failing? it should be possbile to use prebacked busybox to flash whatever is getting broken during the flash so that it doesn't matter which version of TWRP is used.

Also, if you flash the latest Magisk (v11.1), there's no need to install phh.
[HTC One A9] Wonders_Never_Cease:
Good to know@ phh for future...But for now it installs fine and is rooted correctly the way I scripted it
[HTC One A9] CSnowRules:
BusyBox operations were broken by the known mksh bug.

run_program("/sbin/busybox", "mkdir", "/system/app/phh_superuser");

package_extract_dir("magisk/phh_superuser", "/system/app/phh_superuser");

package_extract_dir("magisk", "/tmp/magisk1");

run_program("/sbin/busybox", "unzip", "/tmp/magisk1/Magisk-v11.1.zip", "META-INF/com/google/android/*", "-d", "/tmp/magisk1");

run_program("/sbin/busybox", "sh", "/tmp/magisk1/META-INF/com/google/android/update-binary", "dummy", "1", "/tmp/magisk1/Magisk-v11.1.zip");

run_program("/sbin/busybox", "mkdir", "/tmp/phh");

run_program("/sbin/busybox", "unzip", "/tmp/magisk/phh.zip", "META-INF/com/google/android/*", "-d", "/tmp/phh");

run_program("/sbin/busybox", "sh", "/tmp/phh/META-INF/com/google/android/update-binary", "dummy", "1", "/tmp/magisk/phh.zip");

run_program("/sbin/busybox", "mkdir", "/system/app/phh_superuser");

package_extract_dir("magisk/phh_superuser", "/system/app/phh_superuser");

Installing Magisk & PHH SU

about to run program [/sbin/busybox] with 3 args

minzip: Extracted 0 file(s)

minzip: Extracted 2 file(s)

about to run program [/sbin/busybox] with 6 args

Archive: /tmp/magisk1/Magisk-v11.1.zip

inflating: META-INF/com/google/android/update-binary

inflating: META-INF/com/google/android/updater-script

about to run program [/sbin/busybox] with 6 args

about to run program [/sbin/busybox] with 3 args

about to run program [/sbin/busybox] with 6 args

unzip: can't open /tmp/magisk/phh.zip[.zip]

run_program: child exited with status 1

about to run program [/sbin/busybox] with 6 args

sh: can't open '/tmp/phh/META-INF/com/google/android/update-binary'

run_program: child exited with status 2

about to run program [/sbin/busybox] with 3 args

mkdir: can't create directory '/system/app/phh_superuser': File exists

run_program: child exited with status 1
[HTC One A9] Captain_Throwback:
But you're not supposed to use that app anymore, as the MagiskSU is updated from the previous phh version. Magisk Manager handles Superuser management now.
[HTC One A9] Captain_Throwback:
So if you pack a static busybox in the zip, and extract and call that for those operations, the zip should install fine.

You actually shouldn't be calling those binaries through busybox anyway. They typically should be getting called directly. However since mksh is broken, packing your own busybox is really the best way to go.
[HTC One A9] Wonders_Never_Cease:
Ok as I said...it is rooted correctly without issues..Magik Manager is working fine as well...noted for next build or another build with it removed around 10th...
[HTC One A9] patrixs94:
test4 also cause black screen. I installed like you said - with flashing just magisk separately and it is working now ;)

Many thanks :)
[HTC One A9] Wonders_Never_Cease:
No need for this post...But we cant delete our own posts...
[HTC One A9] Captain_Throwback:
FYI - I'd definitely recommend instituting that busybox workaround I suggested sooner rather than later - when the next official TWRP is released, it will most likely have the mksh bug.
[HTC One A9] Wonders_Never_Cease:
Noted... Thank you for input...