yashsingh1/xdaforums huggingface dataset:
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Nosferatu.:
Same ROM but no it didn't corrupt. It seems trying to update to Magisk 13.2 from v12 on my primary is causing a very reproducible unbootable primary ROM. Therefore, I've regressed that ROM to the version where it has Magisk v12 and it works fine and plays well with Fusion. Both ROMs installed on primary internal memory with Viper as primary and Fusion as secondary. Fusion gets 99% of the usage unless for some reason I need WiFi calling from T-Mobile then I go to a stock based ROM. The T-Mobile digits app gives WiFi calling so it just about eliminated even my need for the primary but it's there just in case.

1.) Launch TWRP

2.) Click the = dash in top right.

3.) List ROMs

4.) Choose ROM

5.) Pick backup

6.) Once done go back to main menu of TWRP

7.) Restore

8.) Choose that backup

9.) Done

10.) Confirm it boots up and works

11.) Delete the secondary ROM you just backed up since it's now working as primary
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] ali nz:
I want to keep primary too...don't want to wipe it
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] nkk71:
#spoonfeeding

1) Backup secondary ROM:

TWRP->MultiROM->List ROMs-> select ROM -> Backup (Boot, System, and Data)

2) Install a backup as a secondary ROM:

TWRP->MultiROM->Add ROMs-> select destination -> From Backup -> select backup made above
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Nosferatu.:
Spoon feeding haha I know lol...you would have thought with my directions there was enough information in there to figure out the rest.

I can understanding asking some general things because there's a lot of digging to find stuff at times on XDA but after someone helps you to then not even try to complete the rest of it yourself with what you have been given is just downright lazy.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] nkk71:
Think again :p

Anyway, you're able to PureFusion as secondary, whereas Haldi4803 cannot? Did I understand you correctly, that everything (excluding the Magisk issue) is working fine for you with the newer trampoline?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Haldi4803:
It's not only pure fusion. I've tried LOS too, and it didn't boot.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Nosferatu.:
Yes works fine.

Both on internal memory.

Firmware MM (1.9x)

Primary - Viper 5.9 (Magisk v12) Nougat

Secondary - PureFusionOS 20170714_180436
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] nkk71:
Is the boot menu showing up normally?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Haldi4803:
Did not show up. Had to reboot primary rom and use MROM app for changing rom.

P.S I'm on 2.41 firmware
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] nkk71:
Should have said the MultiROM boot menu doesn't show up from the beginning ;)

I would have probably asked for the multirom-klogs folder... at which point I probably would have noticed that I made a blarf :(

Yeah, too many branches and stuff, disregard the previous *new* trampoline (it seems to be missing something essential), I'll rebuild a new one when I get a chance.

Sorry about that :angel:
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Haldi4803:
I'm not entirely sure about the 2nd time I flashed it. I think it did show up then. But not sure anymore. Can't guarantee it.

Because I didn't setup primary rom it's impossible to use the app. So either I've used AutoBoot and selected pure fusion or the menu did show up.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] ali nz:
[MENTION=2605798]nkk71[/MENTION] i followed your guidance step by step but i lost my multirom boot and even couldn't change my rom from multirom app...i partitioned my sd card and restored my backup in sd card's internal...but when i deleted the rom everything went back...that's too weird:rolleyes:
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] nkk71:
Come back when the hack is stable, self contained, self evolving, self everything :good:

Which is where the MultiROM advanced logging comes into play, that may have shown me what I needed to know. Anyway, I'll rebuild later, and will post a new version of trampoline.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] ali nz:
That was the funniest sh!t i've ever heard...bravo!??
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] nkk71:
Hope you enjoyed it.

Next time read the OP.

You've made your comments quite clear, both here and elsewhere

If you want a *stable* *hack*, then read the OP again... This isn't one of them.

If you want to know which filesystems are supported, instead of asking, read the OP again.

I'm not here to hold your hand while you *try stuff*, I'm here to debug and

maybe

fix things.

This mod/hack isn't for everyone, so if you do not feel comfy with it, that's fine. I fully understand. If you intend on staying then I expect you to reply with informative posts (as per OP: "a detailed explanation of the problem" ... I'll need to revise it a bit, my bad, to include: "Please use short easily readable statements")

And please no cursing in my thread, be that with a * or !, I do not enjoy it.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] nkk71:
I believe I had a blarf in the previous build, can you give the attached one a try, instruction to update the boot.img(s) are still the same

For primary ROM, you can just use the normal "Inject boot sector" in TWRP.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] azZA_09:
[MENTION=2605798]nkk71[/MENTION] My MultiROM folder is 0 B and every file is 0 B as well, and I cant move/copy or anything like this because my Root Manager says "The file is not found". I managed to delete the folder from twrp, flashed again the multirom zip but same result.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Nosferatu.:
I'm fairly certain if it shows 0 B that means you encrypted the partition and therefore the contents aren't readable. I'd wait for the OP to confirm but I'm fairly certain that's what that is.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] azZA_09:
So I need to format /data? However, my phone needed a clean start again :D
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] nkk71:
I'm not sure what you're trying to say, but just in case, you need to access multirom folder through /data/media/0/multirom (using a root enabled file explorer), not through /sdcard or Internal Storage.

If that's not what you meant then you'll have to explain what you're trying to accomplish.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] azZA_09:
Thanks! Yea, I was accessing it through /sdcard. Now evertyhing is OK. Thanks again!

---------- Post added at 02:24 PM ---------- Previous post was at 01:58 PM ----------

@nkk71 Two more question. For example, I install a rom on SDCard, and I set 1GB for cache, 2GB for data and 1,5GB for system. Can I install apps until I reach 2 GB or I can exceed this value? I mean, the "data" section is set as a "storage" one or it is used for other task?? And the second one, the rom installed on SD will see the SD as the SD or as the main storage? Thx again for your patience/work!
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] nkk71:
Oh c'mon :crying:

FAT/FAT32/exFAT partitions are

not

supported.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] azZA_09:
Yea, I know this... I was only asking after I formatted it...
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Haldi4803:
Uh... yes it Works. Replaced Trampoline, chmod, injected in 2nd rom. Boots fine.

But now i fail to install the Nebula 9.1.0 zip again.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] nkk71:
:eek:

Can you post the recovery.log please
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] ali nz:
I also wasn't able to install it...but i manually injected boot.img of the rom i wanted to flash the nebula kernel in twrp and then successfully flashed that kernel:)
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Haldi4803:
MROM klogs are not enough right?

I'll try relfash and post logs Tonight or tomorrow.http://cloud.tapatalk.com/s/596f211f58c93/multirom-klogs.zip
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] nkk71:
Yeah, I'll need a recovery.log after the failed flash. multirom-klogs are only useful to debug non-booting things.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Haldi4803:
Here you go.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] nkk71:
I just double checked and trampoline_pme_libbootimg024_2.7z does have the updated injection mechanism, and it looks like you're still using the old one.

Maybe an error happened when you were replacing trampoline and/or injecting the boot.img(s)
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Haldi4803:
I thought the same thing.... But the file was 403kb I size. Same as the first modified one while the original was about 370.

I'll try again this evening.

Gesendet von meinem HTC_M10h mit Tapatalk
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Haldi4803:
here we go: (Installed MROM.zip before primary rom, so it's not in data/media/0/multirom but data/media/multirom. Still seems to work)

replaced trampoline, chmod 750 MD5 is: 22674CF7424B42386DEE3F1E3E76DF65

~ # [6nfind /data/media/multirom*/ -name boot.img -print -exec "/data/media/multirom/trampoline" --inject="{}" --mrom_dir="

/data/media/multirom" -f \;

/data/media/multirom/roms/purefusion_pme-7.1.2-20170/boot.img

/data/media/multirom/roms/purefusion_0714/boot.img

+injected boot sector on primary.

Booted into Purefusion.

Reboot into recovery try to flash Nebula 9.1.0.zip Failed.

Take Logs:
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] 29988122:
In a post of Captain_Throwback's in May, he mentioned that magisk hide does not work on secondary rom.

During my test of magisk 12.3, this is still true. (Safety net failed, fresh new stock rom with only magisk installed, in order to prevent unlocked bootloader detection)

I wonder if the latest test build of multirom solved this issue or not?

*I'm NOT asking you to solve it, I understand that this might be a low-priority issue, and you only have limited time.

Thank you for your masterpiece!
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] nkk71:
There is no newer build of MultiROM at the moment, and in it's current form, SafetyNet will not pass on any secondary ROM. I'll need to test a different approach for that, but I haven't had much time for continuing development currently.

Some of the upcoming changes are quite a bit involved, and I needed/wanted a break from all this, so you'll just have to bear with me till I get back into the MultiROM mood :angel:
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] 29988122:
Guess I should stop trying for now, was busy altering 2nd rom the past 12 hours o_o

Thanks bro, I appreciated all your efforts!
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] nkk71:
Well people know how much I like teasers, so I did a couple of tests today (

on my M9

), and yeah SkyNet passed. Just so I don't get confused, lemme make sure I do not have an OS at all:

Boot secondary (fully stock 4.14.617.6... remember that's an M9 not a 10, I cannot / nor will test on the 10 till the *next gen*, which will support decryption):

Okay, let's give Magisk a try (still same ROM, now rooted with Magisk and using MagiskHide):
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] nomobytes:
<snip>

Nice!
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] :
Yes, it worked.

I can use adopted storage in TWRP and on my main ROM and secondary ROM just says "unsupported sd-card".

Perfect :)
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Haldi4803:
I've tried to install a secondary ROM via "Backup" option.

This did work when using a Custom ROM, but failed on the Stock Rom.

But Stock ROM uses System Image and Custom ROM is just a Backup of System, not as Image.

Seems like Backup doesn't work with System Image but only compressed System?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] nkk71:
You're correct, currently only System [Files] not System_Image is supported that was only fixed in 6fa0e532 (2017-08-01 15:44:43) and hasn't been released [officially] yet.

And quite a few other changes ;)

Wanna be an tester :D :rolleyes: :eek:

EDIT: nvm, I'd rather do the testing myself, even if things get delayed, at least I managed to work myself out of the last test, that was a weird one :rolleyes::eek:
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Haldi4803:
^^ Have to admit that testing is sometimes rather complicated. Good Luck!
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] nkk71:
No worries, got it working, had a small blarf in there. The amount of code changes are horrendous, and the changelog won't even reflect that.

But if you're curious, the highlights would be:

* Nougat decryption working

* System Partition Mode working (eg for Magisk)

Lot's of smaller fixes and changes, considering how many lines of codes were added, then changed, adapted, etc. not sure what the changelog should look like :eek:
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] myheroduane:
Nice work. Will be returning shortly.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] nkk71:
A couple of screenshots attached from today. A couple of notes:

Fully working Nougat decryption (vold_decrypt) which also works on my M9

Working "System Partition Mode"

Working Magisk compatibility (I mean the modules, not SN)

BTW: I'm not trying to bypass or fix SkyNet detection, that's just a coincidence, it will never be the aim for MultiROM to achieve that

And the bad news: as previously noted by [MENTION=4333421]mitchst2[/MENTION] Marshmallow ROMs will send you straight to bootloader, luckily I didn't have to go through what he did, I was able to reboot to recovery and continue, no data loss, no big headache.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] azZA_09:
Happy 1 year anniversary :victory:
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] 29988122:
Nice work!

For me, Some bad bad Japanese games(and the notorious pmgo) often detect for root / magisk / flashed bootloader, and your masterpiece helped me a lot : p

Although I cannot bypass the detection, at least I can make a fast reboot into 2nd OS

: DDD Thank you.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Haldi4803:
Did i miss some DL links?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] nkk71:
Nope, not yet.

It may have been a one year anniversary to the creation of the thread, it's not a one year anniversary to the last build, so I have some time left ;)
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] azZA_09:
It was my secret :( Damn
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] fullydeveloped:
What will this mean specifically? I know I had to install v33 unofficial and MR TWRP 3.1.1 to get everything to work on nougat properly, but I'm not what or if I should update when it's available.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Haldi4803:
You have all the time of the world.

It's kinda annoying to prevent encryption after every reflash of a System ROM but that's the only downside atm.

As i'm running Purefusion as Primary ROM atm i can even Flash Nebula Kernel. Moved the Stock ROM from Primary to Secondary and all problems are gone ^^
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] tuff40:
Hi guys, so before I go and start reading 65 pages I thought I would ask a question to see if I am looking in the right spot. I have a htc10 running viper10 5.11.0 with magisk v14.0 and tarp 3.1.1-0. just wondering if it is possible to dual boot the viper rom along side Kali nethunter. Am I dreaming or is it time for some serious reading.

Thanks, Dave.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] ali nz:
If you are encrypted multirom boot won't work on your device untill you format data and flash sth like supersu to prevent encryption for first boot after formatting...if you're not encrypted just simply flash multirom.zip and MR Recovery and enjoy:)
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] tuff40:
Thanks for the reply. Well looks like its time to start reading. I am not sure if I am encrypted or not, I remember there being something when installing twrp and magisk. Something different to the HTC 7/8/9 and it was to do with the encryption. Have to go back and look into it.

Thanks again
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Haldi4803:
So far i'm astonished how well the old version works with O. Simply N unencrypted as Main ROM, flashed O as secondary and i haven't found a single issue till today.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] myheroduane:
What's the issue you.found today?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] nkk71:
Better be careful guys, Oreo has different file contexts files and depending on the kernel build possible sdcardfs issues that can break all secondary ROMs.

I've already made the changes, but haven't made a release, I'll try tonight or tomorrow.

There's still things I would have liked to add, but guess what I have atm will have to do.

Will rebuild as soon as I can.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] ali nz:
Same here...
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] ali nz:
I've flashed magisk after flashing rom but my setting saids encrypted:rolleyes:
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] azZA_09:
You shouldnt speed things. If you believe that the things you'd like to add are helpful, we can be patient enough to see a succesful release
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] nkk71:
I always like to add stuff, but considering that some of the patches are now getting really really old, iirc, the last *test* version "out and about" is -b1009 (that would be build-branch-2017-10-09 used for M8 and M9)

and vold_decrypt3 has been working for months (more or less), so time to update.

Close to midnight here, and doing other stuff too, so I'll call it a day here, and if by this time tomorrow, you don't have an updated MultiROM, then shame on me :angel:

Not *perfect*, but better ;)
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Haldi4803:
Same here, but i think it just shows secondary roms as encrypted. If you boot into primary it should be different.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] nkk71:
I did promise a release, so here goes, 1 post only for 3 devices (sorry M7, you got left out this time around)

Well finally managed to get the AFH uploads working, so the

HTC One M8

HTC One M9

HTC 10

builds are all uploaded, all of them mostly untested, so why not give them a try, and let me know what works and does not work.

I recommend a full backup of your primary (and any secondary you may need), though I used to try to be a lot more thorough, I'll forego that, both now and in the future.

It seems *stuff* is good enough to release, until you hear of a bug :)

Changelog:

Android 8.0 compatibly

sdcardfs gid derivation fixes

trampoline511 (aka trampolineMk2)

System Partition Mode (yes you need to tap it twice). You'll need that for Magisk, and SkyNet.

vold_decrypt (HTC decryption on the M9 and 10)

lot's of *useless* code changes, we'll see where those go later :p

everything else I forgot

TWRP is also up-to-date with 7.1 branch (which includes quite a few fixes), as well as some *unofficial* ones, including the auto-detect of legacy props, which will give you're assert issues some rest.

VERY VERY IMPORTANT NOTES:​

Note 1

: every secondary ROM needs to be injected, and since the current flashable zip is giving me a hard time, due to the nature of shell scripts, I'll leave it up to you guys to manually inject your current ROMs. (see my PS)

Note 2

: As of this version (that would be a prequel to MultiROM version 34 and trampoline 28), multirom will be migrated from /data/media/[0/]multiorm to /data/media/[0/]MultiROM/multirom

Installation Instructions:

1- flash MultiROM-TWRP

2- flash multirom.zip (this is where the migration happens)

Enjoy

PS: If all the above doesn't make sense to you, then don't bother, I'm really bad at scripting things, and until I figure out a proper way of dealing with the "ReinjectMultiROMSecondaries.zip" you'll have to manually do it.

PPS: That's why the downloads won't be found easily, they are however marked as staging and 20171026, and for some strange reason AFH isn't allowing me to add a -b1017 (my local branch names being OCT-17 branch).
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] andybones:
Very smooth update for me.

:cool:

Thank you kindly, Sir!

Followed the detailed instructions.

flashed updated twrp

flashed updated multirom.zip

rebooted and secondaries booted up fine

flashed PFOS Oreo ROM

rom booted up fine

rebooted again and secondaries booted up fine

(didn't need to inject current boot, but this is just my experience)
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] 29988122:
Omg you are a god : )

Wanna donate a little bit since I received my 1st ever income as a TA, but it seems that you only have btc address, not paypal : (

Maybe I should spend some time on my local btc exchange?

Anyway, I was just tweaking my 2nd rom with lineage os yesterday(cause you know, insufficient internal storage...ext4 is extremely slow despite I have a U10 card with 70mb/s write, not gonna bother you with the logs, as you already did so much : p), and got some small but annoying issue(like, it must be booted twice to enter the second os properly, I guess it's somehow no kernel exec workaround related, but no idea since the log looked like greek to me.)

Gonna play with the latest release and inform you if anything bug related appeared!

Is klog the only file that I need to provide in case bug happened?

===

EDIT: Also the download link for the uneducated like me:

https://androidfilehost.com/?w=files&flid=226105

CHOOSE the correct version, PME is the codename for htc 10.

EDIT2: May I ask what trampoline511 is?

A quick google search returned ext4 related results, but not much.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] 29988122:
ok, already got bootloop xD

Main os: htc stock android M, firmware android m

Second os:lineage OS nightly(hence android n, no cellular connection for me)

Steps to reproduce:

1.flashed latest twrp, reboot

entered multirom menu fine

2.flashed latest multirom, reboot

got logo bootloop, without even entering multirom menu. Have to power+vol down, entered bootloader->recovery to retrieve log.

tried manually inject boot sector to primary rom, same.

Logs are attached. If you need any other logs, please inform me!

Current band-aid fix for me:

flash 1115 test version to boot into internal os, leave twrp as latest version.

Of course I lost external rom for now(from/multirom to /multirom/multirom, so the old version doesn't recognize it)
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] coronero:
Same issue here.

Flashed TWRP, rebooted recovery.

Flashed multirom, inject boot, rebooted.

Bootloops right from the htc logo.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] nkk71:
Google won't show anything, trampoline511 and trampolineMk2 are my nicknames for my updated version of trampoline, which is needed for a variety of reasons including Nougat decryption and M9 decryption.

You won't find anything on the internet about it since the source code is only on my local drive.

So you're on Marshmallow firmware and encrypted, and since the boot menu isn't showing I must have broken something with the old encryption. :( I'll check asap.

I'm also curious, TWRP actually works properly? I was pretty sure Marshmallow needed a 6.0 build of TWRP.

Can you guys elaborate on *bootloop*? Where is it bootlooping to, do you mean Primary is trying to boot, but then it just reboots itself and tries again?

Or are we talking about secondaries? Need more details please.

Also enable "Advanced kernel logging" (in TWRP->MultiROM->Settings), those are the logs I need.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] nkk71:
Thanks for the feedback, but secondaries would need to be reinjected, I have the script almost ready.

EDIT: anything flashed *newly* would of course have the correct files