如何运行时检测手机的品牌和型号,运行 Brew 或 Brew MP?
问问题
242 次
1 回答
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);
}
于 2011-07-20T10:45:41.887 回答