action.yml 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. name: add configs
  2. description: add configs and disabling securities
  3. runs:
  4. using: composite
  5. steps:
  6. - name: add mountify support
  7. shell: bash
  8. run: |
  9. cat >> "$GKI_DEFCONFIG" << 'EOF'
  10. # Mountify Support
  11. CONFIG_OVERLAY_FS=y
  12. CONFIG_TMPFS_XATTR=y
  13. CONFIG_TMPFS_POSIX_ACL=y
  14. EOF
  15. - name: nuke securities for root access
  16. shell: bash
  17. run: |
  18. # 1. Determine which defconfig file needs to be patched based on the branch
  19. target_config=""
  20. if [[ $BRANCH == SM-S938B* || "$BRANCH" == "SM-S931B-Oneui8" ]]; then
  21. echo "Nothing to see here, moving on..."
  22. elif [[ "$BRANCH" == SM-S926B* ]]; then
  23. target_config="$COMMON/arch/arm64/configs/s5e9945-bazel_defconfig"
  24. elif [[ "$BRANCH" == SM-A556* ]]; then
  25. target_config="$COMMON/arch/arm64/configs/s5e8845-bazel_defconfig"
  26. else
  27. target_config="$GKI_DEFCONFIG"
  28. fi
  29. # 2. Apply the nuke modifications exactly once if a target file was assigned
  30. if [ -n "$target_config" ]; then
  31. echo "Nuking Samsung Knox/Root protection in: $target_config"
  32. "$COMMON/scripts/config" --file "$target_config" --disable CONFIG_UH
  33. "$COMMON/scripts/config" --file "$target_config" --disable CONFIG_UH_RKP
  34. "$COMMON/scripts/config" --file "$target_config" --disable CONFIG_UH_LKMAUTH
  35. "$COMMON/scripts/config" --file "$target_config" --disable CONFIG_UH_LKM_BLOCK
  36. "$COMMON/scripts/config" --file "$target_config" --disable CONFIG_RKP
  37. "$COMMON/scripts/config" --file "$target_config" --disable CONFIG_RKP_CFP_JOPP
  38. "$COMMON/scripts/config" --file "$target_config" --disable CONFIG_RKP_CFP_ROPP
  39. "$COMMON/scripts/config" --file "$target_config" --disable CONFIG_RKP_CFP
  40. "$COMMON/scripts/config" --file "$target_config" --disable CONFIG_SECURITY_DEFEX
  41. "$COMMON/scripts/config" --file "$target_config" --disable CONFIG_PROCA
  42. "$COMMON/scripts/config" --file "$target_config" --disable CONFIG_FIVE
  43. "$COMMON/scripts/config" --file "$target_config" --disable CONFIG_KDP
  44. "$COMMON/scripts/config" --file "$target_config" --disable CONFIG_KDP_NS
  45. fi
  46. - name: remove check_defconfig
  47. shell: bash
  48. run: |
  49. cd "$COMMON"
  50. # Remove check_defconfig
  51. sed -i 's/check_defconfig//' ./build.config.gki