Board (Android): add support

This commit is contained in:
李通洲
2023-07-27 19:47:26 +08:00
parent 92b1d74d12
commit 7147029c96
2 changed files with 10 additions and 1 deletions
+1 -1
View File
@@ -396,7 +396,7 @@ elseif(ANDROID)
src/detection/battery/battery_android.c
src/detection/bios/bios_nosupport.c
src/detection/bluetooth/bluetooth_nosupport.c
src/detection/board/board_nosupport.c
src/detection/board/board_android.c
src/detection/brightness/brightness_nosupport.c
src/detection/chassis/chassis_nosupport.c
src/detection/cpu/cpu_linux.c
+9
View File
@@ -0,0 +1,9 @@
#include "board.h"
#include "common/settings.h"
const char* ffDetectBoard(FFBoardResult* board)
{
if (!ffSettingsGetAndroidProperty("ro.product.board", &board->name))
ffSettingsGetAndroidProperty("ro.board.platform", &board->name);
return NULL;
}