From e614b6709d8d34dab03037092f732c94280f50f7 Mon Sep 17 00:00:00 2001 From: BlueMatthew Date: Sun, 24 Mar 2024 10:23:22 +0800 Subject: [PATCH] =?UTF-8?q?APP=E7=89=88=E6=9C=AC=E7=9A=84=E8=8E=B7?= =?UTF-8?q?=E5=8F=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/main/cpp/PhoneDevice.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) 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);