How do I Access Android Serial Number from Corona (the UID from 'adb devices')

Hello, I’m a long time Corona user trying to access the Android device serial number (the one that appears when a plugged-in device is queried with any of the following adb commands):

adb devices

adb shell getprop ro.boot.serialno
adb shell getprop ro.serialno

The response that I get from system.getInfo(“deviceID”) is a number that I believe is set when the OS is installed. This is not the number that I want. I’m looking for the serial number.

Any help would be much appreciated.

Thanks.

Bump. Anyone have any suggestions on how to get this info via Corona? I believe the number returned with “adb devices” may be the first 11 characters of the MAC address, but I’ve had no luck getting that number from Corona either.

We don’t have any hidden API’s to get that information. If you can’t get the value from system.getInfo() then you can’t get it from Corona SDK.

You might be able to get it from Enterprise. But in general getting information that uniquely identifies a device is generally something the vendors discourage or forbid people to use.

Why do  you need the serial number?

Rob

Thanks for responding Rob.  My company has thousands of Android tablets in the field that are updated from a central source. When tracking, managing  and updating those tablets we key things off of the serial number. For the apps I’m working on, the serial number will allow the application I am developing to lookup metadata associated with that tablet (from our systems) and cater the application content to that metadata.

Bump. Anyone have any suggestions on how to get this info via Corona? I believe the number returned with “adb devices” may be the first 11 characters of the MAC address, but I’ve had no luck getting that number from Corona either.

We don’t have any hidden API’s to get that information. If you can’t get the value from system.getInfo() then you can’t get it from Corona SDK.

You might be able to get it from Enterprise. But in general getting information that uniquely identifies a device is generally something the vendors discourage or forbid people to use.

Why do  you need the serial number?

Rob

Thanks for responding Rob.  My company has thousands of Android tablets in the field that are updated from a central source. When tracking, managing  and updating those tablets we key things off of the serial number. For the apps I’m working on, the serial number will allow the application I am developing to lookup metadata associated with that tablet (from our systems) and cater the application content to that metadata.