yashsingh1/xdaforums huggingface dataset:
[G2 Original Android Development] patrik.KT:
Okay, I will fix it as soon as I get to my PC. I'm not home.

Odoslané z môjho HTC Desire 601
[G2 Original Android Development] AmalD:
glad you fixed it . i have strange problem with AUDIO in primary rom after adding multi rom ( didnt test in secondary rom ) :(

reverted back , i think its due to new recovery :/

any idea @op

---------- Post added at 06:32 PM ---------- Previous post was at 06:26 PM ----------

i also have D801 , can you share the files with me cause i also face that time out issues ( glitches ) :/

and you have any problem with audio like muic and caller audio ?
[G2 Original Android Development] :
Same problem: Audio not work
[G2 Original Android Development] Drgravy:
no problem with audio tested with AICP as primary rom and LS as the 2nd rom

the loki.sh that I used you can find in one of my twrp builds here
[G2 Original Android Development] dorimanx:
Well Done! lets the games begin :)

Well it's was really missing for our LG G2! and now it's possible.

This is great news, and all small bugs will be found and fixed by our great developers!

I will begin testing as soon as i BACKUP all i can! :)

For testers: Please make your life easy by first backup your ROM via recovery.

then COPY all your SDCARD to your PC. and keep it's there no matter what.

So in any case, all is saved and can be restored in less than an hour.

I will post any problem i will find with logs and full info.

Thanks a lot guys for this awesome work!

You rock! respect :good::highfive:
[G2 Original Android Development] :
I can not install your rom with multirom
[G2 Original Android Development] patrik.KT:
IMPORTANT!

The boot issues with some roms (black screen, stuck on lg logo, whole screen of logs etc.) are caused by the bootloader. It wont load the secondary rom's boot.img. Your internal kernel should be compatible with the secondary roms. You dont even have to have kexec patched kernel, but remove boot.img in secondary rom's menu. This is not that easy to fix, so we have to wait till there's a way to unlock the bootloader so that it can load the kernel which is loaded into ram by kexec.

Thanks to [MENTION=2376110]dorimanx[/MENTION] for pointing this out.
[G2 Original Android Development] :
big big problem,dorimanx kernel work only with stock based rom. It's impossible use Aosp/Stock Based
[G2 Original Android Development] dorimanx:
Then you just need to install one kind roms, or stock base, or aosp.

No mixing.

Maybe we will have some idea, but for now, not much to do. We stuck with locked bootloader that boot the first kernel no matter what.

Sent from my LG-D802
[G2 Original Android Development] TheFerhatKing:
Is it possible to have a kernel that supports aosp and stock together?
[G2 Original Android Development] patrik.KT:
There's no such kernel. Stock and AOSP kernels are completely different. They are not compatible with each other...
[G2 Original Android Development] Maxximo88:
Hi guys,

I just want to say thanks for your work.

G2 is a great smartphone and dev community improves it over time!

The multiboot feature is a great PLUS! :highfive:
[G2 Original Android Development] Williek113:
Am I missing something? I'm not seeing the LS980 files...
[G2 Original Android Development] Wimmme:
Running cloudyg3 1.3 on my d802 as main ROM with dorimanx 7.7 as kernel.

Recovery and MultiRom installation went fine.

Then tried to install Pardus 7.7 Rom as secondary. Auto ZIP modification seemed to run OK. ROM installation too, but it doesn't boot.

Boot logo then shutting down to prevent ...

Here is the log : https://docs.google.com/file/d/0B_CmKeXB6dmrUzJLV0gzY1o5bFk/edit?usp=docslist_api

Let me know if i can test sth else.

Already a great tnx to you guys for the effort put into this.
[G2 Original Android Development] patrik.KT:
They are there. Try downloading from d-h.st if mega won't work.

Check my post on the previous page. Or the OP (before you begin).

Odoslané z môjho HTC Desire 601
[G2 Original Android Development] Wimmme:
I did read the OP 5 times. Don't know what i missed :confused:

Using 2 stock based ROM's, both running Dorimanx .

Tried removing boot.img from secondary ROM

tried with and without editing updater-script

Sorry for being n00b :o
[G2 Original Android Development] patrik.KT:
If the internal boot.img is not compatible with that rom, it won't boot.

Odoslané z môjho HTC Desire 601
[G2 Original Android Development] Wimmme:
Just tried installing the same ROM as my internal as a second ROM (clean from zip, no backup), but no go.

First attempt -> kexec missing -> removed boot.img -> still not booting :(
[G2 Original Android Development] Paulinhip:
I think it only works with two AOSP ROMs because I tried in several ways, install another stock ROM, tried to install primary and secondary equal to ROM and running the same kernel, and have not had sucess.

Sorry my bad english
[G2 Original Android Development] AmalD:
anyone managed to boot MIUI and Cm11 ?
[G2 Original Android Development] better33:
If you're talking about the stock based MIUI, it's not possible yet since the kernel is not compatible with both aosp and stock based rom
[G2 Original Android Development] AmalD:
nop , the cm11 based one
[G2 Original Android Development] :
I have a little information on the black screens on boot. I run your MultiROM on my LG D802 32GB model and have been experimenting with AOSP and Stock based ROM combinations.* I have CloudyG3 as my primary using Dorimanx kernel and a few different ones as my secondary, all AOSP based.* Now, this has led me to experience the same issues as other uses with it freezing on the LG logo, this was fixed however by removing the boot.img as suggested.* Unfortunately this instead cause me to just get a black screen on boot.* I did have an idea though, and connected my phone to my PC whilst in this state, only to hear the charging bleep and have it seen by the PC.* So, this suggests the ROM does boot but just not the screen?

Hopefully this is useful information and you haven't already realised this.

Thanks in advance,

plasmaboltrs
[G2 Original Android Development] patrik.KT:
It's because of the kernel. It has incompatible device (and other) drivers. The stock kernel is only compatible with stock based roms and the aosp only with aosp roms.

Odoslané z môjho HTC Desire 601
[G2 Original Android Development] :
I understand it's the kernel but am a little confused, does the display just not work because of the kernel or the entire phone?

Sorry for being such a n00b, I've never really done this stuff so thanks for explaining.

plasmaboltrs
[G2 Original Android Development] Snuzzo:
[MENTION=4994560]plasmaboltrs[/MENTION]

Its kernel.
[G2 Original Android Development] :
Ok, I apologise for any confusion I have caused, let me rephrase. What does the kernel not being compatible influence? Is it just stopping the display working or will it affect the phone as a whole and stop it from booting?

Because from what I tried the phone does boot just no screen.

Thanks in advance,

plasmaboltrs
[G2 Original Android Development] xanthrax:
It won't boot

Sent from my Darkside of LG G2
[G2 Original Android Development] :
Ok because I thought that's what an incompatible kernel would do, however in this case that's false I think. I got a black screen and was able to adb into my phone still and even perform a logcat which spazzed when I clicked the on button and then stopped when I clicked it again. Almost as if trying to turn on the display. I am happy to do it again and post my logcat here if anyone wants it. Also, even in the black screen state I could still use my phone over mtp to access my files and it also made the bleep sound to indicate it was charging.

Thanks in advance,

plasmaboltrs
[G2 Original Android Development] dorimanx:
No screen = it didnt boot as should, we know that rom started, but its broken, as its needs aosp ramdisk files, and kernel changes to normally boot the phone.

There is no point trying to boot.

Sent from my LG-D802
[G2 Original Android Development] :
OK, thank you very much for explaining. I was a little confused but that's sorted it. Hopefully we can get to a point of dual booting both stock and AOSP soon.

Thanks very much,

plasmaboltrs
[G2 Original Android Development] bart452:
not true, the AOSP kernel is the same as the stock kernel. It does have a few patches to fix some things on AOSP such as ril, leds and other things.

The stock kernel should boot on aosp. I don't know how it works backwards. But there should be a way to work on both
[G2 Original Android Development] reas0n:
I don't think it's a good solution. We have to find the way to just boot the second kernel using kexec. With locked bootloader + loki it's hard as f*ck.

Patrik have uploaded all the sources, if anyone knows how to make it boot without waiting for LG's unlocked bootloader, go ahead.
[G2 Original Android Development] core720:
sorry, twpr inc thermal protection dr87?
[G2 Original Android Development] patrik.KT:
Yes, it's his kernel
[G2 Original Android Development] Quiox:
Has anybody been able to install this on VS980? I am still having issues.

VS980 - Mahdi Rom
[G2 Original Android Development] patrik.KT:
Sorry, I was busy and I forgot to update the loki_tool. I will upload the new package for vs980 tomorrow.

Odoslané z môjho HTC Desire 601
[G2 Original Android Development] Quiox:
No problem man! Thanks!

VS980 - Mahdi Rom
[G2 Original Android Development] xanthrax:
Wow, that's nice to see!

Sent from my Darkside of LG G2
[G2 Original Android Development] Raymonf:
Well, in that case, why not just have MultiROM replace the kernel every time someone wants to swap ROMs?

For example, an option to choose if the ROM is stock or AOSP, and then something in settings to set the boot.img file for that specific kind of ROM?
[G2 Original Android Development] patrik.KT:
I was also thinking about this, but it would very, very hard and complicated.

Odoslané z môjho HTC Desire 601
[G2 Original Android Development] vPro97:
Would it - or would it not - be possible to create an "intelligent" kernel, that works with both AOSP and stock roms and can switch between stock and aosp? I don't know how exactly, but I know that dorimanx kernel automatically detects JDI/LGD panels
[G2 Original Android Development] patrik.KT:
It's not the panel type, it's the display driver (and drivers for other stuff) in the kernel
[G2 Original Android Development] vPro97:
I know I know. I was thinking about the concept of auto detection and switching correspondly.
[G2 Original Android Development] nelsonator1982:
Is this done now?
[G2 Original Android Development] orbitman000:
So this can only be booted from a USB OTG setup? Or can I store and boot everything from the device's storage?
[G2 Original Android Development] :
You can store and boot everything on the device or also on a OTG USB, whatever works best for you.
[G2 Original Android Development] jcmaddox1:
For now, to do multiple types of roms, would it be possible to have a certain folder with kernels, one for each rom, and then have multirom switch to recovery, flash the needed kernel automatically, and then boot into the chosen rom? Kernel flashes are relatively fast, and I don't think that it would take all that long especially if it did it automatically. Seems to be a reasonable solution until we can figure something else out.
[G2 Original Android Development] megaghostgamer:
I just can't wait to use this on VS980 :good: :fingers-crossed:
[G2 Original Android Development] :
Hey hey, thanks for your work on this. So with the way current things are and to my understanding, at this very moment, I could have both Mahdi and PA installed (Under Render kernel) for my D800? I know Render kernel works with both. If I were to use it, would I be able to keep my data at the moment or would it require a complete wipe? I saw there were D800 files, just didn't know if I should dl right now or wait.
[G2 Original Android Development] :
If you're running one of these already you can keep the data you have now and just flash this over, no wipe necessary. However, if you're running stock based then you will be unable to boot them as secondary ROMs due to kernel incompatibilities between AOSP and stock based ROMs, ie. Render kernel won't work with stock.

Hope this helps,

plasmaboltrs
[G2 Original Android Development] :
Thank you. And yes, I'm on Mahdi with Render Kernel right now.
[G2 Original Android Development] jcmaddox1:
You will only be able to boot aosp based Roms then.
[G2 Original Android Development] sadinoide:
Is this normal?

I know I am missing something really minor, but whenever I edit updater_script (with npc++)

I could never find a "run_program("/tmp/loki.sh");" , i could only find things like #204: assert(run_program("/system/bin/loki.sh") == 0);

I am trying to multiboot CloudyG3 and Mahdi rom as a secondary, can anyone give me an idea of what it might look like?

uploading the modified script would help also.

(I have tried a few cm11 roms, same result without this modification, they all hang at LG boot logo)

sorry I know this is very noob, thanks for bringing this to the G2 , I very much enjoyed it on N5.
[G2 Original Android Development] patrik.KT:
Someone with the VS980, try installing this recovery zip: http://www58.zippyshare.com/v/36857279/file.html

It has the new loki_tool (but only in the installer, if it works, then i will add it in the recovery itself too)
[G2 Original Android Development] sadinoide:
It's a really simple question so help would be appreciated.
[G2 Original Android Development] patrik.KT:
The updater-script editing is not needed anymore. Just flash the zip as it is
[G2 Original Android Development] sadinoide:
Thanks for the prompt reply!

it is stuck at LG boot, am I missing something here? add mahdi rom.., flash zip: gapps + patch ?

Is this a common issue? any solution?
[G2 Original Android Development] patrik.KT:
It is an issue until the bootloader is locked. The phone wont load up the kernel from the secondary rom. Your internal kernel has to be compatible with primary and secondary roms. If you use dorimanx kernel, you can only install stock based roms as secondary. If you use render kernel, you can only install aosp based rom, EXCEPT CM11 and CM11-based roms. They are based on 4.2 sources
[G2 Original Android Development] sadinoide:
Thank you, that was extremely helpful!

Let's be clear on this, would it be impossible (as of yet) to dualboot CloudG3 or ANY other AOSP/ CM11 etc roms?

Nexus made this so much easier :D
[G2 Original Android Development] Snuzzo:
No. Just incapable at this point in time.
[G2 Original Android Development] vagaerg:
I'm sorry if what I'm asking has already been answered. However, I haven't been able to find it in this thread nor in CM11's one.

By what I have read it is not possible to change the kernel for each ROM if your BL is locked, is this right? However, normal LG D802 without any carrier has unlocked bootloader, I think.

I have now installed CM11, but when MultiRom boots up and asks me to choose what ROM to boot, if I choose a stock-based one or another AOSP based one it just tells me that I need to have a kernel with kexec enabled. I have seen that the one proposed in here (RenderKernel) would not work. Is there any kernel with kexec that would work with CM11 official build?

Thank you very much
[G2 Original Android Development] patrik.KT:
There's no kexec patched kernel for cm11 yet. Ask the devs to add it. But you won't be able to boot other roms than cm11 and cm11 based roms.

And about that bootloader, it's locked on every model. If we find a way to unlock it, we will be able to boot any rom with multirom.

Odoslané z môjho HTC Desire 601
[G2 Original Android Development] vagaerg:
Thank you very much for your reply. I thought that the loki was only for models like AT&T or Verizon.

So what we are doing is using loki every single time to bypass the lock I suppose?

Thank you again
[G2 Original Android Development] megaghostgamer:
Assert failed where loki is being used.
[G2 Original Android Development] patrik.KT:
Can you give me the recovery log?
[G2 Original Android Development] megaghostgamer:
This is where I tried to install it.

I:Copying file /cache/recovery/log to /cache/recovery/last_log

I:Attempt to load settings from settings file...

I:Loading settings from '/data/media/0/TWRP/.twrps'.

I:Backup folder set to '/data/media/0/TWRP/BACKUPS/083f0c7d99128375'

I:Copying file /etc/recovery.fstab to /cache/recovery/recovery.fstab

I:Version number saved to '/cache/recovery/.version'

__bionic_open_tzdata: couldn't find any tzdata when looking for CST6CDT!

__bionic_open_tzdata: couldn't find any tzdata when looking for posixrules!

I:TWFunc::Fixup_Time: Setting time offset from file /data/time/ats_2, offset 1400022099204

I:Switching packages (TWRP)

I:Set page: 'install'

I:Set page: 'flash_confirm'

I:Set page: 'flash_zip'

I:Set page: 'flash_zip'

Installing '/sdcard/Download/TWRP_multirom_VS980_20140921.zip'...

Checking for MD5 file...

I:Cannot find file /sdcard/Download/TWRP_multirom_VS980_20140921.zip.md5

Skipping MD5 check: no MD5 file found.

I:Zip does not contain SELinux file_contexts file in its root.

Installing MultiROM TWRP Recovery

minzip: Extracted file "/tmp/loki.sh"

minzip: Extracted file "/tmp/loki/loki_flash"

minzip: Extracted file "/tmp/loki/loki_patch"

minzip: Extracted file "/tmp/loki_tool"

about to run program [/tmp/loki.sh] with 1 args

2048+0 records in

2048+0 records out

1048576 bytes (1.0MB) copied, 0.019102 seconds, 52.3MB/s

/tmp/loki.sh: line 8: /tmp/loki_tool: Permission denied

run_program: child exited with status 1

script aborted: assert failed: run_program("/tmp/loki.sh") == 0

assert failed: run_program("/tmp/loki.sh") == 0

E:Error executing updater binary in zip '/sdcard/Download/TWRP_multirom_VS980_20140921.zip'

Error flashing zip '/sdcard/Download/TWRP_multirom_VS980_20140921.zip'

Updating partition details...

I:Data backup size is 1101MB, free: 10971MB.

I:Unable to mount '/usb-otg'

I:Actual block device: '', current file system: 'vfat'

I:Set page: 'flash_done'

I:Cannot find file /nobrightness

I:Set page: 'clear_vars'

I:Set page: 'main2'

I:Set page: 'advanced'

I:Set page: 'confirm_action'

I:Set page: 'action_page'

I:Copying file /tmp/recovery.log to /data/media/0/recovery.log
[G2 Original Android Development] patrik.KT:
Try this one: http://www66.zippyshare.com/v/38842694/file.html
[G2 Original Android Development] megaghostgamer:
:good: It worked!

Also as far as the multirom zip itself, it doesn't want to install. Need a log for it?
[G2 Original Android Development] patrik.KT:
No need, the loki_tool needs to be updated in that one too. Wait I will upload new build in a few minutes.
[G2 Original Android Development] megaghostgamer:
Disregard this post . Saw your post after I posted mine.
[G2 Original Android Development] patrik.KT:
Install this TWRP: http://www52.zippyshare.com/v/37450635/file.html

Then install multirom.zip: http://www52.zippyshare.com/v/41478469/file.html

And let me know if it worked.

Also, you could try out if this uninstaller works too: http://www52.zippyshare.com/v/8379720/file.html
[G2 Original Android Development] megaghostgamer:
TWRP & Uninstaller worked. The Multirom.zip is failing on run_program ("/tmp/inject_boot.sh") == 0
[G2 Original Android Development] patrik.KT:
Give me the log :P
[G2 Original Android Development] patrik.KT:
Try this multirom.zip: http://www54.zippyshare.com/v/41920436/file.html
[G2 Original Android Development] megaghostgamer:
It worked :good: Thank you so much!

---------- Post added at 12:13 PM ---------- Previous post was at 11:28 AM ----------

Last thing, I did Cloudy Gflex as my secondary rom. My primary is Cloudy G3. I tried to install Dorimanx Kernel to primary but when it does, it makes the boot selector go away forcing me to reflash it. Once I reflash it, it brings back everything. Once I had tried to install Cloudy Gflex as my secondary, I booted it up and it gave me a log. I tried removing the boot.img from it as previously stated and it didn't work and gave me an error.

Here's the log with no boot.img: http://pastebin.com/BAgQ7h40
[G2 Original Android Development] bart452:
we should be able dualbooting the kernel with a custom autoboot, [MENTION=4316709]savoca[/MENTION] made one in the past. http://xdaforums.com/showthread.php?t=2704155

I hope this helps, as I don't know much about bootloaders and recovery's
[G2 Original Android Development] vPro97:
Fantastic find!!!
[G2 Original Android Development] savoca:
Oh man I need to update/refresh that.. :rolleyes:
[G2 Original Android Development] :
I've realized the brightness on the MultiROM screen where you choose what ROM to boot into is REALLY dim.
[G2 Original Android Development] JamieD81:
change it in multirom settings in recovery.
[One (M7) Q&A, Help & Troubleshooting] hcrcorp:
First , Hi to the entire community that help me a lot of time !

I have downloaded a file called " twrp-2.7.0.0_Signed.zip" on my Htc one M7 under my previous version of trwp so 2.6.3 . My phone restart and then doesn't turn on .

Ive tried to use power + vol down trick and some others to enter hboot menu but nothing happen . When i plug it with usb cable or sector one , nothing happen no light nothing .

But when it's plugged on my computer and when i push the power button + vol down , i can hear a windows ring like something is connected by usb port . But nothing appear on the device manager .

It is definitively bricked ?
[One (M7) Q&A, Help & Troubleshooting] majmoz:
Have you tried shining a bright light over the light sensors while holding down the PWR button and Vol down? You might also try the RUU for your phone even though the computer doesn't formally recognize it.
[One (M7) Q&A, Help & Troubleshooting] hcrcorp:
Thank you for your quick answer . I've already tried the trick with the light sensor . but i did not try the Ruu solution . i'm gona to do it now :good:
[One (M7) Q&A, Help & Troubleshooting] hcrcorp:
edit : i've just tried The Ruu for my htc one M7 but it returns to an error [170] probably due to this that the phone will not turn on .

i went to my device manager and i can see QUALCOMM HS6USB QDLOADER 9008 on com4 . do i have to rty fix it with le dload reviver.sh ?
[One (M7) Q&A, Help & Troubleshooting] nkk71:
oO, that file you downloaded has the following updater-script:

package_extract_file("boot.blob", "[B][COLOR="Red"]/dev/block/mmcblk0p4[/COLOR][/B]");

i think you're going to have a really hard time fixing this, if it's even possible, which is probably not the case.

maybe best to send it to repair for a motherboard replacement
[One (M7) Q&A, Help & Troubleshooting] hcrcorp:
Thx for your answering , i have time to fix it but i do not have capacity to do it ( i'm a noob )! i have flashed my phone several times and get it soff and so on without any problem . I don't know why i flashed this Zip file without check up the updater script .

i'll try to find a way by the web to resolve my problem and post it after here . Thanks all of you . :eek:
[One (M7) Q&A, Help & Troubleshooting] 2B_4G10:
check for your fastboot status is it recognized by the pc?

if it is flash another recovery...sideload a ROM and you're done.

or

again with RUU but! .exe this time.

EXTREME MEASURE

also there is this old trick where you take a usb cable. cut off the head. have two wires naked and insert the through the charging panel.

this will trigger obligatory android recovery

another way to that recovery screen is less hazardous which is taking a hair blower have it on HOT and pointed to the back of the phone for several minutes.

you can check any of what i said in you tube or forums to elaborate on understanding it.

best of luck
[One (M7) Q&A, Help & Troubleshooting] hcrcorp:
Thank you for your answer ! Nop i don't have any access with my pc to the fastboot and Ruu doesn't work cause my phone doesn't turn on .

I'll see for the old trick ;) .