OSDN Git Service

Have getSupportedModemCount always rely on system properties.
authorMalcolm Chen <refuhoo@google.com>
Sat, 19 Oct 2019 00:05:16 +0000 (17:05 -0700)
committerMalcolm Chen <refuhoo@google.com>
Tue, 29 Oct 2019 19:19:49 +0000 (12:19 -0700)
commitee5bfb643ede9d3442362ebc5dd06a1861a4bf50
tree43864363841bb09502644d46e3312d7b6d66cb9d
parent387dc0efd159b6958aa1b98372f59843d4be9e16
Have getSupportedModemCount always rely on system properties.

Earlier we disabled the reboot free feature and always have
getSupportedModemCount return the same value with getActiveModemCount.
Now that we've enbaled reboot free switch, we will return correct value
based on system property.

Bug: 142514392
Test: manual - change PROPERTY_REBOOT_REQUIRED_ON_MODEM_CHANGE and test
what getSupportedModemCount returns.
Change-Id: I34e172c747dd52aa498037e64b758393793fddba
Merged-In: I34e172c747dd52aa498037e64b758393793fddba
telephony/java/android/telephony/TelephonyManager.java