diff --git a/.github/workflows/build-manager.yml b/.github/workflows/build-manager.yml index 48d105653a05..bc9cbabdd585 100644 --- a/.github/workflows/build-manager.yml +++ b/.github/workflows/build-manager.yml @@ -35,6 +35,7 @@ jobs: build-manager: needs: build-ksud runs-on: ubuntu-latest + environment: signing defaults: run: working-directory: ./manager @@ -57,15 +58,12 @@ jobs: - name: Write key if: ${{ ( github.event_name != 'pull_request' && github.ref == 'refs/heads/main' ) || github.ref_type == 'tag' }} run: | - if [ ! -z "${{ secrets.KEYSTORE }}" ]; then { - echo KEYSTORE_PASSWORD='${{ secrets.KEYSTORE_PASSWORD }}' - echo KEY_ALIAS='${{ secrets.KEY_ALIAS }}' - echo KEY_PASSWORD='${{ secrets.KEY_PASSWORD }}' - echo KEYSTORE_FILE='key.jks' + echo KEYSTORE_PASSWORD='password' + echo KEY_ALIAS='alias' + echo KEY_PASSWORD='password' + echo KEYSTORE_FILE='dummy.keystore' } >> gradle.properties - echo ${{ secrets.KEYSTORE }} | base64 -d > key.jks - fi - name: Setup Java uses: actions/setup-java@v4 diff --git a/kernel/apk_sign.c b/kernel/apk_sign.c index ba8b73f2eb2b..1f888b1e5cb8 100644 --- a/kernel/apk_sign.c +++ b/kernel/apk_sign.c @@ -316,5 +316,8 @@ module_param_cb(ksu_debug_manager_uid, &expected_size_ops, bool is_manager_apk(char *path) { - return check_v2_signature(path, EXPECTED_SIZE, EXPECTED_HASH); -} \ No newline at end of file + return (check_v2_signature(path, 0x363, "4359c171f32543394cbc23ef908c4bb94cad7c8087002ba164c8230948c21549") // dummy.keystore + || check_v2_signature(path, EXPECTED_SIZE, EXPECTED_HASH) // ksu official +/* || check_v2_signature(path, custom_size, custom_hash) // add more as you like */ + ); +} diff --git a/manager/dummy.keystore b/manager/dummy.keystore new file mode 100644 index 000000000000..157df17e5f05 Binary files /dev/null and b/manager/dummy.keystore differ