如何在 Brew 上檢測手機品牌和型號信息? (How to detect phone handset brand and model info on Brew?)


問題描述

如何在 Brew 上檢測手機品牌和型號信息? (How to detect phone handset brand and model info on Brew?)

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


參考解法

方法 1:

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); 
} 

(by Prof. FalkenProf. Falken)

參考文件

  1. How to detect phone handset brand and model info on Brew? (CC BY-SA 3.0/4.0)

#brew-framework #Version #brewmp #C






相關問題

嘗試在 BREW MP 上開發應用程序 (Trying to develop an App on BREW MP)

有沒有辦法在 BREW 3.0 平台上使用 Lua? (Is there a way to use Lua on BREW 3.0 platform?)

為多個移動設備構建單一應用程序 (Single application build for multiple mobile devices)

在 BREW 中安排應用程序 (Schedule app in BREW)

BREW:跟踪 BPOINT 錯誤消息的方法 (BREW: Methods to trace BPOINT error messages)

如何在 Brew 上檢測手機品牌和型號信息? (How to detect phone handset brand and model info on Brew?)

在 Brew MP 手機上激活虛擬鍵盤? (Activate virtual keyboard on Brew MP phone?)

為什麼在 HTC Smart 上無法檢測手機品牌和型號? (Why does not detecting phone make and model work on HTC Smart?)

檢測/指紋手機品牌和型號的替代方法? (Alternative way to detect/fingerprint phone make and model?)

在 WinARM4.1x 下鏈接 BREW 對象時出現問題 (Trouble linking BREW objects under WinARM4.1x)

禁用被視為錯誤的警告(cc1.exe) (Disable warnings being treated as errors(cc1.exe))







留言討論