daemon: some samsung devices using incorrect mediatek-res path

This commit is contained in:
vvb2060 2024-10-21 17:05:10 +08:00 committed by John Wu
parent f4502f8be8
commit 7dbb973db5

View File

@ -373,6 +373,11 @@ static void daemon_entry() {
} }
LOGI("* Device API level: %d\n", SDK_INT); 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(); restore_tmpcon();
// Cleanups // Cleanups