2014-11-03 2 views

답변

6

답변에 자세한 내용으로 popen과 함께 getprop을 실행하려면 https://stackoverflow.com/a/478960/2833126으로갔습니다. 예 :

std::string command = "getprop ro.product.model"; 
FILE* file = popen(command.c_str(), "r"); 
if (!file) { 
    // error 
} 
// read the property value from file 
pclose(file);