Jump to content

RockPi4C: How to add prebuilt apk in Android 10 AOSP


Dmp

Recommended Posts

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

 

 

Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines