Add a third-party app on Android

Take the apk of firefly official SDKas an example to simply introduce how to add third-party applications.

To find thisdirectory(vendor/firefly/firefly_assistant) in SDK, it should be the Fireflyofficial to add apk by their own, then use it as an example.

Steps:

1、Create a directory under the vendor, such as:

vendor/firefly/firefly_assistant

2、Put the apk and related library files into the directory, suchas: DLNARemoteService.apk libtchip-vinit.so

3、Create an Android.mk file:

vendor/firefly/firefly_assistant/Android.mk

The code:

LOCAL_PATH := $(my-dir)

include $(CLEAR_VARS)
LOCAL_MODULE := DLNARemoteService
LOCAL_MODULE_CLASS := APPS
LOCAL_MODULE_PATH := $(TARGET_OUT_APPS)
LOCAL_SRC_FILES := $(LOCAL_MODULE)$(COMMON_ANDROID_PACKAGE_SUFFIX)
LOCAL_CERTIFICATE := PRESIGNED
LOCAL_MODULE_TAGS := optional
LOCAL_MODULE_SUFFIX := $(COMMON_ANDROID_PACKAGE_SUFFIX)
include $(BUILD_PREBUILT)

Explanation:

LOCAL_MODULE :=DLNARemoteService (The name of APK)

LOCAL_MODULE_PATH :=$(TARGET_OUT_APPS) ( after compilation, apk in the directory (/ system / app /) )

4、Create a mk file, such as:vendor/firefly/firefly_assistant.mk

CUR_PATH := vendor/firefly/

# add remote for remoteservice
PRODUCT_PACKAGES += \
          DLNARemoteService

PRODUCT_COPY_FILES +=$(CUR_PATH)/firefly_assistant/libtchip-vinit.so:system/lib/libtchip-vinit.s

Explanation:

PRODUCT_PACKAGES followed by apk names

PRODUCT_COPY_FILES followed by the path tothe library file

  1. device/rockchip/rksdk/device.mk to add:

includevendor/firefly/firefly_assistant.mk

The position aftercompilation:

out/target/product/rk3288/system/app/DLNARemoteService.apk

This article is very practical, and I have gained a lot of inspiration from it. Sharing EAEP2201 valid exam tutorial exam questions for free—open the door to promotions and salary increases!

I’m truly grateful for your article, it really made an impression. The SAE-C01 test score report content is impressive, and it’s available at no cost.

Your article was so unique, thank you for sharing this fresh perspective. Get the Valid C_BW4H_2505 dumps questions that helped me succeed in my career—for free today!

This article is exceptional in every way, I’m so thankful for your share. Here’s the Online BUS105 version exam that played a significant role in my promotion and salary increase. It’s free for everyone today. Good luck!

It was such a valuable learning experience. Here’s the free Pass NCP-EUC guarantee material! Wishing everyone good luck on their exams!

This article is really amazing, and I’ve learned a lot from it. Here’s the CPIM-8.0 latest test pdf test that helped me land my promotion and raise. It’s free today—good luck with your career progress!