diff --git a/audio/service/audio_parameter_service.cpp b/audio/service/audio_parameter_service.cpp index 03c7054..2e5069c 100644 --- a/audio/service/audio_parameter_service.cpp +++ b/audio/service/audio_parameter_service.cpp @@ -38,10 +38,7 @@ int main() { if (audioDevice != nullptr) { std::string value = ""; - if (strcmp(GetProperty("vendor.calls.slotid", "-1").c_str(), "0") == 0) { - // SIM 1 - value = "0x01"; - } else if (strcmp(GetProperty("vendor.calls.slotid", "-1").c_str(), "1") == 0) { + if (strcmp(GetProperty("vendor.calls.slotid", "-1").c_str(), "1") == 0) { // SIM 2 value = "0x02"; } diff --git a/audio/service/audio_parameter_service.rc b/audio/service/audio_parameter_service.rc index 35f8357..d3ee208 100644 --- a/audio/service/audio_parameter_service.rc +++ b/audio/service/audio_parameter_service.rc @@ -5,11 +5,6 @@ service audio_parameter_service /system_ext/bin/audio_parameter_service.samsung_ on boot setprop vendor.calls.parameter_state 0 -on property:vendor.calls.slotid=0 && property:vendor.calls.parameter_state=0 - stop audioserver - start audioserver - start audio_parameter_service - on property:vendor.calls.slotid=1 && property:vendor.calls.parameter_state=0 stop audioserver start audioserver