跳到正文

正在自动登录…

← 返回项目列表

WeWaffles/OneLineage

系统切换

在已root的三星手机上,无需刷机即可在One UI和LineageOS 23.2 GSI之间热切换,通过用户态pivot_root容器实现,适合喜欢折腾的极客用户。

AI 中文解读 · 根据仓库描述与 README 生成 · 2026/10/21 16:16:13 · 查看原文

普通Shell应用与服务
累计 Stars
63
当前热度
未达当前门槛
仓库创建时间
打开 GitHub ↗

选用指南

AI 根据 README 整理 · 2026/10/21 16:16:13

使用方式

通过Android应用和脚本切换,构建APK需JDK 17、Android SDK build-tools 34和android-34平台。

查看 README 依据
- Internet access for the GSI download (LineageOS 23.2 GSI, EXT4, VANILLA or GAPPS builds from SourceForge) ## What's in here | Path | What it is | | --- | --- | | `src/`, `res/`, `AndroidManifest.xml` | The Android app (`com.wewaffles.onelineage`) | | `assets/master_prepare.sh` | Stages the rootfs, binds the patched files, fixes labels/ownership | | `assets/master_inner.sh` | Runs inside the container, starts the guest zygote | | `assets/switch_to_lineage.sh` / `return_to_oneui.sh` | Switch in and back out | | `assets/zygote_exec` | Static aarch64 launcher for the guest zygote |
Edit the paths at the top of `build_apk.sh` (JDK 17, Android SDK build-tools 34, android-34 platform), provide your own signing keystore, then run `./build_apk.sh`. ## Credits LineageOS GSI builds by MisterZtr (SourceForge). LineageOS and Android are trademarks of their respective owners. Not affiliated with Samsung, Google or LineageOS.
部署要求

需要已root的三星手机(测试机型为One UI 8.5的S26 Ultra),/data分区有足够空间,且需联网下载GSI。

查看 README 依据
> It may not work on other Samsung models, other One UI versions, or other devices at all. It is experimental, it replaces core parts of a running system, and it can crash, hang or soft-brick your phone, fill `/data`, or break radio/SMS. **Back up everything first. Use at your own risk.** > Also, I did use AI a fair bit in this project, it would have taken a LOT longer without it. ## Requirements - A rooted Samsung phone (the tested one is an S26 Ultra on One UI 8.5) - Enough free space on `/data` for the extracted GSI
- Internet access for the GSI download (LineageOS 23.2 GSI, EXT4, VANILLA or GAPPS builds from SourceForge) ## What's in here | Path | What it is | | --- | --- | | `src/`, `res/`, `AndroidManifest.xml` | The Android app (`com.wewaffles.onelineage`) | | `assets/master_prepare.sh` | Stages the rootfs, binds the patched files, fixes labels/ownership | | `assets/master_inner.sh` | Runs inside the container, starts the guest zygote | | `assets/switch_to_lineage.sh` / `return_to_oneui.sh` | Switch in and back out | | `assets/zygote_exec` | Static aarch64 launcher for the guest zygote |
已知限制

仅在少数设备上测试,可能不适用于其他型号;实验性功能,可能导致崩溃、挂起或软砖;返回One UI可能需要手动重启;访客系统无IMS栈,语音通话不可用;开发者选项崩溃。

查看 README 依据
# OneLineage Hot-switch between stock **One UI** and a **LineageOS 23.2 (Android 16) GSI** on a rooted Samsung phone, with no reflashing and no second partition. OneLineage stages the GSI under `/data/local/tmp`, pivots into it as a container with its own zygote and system_server, and can hand the screen back to One UI. If something isn't working and you have a fix feel free to make a pr! > ## Disclaimer > **This has been tested on only a handful of devices, and it seems if you want to install it without making modifications, it has to be on Android 16**
> It may not work on other Samsung models, other One UI versions, or other devices at all. It is experimental, it replaces core parts of a running system, and it can crash, hang or soft-brick your phone, fill `/data`, or break radio/SMS. **Back up everything first. Use at your own risk.** > Also, I did use AI a fair bit in this project, it would have taken a LOT longer without it. ## Requirements - A rooted Samsung phone (the tested one is an S26 Ultra on One UI 8.5) - Enough free space on `/data` for the extracted GSI
12. **Boot diagnostics.** Each boot writes `/data/boot_failures.log`. ## Known issues - Returning to One UI may still need a manual reboot. - The guest binds the host's `media.codec`, whose AIDL hash differs from the GSI's, which can cause high CPU during codec enumeration. - No IMS stack in the guest, so **voice calls don't work** (data and SMS depend on One UI's `imsd`). - Developer options crash (the guest registers no `adb` service). - DTMF tones glitch, and deep-buffer audio hangs, so it stays disabled. - Never kill the host `netd` while Lineage is running. ## Building

README

正在加载 README…

收录信息

仓库创建时间
2026/10/20 22:08:41
首次达标收录
2026/10/21 16:11:08
统计更新时间
2026/10/22 19:01:13

按创建时长与累计 Stars 判断等级。首次达标收录后,即使未达当前门槛仍保留;累计 Stars 和仓库状态会定期更新。确认只有 README 及辅助文件的仓库会停止公开。

模型评估

普通加权总分 3.6 / 5

新颖度
4.0
实用价值
3.0
成熟度
3.9
实质含量
3.8

由 Jev 模型根据仓库描述与 README 评估,2026/10/21 16:11:08 生成。评分仅供参考,不是代码、安全或许可证审查;热度等级另按创建时长与累计 Stars 计算。

仓库信息

最近推送
2026/10/21 14:29:30
许可证标识
未识别,请查看仓库说明
Fork 数
6
当前状态
未归档

收录记录

按创建时长与累计 Stars 首次收录:小火
首次发现项目