Hi, I have an App that extracts the serial number from Samsung devices, everything works fine, but when the Galaxy S8 were updated to Android 9, it stopped working.
This is our code:
The App stops exactly in this line: r.target = r.CreateObject("android.os.SystemProperties")
This is the Serial Number that I need to extract:
And this is the Galaxy S8 info:
Thanks in advance.
This is our code:
B4X:
Sub GetManufacturerSerialNumber As String
Dim sn As String
Dim r As Reflector
Dim m As Object
Dim Types(1) As String
Types(0) = "java.lang.String"
r.target = r.CreateObject("android.os.SystemProperties")
m = r.GetMethod("get", Types)
sn = r.InvokeMethod(r.Target,m,Array("ril.serialnumber"))
Return sn
End Sub
The App stops exactly in this line: r.target = r.CreateObject("android.os.SystemProperties")
This is the Serial Number that I need to extract:
And this is the Galaxy S8 info:
Thanks in advance.