RK3568 android13 预置APK
现象:
需要预置一个测试APK,按照以往得方法,将APK放到 device/rockchip/rk356x/rk3568_t/preinstall 目录下面。
然后编译成新得固件。发现桌面没有显示APK。
查看OUT目录下面有预置得APK,out/target/product/rk3568_t/odm/bundled_persist-app/autotest/autotest.apk。说明APK是有编译到得。
抓取开机log,发现有错误。
07-01 06:40:54.790 483 483 W PackageManager: Failed to scan /odm/bundled_persist-app/autotest: No APK Signature Scheme v2 signature in package /odm/bundled_persist-app/autotest/autotest.apk
修改方法:
修改device/rockchip/rk356x/rk3568_t/preinstall/autotest目录下得Android.mk。添加 LOCAL_REPLACE_PREBUILT_APK_INSTALLED := $(LOCAL_PATH)/$(LOCAL_MODULE).apk 就可以在桌面显示了。
LOCAL_SRC_FILES := $(LOCAL_MODULE)$(COMMON_ANDROID_PACKAGE_SUFFIX) +LOCAL_REPLACE_PREBUILT_APK_INSTALLED := $(LOCAL_PATH)/$(LOCAL_MODULE).apk