[Q] How to develop ROM? - XPERIA X8 General

Hi,
I want to know how can I make my own ROM using paul's ICS sources or build it from the CM9 sources, which software I need to use and is this tut good for beginning?
www(.)theunlockr(.)com/2010/03/26/how-to-create-your-own-custom-rom-for-android-part-1-setting-up-the-kitchen/?
PS: I also want to add the reason why I don't contact with paul is that I wanted to learn & develop it only for me & mine friends
Ofc. for X8 and on nAa kernel ;3

do you know JAVA atleast?
EDIT: wait, you want only to make the build, or to work on the rom and on the source?
EDIT2: Wrong section btw, you should asked on Q&A's

Java on basic level, I do not know any of it's APIs but I can learn them ( I don't know Android API too )
C/C++ on intermediate level
First build it from source, after successful modify source and compile ROM.
MOD: Please move to Q&A if possible, thanks.

You could read my thread (look at my signature). I wrote all the stuff you need to know of ROM-compiling. There's also a thread about kernel making.

eagleeyetom said:
You could read my thread (look at my signature). I wrote all the stuff you need to know of ROM-compiling. There's also a thread about kernel making.
Click to expand...
Click to collapse
Dzięki
Thanks at all, you got the point. I'll try to compile it using yours tut and post result here And one more thing, developing CM9 for X8 build for which phone i need to base on? And where I can get hmmm... X8 Driver sources? Adreno libs and others?

Right now we don't have sources for X8. You need to port most of libs. You could also paul-xxx's drivers from his github. Good luck If you have some questions PM me, I'll help if I'll be able to.

NeveHanter said:
And one more thing, developing CM9 for X8 build for which phone i need to base on?
Click to expand...
Click to collapse
doixanh based his GingerDX ROM - based on Gingerbread - on the Hero source tree. If I recall correctly I read somewhere that a CM9 port to the HTC Hero exists; that might be your best shot as the phone is about the same specs as the X8.
And as eagleeyetom wrote: You either use paul-xxx's drivers or you reverse engineer the Eclair drivers and write them anew from scratch (if your thought was going into the direction of the kernel) - there's no CM9 port for the X8. Your best option would be to try and find devices having a matching hardware component and porting the drivers from there - but chances are pretty slim that other phones use the same hardware SEMC stuffed into the X8.
---------- Post added at 09:13 PM ---------- Previous post was at 09:03 PM ----------
Update: paul-xxx also maintains a GIT repo with a msm7227 kernel ...
paul-xxx / semc-kernel-msm7227-ics
EDIT: Along with some other interesting repos ...
- android_hardware_qcom_camera
- Xperia-TI-Wlan
- android_device_semc_msm7x27-common
These three at least seem to relate to the X8 "Shakira"

Thanks all for help, now I have some basic workaround with this
And one off topic question
ICS is running on 3.0.3 kernel, yes? So why we don't try to port it for X8 and using old 2.6.xx?

NeveHanter said:
And one off topic question
ICS is running on 3.0.3 kernel, yes? So why we don't try to port it for X8 and using old 2.6.xx?
Click to expand...
Click to collapse
It seems the genuine Google AOSP ICS is running Linux 3.0.8
Porting the Kernel might turn into a huge effort. The ABI of 2.6.29 and 3.0 are not really compatible, so the kernel drivers would need to be ported to the CM9 3.0.x series - in case a simple patching them into the kernel tree and trying to compile bombs out with tons of make errors.
Apart from that - the main problem with ICS on the X8 is that a whole lot of devices can't use a custom kernel as a change in the hardware (devices of 11W29 and newer) prevents boot loader unlock.
We could try to see if the CM9 kernel could be slapped into shape ... I got a Quad-Core Phenom II to tackle that task - if someone wants to help out in the research if some msm7227 / Shakira specific parts would need to be patched into the source tree because they aren't part of it.
EDIT: Even the official CM repo uses Linux 2.6.37.6 as their kernel, and the progress on the FXP Kernel seems to have come to a halt; at least I can't see any new stuff in the -shakira repos.

LG GT-540 has ICS on 2.6.35 kernel. Maybe we could try to port Arc's kernel. Maybe this one? Recommend me some C/C++ books to learn basic stuff

You want this book's in english or you prefer in our native? ;3

eagleeyetom said:
Recommend me some C/C++ books to learn basic stuff
Click to expand...
Click to collapse
This is a rather tricky question ...
If you do as I did simply Google up a C/C++ Reference/Tutorial (i.e. http://www.acm.uiuc.edu/webmonkeys/book/c_guide/ or http://www.cplusplus.com/doc/tutorial/) and get going ... you already got gedit to code up .c files, and gcc is also part of your Linux distro to try and compile your "hello_world.c" You could also Google for Online Classes (in the like of http://www2.its.strath.ac.uk/courses/c/) and pick whatever suits you.
However, if you want to read real books ... look through the offers of Addison Wesley and pick what you think is the best book for you. You could also hit up your closest public library and see what they have in store (may be cheaper than buying in case you don't have much money to spend) - or, in case you study, you may want to look into your University's library.
Of course you could also start off with the usual "C/C++ for Dummies" or "Teach yourself <whatever> in 7|14|21|30 days"

Polish would be awesome ;P

Best, simply writed polish C/C++ tutorial, one of the best www(.)warsztat(.)gd/tutorials.php?x=category&id=18
In adddition you can search for ( it's a big ebook ) Symfonia C++ Grębosza ( Symphony in C++ ), you can find it on chomikuj.pl but if U want I can upload it somewhere for you
And if you will have any problems with C/C++ you can write to my GG number 10037533 or PM me here

Related

Porting Linux for Pharos in progress

I am now working on porting linux to HTC Pharos. Gotten HaREt to boot it, working on the keymap. Will post the image here when it's "usable"
For questions go to the launchpad project's "Answers" page. For discussion, use this thread.
Links:
Progress (Handhelds.org Wiki)
Launchpad project
Git repository
very very cool ... but try to do one better... try to get the android working on our phone !! (the image has been released so it should be possible to compile it for the Pharos)
I'm going to make android work, but I won't make a ROM before next year because android doesn't have a soft keyboard (onscreen keyboard). They plan to develop it in the first quarter of next year though.
Android Roadmap
Still, a working android (but without keyboard) would be cool, so when the linux kernel is good to use, I will start on android.
please DO NOT make it a rom, if possible make it work with HARET because then we have a choice!! (far more flexable)
i see you're dependant on the drivers released by source.android. q1 09 will be great (hell its allmost 2009 anyway)
I'm developing on HaRET, will release that after some time. I will maybe release an android ROM when it's stable and usable. Btw, all releases (ie. files) will be in the first post. So no need to go through pages (if this discussion will be that popular) to look for files...
Also, I can make it work pretty well without the soft keyboard drivers, but not with android. So here's my plan:
1 Make the linux kernel work (keypad and touchscreen most important now...)
2 Release kernel + a distro like familiar
3 Make it work (loosely) on Android
just a supporting note
I will be happy to see your linux rom
Awesome! It will be very interesting to see the progress of this.
i tested linwizard , the touchscreen dont work .
do you found any driver?
what about android?
touchscreen work now.
files will be available soon.
Hey, why don't use kaiser,nike,vogue,polaris zImage and just change the mtype to have android on your Pharos?
Launch haret console and find the gpios button commande and maybe somebody can make a new zimage compatible with your device?
hi,
thank you for the idea.
i already started the project.
touchscreen work very well, and i'm now working on buttons and jog wheel.
pharos is omap850 and many difference/and similarity with list of model you listed.
lets hope it work now.
can you please give me any documentation.I'm very thankful.
Oh yeah i didn't mention it wasn't the same chipset so it isn't possible to merge source with our thread.
I don't know much things but i can try to help you.
Try to contact @ : dzo, dcordes or another member in the kaiser thread
Can you please post a POC zip. I want to test how android is reactive on Pharos.
Thanks.
please join this thread http://forum.xda-developers.com/showthread.php?t=494991
source will be uploaded on server as soon as possible.
for now you can play with proposed file.
you can join our project.

Making ROMs

So this is combination question/idea.
I have been reading around and it seems to me that most ROMs are made mostly just by taking existing ROMs (often taking the stock one) and editing the installed applications. This is what Kitchens do - right?
When we want to theme things we have to go through and manually edit all sorts of images, resources, compiled xml files, etc.
That all being said why don't people ever just take the source from google (android is open source) and just modify the source to their liking and compile their own ROM? Do people already do this? Wouldn't this making theming a lot easier by just replacing the files before it is all compiled together?
Why don't we just compile a version that lets you theme most things pretty easily - make large parts of the UI skinnable and then people don't have to spend so much time hacking xml files?
Again, this all may be completely wrong and I apologize for wasting your time for reading this if it is...
Just wondering if there is an easier way to do what we are doing
you should do some research on the Cyanogen mod and Android open source project (AOSP)
you're on the right track with where you're going with this, but it's already been done. most ROMs ARE in fact modified versions of 2.1 with edited image files, added applications and such and that's really all we can do, until now at least. some of our devs are working on porting ROMs based off of the Cyanogen mod, which is based off of AOSP.
someone please correct me if I'M wrong =)
I've found the following links to be really helpful:
1) http://forum.xda-developers.com/showthread.php?t=622916 - compiling Hero kernel & AOSP from source
2) http://blog.coralic.nl/2010/01/28/build-eclair-aka-android-2-1-for-hero-from-source/ - blog entry that #1 was based off of
3) http://forum.androidcentral.com/htc...how-build-your-own-kernel-package-source.html - sort of the same thing again, but it's good to read different takes on things like this
4) http://forum.xda-developers.com/showthread.php?t=633246 - very good kitchen
gnarlyc
I could be wrong, but the Google source code will be rather "generic" or all-encompassing. It will (or should) work for ALL Android hardware devices. Problem with that is that it's not optimized for a specific piece of hardware. Same logic applies with compiling your own kernel in Linux. Linux includes hardware support for thousands and thousands of pieces of hardware (and some obscure sh*t at that). Granted, it's not loaded into memory but the code is still in there. When people compile there own kernel, they only include drivers for their video card, their IDE/SATA controllers, their CPU, and so on.
When people start with an ERIS ROM or HERO ROM from HTC, I have to presume that HTC has already stripped out the non-applicable stuff. It's a much cleaner slate to start from.
gnarlyc said:
I've found the following links to be really helpful:
1) http://forum.xda-developers.com/showthread.php?t=622916 - compiling Hero kernel & AOSP from source
2) http://blog.coralic.nl/2010/01/28/build-eclair-aka-android-2-1-for-hero-from-source/ - blog entry that #1 was based off of
3) http://forum.androidcentral.com/htc...how-build-your-own-kernel-package-source.html - sort of the same thing again, but it's good to read different takes on things like this
4) http://forum.xda-developers.com/showthread.php?t=633246 - very good kitchen
gnarlyc
Click to expand...
Click to collapse
Funny you mention that, I just installed an Ubuntu VM so that I could check out the source and start playing around... see what there is to see

[Q]Which linux OS the the best to create custom roms for our phone ?

Hey everyone, everything is in the title. I recently installed Ubuntu 14.04 via VirtualBox, and now i would like to start create some roms, after a long time spent in front of the developement section. Today i would like to see my name in this section, so i need advices about which linux should i get ( if Ubuntu is not the right distribution ) and the tools you use in Linux to make wonderful roms !
Thanks everyone
I see Biel and savie using Ubuntu, so why not?
OxygeenHD said:
Hey everyone, everything is in the title. I recently installed Ubuntu 14.04 via VirtualBox, and now i would like to start create some roms, after a long time spent in front of the developement section. Today i would like to see my name in this section, so i need advices about which linux should i get ( if Ubuntu is not the right distribution ) and the tools you use in Linux to make wonderful roms !
Thanks everyone
Click to expand...
Click to collapse
Ubuntu/Linux dist is required to build a project from a source code, and it requires a pro to build and debug a project/ROM frm source! To make a simple/normal custom, you may even use Kitchen(in Cygwin for Windows) or even in Linux!
For ur question, Ubuntu is better choice!
Ubuntu is not a must,but its easy because it have the most tools preinstalled for this.
GREEETZ FROM TEAM-OPTIMA!!!
@lionelsuyog for now, i simply want to build a custom rom basedon stock or CM. not a complete project from souce ( not enough experience ) 
 @-CALIBAN666- Do you have some tuts in mind to help me to start training ?
Thanks
OxygeenHD said:
@lionelsuyog for now, i simply want to build a custom rom basedon stock or CM. not a complete project from souce ( not enough experience )
@-CALIBAN666- Do you have some tuts in mind to help me to start training ?
Thanks
Click to expand...
Click to collapse
if you are not building from source all you need is
apktool
java jdk
android kitchen
cygwin (if using windows)
notepad++
winrar
There are many guides - best you do some searching for example
http://forum.xda-developers.com/showthread.php?t=1801690
Well theming a custom ROM takes a lot of time and for completing the work on time you obviously gonna need some niggas to help you in your work.Well if you have a good internet connection then you can sync up sources and compile ROMs like Carbon,Pac or AOKP Kitkat for this device since we're getting closer to a stable CM11.There are a lot of guides on how to sync a ROM source code on the computer.Search down the threads and start syncing.

[DEVS-ONLY] Developers Required

Some XDA members and I am working on a CyanogenMod-based Android firmware, AlterOS. It is my sincere request to everyone here to join is in the creation of this firmware. The reason I'm posting here is because I've been active on this forum and have contributed a bit.
===============
Developer incentives
-> A chance to work in the development of what might just be the next big thing.
-> Free sever and bandwidth for development purposes.
-> Free website hosting.
-> Possibly monetary incentives.
-> Much more..
===============
Requirements
->Prior Android rom-development experience.
->Adequate knowledge of Java/C/C++
================
To join, PM with your e-mail and how would you help the project.
=================
Please post your views here.
Hello
I can help by giving some innovative features thought . something like Sony have done. Like stamina mod, xperia theme engine, HTC blink feed, Samsung multi window. Can't help with code.
Sure. We'd love feedback from you and others, but the above incentives are for developers only.
Can we make a OEM rom Sony?
We have kernel sources. ROM related stuff we have xperia e3 stock ROM. Will it possible to port xperia kernel from xperia e3.
nisu4717 said:
Can we make a OEM rom Sony?
We have kernel sources. ROM related stuff we have xperia e3 stock ROM. Will it possible to port xperia kernel from xperia e3.
Click to expand...
Click to collapse
He's not talking about porting.............He means build a new ROM from scratch.............With CM as the base
I would recommend a rom name, Boost Rom. Don't know if it has been taken on not. And have the ability for themes as well? I don't know much code but I would like to be of help:0?Of course dev's only but I have some good ideas and I want to learn code. I have started to learn already and I have android studio. So what do you think. Could I give ideas and try to help on not?:|
Good luck anyway:~) Of coarse I will have to learn the basics. But if not I will still hit the thanks button:0 I have always wanted to make roms and be part of something as big as this, please
dem0nicbl00d said:
He's not talking about porting.............He means build a new ROM from scratch.............With CM as the base
Click to expand...
Click to collapse
I know man.
It was just a suggestion

Most Customs for G800F

, lets be honest: are ****.
Unstable, Buggy and **** like that.
And instead of just complaining about the devs* I want to know the following:
If I want to contribute on the code what do I need to learn? Since a while I'm teaching myself Java and Python via Solo Learn. What would I need to learn to contribute to the Android OS Code itself NOT APPS!!
It will take me months, years I am aware of that. But I'm just tired of only trying different Custom ROMS, only to see that most of them aren't a real alternative of the Stock Roms, without having the possibility to do something about it.
So feed me with some input. What are good sites to learn that?
Happy for your feedback!
*Because damn I know that the Devs are doing an amazing job!
Google is a good start.. that search engine can point you in the right direction ?
Ghost1607 said:
And instead of just complaining about the devs* I want to know the following:
If I want to contribute on the code what do I need to learn? Since a while I'm teaching myself Java and Python via Solo Learn. What would I need to learn to contribute to the Android OS Code itself NOT APPS!!
It will take me months, years I am aware of that. But I'm just tired of only trying different Custom ROMS, only to see that most of them aren't a real alternative of the Stock Roms, without having the possibility to do something about it.
So feed me with some input. What are good sites to learn that?
Click to expand...
Click to collapse
It really depends on what you want to do with Android. The upper layers are in Java. The lower layers are in C++ or C. If you want to adjust the stock libs you might have to understand ARM assembler code. Also a basic knowledge of microcontrollers and linux kernel does help (especially if it comes to the graphic and camera subsystems).
There is almost no documentation for Android (the code is the documentation) and the subsystems change from version to version. The best way (and probably only one) to learn Android is hands on. Just try to fix the most annoying bug you encounter. Try to understand how the source-code works. Check how the Java, C++ layers, kernel and the stock libs interact with each other.
Also try to understand the adb logcat output.
Also try to understand the G800F device tree. A first step is also to compile the source yourself.
hennymcc said:
It really depends on what you want to do with Android. The upper layers are in Java. The lower layers are in C++ or C. If you want to adjust the stock libs you might have to understand ARM assembler code. Also a basic knowledge of microcontrollers and linux kernel does help (especially if it comes to the graphic and camera subsystems).
There is almost no documentation for Android (the code is the documentation) and the subsystems change from version to version. The best way (and probably only one) to learn Android is hands on. Just try to fix the most annoying bug you encounter. Try to understand how the source-code works. Check how the Java, C++ layers, kernel and the stock libs interact with each other.
Also try to understand the adb logcat output.
Also try to understand the G800F device tree. A first step is also to compile the source yourself.
Click to expand...
Click to collapse
Thank you for the reply I appreciate it!
TWRP
hennymcc said:
It really depends on what you want to do with Android. The upper layers are in Java. The lower layers are in C++ or C. If you want to adjust the stock libs you might have to understand ARM assembler code. Also a basic knowledge of microcontrollers and linux kernel does help (especially if it comes to the graphic and camera subsystems).
There is almost no documentation for Android (the code is the documentation) and the subsystems change from version to version. The best way (and probably only one) to learn Android is hands on. Just try to fix the most annoying bug you encounter. Try to understand how the source-code works. Check how the Java, C++ layers, kernel and the stock libs interact with each other.
Also try to understand the adb logcat output.
Also try to understand the G800F device tree. A first step is also to compile the source yourself.
Click to expand...
Click to collapse
Dear hennymcc,
it is about your TWRP for G800F.
Everthing is ok, till it comes to a restore of a TWRP backup.
After the restore the S5 Mini is in a bootloop.
I have tried it with the version August 2015 and March 2016.
Is there any solution?
Thank you.

Categories

Resources