需求:Android 系统在国外使用安装app很多需要gms服务,否则无法正常使用,所以出厂前必须要把GMS包集成进系统
1.下载gms包
https://download.csdn.net/download/qq_46524402/88136401
2.解压gms包 并放到Android SDK根目录的vender文件夹下
3.然后在目录device/rockchip/rk356x/rk3568_r/rk3568_r.mk下修改如下
文中红色部分为修改部分
include device/rockchip/common/build/rockchip/DynamicPartitions.mk
include device/rockchip/rk356x/rk3568_t/BoardConfig.mk
include device/rockchip/common/BoardConfig.mk
$(call inherit-product, device/rockchip/rk356x/device.mk)
$(call inherit-product, device/rockchip/common/device.mk)
$(call inherit-product, frameworks/native/build/tablet-10in-xhdpi-2048-dalvik-heap.mk)
#集成GMS
$(call inherit-product-if-exists, vendor/partner_gms/products/gms.mk)//gms包中的gms文件