Jump to content


Photo

[ALPHA 2][B2G] Firefox OS 1.2 by Daredj


60 replies to this topic

#1
daredj

daredj

    Newbie

  • Members
  • Pip
  • 27 posts
  • Devices:huawei ascend g300
  • Twitter:@cristomc

firefox-os.png

Welcome to the Non-Android Zone!

 

 

DISCLAIMER:

Alpha Stage: USE AT YOUR OWN RISK!!!

 

Your warranty will be void if you proceed on this instalation

Anyway, all goes at your own risk, We are not a technical service, if you brick your phone we can advise you, but we don't take care of any unexpected result (EX: bricked phones).

 

Information:

This is the beggining of the Firefox OS for our Huawei ascend G300.

I started to compile using Dazz sources, and here I'll try to publish new versions and fixes as fast as I can.

 

For "noobs": Firefox OS is a new Operative System for some devices. It's 100% Open Source and that allow us to get our own version running on our device.

More information about Firefox OS: http://www.mozilla.o...-US/firefox/os/

 

Screenshots:

Attached File  2013-12-02-10-18-44.png   586.11KB   106 downloadsAttached File  2013-12-02-10-18-54.png   24.13KB   84 downloads

Attached File  2013-12-02-10-19-31.png   624.87KB   81 downloadsAttached File  2013-12-02-10-20-09.png   127.43KB   79 downloads

Attached File  2013-12-02-10-20-21.png   53.08KB   80 downloadsAttached File  2013-12-02-10-20-41.png   109.98KB   82 downloads

Attached File  2013-12-02-10-25-06.png   48.51KB   77 downloadsAttached File  2013-12-02-10-25-59.png   43.43KB   75 downloads

 

Current Stage: Alpha 2

 

Not Working:

  • Camera
  • USB Storage
  • HQ Youtube videos
  • USB internet.
  • Radio FM

 

Working:

  • Languajes: ALL SUPPORTED
  • Everthing else :P

 

Not Tested:

- Audio recording

- Video Playing (due to same camera issue)

- mms (thanks Raquel ;) )

 

Instructions:

  • It requires Android 4+ installed (I recomend ICS due stability), With USB debug mode enabled.
  • Do ALL WIPES AND FORMAT ALL DATA (SD card not obligatory)
  • enter your device in fasboot mode (turn off your mobile, press and hold VOL- & Power during 15 seconds, after thar release the keys).
  • Plug your device to your PC.
  • Flash vía fastboot the 3 images:

example:

fastboot system system.img
fastboot boot boot.img
fastboot userdata userdata.img

After that, just restart your device:

fastboot reboot

DOWLOAD:

 

Alpha 2 CLICK HERE

 

Alpha 1 CLICK HERE

 

SOURCE:

 

B2G: https://github.com/cristomc/B2G

Manifest: https://github.com/c...mc/b2g-manifest

Device: https://github.com/c...ce_huawei_u8815

Propietary: https://github.com/c...y_vendor_huawei

 

CREDITS & Thanks to:

Dazz: Main git repo and base sources. 90% of credits for him

NOTE: Please ask for make derivated sources... If you do it mention Our Work (Dazzo and mine), I'm doing this for learning-

I'm not winning $$ for doing this... but if you want, you can click on the next link and help me to buy a beer during compilations :)


Give a donation (thank you in advance :) )


Edited by daredj, 06 December 2013 - 09:54 PM.

  • 7

#2
daredj

daredj

    Newbie

  • Members
  • Pip
  • 27 posts
  • Devices:huawei ascend g300
  • Twitter:@cristomc

TO-DO for Next Release:

  1. Fix Video problems (if I find the way).
  2. Find battery drain (should last more than now...)

Edited by daredj, 06 December 2013 - 09:50 PM.

  • 3

#3
daredj

daredj

    Newbie

  • Members
  • Pip
  • 27 posts
  • Devices:huawei ascend g300
  • Twitter:@cristomc

Changelog

 

Alpha2 (6-12-2013):

  • Based on my own sources (forked from great dazz work)
  • Fixed DPI and small lags
  • Production release - no more dev apps in the rom ;)
  • Support for all languajes.

Edited by daredj, 06 December 2013 - 09:53 PM.

  • 1

#4
george109

george109

    Hardcore

  • Members
  • PipPipPipPipPipPip
  • 1,105 posts
  • Gender:Male
  • Location:Kent, England
  • Interests:Cycling, Tech and Canoeing
  • Devices:Samsung Galaxy S4 - GT-I9505

Thanks. :)

This (probably) looks nice - all I need to do is wait for the upload! :D


Edited by george109, 02 December 2013 - 05:19 PM.

  • 0

Hello. I have an S4 now, and I hardly ever use MoDaCo now. 

Therefore you will receive no replies to any PMs

Please post in the forum instead. You will get more help there :)

:excl:A WARNING TO ALL G300 OWNERS! Please Read! (The Flash Memory Problem!) :excl:

Tutorial: How To (Officially) Unlock Your Bootloader! (The long way, but which definitely works)

Please, Do not use the HuaweiG300.com Tutorial on how to unlock your bootloader, it is better to unlock it officially with my tutorial!

Spoiler

My Device:

Huawei Ascend G300 (U8815) - Sold!

Samsung Galaxy S4 (Black) - The LTE Version - GT-I9505

(Ignore the links above (if there is one). It's a skimwords (advertising) link and nothing to do with me!)

The ROMS I have used:

Spoiler

Download Blink, a great app that controls the status LED on the G300!

Wait for 5 seconds and then click skip ad! Do not download anything in the ad window, that is not the app!

Did I help you?

If I did, Please press the rep_up1.png button, in the bottom right hand corner of my posts.

(If not, Press it anyway!)

If I really helped you, you could also donate to me. Thanks!  :) 


#5
MrJon

MrJon

    Newbie

  • Members
  • Pip
  • 1 posts
  • Gender:Male
  • Devices:U8665
  • Twitter:@RBX_Dev

Going to try and port this to the Fusion 2. :P

Just need to wait for it to upload.


  • 0

#6
Salamin1

Salamin1

    Regular

  • Members
  • PipPip
  • 81 posts
  • Devices:Huawei G300

Nice! How is the performance compared to GB roms? Which baseband should we have to try it?

 

Thanks!


  • 0

#7
nikbos

nikbos

    Regular

  • Members
  • PipPip
  • 59 posts
  • Devices:huawei g300

Probably 2030


  • 0

#8
mnupea

mnupea

    Regular

  • Members
  • PipPip
  • 118 posts
  • Gender:Male
  • Location:Mallorca, Balearic Islands, Spain
  • Interests:Programing, Android and all related to tecnology.
  • Devices:Huawei Ascend G300
  • Twitter:@manuLpea

Wow! Although I prefer Ubuntu instead of Firefox, but that's a good new!


Edited by mnupea, 02 December 2013 - 07:14 PM.

  • 0

If you like my work you can donate me :D

btn_donateCC_LG.gif


#9
daredj

daredj

    Newbie

  • Members
  • Pip
  • 27 posts
  • Devices:huawei ascend g300
  • Twitter:@cristomc

Well link up, give me some time to take a rest, i spend this last 24 hours in learn how to make it possible...

 

PS: it's alpha until getting camera fixed, will stay on beta until final release of 1.2


  • 2

#10
djuroue

djuroue

    Enthusiast

  • Members
  • PipPipPip
  • 280 posts
  • Gender:Male
  • Devices:Alcatel OT-6030X, Nokia N85
I think that command is fastboot flash system system.img .... Can it be flashed without command FLASH ?!

What do you think about camera?! Is fixing of it a big deal or too hard ?!

I am really looking forward to this one :)

  • 1

Like and use my Huawei G300 Facebook page :

https://www.facebook...500555660012245

5979.gif
47648.gif
39369.jpg
23706kl7.gif
7232ky4.jpg


#11
rhen

rhen

    Addict

  • Members
  • PipPipPipPipPip
  • 629 posts
  • Gender:Male
  • Location:Hungary
  • Devices:Pulse, G300

Good work.

 

I see DPI issue too.

For example the status bar is incredible thin.

Look at the screenshots of FirefoxOS on firefox os site.

On your screenshots, everithyng is smaller.

You should fix this for the release version. ;)


  • 0

GApps package for CM11: [link] (last updated 2014-09-18)
For non device specific issues, use CM bug tracker: [link]


#12
ErasPL

ErasPL

    Newbie

  • Members
  • Pip
  • 2 posts
  • Devices:Huawei G300/U8815

I'd love to translate into Polish (PL). Write on PW  :blush:


  • 0

Sorry for my english  :blush: 


#13
jaiton

jaiton

    Newbie

  • Members
  • Pip
  • 12 posts
  • Gender:Male
  • Location:Russia
  • Devices:Acer CloudMobile S500

Actually it looks more promising than I expected. Of course this OS lacks apps greatly due to its youth) I'm looking forward to trying a more mature variant of firefox os. Thanks for your work :)


  • 0

#14
djuroue

djuroue

    Enthusiast

  • Members
  • PipPipPip
  • 280 posts
  • Gender:Male
  • Devices:Alcatel OT-6030X, Nokia N85

Sometimes waking up device can be hard... When i click power button, nothing happens, just button lights show up, and nothing else... Then i click volume buttons and screen turns on .... :)


  • 0

Like and use my Huawei G300 Facebook page :

https://www.facebook...500555660012245

5979.gif
47648.gif
39369.jpg
23706kl7.gif
7232ky4.jpg


#15
celrau

celrau

    Regular

  • Members
  • PipPip
  • 62 posts

Camera works with revision v1.0.0 but not after. The power button issue got fixed recently in master (v1.3). I would start the port with gaia/gecko rev 1.1.0hd which is pretty stable (to get rid of test apps use export PRODUCTION=1 and export GAIA_DEV_PIXELS_PER_PX=1.5 in .userconfig for correct DPI) and figure out the camera and everything else from there.

Good luck.

 

One thing I forgot related to correct DPI, for some reason the DPI is not picked up by the system you must add it manually in /gecko/widget/gonk/nsWindow.cpp:

at about line 500+ replace float dpi = GetDPI() with float dpi = 240.0 as below:

 

 

double
nsWindow::GetDefaultScaleInternal()
{
    float dpi = 240.0;
    // The mean pixel density for mdpi devices is 160dpi, 240dpi for hdpi,
    // and 320dpi for xhdpi, respectively.
    // We'll take the mid-value between these three numbers as the boundary.
    if (dpi < 200.0) {
        return 1.0; // mdpi devices.
    }
    if (dpi < 280.0) {
        return 1.5; // hdpi devices.
    }
    return 2.0; // xhdpi devices.
}


Edited by celrau, 03 December 2013 - 09:53 AM.

  • 0

#16
djuroue

djuroue

    Enthusiast

  • Members
  • PipPipPip
  • 280 posts
  • Gender:Male
  • Devices:Alcatel OT-6030X, Nokia N85

Thank you for answering. I will try something... Is firefox os having some root access or it's system files can be normally edited ?! What file manager should we use ?!


  • 0

Like and use my Huawei G300 Facebook page :

https://www.facebook...500555660012245

5979.gif
47648.gif
39369.jpg
23706kl7.gif
7232ky4.jpg


#17
celrau

celrau

    Regular

  • Members
  • PipPip
  • 62 posts

You can't do that in FFOS at least not yet but you have shell access with adb shell command.


  • 0

#18
djuroue

djuroue

    Enthusiast

  • Members
  • PipPipPip
  • 280 posts
  • Gender:Male
  • Devices:Alcatel OT-6030X, Nokia N85

Okay, i will try that :)


  • 0

Like and use my Huawei G300 Facebook page :

https://www.facebook...500555660012245

5979.gif
47648.gif
39369.jpg
23706kl7.gif
7232ky4.jpg


#19
daredj

daredj

    Newbie

  • Members
  • Pip
  • 27 posts
  • Devices:huawei ascend g300
  • Twitter:@cristomc

 

Camera works with revision v1.0.0 but not after. The power button issue got fixed recently in master (v1.3). I would start the port with gaia/gecko rev 1.1.0hd which is pretty stable (to get rid of test apps use export PRODUCTION=1 and export GAIA_DEV_PIXELS_PER_PX=1.5 in .userconfig for correct DPI) and figure out the camera and everything else from there.

Good luck.

 

One thing I forgot related to correct DPI, for some reason the DPI is not picked up by the system you must add it manually in /gecko/widget/gonk/nsWindow.cpp:

at about line 500+ replace float dpi = GetDPI() with float dpi = 240.0 as below:

 

 

double
nsWindow::GetDefaultScaleInternal()
{
    float dpi = 240.0;
    // The mean pixel density for mdpi devices is 160dpi, 240dpi for hdpi,
    // and 320dpi for xhdpi, respectively.
    // We'll take the mid-value between these three numbers as the boundary.
    if (dpi < 200.0) {
        return 1.0; // mdpi devices.
    }
    if (dpi < 280.0) {
        return 1.5; // hdpi devices.
    }
    return 2.0; // xhdpi devices.
}

 

 

Thank you for the info, i knew that about screen, but i think that is not fully working, in 1.1hd (i compiled first too), there are some apps with problems with touch events, now I'll make this with v1.2, but if error appears again we must find other solution...

 

Preparing everything for alpha 2 ;)


  • 0

#20
kokesil

kokesil

    Newbie

  • Members
  • Pip
  • 38 posts

hooo this new stuff is still alive'll provar immediately and tell you my impressions and thank you very much for resurrecting firefox  :D


  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users