Created
February 27, 2026 11:22
-
-
Save REASY/3e35f64a8fb5e97233824f3102690722 to your computer and use it in GitHub Desktop.
eBPF for Redroid
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| project device/generic/arm64/ | |
| diff --git a/BoardConfig.mk b/BoardConfig.mk | |
| index 5c54c8b..fc2dcc5 100644 | |
| --- a/BoardConfig.mk | |
| +++ b/BoardConfig.mk | |
| @@ -36,9 +36,14 @@ BOARD_USE_LEGACY_UI := true | |
| # PDK does not use ext4 image, but it is added here to prevent build break. | |
| TARGET_USERIMAGES_USE_EXT4 := true | |
| -BOARD_SYSTEMIMAGE_PARTITION_SIZE := 1073741824 # 1 GB | |
| +BOARD_SYSTEMIMAGE_PARTITION_SIZE := 8589934592 # 8 GB | |
| BOARD_USERDATAIMAGE_PARTITION_SIZE := 576716800 | |
| BOARD_CACHEIMAGE_PARTITION_SIZE := 69206016 | |
| BOARD_CACHEIMAGE_FILE_SYSTEM_TYPE := ext4 | |
| BOARD_FLASH_BLOCK_SIZE := 512 | |
| TARGET_USERIMAGES_SPARSE_EXT_DISABLED := true | |
| + | |
| +# Enable debug vsock + insecure ADB on non-user builds so you don't need to edit GRUB each time | |
| +ifneq ($(TARGET_BUILD_VARIANT),user) | |
| +BOARD_KERNEL_CMDLINE += DEBUG_VSOCK=1 androidboot.insecure_adb=1 | |
| +endif | |
| \ No newline at end of file | |
| project kernel/configs/ | |
| diff --git a/v/android-6.6/android-base.config b/v/android-6.6/android-base.config | |
| index be666ea..b71c8c3 100644 | |
| --- a/v/android-6.6/android-base.config | |
| +++ b/v/android-6.6/android-base.config | |
| @@ -258,3 +258,13 @@ CONFIG_XFRM_INTERFACE=y | |
| CONFIG_XFRM_MIGRATE=y | |
| CONFIG_XFRM_STATISTICS=y | |
| CONFIG_XFRM_USER=y | |
| + | |
| +# eBPF | |
| +CONFIG_DEBUG_INFO_NONE=n | |
| +CONFIG_DEBUG_INFO=y | |
| +CONFIG_DEBUG_INFO_DWARF5=y | |
| +CONFIG_DEBUG_INFO_BTF=y | |
| +CONFIG_DEBUG_INFO_BTF_MODULES=y | |
| +CONFIG_HEADERS_INSTALL=y | |
| +CONFIG_FTRACE_SYSCALLS=y | |
| +CONFIG_IKHEADERS=y |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment