Read the development ID for the device

Amalkotey

Active Member
Licensed User
Longtime User
Hello,

how can I read the development ID for the Android device in HC and ICS? One has an idea of you? Thanks for the help in advance.

-Amalkotey-
 

Amalkotey

Active Member
Licensed User
Longtime User
I am not sure which ID you are looking for but you can pull the Android ID from the OS with the Phone Lib.

I have the SAMSUNG Galaxy S3 GT-i9300 for eight days now. First I removed the T-Mobile branding and give the Samsung root. Because it to remove the branding was a free Smartphone, I have received two successive firmware updates from Samsung. As I had to find a firmware update can be changed at Samsung the device ID, which will be read out with the phones-lib.

The development equipment ID under settings / Developer options has not changed however. Accordingly, I have a unique ID, where I can assume that this not by a firmware update or a custom ROM is modified under ICS.

-Amalkotey-
 

Attachments

  • development.png
    50.1 KB · Views: 408
Upvote 0

NJDude

Expert
Licensed User
Longtime User
You can get it using the following code:
B4X:
Dim Content As List
Dim Buffer As String
    
Content.Initialize
    
Content = File.ReadList("/data/system/" , "packages.xml")
    
For I = 0 To Content.Size -1
    
    Buffer = Content.Get(I)
        
    If Buffer.IndexOf("verifier device=") > -1 Then
        
       Buffer = Buffer.Replace(QUOTE, "").Replace("<verifier device=", "").Replace("/>", "")
           
       Msgbox("Development ID = " & Buffer, "")
        
    End If
    
Next

I see this ID only on my HTC devices running ICS, is this an HTC thing? please let me know.
 
Upvote 0

Amalkotey

Active Member
Licensed User
Longtime User
@NJDude:

I see this ID only on my HTC devices running ICS, is this an HTC thing? please let me know.

You are right. The development equipment-ID is device independent. It is a future which was inserted from HC in the SDK. In my HTC Desire Classic (SLCD) returns no (null) me.

If one carries out real tests on multiple Android devices, you could for example the ID's adding and a sum of digits form. This could you assign the software of clearly the development, for example not always the software with a key to unlock. Will investigate times accordingly.

@all: Thank you for your help. When I've worked out a solution, I will publish them in the Foum.
 
Last edited:
Upvote 0

Amalkotey

Active Member
Licensed User
Longtime User
@NJDude:

You seem to have Yes, information about the internal structure of android or ICS. Do you know which file the "Info for owners" are ICS perhaps?
 
Upvote 0

NJDude

Expert
Licensed User
Longtime User
I'm not sure what you mean by "Info for owners" but if you are referring to the "owner's info" (such as name. phone, etc) as far as I know is not part of the OS but an app that the manufacturer includes in certain devices.
 
Upvote 0

Amalkotey

Active Member
Licensed User
Longtime User
Yes I mean the text under Security | Owner info. May be that this is an app. But the data must be stored somewhere. Sorry for my bad decision lisch I have just translated 1: 1.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…