Skip to content

Commit

Permalink
checkout xiaoleGun
Browse files Browse the repository at this point in the history
  • Loading branch information
5kind committed Dec 20, 2023
1 parent bc11f79 commit 83453a9
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 9 deletions.
26 changes: 19 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
**中文** | [English](README_EN.md)

# KernelSU+LXC+DOCKER Action
# KernelSU Action

用于 Non-GKI Kernel 的 Action,具有一定的普遍性,需要了解内核及 Android 的相关知识得以运用。

Expand Down Expand Up @@ -74,10 +74,9 @@ Fork 本仓库到你的储存库然后按照以下内容编辑 config.env,之
由于 [#23](https://github.com/xiaoleGun/KernelSU_Action/issues/23) 的需要,我们提供可自定义 Google 上游分支的选项,主要的有分支有
| Clang 分支 |
| ---------- |
| main |
| android-gs-bluejay-5.10-android13 |
| android-msm-bonito-4.9-android12-qpr1 |
| android-msm-coral-4.14-android13 |
| master |
| master-kernel-build-2021 |
| master-kernel-build-2022 |

或者其它分支,请根据自己的需求在 https://android.googlesource.com/platform/prebuilts/clang/host/linux-x86 中寻找

Expand All @@ -88,8 +87,11 @@ Fork 本仓库到你的储存库然后按照以下内容编辑 config.env,之
| ---------- | ----------------- | --------------- |
| 12.0.5 | Android S | r416183b |
| 14.0.6 | Android T | r450784d |
| 14.0.7 | | r450784e |
| 15.0.1 | | r458507 |
| 14.0.7 | | r450784e |
| 15.0.1 | | r458507 |
| 17.0.1 | | r487747b |
| 17.0.2 | Android U | r487747c |


一般 Clang12 就能通过大部分 4.14 及以上的内核的编译
我自己的 MI 6X 4.19 使用的是 r450784d
Expand Down Expand Up @@ -123,6 +125,16 @@ Fork 本仓库到你的储存库然后按照以下内容编辑 config.env,之
- 最新 TAG(稳定版): `KERNELSU_TAG=`
- 指定 TAG(如`v0.5.2`): `KERNELSU_TAG=v0.5.2`

#### KernelSU Manager signature size and hash

自定义KernelSU管理器签名的size值和hash值,如果不需要自定义管理器则请留空或填入官方默认值:

`KSU_EXPECTED_SIZE=0x033b`

`KSU_EXPECTED_HASH=c371061b19d8c7d7d6133c6a9bafe198fa944e50c1b31c9d8daa8d7f1fc2d2d6`

可键入`ksud debug get-sign <apk_path>`获取apk签名的size值和hash值

### Disable LTO

LTO 用于优化内核,但有些时候会导致错误
Expand Down
16 changes: 14 additions & 2 deletions README_EN.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,10 @@ Enter the Clang version to use.
| ------------- | ----------------------------- | ------------------ |
| 12.0.5 | Android S | r416183b |
| 14.0.6 | Android T | r450784d |
| 14.0.7 | | r450784e |
| 15.0.1 | | r458507 |
| 14.0.7 | | r450784e |
| 15.0.1 | | r458507 |
| 17.0.1 | | r487747b |
| 17.0.2 | Android U | r487747c |

Generally, Clang12 can compile most of the 4.14 and above kernels. My MI 6X 4.19 uses r450784d.

Expand Down Expand Up @@ -123,6 +125,16 @@ Select the branch or tag of KernelSU:
- Latest TAG (stable version): `KERNELSU_TAG=`
- Specify the TAG (such as `v0.5.2`): `KERNELSU_TAG=v0.5.2`

#### KernelSU Manager signature size and hash

Customize the size and hash values of the KernelSU manager signature, if you don't need to customize the manager then please leave them empty or fill in the official default values:

`KSU_EXPECTED_SIZE=0x033b`

`KSU_EXPECTED_HASH=c371061b19d8c7d7d6133c6a9bafe198fa944e50c1b31c9d8daa8d7f1fc2d2d6`

You can type `ksud debug get-sign <apk_path>` to get the size and hash of the apk signature.

### Add Kprobes Config

Inject parameters into the defconfig automatically.
Expand Down

0 comments on commit 83453a9

Please sign in to comment.