How to detect phone handset brand and model info o

2019-08-30 07:00发布

How do I runtime detect which make and model a phone is, which is running Brew or Brew MP?

1条回答
兄弟一词,经得起流年.
2楼-- · 2019-08-30 08:00

This should work if you have USB logging enabled

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

and if printdevinfo is defined like this:

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); 
} 
查看更多
登录 后发表回答