Skip to content

Commit

Permalink
daemon: some samsung devices using incorrect mediatek-res path
Browse files Browse the repository at this point in the history
  • Loading branch information
vvb2060 committed Oct 21, 2024
1 parent 455b13b commit 8b1bff6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions native/src/core/daemon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down

0 comments on commit 8b1bff6

Please sign in to comment.