From ae38f4709b6b5f27f9b66254a380b9ba9decf47d Mon Sep 17 00:00:00 2001 From: Jiu <99115192+JiuGeFaCai@users.noreply.github.com> Date: Tue, 20 May 2025 19:26:49 +0800 Subject: [PATCH] =?UTF-8?q?[skip=20ci]:=20=E5=88=A0=E6=8E=89=E6=9C=AC?= =?UTF-8?q?=E5=9C=B0=E9=85=8D=E7=BD=AEsdk=20(#94)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat: Update string resources for clarity and consistency; simplify build manager workflow * 使用gki-kernel-local.yml * build-lkm-local.yml * 修改为谷歌源 * 修改为清华源 * 修改max-size为16G * Updating Vietnamese strings * kernel: kpm: add compatibility for kernel 4.14 and lower (#76) `thread_pid` is not defined in kernel 4.14 and lower, leading to compilation issue. To fix this, use `pids[PIDTYPE_PID].pid` for kernel versions 4.14 and lower. Else use `thread_pid` for kernel versions 4.19 and higher. Reference: https://github.com/yanivagman/BPFroid/blob/107717913bce95d6d5c232bf8dc4b11932b59d50/tracee/tracee.bpf.c#L354 * 1 * 1 * 1 --------- Co-authored-by: ShirkNeko <109797057+ShirkNeko@users.noreply.github.com> Co-authored-by: KernelSUBot Co-authored-by: sidex15 <24408329+sidex15@users.noreply.github.com> Co-authored-by: build <123456@cnm.com> --- .github/workflows/build-manager-manual.yml | 15 +++------------ .github/workflows/gki-kernel-local.yml | 2 ++ 2 files changed, 5 insertions(+), 12 deletions(-) diff --git a/.github/workflows/build-manager-manual.yml b/.github/workflows/build-manager-manual.yml index 7ad20869..b4ace1b6 100644 --- a/.github/workflows/build-manager-manual.yml +++ b/.github/workflows/build-manager-manual.yml @@ -149,18 +149,6 @@ jobs: } >> gradle.properties echo "${{ secrets.KEYSTORE }}" | base64 -d > key.jks fi - - - name: Setup Java - uses: actions/setup-java@v4 - with: - distribution: temurin - java-version: 21 - - - name: Setup Gradle - uses: gradle/actions/setup-gradle@v4 - - - name: Setup Android SDK - uses: android-actions/setup-android@v3 - name: Download arm64 susfs uses: actions/download-artifact@v4 @@ -213,6 +201,8 @@ jobs: - name: Build with Gradle run: | + export ANDROID_HOME=/root/.android/sdk + export PATH=$ANDROID_HOME/platform-tools:$ANDROID_HOME/tools:$ANDROID_HOME/tools/bin:$PATH { echo 'org.gradle.parallel=true' echo 'org.gradle.vfs.watch=true' @@ -221,6 +211,7 @@ jobs: } >> gradle.properties sed -i 's/org.gradle.configuration-cache=true//g' gradle.properties ./gradlew clean assembleRelease + - name: Upload build artifact uses: actions/upload-artifact@v4 if: ${{ ( github.event_name != 'pull_request' && github.ref == 'refs/heads/main' ) || github.ref_type == 'tag' }} diff --git a/.github/workflows/gki-kernel-local.yml b/.github/workflows/gki-kernel-local.yml index cd6e49be..f46d77bf 100644 --- a/.github/workflows/gki-kernel-local.yml +++ b/.github/workflows/gki-kernel-local.yml @@ -162,6 +162,8 @@ jobs: if: ${{ inputs.build_lkm == true }} working-directory: android-kernel run: | + pip install ast-grep-cli + sudo apt-get install llvm-15 -y ast-grep -U -p '$$$ check_exports($$$) {$$$}' -r '' common/scripts/mod/modpost.c ast-grep -U -p 'check_exports($$$);' -r '' common/scripts/mod/modpost.c sed -i '/config KSU/,/help/{s/default y/default m/}' common/drivers/kernelsu/Kconfig