Android Q 添加GMS包

1、下载并添加到源码中,如:alps/vendor/google_r6:

2、修改项目配置,device/maisui/projectname/ProjectConfig.mk:

 MTK_GAUGE_VERSION = 30
 MTK_SWIP_WMAPRO = no
 BUILD_AGO_GMS = no
+# add for gms start
+BUILD_GMS = yes
+# add for gms end
 MTK_RCS_UA_SUPPORT = no
 MTK_GPU_VERSION = mali bifrost r20p0
 MTK_GPU_COMMON_DVFS_SUPPORT = yes

3、把gms.mk加入到项目编译中

+# add for gms start
+# GMS interface
+ifdef BUILD_GMS
+ifeq ($(strip $(BUILD_GMS)), yes)
+ ifeq ($(strip $(BUILD_AGO_GMS)), yes)
+ $(call inherit-product-if-exists, vendor/google_r6/products/gms_go.mk)
+ else
+$(call inherit-product-if-exists, vendor/google_r6/products/gms.mk)
+ endif
+
+endif
+endif
+# add for gms end

4、修改device/mediatek/common/device.mk

@@ -4851,33 +4851,33 @@ endif
 # From Android Q, GMS devices must preload Google signed Mainline module release
 ifeq ($(BUILD_GMS), yes)
     # Mainline module overlay
-    PRODUCT_PACKAGES += \
+    #PRODUCT_PACKAGES += \
         GoogleExtServicesConfigOverlay \
         GooglePermissionControllerOverlay \
         GooglePermissionControllerFrameworkOverlay
 
-    PRODUCT_PACKAGE_OVERLAYS +
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值