Merge "Fix bug that getBaseBandVersion() may write the value incorrectly." into rvc-dev am: b7efa56055 am: 084cc76721 am: 21592eb07f am: 359eb91157
Change-Id: I49c81e1520179352d357eef70f3744c94e176e73
This commit is contained in:
committed by
Automerger Merge Worker
commit
5355f044b4
@@ -9844,22 +9844,6 @@ public class TelephonyManager {
|
||||
return getBasebandVersionForPhone(phoneId);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get baseband version for the default phone using the legacy approach.
|
||||
* This change was added in P, to ensure backward compatiblity.
|
||||
*
|
||||
* @return baseband version.
|
||||
* @hide
|
||||
*/
|
||||
private String getBasebandVersionLegacy(int phoneId) {
|
||||
if (SubscriptionManager.isValidPhoneId(phoneId)) {
|
||||
String prop = "gsm.version.baseband"
|
||||
+ ((phoneId == 0) ? "" : Integer.toString(phoneId));
|
||||
return SystemProperties.get(prop);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get baseband version by phone id.
|
||||
*
|
||||
@@ -9867,10 +9851,6 @@ public class TelephonyManager {
|
||||
* @hide
|
||||
*/
|
||||
public String getBasebandVersionForPhone(int phoneId) {
|
||||
String version = getBasebandVersionLegacy(phoneId);
|
||||
if (version != null && !version.isEmpty()) {
|
||||
setBasebandVersionForPhone(phoneId, version);
|
||||
}
|
||||
return getTelephonyProperty(phoneId, TelephonyProperties.baseband_version(), "");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user