Just An Application

July 31, 2009

What’s New In MIDP 3.0 ? Part 45: Accessing Device And Subscriber Specific Properties

Filed under: Java, JME, MIDP, MIDP3 — Tags: , , , — Simon Lewis @ 6:06 pm

A MIDlet can access device and subscriber specific properties using the System.getProperty(String) method.

Device Properties

  • ESN

  • IMEI

  • MEID

  • PESN

  • UUID

The property name for use with the System.getProperty(String) method can be obtained by prefixing the lower case version of the name with

	microedition.deviceid.

For example,

	microedition.deviceid.uuid

Subscriber Properties

  • IMSI

  • EUIMID

  • ICCID

  • MSISDN

  • UUID

The property name for use with the System.getProperty(String) method can be obtained by prefixing the lower case version of the name with

	microedition.subscriberid.

For example,

	microedition.subscriberid.imsi

Security

To access any of these properties a MIDlet will need to be granted the PropertyPermission with an action of read and a name matching the name of the property being accessed.

The intent of the default security policy appears to be that this permission is not granted to MIDlets in MIDlet Suites bound to the Unidentified Third Party protection domain (aka the domain formerly known as Untrusted).


Copyright (c) 2009 By Simon Lewis. All Rights Reserved

Advertisements

Leave a Comment »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Blog at WordPress.com.

%d bloggers like this: