Menu

Add pre-built app to AOSP


For instance: I add my app named MZA
How to add: Following are the steps to add MZA application to Android as basic app.
i.    Copy MZA source code folder to /mydroid/packages/apps/ folder.
ii.    Create Android.mk file inside MZA directory.
                    Android.mk    looks like
.                 LOCAL_PATH := $(call my-dir)
.                    include $(CLEAR_VARS)
.                    LOCAL_STATIC_JAVA_LIBRARIES := libarity
.                    LOCAL_SRC_FILES := $(call all-java-files-under, src)
.                    LOCAL_PACKAGE_NAME := MZA
.                    include $(BUILD_PACKAGE)
iii.     Edit generic.mk or generic_no_telephone.mk or devices.mk or board_name.mk  to add line for  MZA ( 2 file đầu trong thư mục build, 2 file sau trong thư mục devices)
                   looks like
.         PRODUCT_PACKAGES := \
.                    AccountAndSyncSettings \
.                    AlarmClock \
.                    MZA\
                     ...........
iv.    Now Compiled source code
v.     After compilation is completed you will see MZA installed, and MZA.apk in system/app/ in folder out

Không có nhận xét nào :

Đăng nhận xét