[HELP]Porting kernel between different MDPI devices? - Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A

Guys,
As I've mentioned in the thread header, can someone give a short tutorial about porting kernel between our MDPI devices.
Thank you.

U cant.
Kernel need to compile from source, not just copy paste like porting rom.

an0nym0us_ said:
U cant.
Kernel need to compile from source, not just copy paste like porting rom.
Click to expand...
Click to collapse
Thanks for the quick reply man.
I really want to make a kernel for ST15i, so that I can run CM10, since expeacer is yet to publish kernel for my device.

Related

[Q] How Will i start ROM DEVELOPING?

Hello everyone, I am really wanting to start DEVELOPING roms, but dont know where to start (not links to kitchens because these doesnt work for me (cygwin)) please help me.
Regards,
ServerBoost100
ServerBoost100 said:
Hello everyone, I am really wanting to start DEVELOPING roms, but dont know where to start (not links to kitchens because these doesnt work for me (cygwin)) please help me.
Regards,
ServerBoost100
Click to expand...
Click to collapse
download an other custom rom and modify it:
add/remove apps
change theme
modify apps (change the icons..etc)
modify framework-res.apk
add tweaks
and any other things you want
I Think that we do not need more rom developer, with owain and slade we got enough, maybe yoou should study about kernel development, thats what we need , im already studying kernels too
stelios97 said:
download an other custom rom and modify it:
add/remove apps
change theme
modify apps (change the icons..etc)
modify framework-res.apk
add tweaks
and any other things you want
Click to expand...
Click to collapse
this is called cooking developing is from program code compiling to an apk or whole rom
Oh, but i would really like to know more about it
Sent from my U20i running xCyanogenPro v13 by owain94 and slade87 using XDA App
stelios97 said:
download an other custom rom and modify it:
add/remove apps
change theme
modify apps (change the icons..etc)
modify framework-res.apk
add tweaks
and any other things you want
Click to expand...
Click to collapse
cywin and htc android kitchen by dsixda 0.157 if ... a good cooking tools... apkmanager 4.9 for sing and bach app files...
is the best for testing and developer rooms
Ive got the kitchen to work on a Ubuntu VM, but i dont know how to add tweaks and stuff like that
And also, another question, how would i make it flashable (i made a port from HTC Wildfire Stock rom -> Mini Pro rom) - What Permissions should i set?
Sent from my U20i using XDA App
Bump
Sent from my U20i using XDA App
Download a custom rom and check /meta'inf/com/google/android/update-script
The permissions are in there make sure to use them study the update script its easy to use
Sent from my U20i using XDA Premium App
slade87 said:
Download a custom rom and check /meta'inf/com/google/android/update-script
The permissions are in there make sure to use them study the update script its easy to use
Sent from my U20i using XDA Premium App
Click to expand...
Click to collapse
What do you mean by that?
ServerBoost100 said:
What do you mean by that?
Click to expand...
Click to collapse
Download some custom rom (CM7, CM6, slade's rom or owain's rom) and check in, \META-INF\com\google\android\Update-script, what its inside this file, this will be damn useful for you
EDIT: BTW, check permissions
D4rKn3sSyS said:
Download some custom rom (CM7, CM6, slade's rom or owain's rom) and check in, \META-INF\com\google\android\Update-script, what its inside this file, this will be damn useful for you
Click to expand...
Click to collapse
Yeah i got the Gigglebread v8 one because it was the only one on my PC, but how would i understand to use it? (Yes, i know i am a Big noob in this )
first try to play with framework-res.apk! then come to ROM!
newtron_b1 said:
first try to play with framework-res.apk! then come to ROM!
Click to expand...
Click to collapse
Yeah, but how would i rebuild it after extracting?
ServerBoost100 said:
Yeah, but how would i rebuild it after extracting?
Click to expand...
Click to collapse
bumpity bump
Bumpity bumpity bump
Sent from my U20i using XDA App
I think you should try things man, nobody will help you learning to be a dev , just try with things, that's autodidactic process
D4rKn3sSyS said:
I think you should try things man, nobody will help you learning to be a dev , just try with things, that's autodidactic process
Click to expand...
Click to collapse
I mean just where to mess in the rom
ServerBoost100 said:
I mean just where to mess in the rom
Click to expand...
Click to collapse
messing in the rom is modding,
try to port a rom close to our hardware like wildefire/legend htc sense
play with libs.
for developing get cyanogenmod/floyo or some other source and set it up and try to compile.
ServerBoost100, you are saying that you want to be a developer, but you ask for every step here. Maybe do your own job and study something, not only
ok, i have (...), what now?
Click to expand...
Click to collapse
;/

Help to compile CM9!

Hi all! I'm trying to compile the CM9 for optimus one but I don't understand how to do it! I have already compiled the CM7 and there are successful but don't know where to put files and give commands with the sources of CM9! Can someone give me a hand?
What have you done/tried already?
I compiled the CM7 but I don't know how build the CM9! I don't know who commands give and where to put files
Can you help me?
Lupohirp has already started.to port cm9 to p500 there r still some bugs but it's getting there
Sent from my LG-P500 using xda premium
First sync cm9-source, instead of gingerbread you use ics.
Download device and vendorfiles from github.com/lupohirp.
Create following folders in device: lge and lge/thunderg (in time it will be p500 instead of thunderg)
Also download framework_base from his github and replace all files folder in framework/base in your working folder.
_Arjen_ said:
First sync cm9-source, instead of gingerbread you use ics.
Download device and vendorfiles from github.com/lupohirp.
Create following folders in device: lge and lge/thunderg (in time it will be p500 instead of thunderg)
Also download framework_base from his github and replace all files folder in framework/base in your working folder.
Click to expand...
Click to collapse
done!! And now?
markolino631 said:
done!! And now?
Click to expand...
Click to collapse
Now, Use your Brains.
ahhaah i have an error in the file AudioTrack.cpp when compile cm9! this is a error:
frameworks/base/media/libmedia/AudioTrack.cpp: In member function 'android::status_t android::AudioTrack::restoreTrack_l(android::audio_track_cblk_t*&, bool)':
frameworks/base/media/libmedia/AudioTrack.cpp:1206: error: 'clearAudioConfigCache' is not a member of 'android::AudioSystem'
make: *** [out/target/product/p990/obj/SHARED_LIBRARIES/libmedia_intermediates/AudioTrack.o] Errore 1
make: *** Attesa per i processi non terminati....
how to fix it?
how to fix this error? http://pastebin.com/m3D1vZQs
OMG, if you dont know how to solve compiler errors learn coding/bug fixing instead
of ask again and again for every **** error on a forum. Do you realy think someone want
to help you to learn programming??? i think no one will do so.
Compiling a rom from source code is not the right toy for bloody beginners, sorry if it
sounds to hard but this is the real life.
andy572 said:
OMG, if you dont know how to solve compiler errors learn coding/bug fixing instead
of ask again and again for every **** error on a forum. Do you realy think someone want
to help you to learn programming??? i think no one will do so.
Compiling a rom from source code is not the right toy for bloody beginners, sorry if it
sounds to hard but this is the real life.
Click to expand...
Click to collapse
bro just let him wait for the reply from someone and learn it the hard way...
why waste ur time????
maybe someone will help him but who knows...
look what I just asked one thing I did not ask that someone help me to solve the bugs! I just want to compile the rom! isn't that just because you are good you have the right to judge others.
markolino631 said:
look what I just asked one thing I did not ask that someone help me to solve the bugs! I just want to compile the rom! isn't that just because you are good you have the right to judge others.
Click to expand...
Click to collapse
i doesnt said a thing about the one is a bad programmer / another is better. i only
said that its sometimes better to learn things before get started with big projects
that can waste a lot of time. do what you want - its your time, not mine
so I have time to lose! However I managed to compile the cm7 for another phone! I'm having problems with only the cm9 and can't solve it!
Before you try to compile CM9, read Cyanogen's words of wisdom
perseus0807 said:
Before you try to compile CM9, read Cyanogen's words of wisdom
Click to expand...
Click to collapse
thats sooo true.
I read what is written and I understand that to compile the rom you need to develop but still do not know (I have only 15 years old)! However, I still try and just wondering if anyone can help me understand!
I can read code, but I can't code. Let me try to point you in a good direction, it has to do with the audio system.
Sent from my LG-VM670 using xda premium

Complete noob guide for compiling roms

Hi..im a quite fresh android user after having iphone for the last 4 years....i have a huawei ideos x5 pro that for me at least is a great phone for his price..but the major problem is that we don't have devs for our phone...only one chinese guy that develops roms for at least 7 phones so we aren't his major concern...so im asking if there is a complete noob guide for compiling rom..fixing rom.
i have to tell you and please don't flame that even that i have knowlage over pc's i haven't any knowlage over programming and coding!!so if any guide can't help me it will be ok...i try! but if there is a guide that can help me step by step to understand the basics and then with a bit of research can figure it out the rest it will be helpful!!
Thanks!!
Sorry for my english!
http://lmgtfy.com/?q=make+android+custom+ROM
thewadegeek said:
http://lmgtfy.com/?q=make+android+custom+ROM
Click to expand...
Click to collapse
Yeah i know that...im asking for a user's entirely noob guide...1st time user guide...google is full with guides but not so novice guides!!
There isn't a "type this, click this, A,B,C" guide. That would be called just copying somebody's work. What you need to do is start reading through ALL the guides you can find, compile a kernel, read smali, change colors, mod pictures, unpack-repack boot.imgs. I can't give you a link and say "Read this tutorial and you will be a developer", that's just not how it works.
thewadegeek said:
There isn't a "type this, click this, A,B,C" guide. That would be called just copying somebody's work. What you need to do is start reading through ALL the guides you can find, compile a kernel, read smali, change colors, mod pictures, unpack-repack boot.imgs. I can't give you a link and say "Read this tutorial and you will be a developer", that's just not how it works.
Click to expand...
Click to collapse
ill give it a try thanks!!!
After reading a lot of guides...i can say that i didnt find anything so hard but i haven't try it so far so i can say for sure...but i stuck in one thing...somewhere on all the guides it sais to find your device tree...and many guides that are from samsung or htc using some github and some cyanogen brances...i have an huawei ideos x5 pro...where i will find those trees?do i need them for making the android source work with my device or the source from google is universal meaning that when im build the rom from sources.android.com the rom will work in my device??
pikachukaki said:
After reading a lot of guides...i can say that i didnt find anything so hard but i haven't try it so far so i can say for sure...but i stuck in one thing...somewhere on all the guides it sais to find your device tree...and many guides that are from samsung or htc using some github and some cyanogen brances...i have an huawei ideos x5 pro...where i will find those trees?do i need them for making the android source work with my device or the source from google is universal meaning that when im build the rom from sources.android.com the rom will work in my device??
Click to expand...
Click to collapse
You must have a device tree... If not you have to build your own... The rom built from source.android.com will only work with google nexus devices...
adiles said:
You must have a device tree... If not you have to build your own... The rom built from source.android.com will only work with google nexus devices...
Click to expand...
Click to collapse
So my hands is tied...nice!!there is no way that i can make a tree i don't have so much knowlage!! :/ too bad!!
pikachukaki said:
So my hands is tied...nice!!there is no way that i can make a tree i don't have so much knowlage!! :/ too bad!!
Click to expand...
Click to collapse
look for a device with similar hardware and copy that device tree, then try to make adjustments to get it working and voila. and ask that one dev if he can give you his device tree
I have read all things in xda about my u8800, and xda helps me know about root, install cwm, uprom..etc. thank all of you, thank xda
-Sent from my u8800-
Me Too!
lemonade747 said:
I have read all things in xda about my u8800, and xda helps me know about root, install cwm, uprom..etc. thank all of you, thank xda
Click to expand...
Click to collapse
I'm actually reading everything about my new device, Sony Neo L. This is pretty amazing! XDA rocks!
CrisisCorE said:
look for a device with similar hardware and copy that device tree, then try to make adjustments to get it working and voila. and ask that one dev if he can give you his device tree
Click to expand...
Click to collapse
Hardware we need the same cpu gpu or everything?sensors bt wifi etc?
Sent from my U8800PRO using xda premium
How can i get source code for Vision, since huawei doesnt let you download it?
Sent from my Vision
if u r good at linux, u can try this guide >>> http://handycodeworks.com/wp-content/uploads/2011/02/linux_versus_android.pdf
I compile linux kernels for desktop, but the android kernel is not the same. Cyanogen team and GOOGLE Android developers provides a comprehensive guide on building ur own ROM. But to build ur own OS, u need to understand each component carefully. I don't know abt android, but i am making Linux OS from scratch. I have kernel compiled, tool chain set up, now i am putting apps on it. But android uses DALVIK VM for Java apps, also .... U refer the pdf it will tell u. Once i finish making this OS, i'll focus on Android ROMS. They r similar to Linux OS, but require patches in kernel, a light c lib, new fs, a different vm (dalvik) and different ways of managing i/o interrupts and much more..
this link is on porting android on nokia >> http://www.linuxfordevices.com/c/a/Linux-For-Devices-Articles/Porting-Android-to-a-new-device/
this one is on linux on embedded systems >> http://www.lindusembedded.com/blog/2010/12/07/android-linux-kernel-additions/
Also, sorry to say but learn C/C++/Java . To make ROMS, atleast to make modifications and to understand the kernel u'll need C. Not very hard to learn, Good tuts on Lynda.com and other sites. And be good at Linux. Happy Learning

**Important Links** **You Should Know**

INTRODUCTION
WELL XDA IS FULL OF TUTORIALs AND HOW TOs SO I HACE DECIDED TO MAKE A THREAD WHERE ALL THE HOW to IS THERE..IT WILL REALLY HELP THE NEWBIES AROUND THE XDA.
LIST OF HOW TOs-
HOW TO COMPILE A KERNEL [When We Get Kernel Sources]
HOW TO UNBRICK
HOW TO BUILD ROM
HOW TO PORT ROM
HOW TO USE AROMA INSTALLER
HOW TO USE GITHUB
HOW TO MAKE AN APP
HOW TO MAKE BOOTANIMATIONS
HOW TO PORT BOOTANIMATIONS
HOW TO UNPACK APK
HOW TO DECOMPILE/COMPILE APK
HOW TO USE ANDROID SDK
HOW TO SETUP DSIXDA'S KITCHEN
HOW TO CREATE A FLASHABLE ZIP
HOW TO THEME KEYBOARD
HOW TO THEME
HOW TO METAMORPH
HOW TO SET PERMISSIONS TO RW-R-R
HOW TO CREATE GAME
HOW TO EDIT BUILD.PROP FILE
HOW TO USE UOT KITCHEN
HOW TO EDIT SystemUI.apk
HOW TO USE SEARCH BAR
HOW TO SIGN A ROM
HOW TO INSTALL APP DIRECTLY THROUGH PC
HOW TO RE-ODEX A ROM
HOW TO DE-ODEX A ROM
HOW TO CONVERT .dex TO .jar FILE
Credits- Theawesomeguy4 & Me..
For Kernel Sources We Can Make Petition And Send Email to MMX And Force To Release Kernel Sources
Regards;
Megatron007
Rerserved For Future :laugh:
This should help a lot of us here! Good work....
Apparently Acer released kernel sources for their phone having MT6589... I am sure that by just making some changes we can make kernel for A1160...
Also.. OP, Please edit the thread name.. It looks too fancy and also organize the thread in a good way
The way it is now.. Looks like mess *No Offence*
Sent from my GT-S5360 using Tapatalk 2
Arnav.G said:
Apparently Acer released kernel sources for their phone having MT6589... I am sure that by just making some changes we can make kernel for A1160...
Also.. OP, Please edit the thread name.. It looks too fancy and also organize the thread in a good way
The way it is now.. Looks like mess *No Offence*
Sent from my GT-S5360 using Tapatalk 2
Click to expand...
Click to collapse
is it for 5'0 inch hd device? varun chitre has also kernel source for MT6589 But it is for 4.5' inch devices n our is 5'0 So..we cant make a kernel..
Megatron007 said:
is it for 5'0 inch hd device? varun chitre has also kernel source for MT6589 But it is for 4.5' inch devices n our is 5'0 So..we cant make a kernel..
Click to expand...
Click to collapse
*facepalm* Kernel Source isn't compared with Screen Size! Puny Noob -_-
You can make a kernel with some modifications in the kernel source which we have now
Arnav.G said:
*facepalm* Kernel Source isn't compared with Screen Size! Puny Noob -_-
You can make a kernel with some modifications in the kernel source which we have now
Click to expand...
Click to collapse
okk listen give me the sources of acer mtk 6589 ..i will try to compile it :fingers-crossed:
it will be useful thank you
Megatron007 said:
INTRODUCTION
..... Deleted for brevity !!!
Regards;
Megatron007
Click to expand...
Click to collapse
Dear Friend,
Your efforts are commendable. :good:
Kindly update the post with the latest developments. Since this is a sticky, it would help to have updated links atleast once in a few days.
Thanks a lot.
colour issue on my scrren
hey..i have colour issue on my mmx chd....colours are looking like washed out...pls hlp..reply.. :crying:
and i can see a bad white line on top of the screen..
nice thread
Thanks for creating this thread, helpful.
Very useful thread.......thnx for sharing
Sent from my Micromax A117 using XDA Premium 4 mobile app
Megatron007 said:
INTRODUCTION
WELL XDA IS FULL OF TUTORIALs AND HOW TOs SO I HACE DECIDED TO MAKE A THREAD WHERE ALL THE HOW to IS THERE..IT WILL REALLY HELP THE NEWBIES AROUND THE XDA.
LIST OF HOW TOs-
HOW TO COMPILE A KERNEL [When We Get Kernel Sources]
HOW TO UNBRICK
HOW TO BUILD ROM
HOW TO PORT ROM
HOW TO USE AROMA INSTALLER
HOW TO USE GITHUB
HOW TO MAKE AN APP
HOW TO MAKE BOOTANIMATIONS
HOW TO PORT BOOTANIMATIONS
HOW TO UNPACK APK
HOW TO DECOMPILE/COMPILE APK
HOW TO USE ANDROID SDK
HOW TO SETUP DSIXDA'S KITCHEN
HOW TO CREATE A FLASHABLE ZIP
HOW TO THEME KEYBOARD
HOW TO THEME
HOW TO METAMORPH
HOW TO SET PERMISSIONS TO RW-R-R
HOW TO CREATE GAME
HOW TO EDIT BUILD.PROP FILE
HOW TO USE UOT KITCHEN
HOW TO EDIT SystemUI.apk
HOW TO USE SEARCH BAR
HOW TO SIGN A ROM
HOW TO INSTALL APP DIRECTLY THROUGH PC
HOW TO RE-ODEX A ROM
HOW TO DE-ODEX A ROM
HOW TO CONVERT .dex TO .jar FILE
Credits- Theawesomeguy4 & Me..
For Kernel Sources We Can Make Petition And Send Email to MMX And Force To Release Kernel Sources
Regards;
Megatron007
Click to expand...
Click to collapse
Update The Kernal Section....Its Not Based On Our Kernal
The Kernel Are Out...But This Guide Is Not Suitable For Us.......
Useful thread
Very useful thread.. Thank you sir...
thank you sir for this infos
Thank You very much
Great Work.
Thank you very much for sharing such valuable information.
Really useful
Great thread, one stop spot for beginner developers, really useful!
Thanks for sharing!
Thanks a lot !
Its really helpful
:good:

[Q] Help to compile

as may you know, our device is diferent, he is not open source, and @bieltv.3 and his team are making a great work, but i need to know
what sources i need to sinc, so guys, tell me what repos i need to write to compile it?
Luiz Guilherme Pereira said:
as may you know, our device is diferent, he is not open source, and @bieltv.3 and his team are making a great work, but i need to know
what sources i need to sinc, so guys, tell me what repos i need to write to compile it?
Click to expand...
Click to collapse
Go to Q&A for more answer.
And,
Better need change your mind and just look with Google and just write, "HOW TO COMPILE CM7/CM9 FROM SOURCES XDA
Wait and see, not hard to thinking. Good luck

Categories

Resources