Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to build Android without the phone application?

Tags:

android

build

i'm trying to get android running on a gumstix overo system. since i'm not planning to use the final "product" as a phone, i asked my self if it is possible to exclude applications like the phone/dialer-app from the kernel build-process (any config parameter probably?)

like image 803
manu Avatar asked Jul 05 '10 09:07

manu


People also ask

Can Android Studio make Android apps without?

So technically, you don't need an IDE at all. Basically, every project has at least a build. gradle file that contains the instructions to build it. You only have to launch Gradle with the appropriate command to compile your app.

Can I create Android app by myself?

Creating your mobile app for Android and iPhone for free is easier than ever. iBuildApp app maker software allows building apps in a matter of minutes, no coding required! Just pick a template, change anything you want, add your images, videos, text and more to get mobile instantly.

Can I create an Android app without coding?

AppMaster is a necessity if you need to create an app without coding. This tool contains pre-programmed templates and easy-to-use features that you can use to customize and edit your app. An Android app developing flash form is a set of pre-programmed tools into templates.


2 Answers

Just remove (or comment) these lines:

<project path="packages/apps/Phone" name="platform/packages/apps/Phone" /> <project path="packages/apps/VoiceDialer" name="platform/packages/apps/VoiceDialer" />
(and others if needed) from the platform manifest (default.xml) :

https://android.googlesource.com/platform/manifest/+/master/default.xml

like image 70
Aissen Avatar answered Oct 03 '22 19:10

Aissen


Removing the app declarations in the repo manifest did not work for me, as there are other libraries that reference them that then fail to compile. The build system approach to this problem is to create/modify your product definition makefile to not include the specific apps.

So, for the overo you probably already have a products/overo.mk product file. You can manually set the PRODUCT_PACKAGES variable to which applications you want to ship. You will also want to take a look at the PRODUCT_POLICY variable, as it defines sets of applications for your product type.

It can take some fiddling to get everything to build correctly, due to interdependencies between applications, but the Android build output does a pretty good job of explaining the problems when they arise.

like image 25
kgilmer Avatar answered Oct 03 '22 19:10

kgilmer