You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+40-1Lines changed: 40 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,11 @@ Android 10 limited access to device identifiers for all apps running on the plat
6
6
7
7
**Zebra mobile computers running Android 10 are able to access both the serial number and IMEI** however applications need to be **explicitly granted the ability** to do so and use a proprietary API.
8
8
9
-
To access the serial number and IMEI file on Zebra Android devices running Android 10 or higher, first declare a new permission in your AndroidManifest.xml
9
+
To access to this API, you must first register your application using the AccessMgr MX's CSP.
10
+
You can do it using StageNow, more details here: https://github.com/darryncampbell/EMDK-DeviceIdentifiers-Sample
11
+
Or you can use this wrapper that will automatically register your application if it is necessary.
12
+
13
+
To use this helper on Zebra Android devices running Android 10 or higher, first declare a new permission in your AndroidManifest.xml
Add the module DeviceIdentifierWrapper as a dependency to your application.
62
+
63
+
Now you can use the following snippet codes to retrieve IMEI number and Serial Number information.
64
+
57
65
Snippet code to use to retrieve the Serial Number of the device:
58
66
59
67
```java
@@ -105,3 +113,34 @@ Snippet code to use to retrieve the Serial Number of the device:
105
113
});
106
114
}
107
115
```
116
+
117
+
As the previous methods are asynchronous, if you need both information, it is strongly recommended to call the second request inside the onSuccess or onError of the first request.
118
+
119
+
Sample code if you need to get both device identifiers:
0 commit comments