Serial number from TC20

// Expert user has replied.
R Raj Kurup 1 year 11 months ago
147 4 0

Hi
I am trying to retrieve Serial number from a TC20 device from an inhouse built app (Android Studio ArticFox: Kotlin&Java). This App is currently in development and not in production (not signed).
I have followed @darryncampbell , https://github.com/darryncampbell/OEMInfo-DeviceIdentifiers-Sample-Andr…
- Used StageNow to Apply MX Access manager settings
- To obtain Package Signature, I followed the steps as explain in section "Apps signed with the Android debug key" (using keytool) in https://github.com/darryncampbell/MX-SignatureAuthentication-Demo/blob/…
I was able to do all the above steps without any errors, but the Serial Number I get looks like a “Certificate” (see below)

AnIaUVB/1e/9lnAKCfhj2t+Jvb64GdESq0m4JoYIrnPxGJOqg19717++wU173B28bK5jl1wF88s9
s0kL84blbG6qtzxZe/z8FqGmZndtoEWTT0GNdHPdAfJZVCXxZO18kTqDTDh0n8Ui8JtjYLc24ICC
Nhgk82Z7BrdUtfG0Wtnp6TMI2CbudElNuNWn5wZrApvITUIvEFmFtNJU/+IJJ7FpIVyoIVRf3wWq
rJx2F4KCpRsWt+g+AXMion8pFCsUs9gQJUyR31o1uHvmCJKbBudq6Vrw+bzfSqJLipzmKjeF9YJ/
nbO3FbDj/Ae+H+ZP4ibChaKdQsHb3IPA6u7taw==

TC-20 Details
Android Version: 8.1.0
OSx Version: 8.8
MXMF: 9.0.4.3

Any help with this is appreciated!
Thanks

Please register or login to post a reply

4 Replies

E Edward Correia

Hi-

Thank you for using Zebra products. Many Access Manager features are NOT supported on the TC20 device. 

You might try using OEMInfo to programmatically retrieve the serial number, but it's only possible on authorized apps.  

https://techdocs.zebra.com/oeminfo/consume/

R Richard Venderbosch

On devices running an Android OS version less than 10 you can use this method:
https://developer.android.com/reference/android/os/Build#getSerial().

But - as documented on this reference side - you must have the "READ_PHONE_STATE" permission to get a valid result.
And you have to use a lower target SDK version.

R Raj Kurup

In the near future, we will have TC-21s ...I believe those are Android 10

R Raj Kurup

Just wanted to provide an update to this issue, it turns out to be an issue with Android version. It worked good with Android 10, for Android 9 (and earlier) I think the solution is to use getSerial() as @richard-venderbosch mentioned.

Thanks all for your responses!

CONTACT
Can’t find what you’re looking for?