From 3b94d08746017b86cbfd9fdec956ee7d64a74017 Mon Sep 17 00:00:00 2001 From: 19297aaaa-rgb <19297aaaa@gmail.com> Date: Tue, 4 Aug 2026 09:41:42 +0800 Subject: [PATCH 1/5] DimmingDaemon.kt --- .../main/java/yangfentuozi/oplusautodc/daemon/DimmingDaemon.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/yangfentuozi/oplusautodc/daemon/DimmingDaemon.kt b/app/src/main/java/yangfentuozi/oplusautodc/daemon/DimmingDaemon.kt index 422b67d..bb6b5d6 100644 --- a/app/src/main/java/yangfentuozi/oplusautodc/daemon/DimmingDaemon.kt +++ b/app/src/main/java/yangfentuozi/oplusautodc/daemon/DimmingDaemon.kt @@ -16,7 +16,7 @@ import kotlin.math.roundToInt private const val TAG = "DimmingDaemon" private const val SETTING_KEY = "display_single_pulse_eyeprotection_switch" -private const val REFRESH_LIMIT_HZ = 120.5f +private const val REFRESH_LIMIT_HZ = 125.5f private const val EVENT_CONFIRM_DELAY_MS = 1000L private const val REFRESH_RATE_CHANGE_EPSILON_HZ = 0.01f From 2baeb4c4615ac988efa95fd2205151ba8baf368c Mon Sep 17 00:00:00 2001 From: 19297aaaa-rgb <19297aaaa@gmail.com> Date: Tue, 4 Aug 2026 09:53:50 +0800 Subject: [PATCH 2/5] Create android.yml --- .github/workflows/android.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/android.yml diff --git a/.github/workflows/android.yml b/.github/workflows/android.yml new file mode 100644 index 0000000..2f633b6 --- /dev/null +++ b/.github/workflows/android.yml @@ -0,0 +1,26 @@ +name: Android CI + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - name: set up JDK 11 + uses: actions/setup-java@v4 + with: + java-version: '11' + distribution: 'temurin' + cache: gradle + + - name: Grant execute permission for gradlew + run: chmod +x gradlew + - name: Build with Gradle + run: ./gradlew build From fd0945e00bf18ba4aa9e32980dbbdfac933f5a64 Mon Sep 17 00:00:00 2001 From: 19297aaaa-rgb <19297aaaa@gmail.com> Date: Tue, 4 Aug 2026 09:55:30 +0800 Subject: [PATCH 3/5] Update android.yml --- .github/workflows/android.yml | 42 +++++++++++++++++++++-------------- 1 file changed, 25 insertions(+), 17 deletions(-) diff --git a/.github/workflows/android.yml b/.github/workflows/android.yml index 2f633b6..fc9f0fc 100644 --- a/.github/workflows/android.yml +++ b/.github/workflows/android.yml @@ -1,26 +1,34 @@ -name: Android CI +name: Build Magisk Module on: push: - branches: [ "main" ] - pull_request: - branches: [ "main" ] + branches: [ main ] + workflow_dispatch: jobs: build: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - name: set up JDK 11 - uses: actions/setup-java@v4 - with: - java-version: '11' - distribution: 'temurin' - cache: gradle + - name: Checkout Code + uses: actions/checkout@v4 + + - name: Set up JDK 21 + uses: actions/setup-java@v4 + with: + java-version: '21' + distribution: 'temurin' + + - name: Setup Android SDK + uses: android-actions/setup-android@v3 + + - name: Grant execute permission for gradlew + run: chmod +x gradlew + + - name: Build with Gradle + run: ./gradlew packageMagiskModule - - name: Grant execute permission for gradlew - run: chmod +x gradlew - - name: Build with Gradle - run: ./gradlew build + - name: Upload Artifact + uses: actions/upload-artifact@v4 + with: + name: OPlus-AutoDC-Module-125Hz + path: update/*.zip From 248d2d0badbac8f217d0ad8387be9cc1411e6e3b Mon Sep 17 00:00:00 2001 From: 19297aaaa-rgb <19297aaaa@gmail.com> Date: Tue, 4 Aug 2026 10:05:46 +0800 Subject: [PATCH 4/5] Create build.yml --- .github/workflows/build.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..e2b593a --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,27 @@ +name: Build Magisk Module +on: + push: + branches: [ main ] + workflow_dispatch: +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout Code + uses: actions/checkout@v4 + - name: Set up JDK 21 + uses: actions/setup-java@v4 + with: + java-version: '21' + distribution: 'temurin' + - name: Setup Android SDK + uses: android-actions/setup-android@v3 + - name: Grant execute permission + run: chmod +x gradlew + - name: Build with Gradle + run: ./gradlew packageMagiskModule + - name: Upload Artifact + uses: actions/upload-artifact@v4 + with: + name: OPlus-AutoDC-Module-125Hz + path: update/*.zip From 4f6a424c1e6390bd34fab19c0bab5b30393024fe Mon Sep 17 00:00:00 2001 From: 19297aaaa-rgb <19297aaaa@gmail.com> Date: Tue, 4 Aug 2026 21:36:20 +0800 Subject: [PATCH 5/5] Delete .github/workflows directory --- .github/workflows/android.yml | 34 ---------------------------------- .github/workflows/build.yml | 27 --------------------------- 2 files changed, 61 deletions(-) delete mode 100644 .github/workflows/android.yml delete mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/android.yml b/.github/workflows/android.yml deleted file mode 100644 index fc9f0fc..0000000 --- a/.github/workflows/android.yml +++ /dev/null @@ -1,34 +0,0 @@ -name: Build Magisk Module - -on: - push: - branches: [ main ] - workflow_dispatch: - -jobs: - build: - runs-on: ubuntu-latest - steps: - - name: Checkout Code - uses: actions/checkout@v4 - - - name: Set up JDK 21 - uses: actions/setup-java@v4 - with: - java-version: '21' - distribution: 'temurin' - - - name: Setup Android SDK - uses: android-actions/setup-android@v3 - - - name: Grant execute permission for gradlew - run: chmod +x gradlew - - - name: Build with Gradle - run: ./gradlew packageMagiskModule - - - name: Upload Artifact - uses: actions/upload-artifact@v4 - with: - name: OPlus-AutoDC-Module-125Hz - path: update/*.zip diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml deleted file mode 100644 index e2b593a..0000000 --- a/.github/workflows/build.yml +++ /dev/null @@ -1,27 +0,0 @@ -name: Build Magisk Module -on: - push: - branches: [ main ] - workflow_dispatch: -jobs: - build: - runs-on: ubuntu-latest - steps: - - name: Checkout Code - uses: actions/checkout@v4 - - name: Set up JDK 21 - uses: actions/setup-java@v4 - with: - java-version: '21' - distribution: 'temurin' - - name: Setup Android SDK - uses: android-actions/setup-android@v3 - - name: Grant execute permission - run: chmod +x gradlew - - name: Build with Gradle - run: ./gradlew packageMagiskModule - - name: Upload Artifact - uses: actions/upload-artifact@v4 - with: - name: OPlus-AutoDC-Module-125Hz - path: update/*.zip