yashsingh1/xdaforums huggingface dataset:
[One (M8) Android Development] Captain_Throwback:
Firmware shouldn't make a difference, but the kernels will need to be updated with kexec-hardboot to work for primary ROMs.
[One (M8) Android Development] HC4Life:
Thx. So this is a job for Flar, update his kernel...:)

Sent from my Hardcore One (M8)
[One (M8) Android Development] Captain_Throwback:
It'll first require HTC to release kernel source, which will be the bigger hold-up. However any 4.4.4 ROMs released should still be usable as secondary ROMs if built/scripted correctly.
[One (M8) Android Development] Captain_Throwback:
So [MENTION=4684315]flar2[/MENTION] recently updated his kernels to v1.08. I've been working on creating a version of the kernel that will flash on all variants, which I would then add into the MultiROM app for people using ROMs without a compatible kernel.

I've just attempted to update the latest versions, but before adding them to the app, I'd like to make sure they actually work, so I'm going to need people to test.

I have a zip for Sense and one for GPE. These are kernels built from flar2's latest source, and include an all-in-one dtb image that should allow it to boot on all M8 variants. It also will preserve your existing ramdisk, to prevent any issues with the carrier variants. The zips should definitely work on your primary ROM, but what I don't know is if they'll flash on a secondary ROM properly (my guess is no). But because I have no device, I can't test it, so I'll need your help. Here are the zips:

Sense:

ElementalX-m8-1.08-Sense_AnyKernel_CPTB

GPE:

ElementalX-m8-1.08-GPE_AnyKernel_CPTB

P.S. I also was experimenting with UMS in the Sense kernel, but I'm not sure if my changes had any effect. If you're NOT on Sprint, connect the device to a PC and see if you get a notification that says "USB File Sharing." If not, then what I changed didn't do anything. Either way, I'd like to know.
[One (M8) Android Development] manup456:
[MENTION=1162986]Captain_Throwback[/MENTION]

It flashed fine on my secondary but I see 1.04 instead of 1.08 I do see your name so that's weird.
[One (M8) Android Development] Captain_Throwback:
Oops. I may have packed an old zImage in there, then. I'd better rebuild and update it. Thanks for testing!

EDIT: I re-uploaded a fixed file. Same link as before. But now the version number should be correct ;).
[One (M8) Android Development] HC4Life:
WoW, u already on Android 4.4.4 with Sense UI?
[One (M8) Android Development] Captain_Throwback:
See where it says GPE in that post?

EDIT: I'm updating the Sense version too. It says 1.07, but this time it's because flar2 didn't update it.
[One (M8) Android Development] HC4Life:
My bad, i realized that, i was edit my post but u were too fast...lol
[One (M8) Android Development] Captain_Throwback:
Alright, both kernels are now updated to show version number correctly. If you've already downloaded them, and you actually care what the version number says, please download and flash again.

I'm glad to hear flashing to secondary ROMs is working; I was worried it would cause issues. When you respond with your testing results, please also mention what variant you're using. If there's a trend with something not working, that might help to isolate the problem. Thanks!

Anyone test the Sense version yet?
[One (M8) Android Development] manup456:
I did great work ?

---------- Post added at 03:26 PM ---------- Previous post was at 03:25 PM ----------

No that screenshot was GPE 4.4.4
[One (M8) Android Development] Captain_Throwback:
You did what? If you're saying you tested the Sense version, I had asked for some specific feedback.
[One (M8) Android Development] manup456:
My bad bro I tested both kernels on.

Primary: stock at&t 2.23.502

Secondary: Elixr 1.2.1 GPE

Secondary: Sinless GPE 6.0.2r2
[One (M8) Android Development] Captain_Throwback:
Still not what I asked for, lol. But you're probably not near a computer, right?
[One (M8) Android Development] syphix:
Wow. This is simply awesome. My flashaholic dream come true!

Internal: Stock Verizon Sense

2nd: CyanogenMod nightly

3rd: MIUI

4th: Sinless GPE

Loving every minute of it, though getting GPS to work on any non-sense ROM is impossible. The normal "flash a Sense ROM, get GPS lock, wipe & restore to non-sense ROM" trick obviously isn't working.
[One (M8) Android Development] manup456:
I thought I was providing what you need what do you mean by variants thought it was the roms I flashed the kernel on. I am in front of 3 computers and my phone.

---------- Post added at 04:14 PM ---------- Previous post was at 04:07 PM ----------

Your not getting GPS lock have you tried this app https://play.google.com/store/apps/details?id=com.eclipsim.gpsstatus2 hit the settings icon and compass calibration and do what it says. I know this works with miui and I never had a issue with GPE not sure about aosp.
[One (M8) Android Development] Captain_Throwback:
Please go back and read my entire post - I asked for something specific at the end of it.
[One (M8) Android Development] BIGWORM:
So, one last quick question before I make the Multi-ROM dive: flashing boot.img is the same as flashing a kernel, correct? I used the mult-ROM app on my phone and it says it's all good to go, and I have the latest MIUI 9/26 downloaded and ready to install as secondary. I'll be running SkyDragon 4.4.3 as primary. Am I good to go?
[One (M8) Android Development] HC4Life:
I think i'm gonna wait to flash a secondary rom...i'm waiting for Android 4.4.4 + Sense UI rom and it's really near... so i have to uninstall MultiRom before install the new Android 4.4.4, right?
[One (M8) Android Development] manup456:
Was reading wrong post yes sir when I plug my phone in while on my sense rom android file manager opens.
[One (M8) Android Development] Captain_Throwback:
Please read the post again. I'm asking a very specific question.

---------- Post added at 04:47 PM ---------- Previous post was at 04:46 PM ----------

Just flash it as a secondary ROM.
[One (M8) Android Development] HC4Life:
U mean flash the new rom as a secondary rom? And will work? What about the compatible kernel?
[One (M8) Android Development] Captain_Throwback:
What do you mean, compatible kernel? The ROM won't work without a kernel, so it has to be included in the OTA.

The only reason it wouldn't work is if the ROM creator doesn't unsecure the boot image or hardcodes block devices into the updater-script. Those things are easy enough to change, even if they do.
[One (M8) Android Development] HC4Life:
I mean, can I flash the new Rom safely? ;)
[One (M8) Android Development] manup456:
I don't see that but all computers are Mac and mounting the phones are diff on each, but I just got home I'll get parallels going and see what it says in Win7.
[One (M8) Android Development] Captain_Throwback:
In that post, the notification I'm referring to is on the phone, not the computer. I guess I needed to be more specific.

---------- Post added at 06:40 PM ---------- Previous post was at 06:40 PM ----------

It'll either work or it won't. So try it, and report back.
[One (M8) Android Development] remicks:
Working fine on Verizon, too lazy to go in and test the pc stuff right now though. You da man.
[One (M8) Android Development] HC4Life:
Apparently not.

http://xdaforums.com/showpost.php?p=55910432&postcount=1459
[One (M8) Android Development] rodny23:
Basically, it let you go through the hole flashing process, but when the rom is installing it just jump to the installation completed in a second, so if you reboot, no rom is actually installed.
[One (M8) Android Development] BIGWORM:
So I tried to flash miui 9/26 as a secondary, and during copying it said the ROM was incomplete. Any idea what it could be about?
[One (M8) Android Development] Captain_Throwback:
A bad download?
[One (M8) Android Development] BIGWORM:
I downloaded through my phone. I'll download it through the computer and try again. Is there a certain MIUI that works best for multirom?
[One (M8) Android Development] gokun:
I installed HTC_One_M8_Miuiv5_4.8.25-4.4.4 as secondary the other night and it seemed to work just fine..
[One (M8) Android Development] BIGWORM:
That's the other MIUI from the one I installed. I'll give this one a shot, thanks.
[One (M8) Android Development] anthony92170:
Possible dumb question I have sprint I want to run sinless 3.5.8 4.4.4 I tried elemantalx for 1.04 it just sends my phone into boot loader. My question is there a gpe kernel or image I can use on sprint. I do know it can be used as secondary without kexec. Its easier if all ROMs I use have kexec its earlier to just reboot into whichever ROM I want from multi ROM manager. Than for help
[One (M8) Android Development] Captain_Throwback:
http://xdaforums.com/showthread.php?p=55905066
[One (M8) Android Development] HC4Life:
It happened the same to me. Have you got it to work?
[One (M8) Android Development] Captain_Throwback:
The Maximus HD zip uses hardcoded block devices, so it won't work unless you change all the references to the symlink versions.
[One (M8) Android Development] remicks:
Or use the swap method ;)
[One (M8) Android Development] Captain_Throwback:
So that'll work even if the ROM doesn't have a kexec-hardboot patched kernel?
[One (M8) Android Development] rodny23:
That's exactly what I did. Now I have GPE internal and MaximusHD as a secondary and is working perfectly.
[One (M8) Android Development] remicks:
Yep. That's why it's a perfect (almost) method for any rom :)
[One (M8) Android Development] topjohnwu:
Nope, there is no notification on my Asian model M8, it only shows the MTP thing and usb is connected, 2 notifications. What should it suppose to show??
[One (M8) Android Development] Captain_Throwback:
Thanks for the response. On the Sprint model there's a "USB File Sharing" notification that allows you to choose between HTC Sync Manager and Disk Drive mode. I think it requires some modifications to the framework to show up on the other variants.
[One (M8) Android Development] HC4Life:
It doesn't work for me using swap method, i move first primary Rom to secondaries and then add Maximus 4.4.4 to internal slot to flash and the rom in the end didn't flash, and now what i do? My primary rom is in secondaries, i have to move again to primary slot to boot?
[One (M8) Android Development] matmaneyre:
Quick question...has anyone stumbled upon a non-rooted ROM that works in secondary?
[One (M8) Android Development] Jbb3393:
+1 here too. I can't seem to boot it in primary or secondary. First Rom I've had a problem with
[One (M8) Android Development] rodny23:
First thing is that once you use the MaximusHD zip file for secondary installation it will not work for primary installation. You have to download the Rom again, flash as internal, boot and perform the setup of the rom, then boot to recovery and from recovery perform the swap. Maybe after the swap you have to rename the roms in the multirom app. You need to make sure that the Rom that your are swapping to internal have the patched kernel.
[One (M8) Android Development] HC4Life:
Which rom do u use as primary rom before install MaximusHD? I'm on ViperOne.
[One (M8) Android Development] rodny23:
Elix-R V1.2.1 GPE with ElementalX kernel.
[One (M8) Android Development] Captain_Throwback:
Any non-rooted ROM should work, but the boot.img will have to be unsecured, and the updater-script will have to use symlinks for the partition block devices.

I think the problem with most of the non-rooted ROMs is that the boot images aren't unsecured. That's extremely easy to fix though:

- Extract the boot.img from the zip.

- Unpack it using Android Image Kitchen

- Navigate to the extracted ramdisk folder, open default.prop, and change the value of ro.secure to 0.

- Repack the boot image

- Remove the current boot.img from your unrooted secondary ROM, and add the unsecured boot.img

The recovery should then be able to inject MultiROM successfully and the ROM should boot.

Regarding the hard partition mounts, it's simply a matter of opening the ROM zip, navigating to the updater-script (META-INF/com/google/android), and replacing any references to a specific block device with a symlink that uses by-name mounting. In order to know which block devices correspond to the proper partitions on your device (if this isn't obvious from what you see in the script), running cat proc/emmc while over adb will tell you exactly which block devices correspond to which partition.

For example, on the Sprint M8 (and all others besides Verizon, I believe), the relevant partitions are:

dev: size erasesize name
mmcblk0p16: 03c00400 00000200 "adsp"
mmcblk0p42: 01000000 00000200 "boot"
mmcblk0p45: a8000000 00000200 "system"
mmcblk0p46: 18000000 00000200 "cache"
mmcblk0p47: 58000000 00000200 "userdata"

To mount a partition by name, the format is:

/dev/block/platform/msm_sdcc.1/by-name/XXXXX

where "XXXXX" is the name of the partition as listed above.

Thus, /dev/block/mmcblk0p45 becomes /dev/block/platform/msm_sdcc.1/by-name/system. The obvious advantage of this approach is that it doesn't matter what variant you're running; the proper block device for system will be mounted and flashed. This is the same approach used in the recovery.fstab to allow for compatibility with all variants.
[One (M8) Android Development] JEANRIVERA:
i can confirm this method works!!!!!!!!!! I'm runing viper 2.5.0 as primary and maximus as secondary thanks!!!!!!!!!!!
[One (M8) Android Development] HC4Life:
Finally i got it, swap method worked! Now i have ViperOne as primary and MaximusHD as secondary rom.

Thx :)
[One (M8) Android Development] remicks:
Glad that I could be of service, I will post any more tips and tricks I have learned with multirom as the need arises :)
[One (M8) Android Development] jasonzarko:
To anyone that has installed MaximusHD did you also update do the ota update or will that break multiboot?
[One (M8) Android Development] mlin:
Internal storage wiped using latest recovery

I was running stock rooted (vzw 4.4.3) as my primary ROM. Running CM as my only secondary ROM. I updated CM through multiROM and all was fine. I then reverted back to the previous version of CM and the phone rebooted into CM fine but I was stuck in a boot loop. When I rebooted to recovery and attempted to go into multiROM, I got a message stating it was not installed. Then, I noticed my internal storage was reading 0MB. Not sure how or why this happened but I thought I'd report it.

EDIT: I just read through the thread and realized the "repair file system" option may have restored my internal storage and it may not have actually been wiped. I did not try this (unfortunately) and went ahead with an RUU. Ah well, now I know there are other options.
[One (M8) Android Development] Nilsonf:
I am having the same issue as [MENTION=754676]mlin[/MENTION]. But I was playing a game on my secondary rom which is candykat. It was lagging a lot to the point to where it just froze my phone. I rebooted the phone and when it turned back on I lost multirom and now I have no data at all. TWRP says I do not have multirom installed and I cannot restore any other roms. No data is being read at all. Don't know what to do now
[One (M8) Android Development] mlin:
Try the repair file system options under advanced wipe.
[One (M8) Android Development] Nilsonf:
I tried that but it says invalid partition selection. Do I have to check anything?
[One (M8) Android Development] mlin:
yeah, you have to select 1 partition at a time i believe.
[One (M8) Android Development] Nilsonf:
Do you know which ones that would be?
[One (M8) Android Development] mlin:
I think you have to do one at a time but I may be mistaken. I would start with system --> data --> cache --> dalvik
[One (M8) Android Development] Nilsonf:
Thank you. You're awesome it's working now
[One (M8) Android Development] mlin:
You're welcome! Wish I would've remembered that option before running the RUU!
[One (M8) Android Development] Nilsonf:
That sucks man. Lost all your data and stuff
[One (M8) Android Development] jasonzarko:
I went ahead and Flashed 3.28.401.6 firmware update and it worked! No broken multirom!!
[One (M8) Android Development] mlin:
Not too bad, fortunately I had a nandroid from the day prior and I keep pics on the external SD. Definitely would've been nice to have done a 5 minute fix instead of 1 hour fix at 2am though.
[One (M8) Android Development] HC4Life:
One question, now i have ViperOne as primary and MaximusHD as secondary rom, and in this moment i'm running MaximusHD, but the dev is going to provide a OTA update via recovery, how do i do? Install as a regular flashble zip or i have to choose first the rom where i'm going to flash that zip file?
[One (M8) Android Development] 5m4r7ph0n36uru:
Hi guys,

I got a little problem. Just Updated my Stock ROM to 3.28.401.6 and tried to install it as secondary ROM - besides ViperOne as primary - from backup.

TWRP gives me an error, that it couldn't inject the boot.img. As it worked on 2.22.401.5 I assume that HTC has changed something at its boot.img, but not so sure. Already tried installing latest Elemental-X, just to give it a try if it works on 4.4.4 as well. As that gave me a bootloop, I had to revert to Viper as primary and afor the time beeing no secondary ROM.

Any ideas here how I could solve this?

Thanks for your answers in advance!

Yoda
[One (M8) Android Development] Ather:
i had ARHD 11.2 with MultiROM and elemental-X kernel, installed the new ARHD 20.1 over it and everything is working fine..
[One (M8) Android Development] 5m4r7ph0n36uru:
Hhmm ...

Thanks for your reply. Guess I'll have to wait until MultiROM as well as Elemental-X has been patched to work with the new base.
[One (M8) Android Development] Captain_Throwback:
How to do it has been posted in the thread. Flash the ROM and swap it to a secondary slot.
[One (M8) Android Development] 5m4r7ph0n36uru:
Thanks Captain_Throwback hadn't seen it. Must habe been blind. Sorry for that

Gesendet von der Restintelligenz meiner Kaffemaschine. Sent from my coffee machine.
[One (M8) Android Development] AnimusVoxx:
Yeah I've tried in multiple roms multiple ways and it still doesn't work, and I know it's an issue with multirom because the screenshots save fine without multi rom on all the roms I've used.
[One (M8) Android Development] Freak07:
[MENTION=1162986]Captain_Throwback[/MENTION]

I wanted to ask you a question and maybe you can take a look at it.

I'm running pa as a secondary rom along with Excalibur kernel (nv9.img).

So I wanted to a flash a soundmod and see how it compares to sense and hk mod.

However everytime I flashed on of the soundmods the phone was stuck at splash screen and rebooted after a time to multirom screen.

So I tried a little bit to exclude some files from the mods and found that changing the build with a script from the zip was one reason for this. This was the case for extremebeats studio version 2.0.

Link: xdaforums.com/showthread.php?t=2634729

I also used the zip from the pa gapps for the files and after flashing this and edit the build prop manually with a root explorer after booting the sound mod did work.

Then I wanted to try the asdpe mod from this thread. xdaforums.com/showthread.php?t=2765331

After flashing the zip it was also stuck at splash screen and rebooted after a while back to multirom menu.

So this time I included the mod right in the rom zip, modified the build prop, flashed the modified rom zip and it worked right out of the box.

Do you have some kind of explanation or maybe you can take a look so I can modify the zips in a way that they work together with multirom? :)

Thanks in advance!
[One (M8) Android Development] 5m4r7ph0n36uru:
Hallo [MENTION=1162986]Captain_Throwback[/MENTION],

please excuse me. Tried the swap method to get my Stock 3.28.401.6 ROM running as secovndary, as well as the ViperOne (Elemental-X Kernel) as primary ROM. When TWRP starts to swaping ROMs, beginning with the Stock ROM it always runs into the following error:

Extracting contents of boot.img ...
Failed to load bootimg!
[One (M8) Android Development] starbase64:
[MENTION=5832952]HTCNerdYoda[/MENTION]

base 3.28 needs a new 4.4.4 kernel.
[One (M8) Android Development] 5m4r7ph0n36uru:
Thanks [MENTION=456666]starbase64[/MENTION],

I guessed this as well. And if you look some posts up I stated it in my initial post.

But as Captain_Throwback answered me to use the swap method I tried and it failed. Just wanted to give him this information ;)

Gesendet von der Restintelligenz meiner Kaffemaschine. Sent from my coffee machine.
[One (M8) Android Development] remicks:
Create a nandroid of 4.4.4, wipe everything, install w/e you want as primary, add rom to multirom via backup, select the 4.4.4 backup.

Give that a try.
[One (M8) Android Development] 5m4r7ph0n36uru:
Thanks mate, already tried this one as well. Doesn't work. Gives the same error as by using the swap method.
[One (M8) Android Development] remicks:
Well, I'm stumped then lol, sorry :(
[One (M8) Android Development] Galaen:
That happens to me also when I install the nv9.img kernel. The rom sticks at the boot screen whenever I flash any zip after that. I have to dirty flash the rom. Now, if I install a kernel that is a zip file and not an img file, everything works fine. So, I'm wondering if that is the reason you are having trouble flashing zips.

Sent from my AT&T HTC One M8
[One (M8) Android Development] 5m4r7ph0n36uru:
No problem. Thanks any way :)
[One (M8) Android Development] Freak07:
So maybe we should try to flash all zips and afterwards the kernel?
[One (M8) Android Development] HC4Life:
Hi,

I want to install OTA update zip file in MaximusHD rom but i have ViperOne as primary and MaximusHD as secondary rom, how i flash the OTA update?

Sent from my Hardcore One (M8)
[One (M8) Android Development] Captain_Throwback:
Swap it back to primary, flash the zip, then swap it back to secondary?

Or modify the script in the zip as I stated previously in the thread to ensure it will flash properly on the secondary slot.
[One (M8) Android Development] HC4Life:
I got it but wasn't necessary to swap, in menu u can manage the rom, and i simply flash the zip file and reboot.

Sent from my Hardcore One (M8)
[One (M8) Android Development] Captain_Throwback:
I know you can flash a zip to a secondary ROM, but I didn't know if the zip would mount the partitions properly. Are you sure it did?
[One (M8) Android Development] HC4Life:
Yes, with no problem.
[One (M8) Android Development] Captain_Throwback:
I just added the updated ElementalX kernels to the MultiROM app. They can be used for Sense or GPE and should work for all M8 variants if you need a kernel with kexec-hardboot support.

I moved the links, so hopefully the app can still download everything with no issues.
[One (M8) Android Development] drewopo77:
I just tried to reset up multirom on my phone and fails to install anything. Tries to download files after a few seconds says it failed
[One (M8) Android Development] Captain_Throwback:
Okay, thanks for checking. I'll move the links back in a few minutes.

EDIT: Try it again.
[One (M8) Android Development] drewopo77:
it's working now

Well able to download and install multirom and twrp now but still fails when trying to download the kernel
[One (M8) Android Development] Captain_Throwback:
Hm how do the kernels show up in the list? What is the failure message?
[One (M8) Android Development] remicks:
Will you be adding the CM/AOSP kernel as well?
[One (M8) Android Development] drewopo77:
When u select the kernel checkbox it gives you the selection for the two elemental kernels and stock unsecured GPE version. When I select the elemental for Sense it goes to the download screen and after about 5 seconds says it failed
[One (M8) Android Development] Captain_Throwback:
I want to know exactly how the kernels show up in the list.

I don't have a device so I need to be able to see what's happening.
[One (M8) Android Development] Captain_Throwback:
Thanks for the screenshots. Please try it again.
[One (M8) Android Development] drewopo77:
Thanks for your work it's downloading now