如何运行时检测正在运行Brew或Brew MP的手机的品牌和型号?
答案 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);
}