How is device supposed to know its deviceid

3 views
Skip to first unread message

Jørn Klungsøyr

unread,
Dec 9, 2011, 3:31:21 AM12/9/11
to openrosa-...@googlegroups.com

Hi,

I’m probably missing something, but I can’t find in the API anything on how the deviceid is set for a particular device.

Best

Jørn

 

____________________________________________________________________________
Jorn Klungsoyr
openXdata - Centre for International Health,
University of Bergen, Norway
www.openxdata.org / www.cih.uib.no / www.openrosa.org / www.open-mobile.org
Mobile: +4791365731, Skype/GoogleTalk: jornklung Alternative email:
jorn.kl...@gmail.com
Post: Postboks 7800, 5020 Bergen, Visit: Årstadveien 21, 5th Floor, Bergen
                       ------¤¤¤¤------

 

From: openrosa-...@googlegroups.com [mailto:openrosa-...@googlegroups.com] On Behalf Of Anton de Winter
Sent: Thursday, December 08, 2011 9:15 PM
To: openrosa-...@googlegroups.com
Subject: Re: Removing trailing slash from xmlns URL...

 

+1

On Thu, Dec 8, 2011 at 2:25 PM, Yaw Anokwa <yan...@gmail.com> wrote:

+1. i'm anti-trailing slashes.


On Thu, Dec 8, 2011 at 11:24, Jonathan Jackson <jjac...@dimagi.com> wrote:
> +1
>
>
>
> On Thu, Dec 8, 2011 at 2:20 PM, Mitch S <mitche...@gmail.com> wrote:
>>
>> I just noticed that there is a trailing slash on the xmlns URL specified
>> in the Metadata document.
>>
>> This is inconsistent with normal usage (I don't know any xmlns URLs that
>> end in slash).
>>
>> I would like to removed it.
>>
>> Any objections?
>>
>> --
>> Mitch Sundt
>> Software Engineer
>> University of Washington
>> mitche...@gmail.com
>
>



 

--
Anton de Winter

529 Main St

Charlestown, MA

02129

 

Clayton Sims

unread,
Dec 9, 2011, 10:42:46 AM12/9/11
to openrosa-...@googlegroups.com
Jorn,

There are no specific requirements for how a deviceid is set. Depending on the platform we generally use one of:

* Device IMEI number (For GSM devices)
* Android Unique Identifier (for android devices with no radio antennas)
* Hardware NIC ID
* v4 uuid recorded on first-startup (for devices which live in a deep sandbox, like j2me)

all of which are unique for the purposes of knowing which device a submission came from.

-Clayton

Yaw Anokwa

unread,
Dec 9, 2011, 5:06:09 PM12/9/11
to openrosa-...@googlegroups.com

Matt Adams

unread,
Dec 9, 2011, 5:22:08 PM12/9/11
to openrosa-...@googlegroups.com
On 09/12/11 03:06 PM, Yaw Anokwa wrote:

Just wanted to chime in here and mention what we're using for Group
Complete.

Basically the whole notion of device IDs gets very screwy with Android
because there's very little that can be depended on. To work around
that and to ensure a more-or-less unique ID we use a UUID created from
the combination of the telephony device ID, telephony SIM serial number
and Android ID.

This gives us a fingerprint that looks like something like
00000000-1039-bc6c-ffff-ffff99d603a9

It's fugly but it works and is better than relying on just one piece of
information that might not be supplied, unique or reliable.


Cheers,

Matt
--
Matt Adams
Radical Dynamic
www.radicaldynamic.com

Yaw Anokwa

unread,
Dec 9, 2011, 5:26:59 PM12/9/11
to openrosa-...@googlegroups.com
there is an google blog post that details other id alternatives at
http://android-developers.blogspot.com/2011/03/identifying-app-installations.html
Reply all
Reply to author
Forward
0 new messages