yashsingh1/xdaforums huggingface dataset:
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] nkk71:
Don't know I never tried :angel:

If you do every try it lemme know how it goes, and just in case, make sure to have a nice backup ;)

And your recovery.log would be where?

1- FAT32 won't boot secondary ROMs

2- If you still want to flash it to a FAT32 partition, increase the default sizes:

/system | /mnt/multirom-pme/purefusion_pme-7.1.2-20170/system.img | [B]Size: 619MB[/B] Used: 0MB Free: 619MB Backup Size: 0MB Raw size: 0

619MB doesn't seem big enough, resulting in:

cp: write error: No space left on device
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] ali nz:
Thanks alot [MENTION=2605798]nkk71[/MENTION]

What about Exfat? Is that good?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] nkk71:
Nope, it's mentioned in the OP what is supported.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] ali nz:
Boot.img failed to inject but i can boot up primary rom with no issues

https://drive.google.com/file/d/0B0cYq-2Irda7X05YaDloaFF3MXM/view?usp=drivesdk
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] tsukasayeo:
Sorry, I forgot to attach.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] myheroduane:
How big is your SD. I've partitioned 4gb of mine to ext4 and that is plenty to play with a couple ROMs.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] nkk71:
That's a huge log with lots of flashes in it, so I didn't bother reading all of it, but seems you're having problems injecting your primary boot.img, which doesn't show what error it's having in the log.

Best to make a backup of boot.img, and upload it for me to take a look.

Because there's an error in the updater-binary (the shell script), starting at line 59:

if [ -d "/data/media/0" ]; then
SDCARD=/data/media/0
elif [ -d "/storage/emulated/0" ]; then
SDCARD=/storage/emulated/0
elif [ -d "/sdcard/0" ]; then
SDCARD=/sdcard/0
elif [ -d "/sdcard_internal/0" ]; then
SDCARD=/sdcard_internal/0
[B][COLOR="Red"]elif [ "/sdcard_internal" ]; then
SDCARD=/sdcard_internal
[/COLOR][/B]else
SDCARD=/sdcard
fi

The part in bold red will always evaluate to true, and therefore decide your internal storage is /sdcard_internal, which it's not obviously.

For primary flashing that's fine because it would detect the first one: SDCARD=/data/media/0

But for MultiROM /data becomes /realdata, however /sdcard would still be correct (the last else in that part of the script), but since the previous one is wrong, it won't get that far, instead it should read: (notice the missing -d)

if [ -d "/data/media/0" ]; then
SDCARD=/data/media/0
elif [ -d "/storage/emulated/0" ]; then
SDCARD=/storage/emulated/0
elif [ -d "/sdcard/0" ]; then
SDCARD=/sdcard/0
elif [ -d "/sdcard_internal/0" ]; then
SDCARD=/sdcard_internal/0
[B][COLOR="Red"]elif [ [COLOR="Blue"]-d[/COLOR] "/sdcard_internal" ]; then
SDCARD=/sdcard_internal
[/COLOR][/B]else
SDCARD=/sdcard
fi

Heh, I use a 30GB secondary ex4 partition :p
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] ali nz:
Sorry but i finally decided to leave MultiRom alone...because of unstablity in some parts...thanks for your quick respond...i definitively comeback when i feel it's stable enough :)
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Captain_Throwback:
This mod probably isn't for you, then...
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] tsukasayeo:
Thank you, it works. :fingers-crossed:
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] nkk71:
No problem, you could let the MOD Developer know about the script issue ;)
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] nkk71:
Batteries not included :rolleyes:

Changelog

* Should fix AK2 unknown hash error

As I am currently not updating multirom, this is only for people who want it, so the people that want a "stable hack", this is not for you, but do let me know when the hack is stable :p

Batteries not included just means, that instructions aren't either, and although I could have just uploaded a flashable zip, I won't. For those of you that do decide to try it (at your own discretion!) just replace trampoline in /data/media/0/multirom

EDIT: removed [broken] trampoline
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Nosferatu.:
Weird my primary ROM got screwed up.

1.x firmware

Primary - Viper (Nougat)

It's been running fine and I've flashed secondaries before without issue. Adding them and removing them.

Yesterday however, after having a successful run of my new secondary ROM (FusionOS) I went to go back into Viper 5.9 (Primary). I pick the primary, I get the HTC boot logo. The screen then goes black for about 15 seconds. The phone then reboots itself and it's a continual boot loop. I've TWRP backed up this ROM before flashing the secondary ROM.

Any idea why now, all of a sudden, the primary refuses to boot? Anything simple I can try to remedy it or am I stuck just doing a TWRP reflash of the primary?

Secondary runs fine at the moment and is a non-issue. Both ROMs are on the primary internal memory.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] nkk71:
Can't say what went wrong without logs.

Maybe just dirty flash Viper again, that should fix it, I guess.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Nosferatu.:
Just a thought now that I'm thinking about it. Would decryption/encryption status cause issue? Primary Viper was installed IIRC as unencrypted. Fusion is AOSP based but I also think is unencrypted. Is it possible something got screwed up with that?

I can see all directories for both ROMs in TWRP so I'm assuming both are unencrypted correct? That would negate my thought process?

Dirty flash Viper as unencrypted correct?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Haldi4803:
mhmm guess thats not the fix i'm looking for.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] nkk71:
Told you batteries not included ;)

Do the following (after copying the new trampoline and setting permissions to 750 (ie rwxr-x---)):

Boot into TWRP

Make sure /data is mounted

Open an adb shell

If need be, change trampoline permissions:

chmod 750 /data/media/0/multirom/trampoline

.

Now run the following:

find /data/media/*/multirom*/ -name boot.img -print -exec "/data/media/0/multirom/trampoline" --inject="{}" --mrom_dir="/data/media/0/multirom" -f \;

this will inject all roms on internal storage, with the current version.

Then you can try again.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] nkk71:
TWRP is fully capable of decrypting all current encryption

Encryption only applies to Primary ROM, but if you see the MultiROM boot menu, then either MultiROM was able to decrypt (eg Android M), or you're unencrypted, both of which are fine, as long as you can see the Boot Menu

Secondary ROMs are never encrypted, nor can they cause data encryption, the fstab (which dictates the data encryption method/style), gets modified by MultiROM, so even if the secondary ROM *wanted* to encrypt it cannot

Yep, that's what I would try
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] mitchst2:
Would replacing trampoline in the flashable zip not work?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] nkk71:
It would install and and inject the primary boot.img correctly, but it would not inject the secondaries, so that extra command is needed to inject the secondary boot.img(s) to fix the hash.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Haldi4803:
Sometimes i feel like john snow....

Well didn't think about that at all.

Succesfully installed Nebula 9.1.0 zip.

~ # [6nchmod 750 /data/media/0/multirom/trampoline
~ # [6nfind /data/media/*/multirom*/ -name boot.img -print -exec "/data/media/0/multirom/trampoline" --inject="{}" --mrom_d
ir="/data/media/0/multirom" -f \;
/data/media/0/multirom/roms/AquariOS-pme-7.1.2.build.1/boot.img
/data/media/0/multirom/roms/lineage-14.1-20170629-nigh/boot.img
/data/media/0/multirom/roms/PureFusion/boot.img
/data/media/0/multirom/roms/MK71.2-pme-201705151259-NI/boot.img
/data/media/0/multirom/roms/AOSiP-6.0-Derp-pme-2017052/boot.img
~ # [6n

Oh, a new roms installed after the Trampoline exchange will be injected with the new trampoline right?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Nosferatu.:
Thanks dirty flash got it back up in running. I then flashed the new Magisk and got a black screen. Okay culprit may not be mutlirom. Flashed back 5.9 (which has Magisk 12.0). Gonna do the OTA updates in Venom to get it updated.

I should have known it was not likely MutliROM given I've been flashing left & right w/o issue before.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] nkk71:
Yes, you won't need to worry about it anymore, if you want a little technical background (I usually do, since it makes me understand what's going, not sure everyone else does, so I may just be wasting my breath :D )

The older trampoline generates the *hash* differently, and any [new] AK2 based script would fail

Trampoline does reinject itself if the one currently installed in boot.img is older than the one in /data/media/multirom,

however

this requires a version bump, which I'm not willing to do for this small change

In order to *fix* (make it AK2 compatible), you therefore have to manually inject boot sector / or boot.img(s), when trampoline re-injects itself, it also recomputes the *hash* to become AK2 compatible

So the above command forces a reinjection on all currently installed boot.imgs, and new flashes would be using the newer trampoline
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Haldi4803:
i have absolutly no idea what just happened...

After this Purefusion failed to boot. So i tried Primary ROM Leedroid v3.8. After an whooping 6 minutes it finally booted.

So iItried Purefusion with Nebula Kernel again.

But there seemed to be some permission issue ^^

So I flashed the Purefusion 07 14 rom.zip fresh as new rom. Still got permission issues.

then I flashed permissive_change.zip and got rid of these. The log looked way better. But it still didn't boot.

I left it for over 10 minutes. Still no boot. But the log did show quite some activity. No idea what kind though.... ^^

using ADB Reboot did NOT show the MROM popup but instead rebooted directly into PureFusion again. so adb reboot recovery, and then reboot system was showing the MROM Popup for rom selection again.

So after a few reboots i tried to enter recovery.... and got a Message to enter password to decrypt Data. I skip that and get a notification to mount system read only or allow modifications.

Here are the logs:
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] nkk71:
No clue, one thing is for sure, you're not supposed to be messing with Primary ROM, I've already mentioned that the Primary ROM will force/change/etc encryption.

Now you're encrypted, but your current system either doesn't match the current encryption or is broken, which is why TWRP cannot decrypt it.

Reflash or restore the correct system partition for whatever encrypted your device, then TWRP should be able to decrypt, but MultiROM will not.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Haldi4803:
thats the thingy. I thought i did not mess with primary. ^^ the permissive.zip was flashed in mrom on 2nd pure fusion ROM.

Ahwell, format helps allways :) lets try again.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] nkk71:
I doubt the *permissive zip* would affect encryption
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Haldi4803:
mhmm, i've just tried again.

But it seems i can't get Purefusion build 07 14 (as a 2ndary) to boot more than the HTC Bootlogo (Log) on the new Trampoline.

Anyone else wanna give it a try?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] ali nz:
I couldn't live without MR:crying::D

So...i'm back again!??
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] nkk71:
1- You're logs start way too late for me to tell anything from them

2- And are you saying it *used* to work on older trampoline? (which I doubt)

I'm not running MultiROM at the moment, so I can't test / check / etc.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] mitchst2:
This is the second person to mention pure fusion ROM. There's been issues in the past with standard users recovery being updated/replaced on that ROM. Common denominator maybe.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] nkk71:
Same link as Haldi4803 mentioned?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] mitchst2:
[MENTION=2605798]nkk71[/MENTION] I believe they are talking about the same ROM on secondary which has corrupted the primary somehow.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Haldi4803:
EDIT:

Nope, this was an issue with Purefusion as it had an inbuilt recovery which replaced the current recovery.

This has been fixed weeks ago. Not the same issue.

END EDIT:

Well then... here we go!

Format internal Storage, install MROM.zip, install Leedroid v3.8.2 Unencrypted as primary ROM, Boot into rom. Reboot to recovery, install Purefusion as Secondary, reboot into 2ndary rom.

All works fine as supposed to.

Delete trampolin, copy over new one. Chmod 750 (why not 755 anyway?) type your command to change to inject the only purefusion rom with new version. Reboot into 2ndary ROM.

BAMM Stuck on HTC Bootlogo.

here is a dmesg. https://paste.ee/p/Q8pRL (from as early as it works in ADB.)

And the Logs copied over in the Recovery:

Edit2:

Just to prove my statement.

I've take the Trampoline from the "multirom-20161115-v33-UNOFFICIAL-pme.zip" put it back in there, changed perms, injected it in all current roms.

And Voilà PureFusion Secondary ROM Boots again.

So i say this Trampoline here does something strange.

Primary ROM works fine, but any 2ndary i tried (also tried LOS 05 07 nightly build) never managed to pass HTC Bootlogo.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] nkk71:
I'm not sure what you're saying, is:

A) the new trampoline causing a problem

or

B) rebooting a second time (even with *older* trampoline) an issue

If rebooting without changing trampoline, then leave it as is, though I don't know why it would be an issue, then again I'm not actively checking this at the moment.

I'll download it anyway, when it's done, I'll take a look, but if previous trampoline works then keep it as is.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] azZA_09:
Here is an advanced log. Still no MultiROM after a clean install [MENTION=2605798]nkk71[/MENTION]
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Haldi4803:
Sailfish?

FirefoxOS?

Ubuntu Touch?

There are so many other OS's around but none for the HTC10. I've always wondered about that ^^

http://nooooooooooooooo.com/

too much of a hassle to play around with SD card partitions. Well Internal Storage it is ^^

Right now i have exactly this problem.

Installed Multirom and wanted to install Leedroid. Screen timed out and is black now. If i press the power button i get a vibration but screen stays black.

Edit:

Here is the Log.

You might want to add that in the FAQ: "Aroma installer Screen timout is permanent"

Edit2: TO post below.

Or use ADB reboot recovery :P
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] nkk71:
Nope dont have any of those either.

working on it, but very unsure it will ever be supported.

Will change that behaviour in the next update. You can open an adb shell run a ps and kill the updater ... or try the following:

Press power button -> that should open the "options in aroma"

Press voldown once -> that should select "Quit installation"

Press power button -> that should go to a Yes / No

Press power button -> selects Yes
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] nkk71:
long log, not going go through all of it, but here are a few things:

* flash primary ROM by itself

* boot it and make sure it works fine

* once you know primary is good, go back to recovery and flash multirom.zip

* exFAT/FAT/FAT32 partitions are not supported (not to mention you didnt even set proper sizes for system, data and cache, but irrelevant... that partition type is not supported)

it's mentioned in the OP, but I'll make it bolder :p

PS: stop daisy chaining I dont know how many operations, between wiping, flashing, etc in one go
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] azZA_09:
Yea, I watched a few videos on yt and then i set them . So, I still dont understand why the menu doesnt show up. I mean,if the ROM wasnt booting,ok,i understand,but the menu.... Im totally unlucky and I waited so long for this *sorry for being annoying,btw*
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Captain_Throwback:
It looked to me like there's something going on with your internal storage. I'd recommend a "Format Data" and start over with installing MultiROM after that.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Haldi4803:
Now i have the same issue as Azza.

After the blackscreen issue i rebooted, went into MR-twrp and flashed the zip again over the installed ROM. this time full aroma installer went trough and device rebooted.

Didn't see no Multirom Menu at all :( /sdcard/multirom/roms seems empty as well, even tough the ROM is shown in MR-twrp list roms.

I'm on stock 1.92.709.1 ROM with Magisk v6 and ElementalX Kernel v20.

The recovery.log was wiped after booting into Main ROM?

C:\ADB>adb pull /sys/fs/pstore/console-ramoops

remote object '/sys/fs/pstore/console-ramoops' does not exist

But i've found the ramoops via Rootbrowser i'll edit it in in 2 minutes.

Edit: here. Advanced Loging is active.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] azZA_09:
Nothing.... Maybe if I change the system&data ti f2fs will it work?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] nkk71:
oops, should have mentioned that too:

Do not allow aroma to reboot device

reboot to mrom-twrp and select Inject boot sector, then reflash the ROM, and don't allow it to reboot

Why:

when Aroma reboots the device after installation, multirom doesnt get a chance to inject the fake boot.img, and restore the primary one
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Captain_Throwback:
Nothing? No, this device doesn't support f2fs. Just Format Data like I said.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] azZA_09:
Yea, I do,still nothing :/
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] nkk71:
Format (not wipe, full format -> you have to type 'yes'), this will reformat your entire data partition (you will loose everything!!)

EDIT: after you format data, you should reboot recovery!

1- install a nice primary ROM

2- make sure it boots fine

once those ^^ are good, then

3- install multirom_zip, reboot

-> poof, boot menu will show up
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Haldi4803:
I assume a TWRP Backup of System Image with a pure Stock Rom does Not Count as "nice primary Rom" or does that work?

Btw on another note:

P.S **** Tapatalk and it's Attachments.

"cp: write error: No space left on device"

Shouldn't exceed TWRP backup size or does it?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Captain_Throwback:
I don't believe MultiROM supports restoring a System Image backup as a secondary. Only standard tar backups.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] nkk71:
I think we're cross-posting the other post wasnt meant for you

this one was: http://xdaforums.com/showpost.php?p=68748916&postcount=49

And copying/swapping primary to internal storage without enough space, isnt going to work ;)
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] nkk71:
True, it wont even get "picked up"... MultiROM will expect boot, system, and [optionally] data: here's an example of trying to restore a backup done with boot and system_image (without normal system):

I:operation_start: 'Installing'
Installing ROM bckp_2016-09-18--20-10-56_...
Creating folders and images for type 2
I:Running cmd "chcon u:object_r:system_file:s0 "/mnt/multirom-hima//bckp_2016-09-18--20-10-56_/system";chcon u:object_r:
system_data_file:s0 "/mnt/multirom-hima//bckp_2016-09-18--20-10-56_/data";chcon u:object_r:cache_file:s0 "/mnt/multirom-
hima//bckp_2016-09-18--20-10-56_/cache";"
[B][I][COLOR="Red"]Backup must contain system image![/COLOR][/I][/B]
[I]^^ "system image" here means normal system, not the new system_image, it's just a text thing[/I]

Erasing incomplete ROM...
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Haldi4803:
I have the same Problem with Multirom Menu not showing up after Boot and Phone directly switching to the Main Rom.

So if it helps azza it probably also helps for me with formating Data and installing a Clean Rom as main.

Didn't see your answers there between, I'll try that thanks.

And the copy with enough space... Yeah saw that in the log and was like .... Duh...

But there is still this red error text. Red text should normally not be ignored or should it?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] azZA_09:
still nothing :( (im laughing and crying at the same time right now)
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Captain_Throwback:
Where is the recovery log of you formatting data?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] nkk71:
Well again, you allowed Aroma to reboot your device while flashing a secondary, which means MultiROM wasn't able to complete it's job after installation of said ROM

That creates 2 problems:

1- a fake boot partition

2- a non injected boot partition

so in order to fix it, just reboot back to multorm twrp, then just "Inject boot sector", that should fix your boot menu and primary ROM

... no need for overkill ;)
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] nkk71:
So it doesn't like the new hashing method? interesting, I didn't have anything to do with that :o
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Haldi4803:
i'm saying the new trampoline does not work with 2ndary roms. Might just be an issue on my device trough strange configuration or whatever.

P.S Replacing the New Trampoline wiht the Old one and rebooting worked fine. BUT now i'm stuck on Bootanimation and not Boot logo anymore -.- So it's not really working as great as expected....
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] nkk71:
I'll need to check things, I'm still downloading it, and wont be able to try, but maybe I can see where the fuss is without flashing it.

Issue a restorecon of secondary (TWRP->MultiROM->ListRoms-> select ROM -> Restorecon)
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Haldi4803:
Oh.... good idea yeah. Just deleted and installed anew. Worked as well ^^
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] nkk71:
I still don't have the download, so can't help, if you wanna try one more thing:

1- install new trampoline (just put it into /data/media/0/multirom with proper permissions)

2- flash that ROM

(ie do not flash ROM on old trampoline)

3- boot it

does it work?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] Haldi4803:
already did that at the first try when i failed to get past bootlogo.

Installed the rom anew, same issue.
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] ali nz:
Can i move my secondary rom from internal storage to sd card?
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] nkk71:
Weird, maybe I messed something up in that build, I'll check and will let you know.

Easiest would be to make a backup of the secondary in question, then "Install from backup"
[HTC 10 ROMs, Kernels, Recoveries, & Other Developm] ali nz:
Thanks but how? I haven't done that yet