aboutsummaryrefslogtreecommitdiffstats
path: root/extcap/androiddump.c
diff options
context:
space:
mode:
authorJakub Pawlowski <jpawlowski@google.com>2023-01-04 16:33:25 +0100
committerAlexis La Goutte <alexis.lagoutte@gmail.com>2023-01-05 06:52:02 +0000
commitc95e8bd38a7057d24b59c4d60b5ec8685793a761 (patch)
tree8def2f32c0af885c60b9586548eb402a91017f1b /extcap/androiddump.c
parent0e930707451b12edf719d5389df7857b266a1ba1 (diff)
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.
Diffstat (limited to 'extcap/androiddump.c')
-rw-r--r--extcap/androiddump.c2
1 files changed, 1 insertions, 1 deletions
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;