Android 启动关闭GMS包
对于海外的项目,我们往往需要启动GMS包,主要通过宏控启动与关闭GMS,具体修改参照如下:
启动:
/project/ProjectConfig.mk:
+#gms
+BUILD_GMS = yes
+BUILD_AGO_GMS = no
+GAPPS_PACKAGE_SetupWizard = no
+GAPPS_PACKAGE_AssistantGo = no
+GAPPS_PACKAGE_Chrome = no
+GAPPS_PACKAGE_DuoGo = no
+GAPPS_PACKAGE_GalleryGo = no
+GAPPS_PACKAGE_GMailGo = no
+GAPPS_PACKAGE_GoogleSearchGo = no
+GAPPS_PACKAGE_LatinImeGoogleGo = no
+GAPPS_PACKAGE_MapsGo = no
+GAPPS_PACKAGE_NavGo = no
+GAPPS_PACKAGE_YouTube = no
+GAPPS_PACKAGE_CalendarGoogle = no
+GAPPS_PACKAGE_GoogleContacts = no
+GAPPS_PACKAGE_FilesGoogle = no
+GAPPS_PACKAGE_OobConfig = no
+GAPPS_PACKAGE_talkback = no
+GAPPS_PACKAGE_GmsSampleIntegrationGo = no
+GAPPS_PACKAGE_CalculatorGoogle = no
+GAPPS_PACKAGE_DeskClockGoogle = no
关闭:
/project/ProjectConfig.mk:
+#gms
+BUILD_GMS = no
+BUILD_AGO_GMS = no
+GAPPS_BUILD =
重新编译验证,修改生效