diff --git a/app/src/main/cpp/PhoneDevice.cpp b/app/src/main/cpp/PhoneDevice.cpp index b77d0cef..308d326c 100644 --- a/app/src/main/cpp/PhoneDevice.cpp +++ b/app/src/main/cpp/PhoneDevice.cpp @@ -465,6 +465,15 @@ bool CPhoneDevice::QuerySystemProperties(std::map& pro { it->second = std::to_string(m_signalLevel); } + else if (it->first == (PROP_VERSION) || it->first == (PROP_VERSION_ABBR)) + { + string version = std::to_string(mVersionCode / 100000); + version += "."; + version += std::to_string((mVersionCode % 100000) / 1000); + version += "."; + version += std::to_string(mVersionCode % 1000); + it->second = version; + } else if (startsWith(it->first, PROP_JAVA_PREFIX)) { if (powerInfo.empty()) @@ -478,6 +487,7 @@ bool CPhoneDevice::QuerySystemProperties(std::map& pro } } + } // __system_property_get("ro.telephony.default_network", value);