Skip to content

Commit d448528

Browse files
authored
fix: update kernel modification
1 parent 69693ab commit d448528

File tree

29 files changed

+331
-316
lines changed

29 files changed

+331
-316
lines changed

.github/workflows/main.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ jobs:
3232

3333
- name: Install UV
3434
run: |
35-
uv_version=$(cat ./requirement-uv.txt | awk -F'==' '{print $2}' | tr -d ' \n')
36-
curl -LsSf https://astral.sh/uv/${uv_version}/install.sh | sh
35+
UV_VERSION=$(cat ./requirement-uv.txt | awk -F'==' '{print $2}' | tr -d ' \n')
36+
curl -LsSf https://astral.sh/uv/${UV_VERSION}/install.sh | sh
3737
3838
- name: Record original PATH
3939
id: record_original_path
@@ -78,9 +78,14 @@ jobs:
7878
name: build-artifacts
7979
path: "multi-build"
8080

81+
- name: Install UV
82+
run: |
83+
UV_VERSION=$(cat ./requirement-uv.txt | awk -F'==' '{print $2}' | tr -d ' \n')
84+
curl -LsSf https://astral.sh/uv/${UV_VERSION}/install.sh | sh
85+
8186
- name: Get Current Version
8287
id: version
83-
run: echo "version=$(python3 scripts/common/py/get_version.py)" >> $GITHUB_OUTPUT
88+
run: echo "version=$(uv run scripts/common/py/get_version.py)" >> $GITHUB_OUTPUT
8489

8590
- name: Form Tag
8691
id: tagname

Dockerfile

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,12 @@
11
FROM debian:bookworm-slim AS base
22

3-
# variable store
43
ARG WDIR=/zero_build
54
ENV CONAN_UPLOAD_CUSTOM 0
65

7-
# transfer sources from host to container
86
COPY . ${WDIR}
97
WORKDIR ${WDIR}
108
ENV PYTHONPATH ${WDIR}
119

12-
# install system packages
1310
RUN \
1411
apt-get update \
1512
&& \

README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,4 @@ python3 zkb assets --build-env=local --base=los --codename=dumpling --package-ty
254254

255255
## Credits
256256

257-
- [x_kernel_oneplus_msm8998](https://github.com/ederekun/x_kernel_oneplus_msm8998): OnePlus 5/T kernel with many optimizations and improvements;
258-
- [4.14-kernel-oneplus-msm8998](https://github.com/roberto-sartori-gl/4.14-kernel-oneplus-msm8998): a base of 4.14 kernels for OnePlus 5/T, with KernelSU patches;
259257
- [kali-nethunter-kernel](https://gitlab.com/kalilinux/nethunter/build-scripts/kali-nethunter-kernel): official kernel patches from Kali NetHunter project.

docs/FLASHING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Backup should be made with removed lockscreen passwords/fingerprints/PINs. Other
2020

2121
Listed below files are required:
2222

23-
- compiled kernel, obviously;
23+
- the compiled kernel ZIP;
2424
- ROM;
2525
- Magisk or KernelSU;
2626
- TWRP, the special [build](https://sourceforge.net/projects/op5-5t/files/Android-12/TWRP/twrp-3.7.0_12-5-dyn-cheeseburger_dumpling.img/download) by faoliveira78 (supports operations with encrypted and dynamic partitions);
@@ -53,7 +53,7 @@ Before doing anything, please ensure that you have:
5353
- if using a Retrofit Dynamic Partitions ROM such as ParanoidAndoid -> untoggle `Unmount System before installing a ZIP` in the Settings;
5454
- flash the ROM;
5555
- flash the kernel;
56-
- **if using Magisk** --> flash Magisk root manager (you must change the `.apk` extension into `.zip` for this);
56+
- **if using Magisk** --> flash Magisk root manager (you can flash the .apk directly, it'll be processed as a ZIP);
5757
- flash DM-Verity and Force Encrypt disabler zip;
5858
- reboot into system via `Reboot -> System` .
5959

docs/architecture/clients/classes.puml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
@startuml classes
22
set namespaceSeparator none
33
class "GithubApiClient" as clients.github.GithubApiClient {
4-
direct_url
5-
endpoint
4+
direct_url : str
5+
endpoint : str
66
file_filter : Optional[str]
77
project : str
88
run() -> str | None

docs/architecture/core/classes.puml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
@startuml classes
22
set namespaceSeparator none
33
class "AssetsCollector" as core.assets_collector.AssetsCollector {
4-
assets
4+
assets : list
55
base : str
6-
chroot : Literal['full', 'minimal']
6+
chroot : Optional[Literal['full', 'minimal']]
77
clean_assets : bool
88
codename : str
99
ksu : bool
10-
rom_collector_dto
10+
rom_collector_dto : LineageOsApiClient | ParanoidAndroidApiClient | None
1111
rom_only : bool
1212
check() -> None
1313
run() -> None
@@ -19,7 +19,7 @@ class "KernelBuilder" as core.kernel_builder.KernelBuilder {
1919
defconfig : Optional[Path]
2020
ksu : bool
2121
lkv : str
22-
lkv_src
22+
lkv_src : str
2323
rmanager : ResourceManager
2424
build() -> None
2525
clean_build() -> None

docs/architecture/engines/classes.puml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,18 @@ set namespaceSeparator none
33
class "GenericContainerEngine" as engines.generic_container.GenericContainerEngine {
44
base : str
55
benv : Literal['docker', 'podman']
6-
builder_cmd
6+
builder_cmd : str
77
chroot : Optional[Literal['full', 'minimal']]
88
clean_assets : Optional[bool]
99
clean_image : Optional[bool]
1010
clean_kernel : Optional[bool]
1111
codename : str
1212
command : Literal['kernel', 'assets', 'bundle']
1313
conan_upload : Optional[bool]
14-
container_options
14+
container_options : list[str]
1515
defconfig : Optional[Path]
16-
dir_bundle_conan
17-
get_container_cmd
16+
dir_bundle_conan : Path
17+
get_container_cmd : str
1818
ksu : Optional[bool]
1919
lkv : Optional[str]
2020
package_type : Optional[str]

docs/architecture/interfaces/classes.puml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
@startuml classes
22
set namespaceSeparator none
33
interface "IAssetsCollector" as interfaces.modules.IAssetsCollector {
4-
assets
5-
rom_collector_dto
4+
assets : list
5+
rom_collector_dto : LineageOsApiClient | ParanoidAndroidApiClient | None
66
{abstract}run() -> None
77
}
88
interface "ICommand" as interfaces.commands.ICommand {
99
{abstract}execute() -> None
1010
}
1111
interface "IGenericContainerEngine" as interfaces.engines.IGenericContainerEngine {
12-
builder_cmd
13-
container_options
14-
dir_bundle_conan
15-
get_container_cmd
12+
builder_cmd : str
13+
container_options : list[str]
14+
dir_bundle_conan : Path
15+
get_container_cmd : str
1616
{abstract}build_image() -> str | None | CompletedProcess
1717
{abstract}check_cache() -> bool
1818
{abstract}create_dirs() -> None

pyproject.toml

Lines changed: 7 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,10 @@
11
[project]
22
name = "zero-kernel-builder"
3-
version = "0.6.3"
3+
version = "0.6.4"
44
description = "Advanced Android kernel builder with Kali NetHunter support."
55
authors = [{name = "seppzer0"}]
66
readme = "README.md"
77
requires-python = ">=3.12"
8-
dependencies = [
9-
"argparse",
10-
"conan ~=1.6",
11-
"requests ~=2.31",
12-
"pathlib ~=1.0",
13-
"typing ~=3.7",
14-
"pydantic ~=2.6",
15-
]
168

179
[project.urls]
1810
Repository = "https://github.com/seppzer0/zero_kernel"
@@ -26,17 +18,17 @@ main = [
2618
"conan ~=1.6",
2719
"requests ~=2.31",
2820
"pathlib ~=1.0",
29-
"pydantic ~=2.6",
21+
"pydantic ~=2.12",
3022
]
3123
dev = [
3224
{include-group = "main"},
3325
"bandit ~=1.7",
34-
"pytest ~=8.0",
35-
"pytest-cov ~=4.1",
26+
"pytest ~=8.4",
27+
"pytest-cov ~=7.0",
3628
"pyright ~=1.1",
37-
"pylint ~=3.1",
38-
"ruff ~=0.7",
39-
"pre-commit ~=4.2",
29+
"ruff ~=0.14",
30+
"pre-commit ~=4.3",
31+
"pylint ~=4.0", # for pyreverse
4032
"pip",
4133
]
4234

requirement-uv.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
uv==0.9.3
1+
uv==0.9.22

0 commit comments

Comments
 (0)