From de57eed3fa707a223540fef977ef0a36df0716be Mon Sep 17 00:00:00 2001 From: kevios12 Date: Sun, 17 Jul 2022 16:51:27 +0200 Subject: [PATCH] universal7885: NFC SKU A40 Model fix The A404F - "M" Model isn't detecting the NFC HW, so we added A405F models to init_universal7885 and seperate the models by the added code. This commit is confirmed and working. --- universal7885-common/libinit/init_universal7885.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/universal7885-common/libinit/init_universal7885.cpp b/universal7885-common/libinit/init_universal7885.cpp index 62c1f12..afaca08 100644 --- a/universal7885-common/libinit/init_universal7885.cpp +++ b/universal7885-common/libinit/init_universal7885.cpp @@ -88,6 +88,11 @@ void vendor_load_properties() { model == "SM-A202F") { property_override("ro.boot.product.hardware.sku", "NFC"); } + + if (hasEnding(model, "N") || hasEnding(model, "M") || + model == "SM-A405F") { + property_override("ro.boot.product.hardware.sku", "NFC"); + } set_ro_build_prop("model", model); set_ro_build_prop("product", model, false);