yashsingh1/xdaforums huggingface dataset:
[Galaxy S II General] HellcatDroid:
Good choice :D ;)

Good news about that!

I played around a bit with Siyah 2.0 kernel and edited it a bit to dance the dualboot - compiling a new testkernel as I type this.

Looking good so far to use it (it's way more complicated to edit the init's on this one for dualboot due to gokhanmoral's clever way of booting Sammy-stock or AOSP based ROMs - there's so much scriptage to go through xD) and he also approved of his kernel being added to the installer app.

So, if things go well, we'll end up with a dualboot that'll work nice for at least most ROMs, not only stock Sammy ones :)

// EDIT

Just tried the testbuilt of my edited Siyah 2.0.

I am happy to report that it properly (dual)booted a Sammy stock ROM and the AOSP ROM "Oxygen" as secondary - WiFi, USB, vibra and SDCard mountage, everything worked fine on BOTH boots (did not test bluetooth).

This is a happy day, I think we reached a level of "stable" that actually makes this "every day use" capable :)

Now I just gotta tweak'n'tune my setup-helper-app so that setting it up will be a breeze :D
[Galaxy S II General] steslatt:
Great news, Good work. Looking forward to the next release :D
[Galaxy S II General] giraldi:
I can't wait....please finale release.....;-)

Inviato dal mio GT-I9100 usando Tapatalk
[Galaxy S II General] DallasJones:
Second rom

Would it be beneficial to have a main use rom, for when you can charge regularly, and a second rom (CM7 for example) that's extremely stripped down, and underclocked with only the essential apps on it for situations that would require a lot of use away from a charger (Camping, long car trips without a car/laptop charger etc.)?

And if so, what second rom would you suggest? Thanks in advance.
[Galaxy S II General] jgrimberg1979:
Would this work on the at&t version of the sgs2?
[Galaxy S II General] HellcatDroid:
I think that's something everyone has to decide for himself, not sure if there's a common "rule" that can be applied.

But running a second ROM that it tuned for battery life does make sense to me, yes.

I have a similar setup, main ROM is stock Samsung, secondary is "Oxygen", a neat, slim AOSP ROM with not much additional stuff in it.

I boot into the Oxygen ROM quiet often when I go to sleep and/or charge the battery.

But honestly, I don't do it for power consumption, my main reason is he good old "because it's possible".

I don't really know the AT&T version, but IIRC custom kernels of the international I9100 don't work on it?

If kernels are not compatible this will not work unless we make a AT&T S2 compatible kernel.

If kernels ARE compatible, this could work, yes.

But as said, I don't really know....
[Galaxy S II General] Tricky103:
Hellcat I feel this thread is about to spring into life..

Buy yourself a few beers on me

(Unique Transaction ID #58781148EB687194W)

Thank you for your hard work.

Looking forward to your release
[Galaxy S II General] HellcatDroid:
Thank you SO much! :)

I'll make sure to invest them into some quallity pints of Guinness <3

The release of v2.00 is very, very close, I am just finishing some final testing and adding some last-minute error-handling (like when there is not enough space on /sdcard for caching or making the secondary system's backup).

It also checks - like suggested earlier in this thread - if partition 12 (where the secondary system is placed) has enough space to fit the system you're caching for later secondary-setup.

If I don't encounter some deadly showstoppers at the last second, I might make it to publish it tonight :)

It will be put into the market - free, of course :)
[Galaxy S II General] tkalli:
Outstanding work.

Looking forward to v2.00.

​
[Galaxy S II General] HellcatDroid:
IT IS DONE! LolBoot v2.00 is in the wild!

Market link: [ LolBoot v2.00 ]

Detaily video showing it off:

http://www.youtube.com/watch?v=BeOFTGESn0g

A bunch'o'screenshots:

(click each one for larger view)

. . . .

Enjoy :)

And be kind when you find flaws/problems/issues.... ;)
[Galaxy S II General] punshkin:
Awesome thank you. how do I update the primary and the secondary rom? Primary still via odin/cwm? What about secondary?
[Galaxy S II General] S0und_:
Imo if you want to update the secondary rom, you need to flash it normally and cache it again.
[Galaxy S II General] HellcatDroid:
Yeah, that's right.

But I'm already disecting ext4utils source to try to get "install from update .tar" working :D
[Galaxy S II General] Tricky103:
Let me know how to change my updater script, we can make rom kitchen flash to either partition.
[Galaxy S II General] HellcatDroid:
Cool :D

It's pretty straight forward:

/system goes to mmcblk0p12

/data goes to mmcblk0p7 (yes, the cache partition xD)
[Galaxy S II General] Tricky103:
Sounds too easy :)

I get a fc using miui to backup as secondary os. I get the lolboot files on the sd card. I am going to carty on with the restore. Should be fine :)

Edit .... ignore the above. I used additional options and removed the secondary os image. Then cleared cache on the app. Worked okay.. now restoring cm7 :)
[Galaxy S II General] jgrimberg1979:
HellcatDroid

I am trying to spark some interest over in our forum to see if we can get a compatible kernal so we can use you app and have a dual boot system. This work rock. I am hoping that it is possible as i am very eager to try and get your sweet creation working on my phone. How difficult would it be to get a compatible kernal? Is it something that could be ported fairly easily?
[Galaxy S II General] Entropy512:
Looks like primarily initramfs tweaks if I'm reading things correctly. I'd poke at it but I'm quite busy with other stuff as it is, like fighting accelerate-to-wait and figuring out how to get the mic audio routing right on I9100 ROM ports.

Hellcat, for info on loop mounts, you might want to take a look at the xdandroid init scripts - loop mounting /system and /data from the SD card is a way of life for the xdandroid crowd.

Oh, and to clarify the post above, "our forum" is the I777 forums (AT&T GS2).
[Galaxy S II General] hofinho:
First of all: fantastic work! :)

How exactly do you handle the tempfs /cache substitution for the second rom? Because atm market download on second rom fails for me due to lack of space even though i have still about 60mb free for user data.

Do you think it is possible to setup a permanent /cache partition (about 30mb would be enough i think) by taking the space from the user data partition of the primary rom? i don't know if anyone has played with the actual partition-sizes and "amount" yet but it's worth a try or?
[Galaxy S II General] HellcatDroid:
Yes, it's fairly easy and IIRC most things are said in the first post, however if there's any questions about it just ask here in this thread :)

Yep, initramfs .rc edits all the way.

I am also already toying with loopmounting and want to get it multibooting off images.

Just need to find some free time to continue messing around with that.

Hm, that's weird, the tmpfs /cache should grant about 400MB "space"....

I personally never used the market on the secondary, but I'll copy my primary over and try from there, maybe I can find something.
[Galaxy S II General] sumeshd:
plz move this thread

please someone move this thread to android development or original development..pleeeease

I missed all the fun of testing and flashing because this thread is here..:mad:

@mods @pulser..pplz move it to original android devel.

@hellcat thank you for being with us and making our life soooo techy and beautiful..
[Galaxy S II General] steslatt:
Same for me.

Also, I can use MIUI as secondary, Checkrom Revolution (samsung based) as primary with no problems but I cant use Checkrom Revolution as my secondary and MIUI as my primary (which is what I wanted). When I try and boot Checkrom as secondary I just get boot loop. Tried it twice with the same outcome.

Has anyone managed to boot a samsung based rom as secondary? If so what rom are you using?

Donated

(Confirmation number: 16295470W24420703)
[Galaxy S II General] Neo.:
Expect a donation soon Hellcat.hell of a job ;)
[Galaxy S II General] HellcatDroid:
*bows to all the supporters* :)

Hmm, and I just tried running a Sammy stock ROM as secondary.... worked fine :confused:

Booted to recovery (stock, non-custom kernel), factory wipe, boot up + initial config, chache away and then setup as secondary - worked.

Have yet to try with a Sammy based custom ROM though.

Did you setup up the Sammy based after a initial config (i.e. userdata almost empty) or were there apps installed or the such?

'cause I tried to just copy over my "normal" (daily use) stock ROM and that failed miserabley due to out of space in the secondary data partion :eek:

(there is one check I missed adding :o)
[Galaxy S II General] netchip:
I have an idea for you (and me :D), edit CWM so we can use nandroid for both the OS's.

Also, try to decompile your own apk files ;)

I have the source of your apps now xD
[Galaxy S II General] HellcatDroid:
Nahhh, the app is so much more nicer :D (also the app's backups take up less space than the CWM ones, my stock ROM backup was ~120MB smaller)

Yah, well, that's Java.

But trust me, if I would have wanted to make the code a secret, I would have ;)

But there is not much voodoo in it, just a few shell commands and some Android UI stuff.... nothing anyone else wouldn't be able to do anyways, so....

But out of curiositiy: what did you use to decompile it?
[Galaxy S II General] netchip:
I used dex2jar and jd-gui.

You cannot make your code secret ;) I decompile the dex file :D
[Galaxy S II General] HellcatDroid:
Is that a challange? :D
[Galaxy S II General] netchip:
If you be able for making a challenge for me, yes do it :D
[Galaxy S II General] hank00k:
Hey HellCat, awesome work man!

I think I possibly ran into a hiccup though. I set up my phone so I have Revolution ROM (its based on a Samsung rom) as primary and MIUI as secondary, works like a charm except I can't install any apps from the market on the primary rom as it keeps saying I don't have any space left even though I have lots.

I now took the secondary rom off using your app and that fixed it for now. So yea I have no idea what's the problem so excuse me if it's something I'm doing wrong..
[Galaxy S II General] steslatt:
I did a full wipe.

Installed checkrom with no user apps apart from lolboot.

Cached with lolboot.

Did full wipe, installed Miui with no user apps apart from lolboot.

Set up cached OS.

Installed dual boot siyah kernel.

Rebooted to recovery (second OS) and got boot loop.

What version samsung firmware did you try xxki4?

I'll give that a try tonight or tomorrow morning.
[Galaxy S II General] HellcatDroid:
@netchip:

Hmm, I'll try to find some time to come up with something :D

@hank00k:

It likely complaining about the space in /cache.

You have this problem on primary or secondary system?

How large was the app you tried to download?

@steslatt:

Hmm, that is weird and really "not nice".

Thank's for the detailed describtion of your steps, I shall investigate this!
[Galaxy S II General] steslatt:
Ok, I did a full wipe, flashed stock samsung rom. Cached as secondary OS.

Full wipe again, installed Miui. Set up secondary OS. Installed dual boot Siyah Kernel.

Rebooted (Miui) everything was fine. Rebooted into recovery (stock samsung) and sucess! it worked :D

The only thing i did different to last time was a normal reboot after dual boot kernel was installed.

Not sure if its checkrom incompatible or not?

Anyway i'm happy now. Miui as primary and stock samsung as secondary (for MHL out).

Still cant install any apps on secondary rom but not a big issue for me.
[Galaxy S II General] HellcatDroid:
Installing .APKs from SDCard work.

The market issue I have yet to check out more.... thats a real weird thing.
[Galaxy S II General] steslatt:
This caused problems for me. It booted the secondary rom then I could not get back into the primary rom. Every reboot just booted secondary rom (normal reboot and recovery). I had to flash rooted kernel via odin then install primary rom again because it would not boot.
[Galaxy S II General] :
Nice work mate! :D
[Galaxy S II General] HellcatDroid:
That's a reproducable beheviour of the S2.

If you reboot via a "reboot to recovery" command from a shell or an app with that function, the S2 will always boot into recovery until it gets a "normal" reboot command again.

If you do a "reboot to recovery" and the S2 is forcefull powered off and you plug in USB/AC it'll boot to recovery instead of charging mode, even on stock kernel.
[Galaxy S II General] steslatt:
Ok so how do I get into CWM again?
[Galaxy S II General] sebarkh:
Two Android monster masters challenged each other!

Run, people, run! ...if you want to survive... :D
[Galaxy S II General] HellcatDroid:
I just tried two downloads and installs off market on a stock KI8 running as secondary - and both worked fine :confused:

During me doing that the market also updated itself which also worked fine.

How large were the apps for those where it didn't work?

And were there many apps installed already?

Since one posted a screenshot of the market complaining about out of space, it might have been that /data was indeed full already - the secondary ROM only has 100MB of /data at the moment....

If it happens on the primary, /cache might be stuffed, as that's were the secodary's userdata is.... (at the moment)

Issuing a "normal" reboot either via shell, an app's function or the "reboot" function of the recovery.

LOL XD
[Galaxy S II General] brendonwardmusic:
Thread marked for future updates. Great work so far :)
[Galaxy S II General] DirkTeur Velserbroncx:
Seems not to be working for me (i'm doing something wrong for sure) but the app gets stuck at caching secondary system and doesnt do anything anymore, or says it,s done caching but when i try to setup secondary (after booting primary) it says there's no cached system there?

I tried with Axlor HD_Blog v2, CriskeloRomGSGII.v30 and with SGSII_NDT_MIUI_GINGER_2.3.7_V4.0_Multilang

are these systems not compatible or is there something else i'm doing wrong

edit: just cached my system(axlor HD_Blog v2) but it took about 40-45 min. to complete( so not just a cop coffee but a whole pot it took).

but now i'm up for part 2

i'll be back for more.
[Galaxy S II General] steslatt:
I was trying to download titanium backup so not very large.

Just lolboot installed and the rest are system apps.

---------- Post added at 09:24 AM ---------- Previous post was at 09:20 AM ----------

It seems to go quicker with the screen on for me. I left mine for around 30-40 mins the first time (screen off) and when I checked it was still not done. The second time I kept the screen on and it was done in around 10-15 mins.
[Galaxy S II General] HellcatDroid:
About caching time:

10-15 min. for a rather large system (like stock) is normal, same for me (yeah, with screen on all the time, not sure how/why screen off make a diff., gotta try).

However, I'll an option/dialog in the next version to cache without compression - takes up more space, but should save a lot of time.

Will do same for the backup option.

About the installing apps / market issue:

No clue what's (not) happening there.

Just tried from an AOSP ROM (Oxygen) and apps downloaded and installed fine from the market....

Weird thing.
[Galaxy S II General] steslatt:
Any chance you could add an option to boot into CWM to? :D

I can confirm apps do install fine from memory on secondary rom. Just not from the market :/ My market also updated itself fine on secondary.
[Galaxy S II General] chiirz:
Yehaa working. Nice. Had an error after 30 minutes of writing the second rom back from cache but on the second try it just worked fine withing 20 seconds. Got stock KI1 and newest MIUI.
[Galaxy S II General] Neo.:
So I can dual boot cognition and cm7?
[Galaxy S II General] yudi7:
Thanks a lot. Worked like a charm. Dual-booted my phone with MIUI and CM7.

Just one question, how do I update each rom if I want to?
[Galaxy S II General] DallasJones:
I personally think a mod should move this to original development. A lot of people would be interested to see this, and correct me if I'm wrong but you did develop this.

On another note, been using this for about a week now. Apart from the difficulties flashing .zip files with CWM, this is brilliant. Keep up the good work, we appreciate it very much!
[Galaxy S II General] punshkin:
brilliant, thank you.

Your next step should be a recovery with options

Flash zip to primary os

Flash zip to second os

Only if you are into doing this stuff though :)
[Galaxy S II General] anirudh4444:
Great job! Faced issues with cm7 and stock.. but It works perfectly with MiUi and 2.3.5 XWKI8... Is there a way to increase the size of the system partition after installation? a couple of hundred megs could help. Cant install stuff from market now due to insufficient space.. forced to download apks...

Sent from my GT-I9100
[Galaxy S II General] DirkTeur Velserbroncx:
Works like a Charme, with Axlor HDblog v2 as primary and SGSII_NDT_MIUI_GINGER_2.3.7_V4.0_Multilang secondary, but with same

market problems and a warning about insuf. space ( about 1,7 mb availlable) after installing a few apps, had some boot problems as well

but after taking the battery out for min. 90 secs it went fine.

looking forward to a next release with maybe more space and flashing options wile on dual boot system.
[Galaxy S II General] HellcatDroid:
About the flashing/recovery options:

I am already investigating how to implement installing directely from CWM .ZIPs (which frankly, is the worst invention EVER in Androidland) and also directely from stock ROM .tars.

Will be part of the app, though, not recovery ;)

And then we'll also face the very first problem again: Bootloop when booting 2nd OS w/o having inizial config already done (that's what the caching way works around).

About space:

I guess everyone is refering to /data.

To get more spave acailable there I need to get booting of images working :eek: :D

Or at least symlinking /data to somewhere else.

Last not least:

If my last tests don't miserabely fail, I'll put v2.02 of the app live tonight.

Fixes a few UI caused crashs and adds option to disable the use of compression for chaching and backup - it's really A LOT faster that way. :)

MEH: pleas dont mind typos, writing from phone ATM xD
[Galaxy S II General] HellcatDroid:
Now live:

fixed a few UI caused crashs / force closes

added option to disable the use of compression for cache and backup operations - significantly speeds up things :eek:
[Galaxy S II General] steslatt:
If you get chance could you update the siyah dual boot to V2.1.1. FM radio doesnt work with v2.0 on MIUI.

Thanks :D
[Galaxy S II General] HellcatDroid:
It's on the ToDo list, yep.
[Galaxy S II General] anrichp:
Great!

This is fantastic, nice for rom testing purposes
[Galaxy S II General] azzinder:
Sorry guys but it doesn't work for me:

Installed Cognition 777r2 as primary OS and CM7 n116 as secondary OS.

Installed Syiah kernel at Cognition.

Primary OS booting nice but secondary doesn't boot at all.

Just stay frozen at the very first screen.

Any help would be appreciate!
[Galaxy S II General] berlom@free.fr:
Hi, first of all it's a very good job you made.

So, if i want ta update each nitghtly of CM7 for example, as the kernel is overwrote, i have do to all form the beginning: flashing second rom, cache, first, cache and kernel?

Well, if it is the it works, i'll wait for the CWM option ;)
[Galaxy S II General] steslatt:
Updating the primary rom is easy. Open lolboot go to kernel options then restore previous kernel. Reboot into CWM flash the new rom/update then reboot. Open lolboot and flash the dual boot kernel again.

Updating the secondary is not so easy and would require going to the beginning again or near the beginning.
[Galaxy S II General] berlom@free.fr:
ok, so I'll test soon, as i want CM7 to be the First rom, and samsung the second

i've hit the thanks button
[Galaxy S II General] Knight77:
Hi just a question: using this great application make - in some way - the rom/phone go slower or is just like you're using a new clean and normal rom?
[Galaxy S II General] HellcatDroid:
There shouldn't be any performance differences.
[Galaxy S II General] niko1986:
I've seen this mentioned by a few debs in other forums and threads. Just wondering what the technical reasons are?
[Galaxy S II General] HellcatDroid:
It's needlessly "uneasy" to work with those ZIPs, contains redundant stuff, contains google stuff (not even properly "moved" into an own namespace) and the list goes on.

There's way more easy ways of achieving the same result, a simple .tar would mostly already do the trick.

Anyways, that said, I got the base of my own script parser done, i.e. it's only a matter of time till the app can process CWM ZIPs and install the secondary system straight from the ZIP :D

After that, I'll also add support to install directely from stock ROM .tar files.
[Galaxy S II General] niko1986:
Guess its just old habits die hard. I personally prefer .tar, seems to be less go wrong with them.

BTW glad your developing for the GS2, always a fan of your work on the PSP :D
[Galaxy S II General] snowblind2142:
First of all, I want to thank you for your work :)

Love the concept. Got cm7's last nightly and miui to boot fine.

cm7 as primary and the latter. I confirm had the second rom had "space" issues..

Also failed to boot in to recovery (via plugging in charger/data cable).. Just wasnt there??

All went well for the first few boots, then cm7 seemed to corrupt itself (think due to the shared kernel)

Had to re flash via odin.

Shame, love the concept, just not sure if I'm a fan of the shared kernel.

look forward to seeing where this goes.

Thanks to all for the hard work.

Good speed with future development.
[Galaxy S II General] HellcatDroid:
Well, I'm totally NOT a fan of the shared kernel, I'd rather have some "bootstrap kernel" decide which one is needed and then fire off the proper/original kernel of the ROM to be booted - if I just knew how to achieve that.... (well there is one way: kexec; but it'd need to be ported to the SGS2, I tried with a buddy (linux pro) for two days to "just compile and run it on the SGS2" until we figured it's a bigger job to actually port it....)

So, for now this is our only way of doing it.

But finding at least *SOME* solution to have a proper kernel for each ROM is definitaly on my wishlist - till then, the Siyah kernel really works nice so far IMO.
[Galaxy S II General] snowblind2142:
Agreed :D

Think this beast needs atleast 2 roms to get max potential.

I mainly want it for batt friendly set up, and a fun set up ;)

Live the work so far. Really promising
[Galaxy S II General] jay_993:
hellcat one of my favourite dev since the PSP days :D
[Galaxy S II General] HellcatDroid:
Wow, no preassure, eh? :D

I'd better do my best not not disappoint anyone :o

That said:

i.e. the app is almost able to process/execute said updater scripts in a CWM ZIP and (while "redirecting" some paths) install the 2nd OS directely from it :D

Quite some work to be done, but definitaly heading into the right direction :)
[Galaxy S II General] wcg707:
Will this work on all variants of SGS2, including the i9100G?

With i9100G being totally unable to use the non-G rom or kernel or modems, don't want to take the risk of bricking the phone YET.
[Galaxy S II General] HellcatDroid:
I don't think it'll work as - like you said yourself - I9100 ROMs and the such don't work, and that goes especially for the kernels.

And the actual dualbooting is all done in the kernel's initramfs - the app is only a mere helper to get the files of the second ROM to where they belong.

But the other way round this would mean: if some one applies the required changes to an I9100G kernel, then yes, the G could dualboot two (G) ROMs as well.

But since I don't have an I9100G in reach, there is no way for me to test a modified kernel, some one with a G would have to do it (build the edited kernel).

To make it even less unfortunate: the stock kernel only works rather nice on stock ROMs (even there it has it's quirks).