一、项目需求:
在项目中导入Google框架,Google相关功能可以正常使用。
二、功能实现:
1、首先下载Google框架GMS包,可以在The Open GApps Project网站下载。选择相关配置后下载即可,有些包比较大,下载需要耐心等待一下,最好用外网下载会快一些。
文章来源:https://www.toymoban.com/news/detail-453077.html
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文章来源地址https://www.toymoban.com/news/detail-453077.html
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2011 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<!-- This is the minimum set of features supported by TV devices. -->
<permissions>
<feature name="android.hardware.type.television" />
<!--feature name="android.hardware.faketouch" /-->
<feature name="android.hardware.screen.landscape" />
<!--feature name="android.hardware.microphone" /-->
<feature name="android.hardware.usb.host" />
<!--feature name="android.hardware.usb.accessory" /-->
<library name="com.android.future.usb.accessory"
file="/system/framework/com.android.future.usb.accessory.jar" />
<!-- <feature name="android.hardware.camera.any" /> -->
<!--<feature name="android.hardware.camera.front" />-->
<!-- <feature name="android.hardware.camera" />
<feature name="android.hardware.camera.autofocus" />
<feature name="android.hardware.camera.flash" /> -->
<feature name="android.hardware.wifi" />
<feature name="android.hardware.wifi.direct" />
<feature name="android.hardware.ethernet" />
<feature name="android.software.app_widgets" />
<feature name="android.software.input_m
到了这里,关于[技术篇] Android11上导入GMS后,登录Google账号提示“您的账号未成功添加”问题。的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!