From 7dbb973db5646d0143dbc4ee1358f687e80aa67c Mon Sep 17 00:00:00 2001 From: vvb2060 Date: Mon, 21 Oct 2024 17:05:10 +0800 Subject: [PATCH] daemon: some samsung devices using incorrect mediatek-res path --- native/src/core/daemon.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/native/src/core/daemon.cpp b/native/src/core/daemon.cpp index 55bb3b00f..b3617a9fa 100644 --- a/native/src/core/daemon.cpp +++ b/native/src/core/daemon.cpp @@ -372,6 +372,11 @@ static void daemon_entry() { } } LOGI("* Device API level: %d\n", SDK_INT); + + // Samsung workaround #7887 + if (access("/system_ext/app/mediatek-res/mediatek-res.apk", F_OK) == 0) { + set_prop("ro.vendor.mtk_model", "0"); + } restore_tmpcon();