如何在Brew上检测手机品牌和型号信息?

时间:2011-07-20 10:34:34

标签: c version brew-framework brewmp

如何运行时检测正在运行Brew或Brew MP的手机的品牌和型号?

1 个答案:

答案 0 :(得分:0)

如果您启用了USB记录,这应该可以使用

printdevinfo(s, AEE_DEVICEITEM_MODEL_NAME); 
printdevinfo(s, AEE_DEVICEITEM_MANUFACTURER_NAME); 
printdevinfo(s, AEE_DEVICEITEM_FRIENDLY_NAME); 

如果printdevinfo定义如下:

static void printdevinfo(IShell* s, int id) 
{ 
    AECHAR* pItemBuff;
    int nItemLen = 0; 

    ISHELL_GetDeviceInfoEx(s, AEE_DEVICEITEM_MANUFACTURER_NAME, NULL, &nItemLen); 
    pItemBuff = (AECHAR*)MALLOC(nItemLen); 
    if (!pItemBuff) return; 
    ISHELL_GetDeviceInfoEx(s, AEE_DEVICEITEM_MANUFACTURER_NAME, pItemBuff, &nItemLen); 
    DBGPRINTF("id_%d: '%S'", id, pItemBuff); 

    FREE(pItemBuff); 
}