API v4 Native Build Detection - Android Devices

Version 4 of our API has the capability to devices based on their native build information.

Note : This feature is running on our web service only (Cloud Detection). Once we've tuned it up we fully intend to release it to Ultimate customers.

For Android devices pass the ro.product.* and ro.build.* information as JSON key/value pairs to our service and we will return a device profile. At a minimum the service needs the following keys to make a successful detection.

ro.product.manufacturer / ro.product.model

ro.product.brand / ro.product.model 

For example : 

curl -s -u "api_username:api_secret" --digest -H 'Host: api.handsetdetection.com' -H "Content-Type: application/json" -X POST -d '{"ro.product.manufacturer":"samsung","ro.product.model":"GT-P1000"}' http://api.handsetdetection.com/apiv4/site/detect/site_id.json

api_username and api_password are your API access credentials and site_id is your site profile id. The reply would be :

{

"hd_specs":{

"general_vendor":"Samsung",

"general_model":"GT-P1000",

"general_platform":"Android",

"general_platform_version":"",

etc ...

}

}

If we cannot detect a device based on this information we'll return a generic reply 

{

"hd_specs":{

"general_vendor":"Android",

"general_model":"Generic",

"general_platform":"Android",

"general_platform_version":"",

etc...

}

}

Have more questions? Submit a request

1 Comments

  • 0
    Avatar
    Darrall Lee

    Great

Please sign in to leave a comment.
Powered by Zendesk