Skip to content

Commit f91be64

Browse files
committed
Android (Linux): detect MTK CPU part name
1 parent bdce8ea commit f91be64

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/detection/cpu/cpu_linux.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,10 @@ static void detectAndroid(FFCPUResult* cpu)
5656
{
5757
if (cpu->name.length == 0)
5858
{
59-
ffSettingsGetAndroidProperty("ro.soc.model", &cpu->name);
60-
ffStrbufClear(&cpu->vendor); // We usually detect the vendor of CPU core as ARM, but instead we want the vendor of SOC
59+
if (ffSettingsGetAndroidProperty("ro.soc.model", &cpu->name))
60+
ffStrbufClear(&cpu->vendor); // We usually detect the vendor of CPU core as ARM, but instead we want the vendor of SOC
61+
else if(ffSettingsGetAndroidProperty("ro.mediatek.platform", &cpu->name))
62+
ffStrbufSetStatic(&cpu->vendor, "MTK");
6163
}
6264
if (cpu->vendor.length == 0)
6365
{

0 commit comments

Comments
 (0)