织梦CMS - 轻松建站从此开始!

欧博ABG-会员注册-官网网址

Jamiexhz/Switchroot: 这是一个Nintendo Switch 安卓系统自动编译

时间:2024-06-10 01:30来源: 作者:admin 点击: 37 次
这是一个Nintendo Switch 安卓系统自动编译脚本。使用本脚本及附属教程,可为Nintendo Switch编译安装Android 10(Q)。 This is an automatic compile script for Nintendo Switch Android system.

由于Github内已经出现更为完善的脚本 (该脚本尚存在影响使用的兼容性问题),不再建议使用本项目中的脚本。本项目之后会专注于教程的更新。
针对我个人遇到的一些兼容性问题,我修改了脚本中的部分内容,以实现正常编译。
在原项目开发者修复问题之前,本教程将使用我个人修改的版本,并会随原项目一并更新。
修改版脚本最后更新:2020/12/26 21:29 GMT+8:00
我的编译平台:Vultr云服务器 CPU:6 vCore; RAM:16 GB; Storage:320 GB SSD - Ubuntu 20.04 x64 (系统镜像由Vultr提供)

As someone has released a better script with more functions (Some compatibility problems remain to be fixed), this script is not recommended anymore. This project will work as a tutorial from now on.
Due to compatibility problems in the script mentioned above, I modified some parts of the original script to make it run on my end.
The modified version of this script will be used in this tutorial before the original developers fix the issues.
Last update for the modified script: 2020/12/26 21:29 GMT+8:00
My compliaton platform: Vultr Cloud Instance CPU:6 vCore; RAM:16 GB; Storage:320 GB SSD - Ubuntu 20.04 x64 (ISO provided by Vultr)

这是一个Nintendo Switch安卓系统自动编译脚本。
使用本脚本及附属教程,可为Nintendo Switch编译并安装最新版本的安卓系统(Android 10,或Android Q)
脚本的制作受到了Gitlab - ZachyCatGames的教程 与 Lineage OS官方教程 的指导,感谢原作者。
以下部分内容修改了makinbacon21/switchroot-script-builder 制作的脚本,该脚本具有自动设置Magisk、Joy-Con补丁、超频补丁、系统版本的功能。在使用该脚本的过程中,我发现了一些兼容性问题,并做出了调整。修改版脚本仅作过度使用,若原作者完善了兼容性,我将立刻改用原版脚本。若有侵权请提交issue,我将移除相关内容。
教程附录在页面下方。

This is an automatic compile script for Nintendo Switch Android System.
By using this script and tutorials attached below, you are able to compile and install Android 10 (or Android Q) on Nintendo Switch.
Tutorial is in Chinese Only so far. You may follow This Guide instead, but replace anything related to commands with this simple one-click script.
This script won't be possible without the guidance from Gitlab - ZachyCatGames and Lineage OS Official.
Content below involved script from makinbacon21/switchroot-script-builder , which provide Magisk/Joy-con Patch/Version Select and more one-key options. During my actual test, I found some compatibility problems within and did some modification. The modified script is only intended for temporary use. I'll update to the official version as soon as the compatibility issues are fixed. Please submit an issue if you find this offend your copyright, and I'll remove the related contents right away.

使用脚本需自行承担风险,作者不对任何可能造成的问题负责。
Use this script at your own risk. The author won't be responsible to any problem occurred.

使用本脚本 Use this script

已知问题 Known Issue

原版脚本 Original Script

error: vendor/lineage/build/soong/Android.bp:30:8: module "generated_kernel_includes": cmd: unknown variable '$(PATH_OVERRIDE_SOONG)'

尝试清理安装环境后再试 rm -rf ./android
Try clean the installation environment: rm -rf ./android

若无效,请在重启系统后尝试执行以下指令 If problem remains, reboot and then try these commands:

cd ~/android/lineage make clean make bacon

如若未能解决问题,请执行sudo nano ~/.profile,删除之前增加的环境变量,即
If problem remains, please do sudo nano ~/.profile to delete the PATH added previously, which is:

if [ -d "$HOME/platform-tools" ] ; then PATH=*** fi if [ -d "$HOME/bin" ] ; then PATH=*** fi

手动执行adb环境变量添加命令,即
Do these commands manually to add PATHs.

sudo echo "" >> ~/.profile sudo echo "if [ -d "$HOME/platform-tools" ] ; then" >> ~/.profile sudo echo " PATH="$HOME/platform-tools:$PATH"" >> ~/.profile sudo echo "fi" >> ~/.profile sudo echo "" >> ~/.profile

之后,打开脚本文件,自curl:/storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo开始,手动执行后续命令
Now, open the script file and do the commands manually from curl:/storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo

如问题依然存在,请多次尝试,直至正常编译为止
Try more times until the problem was solved.

warning: unused parameter...; warning: missing...

正常现象。请继续等待编译完成。编译进程可能会长达数个小时。
It's normal. Please wait until the compliation progress finishes, which may take several hours.

安装教程 Installation Tutorials (Chinese)

简介

Switchroot小组已于此前正式发布了安卓8.1(O)系统,您可以从此处下载安装
目前,Switchroot正在着手进行安卓10(Q)系统的适配工作。当前系统已处于基本可用状态。
由于系统bug仍然较多、功能尚不完全、更新频率较高,现需自行编译安装。 在完成环境准备后,执行此脚本,即可便捷编译由Switchroot小组开发的安卓10(Q)系统安装文件。

操作前须知

安卓10(Q)系统添加了以下新特性,如:

手柄(Joy-Con)有线(滑轨)连接

OTG与MTP(连接外置存储设备与电脑)

自动旋转

快速充电及电量显示

深度睡眠(节约电量)等

优化了以下既有功能:

系统反应延迟(触摸及界面卡顿)

性能配置

视频输出

但仍存在部分恶性bug,如:

深度睡眠(待机)后无法唤醒

使用Chrome浏览器导致的系统崩溃

自动旋转偶发性失灵

游戏渲染问题(偶发性花屏)

蓝牙持续崩溃、蓝牙音频无法使用

请自行根据需求,选择使用无需编译、相对的稳定的安卓O(8)系统,或依据本教程自行编译安装安卓Q(10)系统
由于本人技术能力有限,无法保证本脚本及附属教程完全适用于您的操作环境,也不能确保由第三方制作的安卓系统不会破坏您的Switch主机。
对于使用本脚本及相关教程而可能造成的任何不可挽回的损失,作者不承担任何责任。请您三思后行、量力而行。

编译、安装与使用教程

1. 软件准备

基本的Linux操作常识

对Switch Homebrew(自制固件)有一定了解及操作经验

正常的文字理解能力

2. 硬件准备

Switch端

一台可以软破、功能正常的Switch主机
注入器或PC、手机端注入软件
一张32GB以上的空闲内存卡

电脑端

16GB以上可用内存;
250GB以上可用硬盘空间;
(SSD硬盘可以有效提高编译速度)
原生或虚拟Linux系统;
(推荐原生安装Ubuntu 20.04以上版本,否则可能会缺少组件导致安装失败)
高性能CPU
(将缩短编译时间)

3. 执行安装指令

以下将使用修改版脚本

wget https://raw.githubusercontent.com/Jamiexhz/switchroot-script-builder/main/Q_Builder.sh sudo chmod a+x Q_Builder.sh sudo ./Q_Builder.sh

4. 下载安装文件

所需文件已经打包完毕,待上传

5. 在Switch上完成安装

待补充

Step.1 使用Hetake分区与初始化配置

Step.2 在TWRP内输入镜像

Step.3 刷入GApps(谷歌服务框架)

(责任编辑:)
------分隔线----------------------------
发表评论
请自觉遵守互联网相关的政策法规,严禁发布色情、暴力、反动的言论。
评价:
表情:
用户名: 验证码:
发布者资料
查看详细资料 发送留言 加为好友 用户等级: 注册时间:2024-09-17 03:09 最后登录:2024-09-17 03:09
栏目列表
推荐内容