本帖最后由 Lilith 于 2020-6-12 17:15 编辑
此说明针对已安装谷歌框架的N1设备 【基础的Play商店及谷歌服务
所需文件
tv_core_hardware.xml 设备声明 - /system/etc/permissions/tv_core_hardware.xml
复制代码
PrebuiltGmsCorePano.apk 谷歌服务 TV - /system/priv-app/PrebuiltGmsCorePano/PrebuiltGmsCorePano.apk
复制代码
Tubesky.apk 谷歌商店 TV - /system/priv-app/Tubesky/Tubesky.apk
复制代码
NoTouchAuthDelegate.apk 登录程序 TV - /system/app/NoTouchAuthDelegate/NoTouchAuthDelegate.apk
复制代码
你可以使用 ADB SFTP 文件管理应用等任何方式修改
1.首先将tv_core_hardware.xml文件复制到/system/etc/permissions/目录 更改权限为0644 rw-r--r-- - <?xml version="1.0" encoding="utf-8"?>
- <!-- Copyright (C) 2014 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.
- -->
- <permissions>
- <!-- These are the hardware components that all television devices must
- include. Devices with optional hardware must also include extra hardware
- files.
- -->
- <feature name="android.hardware.audio.output" />
- <feature name="android.hardware.location" />
- <feature name="android.hardware.location.network" />
- <feature name="android.hardware.screen.landscape" />
- <feature name="android.hardware.type.television" />
- <feature name="android.software.backup" />
- <feature name="android.software.leanback" />
- <feature name="android.software.leanback_only" />
- <feature name="android.software.live_tv" />
- <feature name="android.software.picture_in_picture" />
- <feature name="android.software.voice_recognizers" />
- </permissions>
复制代码
2.清除设备自带谷歌服务,Play商店 数据 / 卸载更新 后删除应用,也可不删除 / 给0700权限禁用也可以
3.复制包含 PrebuiltGmsCorePano.apk Tubesky.apk NoTouchAuthDelegate.apk的文件夹到 /system/priv-app/ 文件夹权限更改为0755 文件权限更改为0644 或下载安装包 更新谷歌服务与Play商店
4.在 /system/build.prop 中更改设备信息,让谷歌认为这是一台已知的TV设备
ro.product.model=
ro.product.brand=
ro.product.name=
ro.product.device=
ro.product.board=
ro.product.manufacturer=
ro.build.product=
Shield TV - ro.product.model=SHIELD
- ro.product.brand=NVIDIA
- ro.product.name=darcy_ironfist
- ro.product.device=darcy
- ro.product.board=
- ro.product.manufacturer=NVIDIA
- ro.build.product=tegra
复制代码
MIBOX S - ro.product.model=MIBOX4
- ro.product.brand=Xiaomi
- ro.product.name=oneday
- ro.product.device=oneday
- ro.product.board=
- ro.product.manufacturer=Xiaomi
- ro.build.product=oneday
复制代码
Nexus Player - ro.product.model=Nexus Player
- ro.product.brand=google
- ro.product.name=fugu
- ro.product.device=fugu
- ro.product.board=fugu
- ro.product.manufacturer=Asus
- ro.build.product=fugu
复制代码
5.重启设备
6.恢复普通谷歌服务,此篇帖子反推
注意
N1不是以TV设备开发的,部分系统应用可能发生崩溃 例如 原生设置
修改tv_core_hardware.xml后部分应用将会以TV模式运行,禁用或删除该文件后以手持设备的方式运行
【您如果 转载 使用 修改 此篇帖子内容,请都不要设置 仅回复可见 我真的不怎么喜欢这种行为,真的有需要的人根本查看不了,还要很麻烦的注册个账号】
|