tested version: android13
预置apk, Android.bp写法:
android_app_import {
name: "testapp",
dex_preopt: {
enabled: false,
},
apk: "Test.apk",
presigned: true
}
device下mk文件中,添加
PRODUCT_PACKAGES += testapp
预置xml文件, Android.bp:
参考:https://blog.csdn.net/minwenping/article/details/119812488
prebuilt_etc {
name: "test-default-permissions.xml",
sub_dir: "default-permissions",
src: "default-permissions.xml",
}
device下mk文件中,添加
PRODUCT_PACKAGES += test-default-permissions.xml