diff --git a/CMakeLists.txt b/CMakeLists.txt index 702019783..f54c012bc 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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 diff --git a/src/detection/board/board_android.c b/src/detection/board/board_android.c new file mode 100644 index 000000000..64e917e6a --- /dev/null +++ b/src/detection/board/board_android.c @@ -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; +}