I am trying to get the device serial number programmatically. I have used the following line:
Build.SERIAL
Which returns something like :>
I am trying to get the device serial number programmatically
This feature is broken on Android for ages. Some devices return null, some return the same ID for all the devices etc. If your app is using Google Play Services, use InstanceId instead, or see this, but ancient now, but still valid, blog post.