[Resolved] How to compile Stock Android Source Code such as MMS.apk - General Questions and Answers

I am new to android development and started messing around and building the example source in Eclipse Helios. When I do new project > existing source and open up the Mms.apk source (stock, from android's git hub, it says the source has errors and they need to be fixed before I can build.
I tried this on my Ubuntu 10.10 machine and used repo to get the entire android source, thinking maybe having the entire platform source would help. I'm still unable to build the source so any edits I do are useless.
Can someone tell me what I'm missing? I know I'm doing something wrong or skipping something, but I can't figure it out.
Thanks
Sent from my Droid using XDA App

sorry to double post but i'm not sure why it says "Resolved", i think the app made me add it in or something. anyways the status is still currently unresolved. any help much appreciated.

bump??? i hate that it says resolved there...

Related

How to import projects from Github in Eclipse galileo

Hello all. I have Eclipse Galileo and Egit plugin (http://github.com/guides/using-the-e...in-with-github).
I followed the instruction in the site above to import the progect, but Eclipse seems to fail to import activities.
I'm new from GitHub, do you can write some detailed instruction or known some detailed guides about this?
Thx a lot
fl3xo said:
Hello all. I have Eclipse Galileo and Egit plugin (http://github.com/guides/using-the-e...in-with-github).
I followed the instruction in the site above to import the progect, but Eclipse seems to fail to import activities.
I'm new from GitHub, do you can write some detailed instruction or known some detailed guides about this?
Thx a lot
Click to expand...
Click to collapse
Yeah yeah how do u do that I am trying to get into developeing.. and this google cyan really got me more pumped to learn cuss If google gets really crazzy I wana be able do my own rom please pro devs help...
If you're looking into ROM development, Eclipse isn't going to help much, you're gonna need a *nix machine (OS X works as well) to build android from the source.
source.android.com
as for eclipse, i'm kinda in the same boat, i can create new projects, but can only import by copy and pasting *every* file.
abchiptop said:
If you're looking into ROM development, Eclipse isn't going to help much, you're gonna need a *nix machine (OS X works as well) to build android from the source.
source.android.com
as for eclipse, i'm kinda in the same boat, i can create new projects, but can only import by copy and pasting *every* file.
Click to expand...
Click to collapse
I'm try to import loccy's betterbrowser for android via github, but following litterally the instrunction for the Egit plugin (http://github.com/guides/using-the-e...in-with-github), Galileo lost some dependecies and fail the import.
If download the sources manually and import into a workspace via "filesystem" import, Eclipse will import well, but all activities were lost. I'm not a java hardcoder, i really don't know where is the problem
yeah yeah
abchiptop said:
If you're looking into ROM development, Eclipse isn't going to help much, you're gonna need a *nix machine (OS X works as well) to build android from the source.
source.android.com
as for eclipse, i'm kinda in the same boat, i can create new projects, but can only import by copy and pasting *every* file.
Click to expand...
Click to collapse
Yeah that's what I wanna do didn't know eclipse isn't for rom developement I took me a while to set that up to but eventually figured it our... I have ubuntu jaunt... now do u do build withing to source of get source from git hub
ldf913 said:
Yeah that's what I wanna do didn't know eclipse isn't for rom developement I took me a while to set that up to but eventually figured it our... I have ubuntu jaunt... now do u do build withing to source of get source from git hub
Click to expand...
Click to collapse
Start here:
http://source.android.com/download
I think I've got that working. Then you can grab Cyanogen's source or just patch the browser in the standard AOSP tree.
Warning, the build takes a while.
there is supposedly a way to edit the source in eclipse but you can't compile in eclipse. No one i've talked to has been able to actually get eclipse to work for building roms and all use the old school way via terminal. I was able to go from a freshly formatted linux netbook to having cyans source build where I can make edits within a day, that included building the original source. Once you have it done once it's easier the next time around

I5800 source code

Nearly days I get an open souce code of i5800 and I just a new one in the compling world,so I hope someone can help me find something useful in configuring the code or some books useful.
If you have a qq number and our time are not rushed ,we can communicate in this way.(No facebook or twitter in china....How big the wall!)
My QQ number is 361180509
not sure I understood what you mean, do you have access to newer (froyo) kernel sources for I5800? if so, please do share
eclair kernel source is on opensource.samsung.com, and they compile just fine with the official Android toolkit, but Samsung's changes for Froyo are nowhere to be found (a few modules missing, touchscreen and accelerometer being the most notable), and the kernel doesn't compile anyway.
ze-m0n5t3r said:
not sure I understood what you mean, do you have access to newer (froyo) kernel sources for I5800? if so, please do share
eclair kernel source is on opensource.samsung.com, and they compile just fine with the official Android toolkit, but Samsung's changes for Froyo are nowhere to be found (a few modules missing, touchscreen and accelerometer being the most notable), and the kernel doesn't compile anyway.
Click to expand...
Click to collapse
Not sure if i get you right, do you say it does, or it does not compile? If not, we should request propper sources from Samsung.
sorry,I just don't find the offical source code website before posting this.Cause I just a freshman and I haven't got my PC....
maybe I'll compile the source code later.Sorry to make these mistakes.And I'm chnese.So my english is poor.....
Sent from my GT-I5800 using XDA App
FadeFx said:
Not sure if i get you right, do you say it does, or it does not compile? If not, we should request propper sources from Samsung.
Click to expand...
Click to collapse
eclair sources compile just fine, both with my system cross-compiling toolkit (arm-android-linux-gnueabi managed on gentoo by crossdev) and with the prebuilt one that comes with the Android platform
I might give it a try to actually boot it (but I would need to construct an initramfs, and it's a lot of work, and I kinda need to get back to "proper" work, I was consumed by Android during the last 3 weeks since I got the phone )
ze-m0n5t3r said:
eclair sources compile just fine, both with my system cross-compiling toolkit (arm-android-linux-gnueabi managed on gentoo by crossdev) and with the prebuilt one that comes with the Android platform
I might give it a try to actually boot it (but I would need to construct an initramfs, and it's a lot of work, and I kinda need to get back to "proper" work, I was consumed by Android during the last 3 weeks since I got the phone )
Click to expand...
Click to collapse
You can use the initramfs from Eclair.. I'm assuming you're talking about 2.1.. since 2.2 sources aren't out yet for this phone.
Link for the initramfs for Eclair is here: http://www.multiupload.com/U6GB5BB3HI
This is the JK1 I think - or whatever eclair rom I posted up previously

[Q] Link for Gingerbread 2.3.3 source code

Hello fellow Android Developers,
I have stalled out in the middle of an Android App Development tutorial, that was going very well until now. This is my first time debugging an app.
Error was related to adding the source for the android.jar file. It seems that I need a source code for Gingerbread 2.3.3. Please post a link and instructions if needed.
Thanks very much
P.S. some details on my coding tools and problem. I am using Eclipse 3.7 on Windows 7. I am reading up on several options now, but it sounds like I just need the 2.3.3 source code. Let me know what you think.
--Pheonix

[Q] Linking eclipse with source code and virtual device

This question is more directed towards developers, but anyone who knows feel free to contribute.
Recently i have downloaded the android source code on ubuntu and the SDK, got virtual device running and adb for my g2x. My question is now that i have the source code in my "WORKING_DIRECTORY" how can i link eclipse to the source code, and run my source in virtual device.
To sum up the question im looking for guide on creating own custom rom, it would be nice to be pointed in the right direction
Do u want to build the from from stock or CM sources
Sent from my LG-P999 using XDA App
Thanks for responding, i also have a nexus s, id assume its easier to work with nexus stock code then translate some of my work to the cyanogenmod for my
g2x, whatever is easier the get me going and understanding the concepts, So to answer the question working from stock

[Q] Building a UnORom on Gentoo

Hi there,
as I don't have permission to write on the Unofficial Rom Project Thread, I am asking here for a GUIDE to setup a jenkins server that automatically builds ROMs for my Sensation aka Pyramid.
Is anyone here who can help me to get into the build process for the first time on an continious integration server.
What did I already did?
I have set up Java 1.6 to build a Cyanogenmod 11 and I m not sure if it should be Java 7?
I downloaded the entire sources from github. I m sorry I m not allowed to post a link.
via
so I hope that isnt the wrong way as I am following multiple guides to accomplish my target.
So I wanted to set up it all for the first time to run a compilation without jenkins then I 'm stuck at the point where I integrate the UnORom files - I only could set up a
Code:
git clone https://github.com/UnORoms/android_device_htc_pyramid.git
and then i succesfully executed
Code:
./extract-files.sh
so it downloaded a couple of files from my phone.
But when I do a
Code:
lunch
there don't exists a cm_pyramid?
So I m stuck at this point and I m politely asking for help.(Maybe to accomplish my personal goal of using a continious integration server at least
Thanks in advance for your replys
Nobody knows how to build a android rom for a specific device?
In my case the HTC Sensation?
I would be glad if there where some tutorials of implementing the necessary files into my cm11-tree.
Could anyone please give it a try?
chiefdome said:
Nobody knows how to build a android rom for a specific device?
In my case the HTC Sensation?
I would be glad if there where some tutorials of implementing the necessary files into my cm11-tree.
Could anyone please give it a try?
Click to expand...
Click to collapse
I'm not 100% familiar with building roms, but I once compiled them completely from source for testing purposes.
Do you have device files and kernel in your local manifest to sync them from somewhere or did you take what you need from your phone? Not sure if it's required or not.
When I had everything ready I had to run
Code:
./device/htc/pyramid/repo-patcher.sh
then I could run
Code:
lunch cm_pyramid-userdebug
and it worked.
Not sure if it works same way here too, since I did that when I used Team-Sennyc2 device tree.

Categories

Resources