add back DI hook

This commit is contained in:
Kavish Devar
2026-03-29 16:04:50 +05:30
parent a6a284c2ec
commit 5fbfda6115

View File

@@ -280,7 +280,7 @@ static bool hookLibrary(const char* libname) {
LOGI("Hooked l2c_fcr_chk_chan_modes"); LOGI("Hooked l2c_fcr_chk_chan_modes");
} }
/*if (sdp_offset) { if (sdp_offset) {
void* target = void* target =
reinterpret_cast<void*>(base + sdp_offset); reinterpret_cast<void*>(base + sdp_offset);
@@ -289,7 +289,7 @@ static bool hookLibrary(const char* libname) {
(void**)&original_BTA_DmSetLocalDiRecord); (void**)&original_BTA_DmSetLocalDiRecord);
LOGI("Hooked BTA_DmSetLocalDiRecord"); LOGI("Hooked BTA_DmSetLocalDiRecord");
}*/ }
return true; return true;
} }