Skip to content

Commit f620569

Browse files
committed
2 parents ccc07e0 + f524d43 commit f620569

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

README.md

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# DeviceIdentifiersWrapper-Sample
22

3+
A wrapper to easily retrieve the Serial Number and the IMEI number of an Android 10+ Zebra device.
4+
35
How to access device identifiers such as serial number and IMEI on Zebra devices running Android 10
46

57
Android 10 limited access to device identifiers for all apps running on the platform regardless of their target API level. As explained in the docs for [Android 10 privacy changes](https://developer.android.com/about/versions/10/privacy/changes) this includes the serial number, IMEI and some other identifiable information.
@@ -48,9 +50,9 @@ Sample AdroidManifest.xml:
4850
```
4951

5052

51-
Finally, add EMDK dependency to your application build.graddle file:
53+
Finally, add DeviceIdentifierWrapper dependency to your application build.graddle file:
5254
```text
53-
compileOnly 'com.symbol:emdk:+'
55+
implementation 'com.zebra.deviceidentifierswrapper:deviceidentifierswrapper:0.1'
5456
```
5557

5658
Sample build.graddle:
@@ -61,13 +63,10 @@ dependencies {
6163
testImplementation 'junit:junit:4.13'
6264
androidTestImplementation 'com.android.support.test:runner:1.0.2'
6365
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
64-
compileOnly 'com.symbol:emdk:+'
66+
implementation 'com.zebra.deviceidentifierswrapper:deviceidentifierswrapper:0.1'
6567
}
6668
```
6769

68-
69-
Add the module DeviceIdentifierWrapper as a dependency to your application.
70-
7170
Now you can use the following snippet codes to retrieve IMEI number and Serial Number information.
7271

7372

@@ -90,14 +89,14 @@ Snippet code to use to retrieve the Serial Number of the device:
9089
@Override
9190
public void onDebugStatus(String message) {
9291
// You can use this method to get verbose information
93-
// about what's happening behing the curtain
92+
// about what's happening behind the curtain
9493
}
9594
});
9695
}
9796
```
9897

9998

100-
Snippet code to use to retrieve the Serial Number of the device:
99+
Snippet code to use to retrieve the IMEI of the device:
101100
```java
102101
private void getIMEINumber(Context context)
103102
{

0 commit comments

Comments
 (0)