From c95e8bd38a7057d24b59c4d60b5ec8685793a761 Mon Sep 17 00:00:00 2001 From: Jakub Pawlowski Date: Wed, 4 Jan 2023 16:33:25 +0100 Subject: [PATCH] androiddump: btsnoop support on android T and onwards After android T, BT process might be called i.e. com.google.android.bluetooth, instead of com.android.bluetooth It depends on what APEX version is installed. --- extcap/androiddump.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extcap/androiddump.c b/extcap/androiddump.c index d8908158df..312b65d776 100644 --- a/extcap/androiddump.c +++ b/extcap/androiddump.c @@ -999,7 +999,7 @@ static int register_interfaces(extcap_parameters * extcap_conf, const char *adb_ const char *adb_ps_droid_bluetooth = "shell:ps droid.bluetooth"; const char *adb_ps_bluetooth_app = "shell:ps com.android.bluetooth"; const char *adb_ps_with_grep = "shell:ps | grep com.android.bluetooth"; - const char *adb_ps_all_with_grep = "shell:ps -A | grep com.android.bluetooth"; + const char *adb_ps_all_with_grep = "shell:ps -A | grep com.*android.bluetooth"; char serial_number[SERIAL_NUMBER_LENGTH_MAX]; char model_name[MODEL_NAME_LENGTH_MAX]; int result;