I want to build a rom from source and include my app as system app. What I’ve tried:
1.Copy my project into $SOURCE_DIR/packages/apps/
2.add Android.mk in root folder of my project:
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_STATIC_JAVA_LIBRARIES := android-common
LOCAL_SRC_FILES := $(call all-java-files-under, src)
LOCAL_PACKAGE_NAME := packagename
LOCAL_CERTIFICATE := platform
include $(BUILD_PACKAGE)
include $(call all-makefiles-under,$(LOCAL_PATH))
3.Configure building for maguro and:
make -j1 otapackage
But I don’t see my app in output image’s /system/app directory.
What am I missing?
I do not see in your mk file the following line:
And I guess you have just forgotten to include your package into
build/target/product/core.mkfile under the sectionPRODUCT_PACKAGES