Showing posts with label prebuilt application. Show all posts
Showing posts with label prebuilt application. Show all posts

Monday, January 28, 2013

Android User application as System Application or as a prebuilt application

In many scenario's with the customized android ROM's, we want some of the android applications to be a part of the android image. i.e we want the apk's as a prebuilt apk.

Follow these instructions, to prepare an apk as a prebuilt apk.

Adding a prebuilt APK (Android.mk)

  LOCAL_PATH := $(call my-dir)
  include $(CLEAR_VARS)
   
  # Module name should match apk name to be installed.
  LOCAL_MODULE := LocalModuleName
  LOCAL_SRC_FILES := $(LOCAL_MODULE).apk
  LOCAL_MODULE_CLASS := APPS
  LOCAL_MODULE_SUFFIX := $(COMMON_ANDROID_PACKAGE_SUFFIX)
   
  include $(BUILD_PREBUILT)