今天在阅读init进程代码中的ueventd.cpp中看到了具体的做法,在此记录:
#include <android-base/properties.h>
auto hardware = android::base::GetProperty("ro.hardware", "");
今天在阅读init进程代码中的ueventd.cpp中看到了具体的做法,在此记录:
#include <android-base/properties.h>
auto hardware = android::base::GetProperty("ro.hardware", "");