From c3e4ef0847f59bfdce5b5d67dd16a1dc6481ff6b Mon Sep 17 00:00:00 2001 From: Matthew Date: Thu, 24 Apr 2025 12:20:56 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BE=AE=E6=8B=8D=E6=9A=82=E6=97=B6=E4=B8=8D?= =?UTF-8?q?=E9=87=8D=E7=BD=AE=E7=94=B5=E6=BA=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/main/cpp/PhoneDevice.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/cpp/PhoneDevice.cpp b/app/src/main/cpp/PhoneDevice.cpp index 84d893de..d979ac0b 100644 --- a/app/src/main/cpp/PhoneDevice.cpp +++ b/app/src/main/cpp/PhoneDevice.cpp @@ -510,8 +510,8 @@ CPhoneDevice::CPhoneDevice(JavaVM* vm, jobject service, const std::string& appPa // Reset all powers char propValue[PROP_VALUE_MAX] = { 0 }; - int res = __system_property_get("ro.product.model", propValue); - if (res > 0) + int propRes = __system_property_get("ro.custom.ota.version", propValue); + if (propRes > 0) { if (!startsWith(propValue, "xinying_WP_")) {