2013-09-17, 12:44
Hi All. My first ever post on xbmc forums.
I am developing an add-on for someone. The general working of the plugin would be to show some lecture videos. The guy only wants to give this add-on to a selected few. He would also be providing a device running Android "JellyBeans". Now I am stuck at a point where I need to identify these android devices, so that this add-on does not work on any other device.
The device has a wifi and bluetooth adapter but does not have any telephony hardware, so I can not use telephony manager. The options that I see available are:
1) Mac Address
It may be possible to retrieve a Mac address from its WiFi or Bluetooth hardware. But than there are some hardware that may not release there Mac.
2) Serial Number
It seems that since Android "Gingerbread" serial number is available as now devices without telephony are required to report a unique device ID.
3) ANDROID_ID
This is a 64-bit quantity that is generated and stored when the device first boots. It is however reset when the device is reser to factory settings.
So out of these 3 choices third choice is the most un-reliable in my opinion. So my question is that which of these choices is better than others and how to get it in python?
I am developing an add-on for someone. The general working of the plugin would be to show some lecture videos. The guy only wants to give this add-on to a selected few. He would also be providing a device running Android "JellyBeans". Now I am stuck at a point where I need to identify these android devices, so that this add-on does not work on any other device.
The device has a wifi and bluetooth adapter but does not have any telephony hardware, so I can not use telephony manager. The options that I see available are:
1) Mac Address
It may be possible to retrieve a Mac address from its WiFi or Bluetooth hardware. But than there are some hardware that may not release there Mac.
2) Serial Number
It seems that since Android "Gingerbread" serial number is available as now devices without telephony are required to report a unique device ID.
3) ANDROID_ID
This is a 64-bit quantity that is generated and stored when the device first boots. It is however reset when the device is reser to factory settings.
So out of these 3 choices third choice is the most un-reliable in my opinion. So my question is that which of these choices is better than others and how to get it in python?