Jump to content

RockPi4C: How to add prebuilt apk in Android 10 AOSP


Recommended Posts

Posted

Hello,

 

From the subject of this topic it may sound like a very common and must-know question. But trust me I am struggling to add my custom prebuilt apk in to the Android 10 AOSP to include it in my custom ROM.

What I have tried so far;

1. I have added a directory of my_app_name in <aosp_dir>/packages/apps/. Added an Android.mk file with below content in it, Placed my apk with that Android.mk in same directory. This did not work, I am not able to find any my_app_name.apk in out/targte/product directories.

LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE := my_app_name
LOCAL_MODULE_CLASS := APPS
LOCAL_MODULE_TAGS := optional
LOCAL_BUILT_MODULE_STEM := package.apk
LOCAL_MODULE_SUFFIX := $(COMMON_ANDROID_PACKAGE_SUFFIX)
LOCAL_CERTIFICATE := PRESIGNED
LOCAL_SRC_FILES := my_app_name.apk

# To launch my app on boot
LOCAL_OVERRIDES_PACKAGES := my_app_name Home Launcher2 Launcher3
include $(BUILD_PREBUILT)

 

2. Done same thing but on different location-this time in vendor/rockchip/common/apps/my_app_name/. added below lines in apps.mk there.

PRODUCT_PACKAGES += \ my_app_name

No luck.

 

Can anyone suggest a solution here?

 

Thanks,

D

 

 

Posted

Moved to Common issues / peer to peer technical support

 

This forum is for the Armbian system. We do not deal with Android whatsoever.

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines