DISABLE ADBLOCK

ADBlock is blocking some content on the site

ADBlock errore

Easy way to build Android system app ? (Eclipse for example)

StackOverflow https://stackoverflow.com/questions/8666521

Question

Can somebody tell me if there is a simple way to build system apps for Android?

Since ICS 4.0.3 is out and open source, severals alternative launchers start rolling out like Trebuchet or Nova Launcher. It's obviously based on the system launcher and I wonder how they did this.

If you clone the launcher:

git clone https://android.googlesource.com/platform/packages/apps/Launcher2.git

and try to open it in Eclipse, it won't work because it use some classes and variable not present in the SDK, only present in the entire framework.

Is there a way to build or get it and add it into Eclipse (like android.jar for the SDK) and build the Launcher using eclipse? If no, can somebody indicates me a good tutorial to do this usong command line?

Solution

Is there a way to build or get it and add it into Eclipse (like android.jar for the SDK) and build the Launcher using eclipse ?

No.

If no, can somebody indicates me a good tutorial to do this usong command line ?

You cannot do that from the command line, either.

To convert an AOSP application into a standalone SDK application, you will need to find all the "classes and variable not present in the SDK" and remove/replace the references to them. The simplest is to remove the references to them, if the app will still run with reduced functionality. For references to internal resources, you can simply copy those to your project and modify the R values to point to your local copy. You are welcome to examine the "classes and variable not present in the SDK" and determine that you can copy those as well (refactoring them into a new package), in which case you would update your project to refer to the copied and refactored classes.

OTHER TIPS

See here: http://devmaze.wordpress.com/2011/01/18/using-com-android-internal-part-1-introduction/

It shows you how to restore all the classes into android.jar

The theory that we need to root our devices in order to copy or install an application as a System application has been overcome.There are some applications on the internet(not on the play store) that act as spy applications that can install themselves inside System/app. We can do this but need permissions from Google directly(that is what I understood actually after referring to several forums).

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow