How to compile Android from source? - android

I want to compile the source code of my android phone. I have an Alcatel OT6010D Android 4.1.1 . Source code for my device is available from Vendor. Here is the link:
http://sourceforge.net/projects/alcatel/files/OT_6010D_20130509.tar.xz/download
But I don't know what to do with this source how to compile it etc.
If anyone could guide me, it would be so nice.
Just to for orientation I am an Embedded system programmer so if someone could tell me some starting point it would be a nice start for me.
Thanks

You can start at The Android Source Code.
At Downloading and Building, you have subitems Building the System, which describes the common parts, Building for devices, describing specific information to individual devices and Building Kernels, if you just want to build the kernel alone.

Related

Compiling android app source code + code check

I'm totally newbee regarding APK and android stuff, so any suggestion is welcome.
I'm trying to install and test the source code from this link:
http://sanjosetech.blogspot.hr/2013/03/gstreamer-streaming-video-and.html
The code should load audio and video passed from RPI to my android phone.
I have RPI part ready and it's working, now i need to compile and install this updated version so i can have support for audio and video.
If i download this code directly on my phone (over my mail account), how can i compile and run it ?
Best regards !
You have to build code into APK file, using compiler, Android Studio, for example. And then transfer it to your Android device.

Compile apk using only android phone

I would like to build a simple apk compiler that runs on android. The objective is to compile some java/android app source code within android.
I searched a lot on Internet but could not find something that could help me with this.
Any of you knows if this is possible? I know AIDE, but I wanted to see how the process of compiling and apk on Android Phone works.

OpenVPN and Android NDK

I have a custom made C (cross-platform) application. An OpenVPN variant. I want to compille this for the Android version with NDK.
It compiles under Linux. Does this mean i can easily compile it for Andoird too with the NDK? And if so, how can i communicate with my library through Java code (the normal Android SDK)?
I'm not really that far yet to do the actual implementation part. But i'd like to know what i can expect in advance.
So if you have any experience with the NDK and have any tips/pointers for me, then you'd really help me alot. Like, things i should look out for when working with the NDK. Compile settings etc.
Thanks for any help.
My Openvpn for Android application is open sourced. See https://github.com/schwabe/ics-openvpn/ Since you wrote that you are using an OpenVPN variant looking at the Android.mk files of my project might help you.

Integration of Drools (Expert System) with Android Projects

I'm interested in developing an Android App using the Drools (JBoss) expert systems rules based system. It's got a plugin via Eclipse per their tools (v3.2) but I don't exactly know how to integrate Drools Jars into and Android project successfully. There has some talk about the issue (see below) but I don't know if it's been completely resolved. Can anyone enlighten me.
http://blogs.siliconindia.com/vinayGuntaka/Intergrating_External_Jars_ie_Drools_Jars__to_Android_and_Developing_Android_Programs-bid-HshzM96A62906557.html
http://osdir.com/ml/Android-Beginners/2010-01/msg00318.html
here is another working option, I made a little modification on drools libaries for loading and running DRL rules on android.
check it, hope be helpful:
https://github.com/jorgemfk/dr-drools-android-demo
https://play.google.com/store/apps/details?id=mx.dr.drools
I forked Drools 6 and modified it to use Dex for class generation and it works on Android (using serialized packages compiled on desktop) I put an Android application sample on github
So, do you know how to create android projects? and how to add external jars to your android projects? When you reach that stage, this post may help. It talks about jbpm5 running in android but it depends on drools so it should be the same.
http://kverlaen.blogspot.com/2011/03/jbpm5-lightweight-running-on-android.html
Cheers

How to get libcap (Linux capabilities library) for Android?

Are the Linux capabilities (libcap.so) library available for use with Android? If not, how can I compile it?
I would like to use the capabilities-related API in sys/capabilities.h, which is included with the NDK. But when I try to call functions like cap_get_proc(), I get "undefined reference" error.
I would imagine that using this api would go way, way beyond the contract in the Android framework. It might work on some devices, but not on others.
In fact, there's no guarantee, afaik, that Android even runs under Linux. For example, the new Blackberry devices run Blackberry's proprietary OS, but still run Android apps.
Finally, the version of Linux that most Android devices run is a highly-stripped-down version. They didn't include any features that the Android API doesn't need. If Android doesn't need libcap, then it's probably not included.
Perhaps you could tell us exactly what it is you're trying to do.
Here is the link - https://github.com/scopichmu/libcap-for-Android. This is original libcap (was cloned from https://kernel.googlesource.com/pub/scm/linux/kernel/git/morgan/libcap) with supporting of android ndk build. You can build now libcap.so, setcap and getcap for android.
Lots of discussion out there on this topic... google around a bit:
http://permalink.gmane.org/gmane.comp.handhelds.android.ndk/4075
Here someone compiled it and described:
http://blog.umitproject.org/2011/05/libpcap-for-android.html

Categories

Resources