Skip to content

Add 6.6.77-android15-8-g5770c661275f XRing O1 kernel offsets - #95

Open
Gong-Mi wants to merge 1 commit into
YuKongA:mainfrom
Gong-Mi:add-xring-o1-6.6.77-offsets
Open

Add 6.6.77-android15-8-g5770c661275f XRing O1 kernel offsets#95
Gong-Mi wants to merge 1 commit into
YuKongA:mainfrom
Gong-Mi:add-xring-o1-6.6.77-offsets

Conversation

@Gong-Mi

@Gong-Mi Gong-Mi commented Sep 3, 2026

Copy link
Copy Markdown

Summary

Add support for the second validated XRing O1 (玄戒 O1) kernel build: 6.6.77-android15-8-g5770c661275f-abogki443185593-4k. PR #7 added the sibling 6.6.118-android15-8-gc44b714366cc-abogki519650608-4k; this is the other kernel the XRING O1 platform ships with.

Changes

  • Add src/kernels/6.6.77-android15-8-g5770c661275f-abogki443185593-4k/offsets.h
  • Register it in src/kernels/offsets.h

Source of the offsets

  • Values were generated from the OS3.0.303.0.WOTCNXM full-OTA boot.img and verified on-device against the prebuilt libghostlock.so profile in the upstream XRING O1 tree (ayyy7128/ghostlock-xringo1, now offline):
    • off_init_task = 0x020de280
    • off_init_cred = 0x020f0548
    • off_selinux_enforcing = 0x02315f68
    • etc. (full set in the header)
  • Physical load parameters are not embedded: the existing SOC_XRING runtime branch (XRING_KERNEL_PHYS_LOAD) already covers this device, same as PR Add Xiaomi Pad 7 Ultra support with XRing physical mapping #7.

Validation

  • Cross-checked against the sibling 6.6.118 offsets already merged in PR Add Xiaomi Pad 7 Ultra support with XRing physical mapping #7 (same platform family, symbol layout consistent).
  • Compiled clean: clang -fsyntax-only -I src/core -I src/kernels -DTARGET_CONFIG_H='"target.h"' src/core/main.c.
  • Not yet tested on a physical device running this exact build — on-device confirmation is still required (same caveat applies to all offsets in this table).

概述

为玄戒 O1 平台的第二个已验证内核 6.6.77-android15-8-g5770c661275f-abogki443185593-4k 添加偏移支持。PR #7 已合并其兄弟内核 6.6.118-android15-8-gc44b714366cc-abogki519650608-4k,本 PR 补齐玄戒 O1 的另一内核。

变更

  • 新增 src/kernels/6.6.77-android15-8-g5770c661275f-abogki443185593-4k/offsets.h
  • src/kernels/offsets.h 中注册

偏移来源

  • 偏移由 OS3.0.303.0.WOTCNXM 完整 OTA 的 boot.img 生成,并经上游玄戒 O1 项目(ayyy7128/ghostlock-xringo1,现已下线)预编译 libghostlock.so 的 profile 在真机验证:
    • off_init_task = 0x020de280
    • off_init_cred = 0x020f0548
    • off_selinux_enforcing = 0x02315f68
    • 其余见头文件
  • 物理加载参数不写入偏移表:与 PR Add Xiaomi Pad 7 Ultra support with XRing physical mapping #7 相同,由现有 SOC_XRING 运行时分支(XRING_KERNEL_PHYS_LOAD)覆盖。

验证情况

  • 已与 PR Add Xiaomi Pad 7 Ultra support with XRing physical mapping #7 合并的 6.6.118 偏移交叉核对(同一平台家族,符号布局一致)。
  • 编译验证通过:clang -fsyntax-only -I src/core -I src/kernels -DTARGET_CONFIG_H='"target.h"' src/core/main.c
  • 尚未在运行该精确构建的真机上测试——仍需真机确认(与本表内所有偏移的既有前提一致)。

Complement PR YuKongA#7: the second validated XRing O1 (玄戒 O1) kernel build.
Values sourced from the upstream XRING O1 tree (ayyy7128/ghostlock-xringo1),
generated from the OS3.0.303.0.WOTCNXM full-OTA boot.img and verified
on-device against its prebuilt libghostlock.so profile.
@Gong-Mi
Gong-Mi force-pushed the add-xring-o1-6.6.77-offsets branch from 4ca0cb6 to cac6113 Compare September 3, 2026 15:40
@Gong-Mi

Gong-Mi commented Sep 3, 2026

Copy link
Copy Markdown
Author

独立验证补充(符号级核对)

针对偏移来源的可复现性,已从 OS3.0.302.0.WOTCNXM / OS3.0.303.0.WOTCNXM 两个 OTA 的 violin(Xiaomi Pad 7S Pro, XRing O1)boot.img 分别提取内核(局部 Range 拉取 payload,未全量下载),两者 banner 均为:

Linux version 6.6.77-android15-8-g5770c661275f-abogki443185593-4k

用 vmlinux 符号表对 PR 中的偏移逐项核对(基址 0xffffffc000000000,off = vaddr − base):

字段 PR 值 vmlinux 符号 匹配
off_init_task 0x020de280 init_task @ 0x820de280
off_init_cred 0x020f0548 init_cred @ 0x820f0548
off_root_task_group 0x022d4580 root_task_group @ 0x822d4580
off_selinux_enforcing 0x02315f68 selinux_state @ 0x82315f68 ✅ 注1
off_selinux_blob_sizes 0x0164fb48 selinux_blob_sizes @ 0x8164fb48
off_security_hook_heads 0x0164f410 security_hook_heads @ 0x8164f410
off_slide_nfulnl_logger 0x020d2270 nfulnl_logger @ 0x820d2270
off_slide_boot_id 0x02336f58 sysctl_bootid @ 0x82336f58
off_slide_loggers_0_1 0x020d21c8 loggers @ 0x820d21b8 (+0x10) ⚠️ 注2

注1:6.6 内核中独立的 selinux_enforcing 已并入 struct selinux_state,本偏移实际指向 selinux_state 基址,字段名为历史沿用(与 6.6.118 条目相同模式)。

注2:off_slide_loggers_0_1 在当前 main 分支无功能消费点(仅 _RSO_IMAGE 镜像与 offsets_json 导出),属于遗留字段;xringo1 上游取值为 loggers+0x10(来自其验证过 .so 的 slide 槽位),与 loggers 基址的差值不影响本仓库当前代码路径。

结论:除遗留字段外,全部功能偏移与该内核符号精确一致;302/303 两个 OTA 内核 build 相同,本条目对两者均适用。

@YuKongA

YuKongA commented Sep 5, 2026

Copy link
Copy Markdown
Owner

额,你有实际测试吗

@Gong-Mi

Gong-Mi commented Sep 5, 2026

Copy link
Copy Markdown
Author

https://github.com/ayyy7128/ghostlock-xringo1 参考应该是这个 不过我需要等我平板换主板之后测试

@Gong-Mi

Gong-Mi commented Sep 5, 2026

Copy link
Copy Markdown
Author

上面那个项目 的 APP用过 可以稳定给Linux version 6.6.77-android15-8-g5770c661275f-abogki443185593-4k 越狱

本项目的 哪怕给ota包链接也不能运行

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants