mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 11:36:00 +00:00
Merge "Fix fail on RadioConfigTest#checkPortInfoExistsAndPortActive for dual-SIM detection" am: 569b04a197 am: e218309f1e
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2527586 Change-Id: Ib484408a26fcc7026f14f2680444536a8b22e742 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -85,7 +85,7 @@ bool isSsSsEnabled() {
|
||||
// Do not use checkSubstringInCommandOutput("getprop persist.radio.multisim.config", "")
|
||||
// until b/148904287 is fixed. We need exact matching instead of partial matching. (i.e.
|
||||
// by definition the empty string "" is a substring of any string).
|
||||
return !isDsDsEnabled() && !isTsTsEnabled();
|
||||
return !isDsDsEnabled() && !isTsTsEnabled() && !isDsDaEnabled();
|
||||
}
|
||||
|
||||
bool isDsDsEnabled() {
|
||||
@@ -125,8 +125,8 @@ bool isServiceValidForDeviceConfiguration(std::string& serviceName) {
|
||||
ALOGI("%s instance is not valid for SSSS device.", serviceName.c_str());
|
||||
return false;
|
||||
}
|
||||
} else if (isDsDsEnabled()) {
|
||||
// Device is configured as DSDS.
|
||||
} else if (isDsDsEnabled() || isDsDaEnabled()) {
|
||||
// Device is configured as DSDS or DSDA.
|
||||
if (!stringEndsWith(serviceName, RADIO_SERVICE_SLOT1_NAME) &&
|
||||
!stringEndsWith(serviceName, RADIO_SERVICE_SLOT2_NAME)) {
|
||||
ALOGI("%s instance is not valid for DSDS device.", serviceName.c_str());
|
||||
|
||||
Reference in New Issue
Block a user