PHICOMM N1 折腾笔记

原文转载自 「ryank231231.blog」 ( https://ryank231231.top/archives/phicomm-n1-hacks.html ) By ryank231231

预计阅读时间 0 分钟(共 0 个字, 0 张图片, 0 个链接)

[collapse status="true" title="修改开机第一屏"]
效果图
logo.PARTITION.7z
原文地址

刷入方法

准备工具 (PC,双公头USB线,安卓调试工具包,可用的局域网络)
Android Developer

  1. 下载网盘中的压缩包并解压,将logo.PARTITION文件放置到安卓调试工具包根目录下
  2. 安卓系统下adb连接至N1,并重启至fastboot模式

adb connect <盒子的IP地址> 例如 adb connect 192.168.1.1:5555

adb shell reboot fastboot

  • 双公头USB连接至盒子,fastboot模式下刷入,完成后重启
  • fastboot devices 查看是否连接到设备

    fastboot flash logo logo.PARTITION

    fastboot reboot

    [/collapse]

    [collapse status="true" title="修改路由器中显示的设备名"]

    adb connect <IP>
    adb shell
    su&&mount -o rw,remount /system
    echo "net.hostname=PHICOMM_N1-XXXXXXXX"    >> /system/build.prop #把PHICOMM_N1-XXXXXXXX改成你想要的名字
    mount -o ro,remount /system
    

    [/collapse]

    [collapse status="true" title="为盒子添加谷歌TV框架及Play商店"]
    原文地址
    您也可以直接使用开源的第三方Play商店Aurora Store伪装设备并下载TV软件 https://gitlab.com/AuroraOSS/AuroraStore

    此说明针对已安装谷歌框架的N1设备 基础的Play商店及谷歌服务

    所需文件

    OpenGapps https://opengapps.org/

    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 文件管理应用等任何方式修改

    <?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>
    

    https://www.apkmirror.com/apk/google-inc/google-play-store-android-tv/

    https://www.apkmirror.com/apk/google-inc/google-play-services-android-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
    

    [scode type="yellow"]N1不是以TV设备开发的,部分系统应用可能发生崩溃 例如 原生设置[/scode]

    修改tv_core_hardware.xml后部分应用将会以TV模式运行,禁用或删除该文件后以手持设备的方式运行
    [/collapse]

    [collapse status="true" title="解决部分应用弹出框全白的问题"]
    原文地址
    本来这些是写在固件帖子里的,但是想到不是人人都可以看到,就直接写出来
    而且其他大佬的官改固件也都好久没更新了,重新刷其他固件的备份时间成本也挺高的,所以你可以参考这个自己搞一下

    适用于基于官方V2.19与V2.33的官改已经修改完成的版本

    务必校验SHA1值
    链接: https://pan.baidu.com/s/17fRwuHXEv9vrckrhm1v2ug 提取码: a6fn

    如何修复部分应用弹出框(dialog)白色背景与白色文字冲突的问题
    反编译/system/framework/framework-res.apk 或者使用相关工具直接修改resource.arsc

    修改 color 下相关条目颜色代码,完成后直接回编译替换 注意权限644 颜色的话按照喜好自己逐个尝试 - 需要兼顾黑白两色背景下的显示,不然你将陷入黑色背景黑色文本的窘境

    phi_alert_dialog_bg_color
    phi_alert_dialog_text_color
    phi_alert_dialog_button_color_unselect
    phi_alert_dialog_button_color_select
    phi_alert_dialog_line_color
    phi_alert_dialog_list_color_unselect
    

    我自己使用的颜色配置

    phi_alert_dialog_bg_color = E85B5B5B
    phi_alert_dialog_text_color = FFF0F0F0
    phi_alert_dialog_button_color_unselect = FF1F292E
    phi_alert_dialog_button_color_select = FF7890FD
    phi_alert_dialog_line_color = FF7890FD
    phi_alert_dialog_list_color_unselect = 00FFFFFF

    071914dcplp6ccclzc4u4u.jpg
    [/collapse]

    more_vert