谷歌账号

当前位置: > 谷歌账号

[技术篇] Android11导入GMS后登录 [技术篇]Android11导入GMS后登录账号提示“您的账号未成功添加”

当前栏目:谷歌账号|更新时间:2022-09-06 09:00:44|浏览:0

一、项目需求:

在项目中导入Google框架,Google相关功能可以正常使用。 二、功能实现:

1、首先下载Google框架GMS包,可以在The Open GApps Project网站下载。选择相关配置后下载即可,有些包比较大,下载需要耐心等待一下,最后翻墙下载会快一些。

​编辑

2、由于本人使用的TV平台,Google版本需要使用手机版,不能使用TV版,因为TV版很多apk在Google商店中无法搜索到。修改mtv_core_hardware.xml文件,把TV版改成手机版。有多个路径:device/google/atv/permissions/tv_core_hardware.xml ,vendor/mediatek/common-tv/configs/mtv_core_hardware.xml,vendor/mediatek/proprietary_tv/open/common/preinstall/permission/mtv_core_hardware.xml<permissions><featurename="android.hardware.type.television"/><featurename="android.hardware.screen.landscape"/><featurename="android.hardware.usb.host"/><libraryname="com.android.future.usb.accessory"file="/system/framework/com.android.future.usb.accessory.jar"/> <featurename="android.hardware.wifi"/><featurename="android.hardware.wifi.direct"/><featurename="android.hardware.ethernet"/><featurename="android.software.app_widgets"/><featurename="android.software.input_methods"/><featurename="android.software.backup"/> <featurename="android.software.voice_recognizers"/><featurename="android.software.cant_save_state"/><featurename="nrdp.modelgroup"/>