一、項(xiàng)目需求:
在項(xiàng)目中導(dǎo)入Google框架,Google相關(guān)功能可以正常使用。
二、功能實(shí)現(xiàn):
1、首先下載Google框架GMS包,可以在The Open GApps Project網(wǎng)站下載。選擇相關(guān)配置后下載即可,有些包比較大,下載需要耐心等待一下,最好用外網(wǎng)下載會快一些。
文章來源:http://www.zghlxwxcb.cn/news/detail-453077.html
?2、由于本人使用的TV平臺,Google版本需要使用手機(jī)版,不能使用TV版,因?yàn)門V版很多apk在Google商店中無法搜索到。修改mtv_core_hardware.xml文件,把TV版改成手機(jī)版。有多個(gè)路徑: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文章來源地址http://www.zghlxwxcb.cn/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
到了這里,關(guān)于[技術(shù)篇] Android11上導(dǎo)入GMS后,登錄Google賬號提示“您的賬號未成功添加”問題。的文章就介紹完了。如果您還想了解更多內(nèi)容,請?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!