Loading system/conf/bt_stack.conf +1 −1 Original line number Diff line number Diff line Loading @@ -3,7 +3,7 @@ BtSnoopLogOutput=false # BtSnoop log output file BtSnoopFileName=/sdcard/btsnoop_hci.log BtSnoopFileName=/data/misc/bluetooth/logs/btsnoop_hci.log # Preserve existing BtSnoop log before overwriting BtSnoopSaveLog=false Loading system/hci/src/btsnoop.c +3 −0 Original line number Diff line number Diff line Loading @@ -171,12 +171,15 @@ static void update_logging() { LOG_ERROR(LOG_TAG, "%s unable to rename '%s' to '%s': %s", __func__, log_path, last_log_path, strerror(errno)); } mode_t prevmask = umask(0); logfile_fd = open(log_path, O_WRONLY | O_CREAT | O_TRUNC, S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH); if (logfile_fd == INVALID_FD) { LOG_ERROR(LOG_TAG, "%s unable to open '%s': %s", __func__, log_path, strerror(errno)); is_logging = false; umask(prevmask); return; } umask(prevmask); write(logfile_fd, "btsnoop\0\0\0\0\1\0\0\x3\xea", 16); } else { Loading system/main/stack_config.c +2 −1 Original line number Diff line number Diff line Loading @@ -79,7 +79,8 @@ EXPORT_SYMBOL const module_t stack_config_module = { // Interface functions static const char *get_btsnoop_log_path(void) { return config_get_string(config, CONFIG_DEFAULT_SECTION, BTSNOOP_LOG_PATH_KEY, "/data/misc/bluedroid/btsnoop_hci.log"); return config_get_string(config, CONFIG_DEFAULT_SECTION, BTSNOOP_LOG_PATH_KEY, "/data/misc/bluetooth/logs/btsnoop_hci.log"); } static bool get_btsnoop_turned_on(void) { Loading Loading
system/conf/bt_stack.conf +1 −1 Original line number Diff line number Diff line Loading @@ -3,7 +3,7 @@ BtSnoopLogOutput=false # BtSnoop log output file BtSnoopFileName=/sdcard/btsnoop_hci.log BtSnoopFileName=/data/misc/bluetooth/logs/btsnoop_hci.log # Preserve existing BtSnoop log before overwriting BtSnoopSaveLog=false Loading
system/hci/src/btsnoop.c +3 −0 Original line number Diff line number Diff line Loading @@ -171,12 +171,15 @@ static void update_logging() { LOG_ERROR(LOG_TAG, "%s unable to rename '%s' to '%s': %s", __func__, log_path, last_log_path, strerror(errno)); } mode_t prevmask = umask(0); logfile_fd = open(log_path, O_WRONLY | O_CREAT | O_TRUNC, S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH); if (logfile_fd == INVALID_FD) { LOG_ERROR(LOG_TAG, "%s unable to open '%s': %s", __func__, log_path, strerror(errno)); is_logging = false; umask(prevmask); return; } umask(prevmask); write(logfile_fd, "btsnoop\0\0\0\0\1\0\0\x3\xea", 16); } else { Loading
system/main/stack_config.c +2 −1 Original line number Diff line number Diff line Loading @@ -79,7 +79,8 @@ EXPORT_SYMBOL const module_t stack_config_module = { // Interface functions static const char *get_btsnoop_log_path(void) { return config_get_string(config, CONFIG_DEFAULT_SECTION, BTSNOOP_LOG_PATH_KEY, "/data/misc/bluedroid/btsnoop_hci.log"); return config_get_string(config, CONFIG_DEFAULT_SECTION, BTSNOOP_LOG_PATH_KEY, "/data/misc/bluetooth/logs/btsnoop_hci.log"); } static bool get_btsnoop_turned_on(void) { Loading