如何得到手机的型号?symbian
From:newLC
Common products UIDs
S60
| Platform | Device | Product UID | Machine/Platform UID |
|---|
UIQ
| Platform | Device | Product UID | Machine/Platform UID |
|---|
Other/Older Platforms
| Series 80 v2.0 | 0x101F8ED2 |
How to use the UIDs
Platform UID
These UIDs shall be used in your PKG file to specify on which platform your application will work. As an example, an application running on Series 60 v0.9 platform will have the following line in its PKG:
(0x101F6F88), 0, 0, 0, {"Series60ProductID"}
Starting with S60 3rd Edition, the syntax is now:
[0x101F7961], 0, 0, 0, {"S60ProductID"}
Or for UIQ 3:
(0x101F6300), 3, 0, 0, {"UIQ30ProductID"}
(0x101F63DF), 3, 1, 0, {"UIQ31ProductID"}
Product UID
The product UID can be use instead of the platform UID if oyr application is specific to a single phone and not the whole platform family. Exemple for a Nokia 6630 specific application:
(0x101F7964), 0, 0, 0, {"Nokia6630ProductID"}
With S60 3rd Edition and later, you can use several phones target. Ex for N71 and N80:
[0x10275218], 0, 0, 0, {"Nokia N71 ID"}
[0x200005F9], 0, 0, 0, {"Nokia N80 ID"}
Machine UID
#include <hal.h> // also link to hal.lib
TInt mUid = 0;
HAL::Get(HALData::EMachineUid, mUid);
Here is a list of machine and platform UIDs that can be used to uniquely identify a phone model or its family: :
没有评论▼