Want to start with AOSP JB 4.2 - experienced developers are welcome :)

Search This thread

andy572

Inactive Recognized Developer
Sep 4, 2010
2,395
3,937
Germany, Munich (Deutschland, München)
Hi all,

i want to start with AOSP 4.2 for our SGS3 i9300 - is anybody interested to develop and publish a AOSP based rom with me?
I'm a real application developer (C,C++,JAVA,PHP,MySQL,some Oracle PLSQL) and now its some cold out - i have time to do
some nice things :)

I think a team of 2 or 3 developers should be enough to develop on this rom, as we can use a lot from AOSP 4.1.2 ;)

### EDIT
As long as no one has found to help, here a short description of current progress:

- Code is pure based on AOSP 4.2 but some snippets of CyanogenMod to bring up hardware (camera,graphics,audio)
- Device is bootable (no other boot.img required anymore)
- Bootanimation is working
- Mount of partitions is working
- Deodexing is working
- adb, debuggerd and root access is working

Not working: a lot :D
- Graphic not working perfect, needs a kernel patch or a working gralloc/hwcomposer/hwconverter to work without laggy PMEM)
- Camera can not be activated due to a missing function call (undefined reference, maybe it can be solved with a newer driver)
- Audio: missing speaker device (Code have to reworked to work with stagefright and tinyalsa libs)
- USB/internal SDCard: cant be mounted (error message sounds like the device is mounted twice, have to find the error in init process)
- RIL not working (Java file from CM10 have to be integrated in frameworks/opt/telephony)

Currently, i'm working on the Graphic problem and USB part to bring up the device to a stable UI :)
 
Last edited:

hop3l3ss1990

Member
Jul 28, 2010
31
10
33
Ulm
Good evening,

Well how have you imagined that? Do you have build something like that before or would this be your first attempts to build up a rom from scratch? Do you know what's all necessary to contribute for that?

I would try to help you, but I have clearly to say that I haven't done anything like this before. I'm in the last term of my study of technical computer sciences, working in a company as application programmer for C/C++ and Java(Android). Due to my studies I have also some knowledge about hardware programming, down to read/writing some code in assembler. I would be interested to this if I get introduced to the topic and some help with the necessary tool chain wouldn't hurt too ^^.

greetings :)
 

andy572

Inactive Recognized Developer
Sep 4, 2010
2,395
3,937
Germany, Munich (Deutschland, München)
Good evening,

Well how have you imagined that? Do you have build something like that before or would this be your first attempts to build up a rom from scratch? Do you know what's all necessary to contribute for that?

I would try to help you, but I have clearly to say that I haven't done anything like this before. I'm in the last term of my study of technical computer sciences, working in a company as application programmer for C/C++ and Java(Android). Due to my studies I have also some knowledge about hardware programming, down to read/writing some code in assembler. I would be interested to this if I get introduced to the topic and some help with the necessary tool chain wouldn't hurt too ^^.

greetings :)

I have successfully built a rom in year 2010 for the LG-P500 device, based on CM7 and modified it in a strange way, so i included a lot of nice things
written from scratch - this rom was a unicate;) ... later, i developed the "Phoenix Launcher" for Gingerbread enabled devices, but its development is currently
frozen because its strange to support every or almost every device with a bugless launcher. In the last months i learned a lot about android and have to re-think about
what i'm able to do, and what i want to do. In the summer of 2011 i bought my SGS3, the first thing i was doing was to remove that samsung crap from my device and
have installed AOKP. So now it's time to do my own thing again - i want to have AOSP as i think for me its the best Android solution for myself and want to publish it
to other users who think "thats ok for me" too :)

In short, it doesnt matter if its your first rom - its enough if you know about basic things like "how is android doing all that nice things", "how to debug code", "how to fix
some bugs (even strange bugs)" and some experience with git and github. All other you can learn in a very short time - i've learned the most of things with try & error :)
 

hop3l3ss1990

Member
Jul 28, 2010
31
10
33
Ulm
I have successfully built a rom in year 2010 for the LG-P500 device, based on CM7 and modified it in a strange way, so i included a lot of nice things
written from scratch - this rom was a unicate;) ... later, i developed the "Phoenix Launcher" for Gingerbread enabled devices, but its development is currently
frozen because its strange to support every or almost every device with a bugless launcher. In the last months i learned a lot about android and have to re-think about
what i'm able to do, and what i want to do. In the summer of 2011 i bought my SGS3, the first thing i was doing was to remove that samsung crap from my device and
have installed AOKP. So now it's time to do my own thing again - i want to have AOSP as i think for me its the best Android solution for myself and want to publish it
to other users who think "thats ok for me" too :)

In short, it doesnt matter if its your first rom - its enough if you know about basic things like "how is android doing all that nice things", "how to debug code", "how to fix
some bugs (even strange bugs)" and some experience with git and github. All other you can learn in a very short time - i've learned the most of things with try & error :)

This all sounds interesting for me and yes I like the idea of developing a own clean rom with some cool additional stuff, too. But what would be the first steps to a new rom? Have you begun with all the administration stuff like setting up a new gitrepo, make a to do list etc...?
I think Code debugging and writing some new stuff wouldn't be a problem for me but what are you meaning excactly with "how is android doing all that nice things"? How it build up, deep level architecture? Well, I know how the "normal" Linux system is working, how modules are getting loaded into the kernel... But how this is correctly working on android I have to learn at first and if there is a chance to do that I would do it :)

Currently on my S3 is SlimBean and till that there is still no update to 4.2 I'm happy with it, but exploring something new would be pretty cool :)

Do you have an IRC chat room or something like that? I've to go offline now, my girlfriend wants more attention.^^ But If you want, I' m willing to try to contribute to the rom :)

PS. I'm sorry for my bad English and hope its understandable, but outside from here you can talk to me in German ^^
 

wmc90

Senior Member
Jun 3, 2008
121
37
If you want to help the AOSP experience on our phones the best place to do it is with the CyanogenMod guys. You'll find pretty much everything based on AOSP (including people that port Vanilla AOSP and AOKP) is using a CM kernel.

They're likely working on the merge now in terms of getting CM10.1 out (with Android 4.2) but most of our CM guys are pretty burned out on working with Samsung's subpar reference material to get basic stuff working (mostly HWC). If you think you could help with this, this would be provide a massive boost to the whole community that want to run these phones on an AOSP based ROM and they would be very grateful.

Gotta warn you though it sounds like it'll be an uphill struggle to get the rest of the stuff working right; unless Samsung release some decent sources for HWC.
 
Last edited:

andy572

Inactive Recognized Developer
Sep 4, 2010
2,395
3,937
Germany, Munich (Deutschland, München)
Currently i have only downloaded the AOSP sources and started to integrate most of the configs. Currently it cant compile because AOSP is not AOKP/CM10
where i got the device and vendor directories, so i have to make some changes in the basic system. if it's compiling to the end, i open a fresh github account
and upload all my modifications. The compile process stops currently on audio,OMX plugins, graphics and camera - most of that are small pieces of changes
i have to make - i think, tomorrow (its monday in germany here) i can upload all and then we can start to develop on :)
 

haydar100

Senior Member
Jul 18, 2007
150
12
Deventer
Currently i have only downloaded the AOSP sources and started to integrate most of the configs. Currently it cant compile because AOSP is not AOKP/CM10
where i got the device and vendor directories, so i have to make some changes in the basic system. if it's compiling to the end, i open a fresh github account
and upload all my modifications. The compile process stops currently on audio,OMX plugins, graphics and camera - most of that are small pieces of changes
i have to make - i think, tomorrow (its monday in germany here) i can upload all and then we can start to develop on :)

Wish i could help (just started learning JAVA ) ! gl with this awesome project
 

slaphead20

Senior Member
Feb 13, 2011
11,309
4,718
Out there somewhere
Xda user krarvind should be able to give you some useful hints, you will have to contact him through the RD forum as his pm is locked down, or I could possibly put him in contact with you
 
  • Like
Reactions: andy572

hop3l3ss1990

Member
Jul 28, 2010
31
10
33
Ulm
Currently i have only downloaded the AOSP sources and started to integrate most of the configs. Currently it cant compile because AOSP is not AOKP/CM10
where i got the device and vendor directories, so i have to make some changes in the basic system. if it's compiling to the end, i open a fresh github account
and upload all my modifications. The compile process stops currently on audio,OMX plugins, graphics and camera - most of that are small pieces of changes
i have to make - i think, tomorrow (its monday in germany here) i can upload all and then we can start to develop on :)

How it's going forward? :)
Maybe it could be useful to publish the github link when it's ready and some more information like staus, on first post :)
In the next days I have some trouble with my exams ( in two weeks I'm completely finished with my studies ^^) but I think if there is something to do I'll find some time to work on. :)
 

andy572

Inactive Recognized Developer
Sep 4, 2010
2,395
3,937
Germany, Munich (Deutschland, München)
How it's going forward? :)
Maybe it could be useful to publish the github link when it's ready and some more information like staus, on first post :)
In the next days I have some trouble with my exams ( in two weeks I'm completely finished with my studies ^^) but I think if there is something to do I'll find some time to work on. :)

current state:
- patched android/build so we can compile the kernel within the main compile process
- patched android/build main.mk file so we can use OpenJDK or Oracle JDK
- added android/vendor/aokp and android/vendor/samsung tree from AOKP (its the most useful directory structure)
- added android/hardware from AOKP so we have all that Exynos things that are needed, even by AOSP
- modified android/frameworks/native/include so a OMX Plugin header can be found
- modified android/libhardware and patched gralloc module

currently it compiles to the Webkit library, most of all apps, libs and binaries are building without errors - the next problem
to solve is the PRODUCT_COPY_FILES ****: nothing of proprietary files are copied to the android/out directory, seems like
a bug in android/build too.

For only 2 days trying to compile to the end without errors its a very good cut :D
 

andy572

Inactive Recognized Developer
Sep 4, 2010
2,395
3,937
Germany, Munich (Deutschland, München)
here we go: it compiles to the end and a flashable "JOP40" zip could be created :)

tryed to flash, but it gives errors in CWM: have to remove the recovery folder and the recovery.sh file from etc folder in the ota zip file, but it doesnt boot up - got a black screen only.

do we need a new or patched kernel instead the CM10 smdk421x one?
 
Last edited:

b-eock

Senior Member
Dec 30, 2010
3,591
1,398
Dallas, Texas
Well does it have all the closed source libraries fron the phone? If not, it wont boot. Dont think i am calling you stupid, you obviously know what you are doing, but maybe you forgot. Idk. Check that. Try running a log cat and debug that.

Sent from my GT-I9300 using xda premium
 

andy572

Inactive Recognized Developer
Sep 4, 2010
2,395
3,937
Germany, Munich (Deutschland, München)
Well does it have all the closed source libraries fron the phone? If not, it wont boot. Dont think i am calling you stupid, you obviously know what you are doing, but maybe you forgot. Idk. Check that. Try running a log cat and debug that.

Sent from my GT-I9300 using xda premium

Thanks for the hint, yes i have all files included - i cant connect to adb, i see only small colored point on the top left side and a sensor
is red blinking (the one to the right of the speaker.
 

b-eock

Senior Member
Dec 30, 2010
3,591
1,398
Dallas, Texas
That would be the proximity sensor near the top front speaker. Cant connect, adb binary in /system/bin or xbin?

Sent from my GT-I9300 using xda premium
 

Top Liked Posts

  • There are no posts matching your filters.
  • 72
    Hi all,

    i want to start with AOSP 4.2 for our SGS3 i9300 - is anybody interested to develop and publish a AOSP based rom with me?
    I'm a real application developer (C,C++,JAVA,PHP,MySQL,some Oracle PLSQL) and now its some cold out - i have time to do
    some nice things :)

    I think a team of 2 or 3 developers should be enough to develop on this rom, as we can use a lot from AOSP 4.1.2 ;)

    ### EDIT
    As long as no one has found to help, here a short description of current progress:

    - Code is pure based on AOSP 4.2 but some snippets of CyanogenMod to bring up hardware (camera,graphics,audio)
    - Device is bootable (no other boot.img required anymore)
    - Bootanimation is working
    - Mount of partitions is working
    - Deodexing is working
    - adb, debuggerd and root access is working

    Not working: a lot :D
    - Graphic not working perfect, needs a kernel patch or a working gralloc/hwcomposer/hwconverter to work without laggy PMEM)
    - Camera can not be activated due to a missing function call (undefined reference, maybe it can be solved with a newer driver)
    - Audio: missing speaker device (Code have to reworked to work with stagefright and tinyalsa libs)
    - USB/internal SDCard: cant be mounted (error message sounds like the device is mounted twice, have to find the error in init process)
    - RIL not working (Java file from CM10 have to be integrated in frameworks/opt/telephony)

    Currently, i'm working on the Graphic problem and USB part to bring up the device to a stable UI :)
    47
    Graphic is up and running stable, with NEW drivers, patched and bugfixed by me.
    Android 4.2 has removed PMEM memory allocator and is now using ION for faster UI - now, our beloved i9300 is using ION and its
    fu**ing fast.

    Next step to fix: integrate the RIL component so i can login to my phone :laugh:
    30
    Here ya go: first release is ready to test :)

    ### ATTENTION ### WARNING ### PLEASE READ BEFORE INSTALL

    This ROM isnt ready for daily use. Do not expect a fully working smartphone when flashed this software.

    Known bugs/issues:
    - NO SMS/MMS can be received or send (RIL isnt fully patched at the moment of this release)
    - NO movie can be recorded (recorded movies have distorted green frames only, sound works)
    - NO movies can be played: so Youtube apps and others arent fully working (OMX needs patched, nothing found to fix that currently)
    - Bluetooth and NFC isnt working for now, needs to be fixed
    - JB compatible apps can have lags when scroll through list views, better use apps for JB - they have new implemented code and working fine
    - NO code is optimized, so you can have lags or crashes at all around your device

    /********************************************************************************************************
    *
    * !!!!! DO NEVER INSTALL GAPPS FROM CM-10.1 ---- ITS NOT WORKING WITH AOSP !!!!! (needed GApps are included with this rom)
    *
    ********************************************************************************************************/

    All other should work fine :D

    ### INSTALLATION ###
    1) Install the ~~~latest~~~ recovery (i use the CWM 6.0.1.2 at this time), install it with ROMManager (free market version is enough)
    2) Flash the downloaded ZIP file
    3) Wipe ALLLLLLL - Dont use Backups, its not working at all - please reinstall your things as needed!
    4) reboot your phone
    5) Enjoy the first AOSP alpha version on your device :)

    Download:
    i9300-AOSP-JOP40D-rc0.zip

    Please, do not share this URL - its a testing version only and not stable.
    You can post here for mirrors, thats OK :)

    Have nice X-MAS days, get a lot of nice gifts and, at last: we see us here again with a mostly fixed and better
    ROM and a new opened message board thread the next time - i cant say when, i think after the X-MAS days :)

    Greets from Munich, Germany
    Andy
    25
    currently i'm fighting against fu**ed up encryption of /data partition - i stuck on the UI screen "Encryption unsuccessfull" and RIL isnt working (so no GSM/mobile Data), all other is working as i can see in logcat. No more errors :)

    Means: the next week i have my christmas holiday and a lot of time to fix things ... maybe AOSP 4.2 can be flashed soon and on Christmas :D