yashsingh1/xdaforums huggingface dataset:
[Galaxy S II Original Android Development] Bubble-be:
Ok, got it running as first...the hard way

Tar the system & data from the build.

Reboot to recovery

format system & data

untar the needed files

boot

I guess a similar approach would work for the 2nd rom.

About the OS : it is a bit better than the one from september, but frankly unusable. They still have a bunch of work to do.

I'm puzzled as to why it does not look at all like the previews you can find all over the web with the big icons. It now feels as a clunky launcher and a different skin on android. Booting is hellish fast though, but looking at for example adb you can see that they delay starting other stuff. It takes a while before adb can get a fix.

Surprised they Bing though !
[Galaxy S II Original Android Development] Sithhy™:
Hello. I see that the Firefox OS is a cool OS so here is my question. Will it for the Samsung Galaxy S?
[Galaxy S II Original Android Development] -Grift-:
Get someone to port it over
[Galaxy S II Original Android Development] :
I can't seem to make this work, I already downloaded the data.img and system.img and put it to .secondrom file, and when I boot to second rom, it won't work? Am I doing something wrong?
[Galaxy S II Original Android Development] julle131:
Yes. System.img is meant to be flashed to hidden partition. In .secondrom you should only have data.img and cache.img.
[Galaxy S II Original Android Development] :
Sorry I'm kind of confuse right now, is it ok to ask the instructions on how I can flash the system.img into the hidden partition part. Thanks!
[Galaxy S II Original Android Development] :
Got this to work by using the back up of GM, just one question though, why is the interface different from the one's in the videos? Just wondering... :rolleyes:

Device: Samsung Galaxy SII

Kernel: Siyah 5.0.1+

ROM 1: CMX 4.1.2 Jelly Bean

ROM 2: Mozilla B2G

Modem: I9100DXLP9

"We are all but Kings and Pawns."
[Galaxy S II Original Android Development] julle131:
The video in first post is pretty old.
[Galaxy S II Original Android Development] :
Oh ok, oh by the way jullie, if I want to install your build what will I do? Will I just copy the files? Thanks!

Device: Samsung Galaxy SII

Kernel: Siyah 5.0.1+

ROM 1: CMX 4.1.2 Jelly Bean

ROM 2: Mozilla B2G

Modem: I9100DXLP9

"We are all but Kings and Pawns."
[Galaxy S II Original Android Development] julle131:
My build is meant to be used as second ROM with siyah kernel. So: In siyah recovery, wipe secondrom data and cache. Then move data.img to .secondrom folder. After that just flash system.img to hidden partition. Now it should ask you on boot that do you want to boot to second ROM.
[Galaxy S II Original Android Development] :
Anyone tried the new build by julle? Is it much better than the old builds?

Device: Samsung Galaxy SII

Kernel: Siyah 5.0.1+

ROM 1: CMX 4.1.2 Jelly Bean

ROM 2: Mozilla B2G

Modem: I9100DXLP9

"We are all but Kings and Pawns."
[Galaxy S II Original Android Development] -Grift-:
If you read back a page
[Galaxy S II Original Android Development] :
Yeah just saw it, by the way regarding the post of the one who got it working, why is the interface so much not like the ones we see in youtube? Those have big icons, while ours have not. Hope we also get that build here, coz the one's they're showing in the videos are using our device(SGSII). :confused:

Device: Samsung Galaxy SII

Kernel: Siyah 5.0.1+

ROM 1: CMX 4.1.2 Jelly Bean

ROM 2: Mozilla B2G

Modem: I9100DXLP9

"We are all but Kings and Pawns."
[Galaxy S II Original Android Development] julle131:
There is a new build avaivable in http://harjunpaa.fi/B2G. Just uploaded it. I haven't tested if it works, or what work/doesn't work. I uploaded kernel too, but please avoid using it as it has brickbug. I recommend using Siyah kernel, and installing it as second rom.
[Galaxy S II Original Android Development] akira.pwr:
I gave my S2 to my wife, so, I can't try it :(

Inviato dal mio ST27i con Tapatalk 2
[Galaxy S II Original Android Development] julle131:
Well after flashing and following log cat, it seems that surface flinger does not start. That means that it does not boot.
[Galaxy S II Original Android Development] Bubble-be:
I also made a new build out of curiosity. I needed to reinitialize the build environment though.

I'll share the files once they have finished uploading to my dropbox. Don't expect anything spectacular though. It really is a letdown, while most of the lags are gone, there's nothing much you can do with it.
[Galaxy S II Original Android Development] Bubble-be:
It's been a while, but here you go : https://dl.dropbox.com/u/37945508/b2g-20130115.7z
[Galaxy S II Original Android Development] King_Rat:
One eye on this project :sly:

Keep up the good work

Sending...
[Galaxy S II Original Android Development] faust.deaconu:
What s this?
[Galaxy S II Original Android Development] julle131:
He's B2G build.
[Galaxy S II Original Android Development] faust.deaconu:
What s new?
[Galaxy S II Original Android Development] julle131:
I dont know. To get the list you can check the changes in their github. But they will probably have so many changes they cant find anything "interesting" there.
[Galaxy S II Original Android Development] Bubble-be:
It couldn't hurt to read one post higher.
[Galaxy S II Original Android Development] beyarfaj2004:
can i use siyah v5.0.1 ?
[Galaxy S II Original Android Development] julle131:
Latest siyah should be OK.
[Galaxy S II Original Android Development] Ghost-of-the-Sun:
It's a .7z file... how do I flash it?
[Galaxy S II Original Android Development] julle131:
You extract and flash the files inside it.
[Galaxy S II Original Android Development] Bubble-be:
:rolleyes: I think you're not ready.
[Galaxy S II Original Android Development] mrcaligula:
Fail flash

Hi I get fail in odin when trying to flash that boot2gecko.tar file.

I run Sensation Rom 4.1 ICS

ALso get error in Heimdall . Firmware .xml can'¨t find that. it says . What can I do ?
[Galaxy S II Original Android Development] julle131:
Well, you untar it and flash the img files. This is in pre-alpha state, so are you sure you want to try this?
[Galaxy S II Original Android Development] mrcaligula:
It wont damage to try it ;)
[Galaxy S II Original Android Development] mrcaligula:
*Instructions doesn't say to untar anything. I can't flash img. file in odin. only tar file etc..
[Galaxy S II Original Android Development] lambstone:
Look. You obviously have no idea what to do with the unofficial builds. You should just stay away.

Just a friendly reminder.

You could really brick your device by carelessly flashing stuff in odin
[Galaxy S II Original Android Development] julle131:
You use heimdall to flash this. And you flash all the imgs separately. And remember, B2G kernel has brick bug.
[Galaxy S II Original Android Development] mrcaligula:
Ok thanks for answers. I stay the hell away then .

But it looks interesting. ;)

---------- Post added at 11:12 AM ---------- Previous post was at 11:09 AM ----------

On and on you 're just, another brick in the wall dum dum
[Galaxy S II Original Android Development] kona144:
Hello,

Im building the B2G on my computer with ununtu 12.10 and im having like loads of problems on it, my phone ha the paranoid 2.99 that has XXLP8 modem and i'we added it in the extract-files.sh and it just says all the time that it doesn't have a firmware supported and then i had the problem that it doesn't find my build.prop in my B2G/sgs2-android/system/ folder.

So does anybody that is more experienced with this give a hint what ubuntu to use (12.04 or 12.10).

And i have a problem to add my PATH variable so that the adb starts in glob adb mode or something like that.

Yes im not experienced im just trying for fun and for learning with android development.

Regards. :)
[Galaxy S II Original Android Development] julle131:
You need to use one of the firmware specified in extract-files.sh. If you add your own, be sure you added roght part from your build.prop. ubuntu 12.04 should do it if i remember correctly, but i personally use BackBox 3.0, which is based on ubuntu 11.

ADB i have installed with lazymans guide from http://xdaforums.com/showthread.php?t=921169
[Galaxy S II Original Android Development] kona144:
Thank you for a quick responde. And another question anout B2G i installed it on my phone second rom with dorimanx kernel but when i boot in my second rom i have a black screen. What to do?
[Galaxy S II Original Android Development] julle131:
Well, first thing is to install Siyah kernel. Dorimanx does not have B2G support nowadays. It has the "old" B2G support, and Siyah has new. In case this did not fix the problem, there could be many other reasons. The most common issue might be that Gaia is not installed(The UI), if it is not it, then check the logcat to find out the cause.
[Galaxy S II Original Android Development] kona144:
Thanks again for helping but not working. Il try to build it and then try it. If it will work...
[Galaxy S II Original Android Development] Bubble-be:
In my case, I just downloaded a relevant rom (xwlpd) and extracted it into a folder. Then I build using

export ANDROIDFS_DIR=/root/xwlpd/ && ANDROIDFS_DIR=/root/xwlpd/ ./config.sh galaxy-s2

Yeah, I know it's duplicate, but wouldn't work without.
[Galaxy S II Original Android Development] kona144:
And as a report i flashed Siyah 5.0.1 and had to go to another ROM and i was stuck at kernel startup logo where you chose to go in 1st ROM or 2nd ROM, but with Dorimanx 7.45 (latest) i got to the black screen as i had before but now im going back to jellybam for now and tomorow i'l try and build it.

Thanks julle131 and Bubble-be! (thanked you both :D)
[Galaxy S II Original Android Development] julle131:
Got it to build and work. Do you guys want the data.img, userbata.img and system.img or backup? I'll check if I can create a cqm flashable zip, but no promises as it would be my first one.

EDIT: Well, i cant get the files for zip, and ADB is not working with Siyah for me now. If I'll post zip with system and data files, will someone make it CWM flashable?

EDIT2: Data.zip(put to .secondrom folder after formatting secondrom in recovery), system.img(flash to hidden partition with heimdall) and zip file which includes system and datafiles uploaded to http://harjunpaa.fi/B2G/ I'm too bored to create a website for it. If someone has time to create a nice flashable zip, please do.
[Galaxy S II Original Android Development] Lord AnubiS:
Sorry for asking but, what I'm going to do with the B2G.zip?... :confused: looks like a file to flash with Siyah...
[Galaxy S II Original Android Development] julle131:
It is no use in it's current state. It includes the system files, data files and broken cwm install script. If someone is capable to create a working script for it, it could be used as CWM flashable B2G zip.
[Galaxy S II Original Android Development] Lord AnubiS:
Ok, I get it... I managed to install it. Looks interesting, but it's a liiiiitle laggy. I don't know if it's because is downloading something from the internet or what...
[Galaxy S II Original Android Development] akira.pwr:
R: [PRE-ALPHA] Mozilla Boot-To-Gecko (B2G) - NOT ANDROID, SOMETHING DIFFERENT

Can you post a screenshot? I have no more my S2, so I envy you to have it working :)

Inviato dal mio Nexus 4 con Tapatalk 2
[Galaxy S II Original Android Development] julle131:
Nexus 4? Nice... Can I haz one too? I'll get screenshot if I can. If there is no screenshot utility, I'll use other camera.
[Galaxy S II Original Android Development] akira.pwr:
R: [PRE-ALPHA] Mozilla Boot-To-Gecko (B2G) - NOT ANDROID, SOMETHING DIFFERENT

I think there are more chance now to get a N4, but, don't worry, it's not a war machine, S2 is still a power phone, I miss a lot that phone.

To stay in topic, thanks for screenshot if you can to show us. :)

Inviato dal mio Nexus 4 con Tapatalk 2
[Galaxy S II Original Android Development] Lord AnubiS:
I can't do it right now, my camera has no battery and I don't know if B2G can take screenshots...

As son as I can I'll do it. :good:
[Galaxy S II Original Android Development] akira.pwr:
R: [PRE-ALPHA] Mozilla Boot-To-Gecko (B2G) - NOT ANDROID, SOMETHING DIFFERENT

Don't worry, I've asked because I'm curious, I've tried time a go to flash b2g, but with no success.

Inviato dal mio Nexus 4 con Tapatalk 2
[Galaxy S II Original Android Development] julle131:
Here we go. Pictures attached and in this post
[Galaxy S II Original Android Development] ilpolpi65:
flashed ok!:good:

thx !!
[Galaxy S II Original Android Development] Bubble-be:
I compiled a new build today. Data connection/wifi is working, bluetooth to the carkit only half-assed.

I don't understand why they only allow to import contacts from sim or fb. Should they set up sync to google you can test more stuff, but admittedly a bigger risk all together. Anyway, looking better, but very laggy and nothing to do once you're in. We really could do with a file manager as gallery or video keep spinning without displaying anything.

https://www.dropbox.com/s/7pgkr7gola9q16i/b2g-0602.7z

steps:

1. Extract to clockworkmod/backup/

2. Flash Siyah & reboot to recovery

3. Wipe 2ndROM data

4. Restore as 2ndROM

5. Reboot to 2ndROM

6. Mozilla!
[Galaxy S II Original Android Development] lgv2800:
Sv: [PRE-ALPHA] Mozilla Boot-To-Gecko (B2G) - NOT ANDROID, SOMETHING DIFFERENT

Thanks

Hit Hard The Thanks Button If I Helped :)

Sent from my GT-I9100
[Galaxy S II Original Android Development] julle131:
I'm updating it too every few days. SMS is OK, WiFi is OK, 3g is OK. Camera does not work nor does microphone. In call I can hear the other person but the other can't hear me.

Today I downloaded the code to my desktop. It built so much faster than my laptop. Maybe because amd Phenom 2 x4 970 @3.9ghz > amd A8-3500@1.5ghz :D

If they fix the mic, I'd call this alpha.

My apologies for not posting my builds, but with 8/1mb connection uploading takes time.

That irony:
[Galaxy S II Original Android Development] olarf:
AW: [PRE-ALPHA] Mozilla Boot-To-Gecko (B2G) - NOT ANDROID, SOMETHING DIFFERENT

I try your build and its realy promissing. Many thanks for all your work!!! Send via 3M/256K line :)
[Galaxy S II Original Android Development] furbyx92:
Is working only on ICS 4.0.3? Or I can use it whit jelly bean?
[Galaxy S II Original Android Development] ilpolpi65:
I have a dualboot with cyano 10.01... it's works ok
[Galaxy S II Original Android Development] Bubble-be:
Yeah, I saw that too :)
[Galaxy S II Original Android Development] olarf:
AW: [PRE-ALPHA] Mozilla Boot-To-Gecko (B2G) - NOT ANDROID, SOMETHING DIFFERENT

I don't see a relation to the android os you use, the kernel should fit and then you can load it as second ROM if you have dual boot.
[Galaxy S II Original Android Development] furbyx92:
I ask because in the mozilla developer says that has to be ics 4.0.3, but if you say that is not needed is not needed. :D
[Galaxy S II Original Android Development] Bubble-be:
It is used as source for the drivers etc. when compiling.
[Galaxy S II Original Android Development] olarf:
AW: [PRE-ALPHA] Mozilla Boot-To-Gecko (B2G) - NOT ANDROID, SOMETHING DIFFERENT

Yes but once it is compiled the b2g should be independent, right? Mine run together with 4.1 anyway
[Galaxy S II Original Android Development] julle131:
Yes. I have 4.2 and B2G.
[Galaxy S II Original Android Development] mrcaligula:
I wish there was instructions for this in one post and the files also attached. In this thread this is jungle.:cyclops:
[Galaxy S II Original Android Development] olarf:
AW: [PRE-ALPHA] Mozilla Boot-To-Gecko (B2G) - NOT ANDROID, SOMETHING DIFFERENT

Mh this is a pre alpha dev thread and Bubble-be was so kind to share a nandroid which make it possible for all to take a look into b2g very easy. Bubble-be add also a short but clear howto. All this is just one page back. So no reason to complain. If you cant follow the Option Bubble-be offer you should wait until b2g is after beta :D
[Galaxy S II Original Android Development] max9979:
Latest Fully Working Build Needed

Hello julle131. It seems you have been actively posting your build to the forum. However being a big fan of Gecko and a bit impatient, I would request if you could post a fully functional build with MIC function working for the eager S2 users to try out...:fingers-crossed:
[Galaxy S II Original Android Development] julle131:
Sorry, no can do :(. I know how to build this, but not how to code. In other words, I only build but not develop.

Anyone else who builds this: I have got the last couple if days only nonworking builds. How about you?
[Galaxy S II Original Android Development] max9979:
Thank You

Thank you julle131 for your prompt response. I would urge all developers too pool in and upload a working build as coming so close and a single element like MIC not working is a bit disheartening. So a request to developers to help the users of S2 out in running this magnificent OS on our phones.:good:
[Galaxy S II Original Android Development] julle131:
Note to self

https://bugzilla.mozilla.org/show_bug.cgi?id=755405 includes patch to make mic work, but will break ringing. I need to test it.
[Galaxy S II Original Android Development] max9979:
Solution in flashable zip needed

Thanks Julle131 however I aint a developer either so can someone help convert the solution into a flashable zip and see if the ringer issue could also be solved this would finalise a beta build which would work. Thanks for your prompt response. :(
[Galaxy S II Original Android Development] julle131:
I have over 1000 posts and I'm still a noob. Not bad. I'm building B2G with patch from the link. Let's hope it works, so this could be called beta. I haven't been able to make zip file, and the only zip made has disappeared. If the build successes, it'll take 30min, if there are error, maybe more.

Edit: I got some good and some bad news. Good news is that build was successful. Bad news is that gaia does not start for some reason.

Now I got it to boot... I'll do and upload a nandroid asap.
[Galaxy S II Original Android Development] max9979:
Thanks julle131 thats an amazing effort from your end. We you able to solve the ringer issue too. God bless if this build works successfully. All credit goes to you if this beta succeeds will be a ray of hope for S2 users. Keep it up :good:
[Galaxy S II Original Android Development] julle131:
I'm sorry, but I couldn't get the nandroid. This means it has to be flashed a bit harder way. I'll upload data.rar and system.img when i have time, hopefully withing 3 hours. Installing with these files require heimdall version 1.3.1, siyah kernel and a bit time.

1. Unrar data.rar to get data.img

2. In recovery wipe secondrom data/cache to generate cache.img and data.img to your phone.

3. Move extracted data.img to .secondrom folder in your phone any way you like. What i usually do is mount sdcard in siyah recovery and then drag&drop the data.img to .secondrom folder.

4. Boot your phone to download mode and flash system.img to hidden partition. It is called hidden or hiddenfs.

5. Reboot your phone. It should now prompt you if you want to boot to second rom. Press home button.

6. B2G should now load.

The mic is now working, but ringing is not :(. But the phone still vibrates when someone calls so you should notice it.
[Galaxy S II Original Android Development] max9979:
Thank you julle131, however i have just one question is how do u flash system.img to hidden partition. I have been using Odin dont know how do u do so using Heimdall? Could you elaborate.
[Galaxy S II Original Android Development] julle131:
Follow this guide to install USB driver.

http://xdaforums.com/showthread.php?t=1113195

Then open heimdall and go to the last or second last tab(can't remember) where you can download pit and detect device. Press detect, and if it detects, download the pit file using the section below the detection.

I have to restart my phone in this part again to download mode.

Then go to the flashing tab and choose pit file in top that page. Choose the pit file you downloaded earlier. Click add below(?) That white box. Then click the new line that appeared in the big white box and check the left side of the box. It has a drop down list with the same text as in the white box. From there choose hidden. Then go to the box below it and navigate to system.img. then just click flash.

Download link to system.img and data.rar: http://harjunpaa.fi/B2G/

Got them uploaded :)
[Galaxy S II Original Android Development] max9979:
Julle131, you have been a great help. You have really worked magic trying out this build in a moment. Hopefully your next would resolve the ringer issue too...Cant thank you enuf for the wonderful work you have done. Keep it up and continue with the efforts :good::good::good:

---------- Post added at 02:46 PM ---------- Previous post was at 02:27 PM ----------

I am unable to get the download button for PIT to work its grayed out but it prints the PIT file without any issues? Please advise...
[Galaxy S II Original Android Development] julle131:
Here is a picture I made for you :D
[Galaxy S II Original Android Development] max9979:
Hi Julle131 I flashed the system image using the following command from heimdall command line and did the rest as u said

heimdall flash --hidden system.img

However all i get is mozilla technology...second screen small black box within big white box and thats it....it keeps boot looping nothing else I am really disheartened.:(:(:(:(
[Galaxy S II Original Android Development] julle131:
Well i had the same. That was the problem I was talking about before, but I got it fixes by using the data.img and by flashing directly. Only thing to try what I can think of is putting the data.img again to .secondrom folder. Just to be sure, you did not wipe after putting the data.img?
[Galaxy S II Original Android Development] max9979:
Question Julle131 is how do I directly flash the data,img if you could enlighten me?
[Galaxy S II Original Android Development] julle131:
Sorry if I gave that kind of impression. I meant flash directly from source. When flash is done from source, it installs Gaia through ADB. Data.img contains all the files which flashing from source transfers to device.
[Galaxy S II Original Android Development] max9979:
Yes Julle131, however how do I flash from source? Please provide me with detailed steps that would be much appreciated...:good:
[Galaxy S II Original Android Development] julle131:
https://developer.mozilla.org/en-US/docs/Mozilla/Firefox_OS/Firefox_OS_build_prerequisites

You have to build B2G yourself :)

If you do that you are almost on the same level with me. I have just applied 1 patch. Mozilla has good guide about building. Just follow the link and you can do it.
[Galaxy S II Original Android Development] max9979:
I am just a flashoholic love flashing roms not a coder or developer so if you could help with nand back up would be gr8 or else i really need to wait for someone to post it unfortunately i am a novice in development. Would be gr8 if u could upload a nand back up. Rest is upto u :(
[Galaxy S II Original Android Development] julle131:
Well... I tried getting the nabdroid 3 times. I could try doing it with B2G later. If I do it with B2G kernel, after you restore it you must flash siyah kernel without wipes, I REPEAT, no wipes. B2G stock kernel has BrickBug.

And by the way.. I not developer either. those directions instructed everything
[Galaxy S II Original Android Development] max9979:
Thanks Julle131...If I get you right post restoring the nandroid backup without restarting you would like me to flash the Siyah Kernel from within CWM and then restart am I correct?
[Galaxy S II Original Android Development] julle131:
Yes. None wants to use a kernel with brickbug. When I get you the backup(hopefully within 1 hour), restore it to secondrom directly from siyah kernels dual boot menu. And after that reflash siyah kernel, just to be sure.
[Galaxy S II Original Android Development] max9979:
Okay will try out and provide feedback hopefully things should work. Neways thanks for your rocking efforts you are a star. Kudos my friend...