Skip to content

Patch boot

Patch boot #1647

Workflow file for this run

name: Patch boot
on:
schedule:
- cron: '0 10-23 * * *'
workflow_dispatch:
push:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4.1.4
- name: Setup Python
uses: actions/setup-python@v5.1.0
with:
python-version: '3.12.3'
- name: install packages
run: |
sudo apt-get update && sudo apt-get install tree
- uses: dawidd6/action-download-artifact@v3.1.2
with:
repo: tiann/KernelSU
branch: main
workflow: build-lkm.yml
workflow_conclusion: success
name: android12-5.10-lkm
path: .
- uses: dawidd6/action-download-artifact@v3.1.2
with:
repo: liaoke01/BootIMGExtractAction
branch: main
workflow: BootIMGExtractAction.yml
workflow_conclusion: success
name: boot.img
path: .
- name: Download magiskboot
run: |
wget https://github.com/xiaoxindada/magiskboot_ndk_on_linux/releases/latest/download/magiskboot.7z
pip install py7zr
chmod +x 1.py
python 1.py
- uses: dawidd6/action-download-artifact@v3.1.2
with:
repo: tiann/KernelSU
branch: main
workflow: build-manager.yml
workflow_conclusion: success
name: ksud-x86_64-unknown-linux-musl
path: .
- uses: dawidd6/action-download-artifact@v3.1.2
with:
repo: tiann/KernelSU
branch: main
workflow: build-manager.yml
workflow_conclusion: success
name: manager
path: .
- name: Set execute permissions and move
run: |
mv x86_64-unknown-linux-musl/release/ksud .
mv out/x86_64/magiskboot .
chmod +x ksud
chmod +x magiskboot
- name: Patch boot
run: |
tree
file ksud
file magiskboot
file boot.img
file android12-5.10_kernelsu.ko
./ksud boot-patch -b boot.img -m android12-5.10_kernelsu.ko --magiskboot magiskboot
- name: Upload artifacts
uses: actions/upload-artifact@v4.3.1
with:
name: boot-and-manager
path: |
*.img
*.apk
*.ko
ksud
magiskboot