2020-10-26 17:18:48 +01:00
|
|
|
#
|
|
|
|
# For a description of the syntax of this configuration file,
|
|
|
|
# see the file kconfig-language.txt in the NuttX tools repository.
|
|
|
|
#
|
|
|
|
|
|
|
|
menuconfig SYSTEM_ADBD
|
|
|
|
tristate "ADB daemon application"
|
|
|
|
default n
|
2023-01-18 06:46:47 +01:00
|
|
|
depends on LIBUV
|
2020-10-26 17:18:48 +01:00
|
|
|
---help---
|
|
|
|
Enable support for adb daemon.
|
|
|
|
|
|
|
|
if SYSTEM_ADBD
|
|
|
|
|
|
|
|
config ADBD_PROGNAME
|
|
|
|
string "Program name"
|
|
|
|
default "adbd"
|
|
|
|
---help---
|
|
|
|
This is the name of the program that will be used.
|
|
|
|
|
|
|
|
config ADBD_STACKSIZE
|
|
|
|
int "Stack size"
|
|
|
|
default DEFAULT_TASK_STACKSIZE
|
|
|
|
---help---
|
|
|
|
The size of stack allocated for the adb daemon task.
|
|
|
|
|
|
|
|
config ADBD_PRIORITY
|
|
|
|
int "Task priority"
|
|
|
|
default 100
|
|
|
|
---help---
|
|
|
|
The priority of the adb daemon task.
|
|
|
|
|
|
|
|
config ADBD_AUTHENTICATION
|
|
|
|
bool "Authentication support"
|
|
|
|
default n
|
|
|
|
---help---
|
|
|
|
Enable authentication for adb daemon.
|
|
|
|
|
|
|
|
if ADBD_AUTHENTICATION
|
|
|
|
|
|
|
|
config ADBD_AUTH_PUBKEY
|
|
|
|
bool "Public key authentication"
|
|
|
|
default n
|
|
|
|
---help---
|
|
|
|
Enable hook to accept new public keys.
|
|
|
|
|
|
|
|
config ADBD_TOKEN_SIZE
|
|
|
|
int "Authentication token size"
|
|
|
|
default 20
|
|
|
|
|
|
|
|
endif # ADBD_AUTHENTICATION
|
|
|
|
|
|
|
|
config ADBD_DEVICE_ID
|
|
|
|
string "Default adb device id"
|
2023-04-01 13:35:42 +02:00
|
|
|
depends on !BOARDCTL_UNIQUEID
|
2020-10-26 17:18:48 +01:00
|
|
|
default ""
|
|
|
|
|
|
|
|
config ADBD_PRODUCT_NAME
|
|
|
|
string "Default adb product name"
|
|
|
|
default "adb dev"
|
|
|
|
|
|
|
|
config ADBD_PRODUCT_MODEL
|
|
|
|
string "Default adb product model"
|
|
|
|
default "adb board"
|
|
|
|
|
|
|
|
config ADBD_PRODUCT_DEVICE
|
|
|
|
string "Default adb product device"
|
|
|
|
default "NuttX device"
|
|
|
|
|
|
|
|
config ADBD_FEATURES
|
|
|
|
string "Default adb server features list"
|
|
|
|
default "cmd"
|
|
|
|
|
|
|
|
config ADBD_PAYLOAD_SIZE
|
|
|
|
int "Normal ADB frame size"
|
2022-02-13 11:18:09 +01:00
|
|
|
default 1024
|
2020-10-26 17:18:48 +01:00
|
|
|
---help---
|
|
|
|
Normal frame size in bytes.
|
|
|
|
|
|
|
|
config ADBD_CNXN_PAYLOAD_SIZE
|
|
|
|
int "Connection frame size"
|
|
|
|
default 1024
|
|
|
|
---help---
|
|
|
|
Connection frame is bigger than others.
|
|
|
|
Can be between 128 to 256 bytes in most of the cases.
|
|
|
|
If authentication is enabled, frame size must bigger
|
|
|
|
to receive public key from host (around 1024 bytes).
|
|
|
|
|
|
|
|
config ADBD_FRAME_MAX
|
|
|
|
int "Frame pool size"
|
|
|
|
default 1
|
|
|
|
---help---
|
|
|
|
ADB frame pool size.
|
|
|
|
|
|
|
|
config ADBD_TCP_SERVER
|
|
|
|
bool "Network socket transport support"
|
|
|
|
depends on NET_TCP
|
|
|
|
default n
|
|
|
|
---help---
|
|
|
|
Run adb daemon on network socket.
|
|
|
|
|
|
|
|
config ADBD_TCP_SERVER_PORT
|
|
|
|
int "Network socket transport port"
|
|
|
|
depends on ADBD_TCP_SERVER
|
|
|
|
default 5555
|
|
|
|
---help---
|
|
|
|
Port used by adb daemon socket server
|
|
|
|
|
|
|
|
config ADBD_USB_SERVER
|
|
|
|
bool "USB transport support"
|
|
|
|
depends on USBADB
|
|
|
|
default n
|
|
|
|
---help---
|
|
|
|
Run adb daemon on USB bus
|
|
|
|
|
|
|
|
config ADBD_LOGCAT_SERVICE
|
|
|
|
bool "ADB logcat support"
|
|
|
|
depends on RAMLOG_SYSLOG
|
|
|
|
default n
|
|
|
|
---help---
|
|
|
|
Enable "adb logcat" feature.
|
|
|
|
|
|
|
|
config ADBD_FILE_SERVICE
|
|
|
|
bool "ADB file sync support"
|
|
|
|
default n
|
|
|
|
---help---
|
|
|
|
Enable "adb ls/push/pull" feature.
|
|
|
|
|
|
|
|
config ADBD_FILE_SYMLINK
|
|
|
|
bool "File service symlink support"
|
|
|
|
default n
|
2022-01-23 09:04:06 +01:00
|
|
|
depends on ADBD_FILE_SERVICE
|
2020-10-26 17:18:48 +01:00
|
|
|
depends on PSEUDOFS_SOFTLINKS
|
|
|
|
---help---
|
|
|
|
Enable fs symlink support.
|
|
|
|
|
2022-01-23 09:04:06 +01:00
|
|
|
config ADBD_SHELL_SERVICE
|
|
|
|
bool "ADB shell support"
|
|
|
|
depends on SYSTEM_NSH
|
|
|
|
select LIBC_EXECFUNCS
|
|
|
|
select PSEUDOTERM
|
|
|
|
default n
|
|
|
|
---help---
|
|
|
|
Enable "adb shell" feature.
|
|
|
|
|
|
|
|
config ADBD_SHELL_SERVICE_CMD
|
|
|
|
string "ADB shell command"
|
|
|
|
depends on ADBD_SHELL_SERVICE
|
|
|
|
default "sh"
|
|
|
|
---help---
|
|
|
|
The shell command name.
|
|
|
|
|
|
|
|
config ADBD_SHELL_SERVICE_PATH
|
|
|
|
string "ADB shell path"
|
|
|
|
depends on ADBD_SHELL_SERVICE
|
|
|
|
default "/bin/sh"
|
|
|
|
---help---
|
|
|
|
The path to the shell executable.
|
|
|
|
|
2022-03-14 16:52:37 +01:00
|
|
|
config ADBD_SOCKET_SERVICE
|
|
|
|
bool "ADB socket service"
|
|
|
|
depends on NET
|
|
|
|
default n
|
|
|
|
---help---
|
|
|
|
Enable "adb forward|reverse" feature.
|
|
|
|
|
2020-10-26 17:18:48 +01:00
|
|
|
config ADBD_BOARD_INIT
|
|
|
|
bool "Board initialization"
|
2021-08-01 08:59:37 +02:00
|
|
|
depends on BOARDCTL
|
2020-10-26 17:18:48 +01:00
|
|
|
default n
|
|
|
|
---help---
|
|
|
|
Setup board before running adb daemon.
|
|
|
|
|
|
|
|
config ADBD_NET_INIT
|
2022-01-23 10:45:35 +01:00
|
|
|
bool "Network initialization"
|
|
|
|
default n
|
|
|
|
depends on NET
|
|
|
|
select NETUTILS_NETINIT
|
|
|
|
---help---
|
|
|
|
This option enables/disables all network initialization in ADB server.
|
2020-10-26 17:18:48 +01:00
|
|
|
|
|
|
|
endif # SYSTEM_ADBD
|