打开APP
userphoto
未登录

开通VIP,畅享免费电子书等14项超值服

开通VIP
How to identify a mobile at execution or installation time

Identifying the type of phone your application is running on is sometimes useful for optimised application (or to handle compatibility across different OS platforms). Symbian OS has the capabilities to identify a mobile device:

 at execution time: this is most useful to execute device specific code
 at installation time: this is generally used for installing device-dependent files (ex: bitmaps) or code with heavy platform dependencies.

Identification at execution

One of them is at code execution. A Call to the HAL::Get() function will return a code identifying your device hardware :


#include <hal.h> // also link to hal.lib

TInt mUid = 0;
HAL::Get(HALData::EMachineUid, mUid);

For Nokia Series60 devices the mUID will be unique for each device type:

NS60 Mobiles   mUid value
Nokia 3230 0x10200f97
Nokia 3250 0x200005F8
Nokia 3650   0x101f466a
Nokia 3660   0x101f466a
Nokia 6260   0x101fb3f4
Nokia 6600   0x101fb3dd
Nokia 6620   0x101f3ee3
Nokia 6630   0x101fbb55
Nokia 6670 0x101fb3f3
Nokia 6680   0x10200F99
Nokia 6681   0x10200F9C
Nokia 6682   0x10200F9B
Nokia 7610   0x101fb3f3
Nokia 7650   0x101f4fc3
Nokia N-Gage   0x101f8c19
Nokia N-Gage QD   0x101FB2B1
Nokia E60   0x20001856
Nokia E61   0x20001858
Nokia E70   0x20001857
Nokia N70   0x10200F9A
Nokia N80   0x200005F9
Nokia N90   0x10200F98
Nokia N91   0x200005FC
Nokia N92   0x200005FA
Sendo-X   0x101FA031
Siemens SX1   0x101F9071
Samsung SGH D720   0x10272F38
Samsung SGH D730   0x10272F39
Panasonic X700   0x101FF525

 
 

NS80   mUid value
Nokia 9210 and 9290   0x10005e33
Nokia 9300   0x101f8ddb
Nokia 9300i   0x1020E048
Nokia 9500   0x101f6b26

 
 

UIQ Mobiles   mUid value
Sony Ericsson P800   0x101F408B
Sony Ericsson P900   0x101FB2AE
Sony Ericsson P910   0x10200AC6
Motorola A9xx   0x101f6b26

 

Identification at installation

The identification of the mobile at installation allow to install different files on different devices. A modification of the PKG file is needed. The UIDs shown above are still valid:
;
; Files to install
;
IF MachineUID=0x101fb3dd; 6600
; install Nokia 6600 specific files
"\Symbian\6.1\Series60\Epoc32\release\thumb\urel\EZBoot6600.ini"         -"!:\system\apps\EZBoot\EZBoot.ini"
ELSEIF MachineUID=0x101f466a ; 3650
; install Noka 3650 specific files
"\Symbian\6.1\Series60\Epoc32\release\thumb\urel\EZBoot3650.ini"         -"!:\system\apps\EZBoot\EZBoot.ini"
ELSE
; install file for other devices
"\Symbian\6.1\Series60\Epoc32\release\thumb\urel\EZBoot.ini"         -"!:\system\apps\EZBoot\EZBoot.ini"
ENDIF

This installs a EZBoot.ini file that is tailored for specific devices (here Nokia 6600 and Nokia 3650).


See details: http://www.newlc.com/How-to-identify-a-mobile-at.html
本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请点击举报
打开APP,阅读全文并永久保存 查看更多类似文章
猜你喜欢
类似文章
【热】打开小程序,算一算2024你的财运
iPhone增量式改变或将令苹果面临风险~!
5800各种设置所在位置,以及各个文件夹的功能
New AP unit to focus on serving mobile device...
手把手教你30分钟学会改启动盘
自己动手制作典藏版XP+VISTA 4in1 DVD合集 雨林木风交流论坛[ww...
怎样将UD版、光盘版PE制作成硬盘版
更多类似文章 >>
生活服务
热点新闻
分享 收藏 导长图 关注 下载文章
绑定账号成功
后续可登录账号畅享VIP特权!
如果VIP功能使用有故障,
可点击这里联系客服!

联系客服