action.yml 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. name: 'Apply Device-Specific Patches'
  2. description: 'Apply WiFi/Bluetooth fixes for Samsung and Xiaomi 6.6 GKI devices'
  3. inputs:
  4. version:
  5. description: 'Kernel config version (e.g., android15-6.6)'
  6. required: true
  7. kernel_version:
  8. description: 'Kernel version (e.g., 6.6)'
  9. required: true
  10. runs:
  11. using: "composite"
  12. steps:
  13. - name: Fix WiFi and Bluetooth on Samsung 6.6 GKI Devices
  14. if: ${{ inputs.version == 'android15-6.6' }}
  15. shell: bash
  16. working-directory: ${{ github.workspace }}/kernel/common
  17. run: |
  18. SYMBOL_LIST=android/abi_gki_aarch64_galaxy
  19. echo "kdp_set_cred_non_rcu" >> $SYMBOL_LIST
  20. echo "kdp_usecount_dec_and_test" >> $SYMBOL_LIST
  21. echo "kdp_usecount_inc" >> $SYMBOL_LIST
  22. PATCH="${{ github.workspace }}/kernel_patches/samsung/min_kdp/add-min_kdp-symbols.patch"
  23. if patch -p1 --dry-run < "$PATCH"; then
  24. patch -p1 --no-backup-if-mismatch < $PATCH
  25. fi
  26. cp "${{ github.workspace }}/kernel_patches/samsung/min_kdp/min_kdp.c" drivers/min_kdp.c
  27. echo "obj-y += min_kdp.o" >> drivers/Makefile
  28. - name: Fix WiFi and Bluetooth on Xiaomi 6.6 GKI Devices
  29. if: ${{ inputs.version == 'android15-6.6' }}
  30. shell: bash
  31. working-directory: ${{ github.workspace }}/kernel/common
  32. run: |
  33. SYMBOL_LIST=android/abi_gki_aarch64_xiaomi
  34. echo "device_find_any_child" >> $SYMBOL_LIST