1 Commits

Author SHA1 Message Date
Kavish Devar
3e4d401223 call original fcr_chk_chan to set preferred mode to BASIC 2025-12-18 00:43:32 +05:30
2 changed files with 5 additions and 6 deletions

View File

@@ -1,6 +1,3 @@
>[!IMPORTANT]
Development paused due to lack of time until 17th May 2026 (JEE Advanced). PRs and issues might not be responded to until then.
![LibrePods Banner](./imgs/banner.png)
## What is LibrePods?
@@ -49,8 +46,8 @@ new version in development ([#241](https://github.com/kavishdevar/librepods/pull
#### Screenshots
| | | |
| --------------------------------------------------------------------------------------- | -------------------------------------------------- | ---------------------------------------------------------------------------- |
| | | |
| -------------------------------------------------------------------------------------- | ------------------------------------------------- | --------------------------------------------------------------------------- |
| ![Settings 1](./android/imgs/settings-1.png) | ![Settings 2](./android/imgs/settings-2.png) | ![Debug Screen](./android/imgs/debug.png) |
| ![Battery Notification and QS Tile for NC Mode](./android/imgs/notification-and-qs.png) | ![Popup](./android/imgs/popup.png) | ![Head Tracking and Gestures](./android/imgs/head-tracking-and-gestures.png) |
| ![Long Press Configuration](./android/imgs/long-press.png) | ![Widget](./android/imgs/widget.png) | ![Customizations 1](./android/imgs/customizations-1.png) |

View File

@@ -132,7 +132,9 @@ static void (*original_l2cu_send_peer_info_req)(tL2C_LCB* p_lcb, uint16_t info_t
static tBTA_STATUS (*original_BTA_DmSetLocalDiRecord)(tSDP_DI_RECORD* p_device_info, uint32_t* p_handle) = nullptr;
uint8_t fake_l2c_fcr_chk_chan_modes(void* p_ccb) {
LOGI("l2c_fcr_chk_chan_modes hooked, returning true.");
LOGI("l2c_fcr_chk_chan_modes hooked, calling original function.");
uint8_t result = original_l2c_fcr_chk_chan_modes(p_ccb);
LOGI("Original l2c_fcr_chk_chan_modes returned: %d; returning 1.", result);
return 1;
}