如何在运行时检测手机是哪个品牌和型号,哪个正在运行Brew或Brew MP?
最佳答案
如果您启用了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);
}
关于c - 如何在Brew上检测手机品牌和型号信息?,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/6760544/