How can I get the Ril serial number for Motorola MOTO X?

I made an application for a ril serial number. Samsung works great !! but, tested in Motorola MOTO X, it shows nothing!

The code I use is as follows:

String serial = null; try { Class<?> c = Class.forName("android.os.SystemProperties"); Method get = c.getMethod("get", String.class); serial = (String) get.invoke(c, "ril.serialnumber"); } catch (Exception ignored) { } 
0
android
source share

No one has answered this question yet.

See similar questions:

10
Fixed machine id (uuid.getnode)

or similar:

3295
Why is the Android emulator so slow? How can we speed up Android emulator development?
1260
How can I open the url in android browser from my application?
1188
How to get the build / version number of your Android app?
79
Testing Android AsyncTask with the Android Test Framework
23
How can I get the serial number of an SD card in Android 7.0+?
4
Application to restart the Apache Cordova camera on the Galaxy S5
one
Bluetooth search results for Android are available even when bluetooth is turned off
one
Cannot catch Java (Android) exception with try-catch, createBitmap
0
ActivityRecognitionAPI throws IllegalStateException on some devices
0
Failed to get Sim Card (Sim Serial Number) data for sim2 in Samsung Dual Android phone

All Articles