Give us as much detail as possible regarding the issue you're experiencing.
Unity Editor version: 2022.2.12f1
ML2 OS version:Version 1.2.0
Build B3E.230330.11-R.044
Android API Level 29
MLSDK version:1.7.0
Host OS: (Windows/MacOS): Windows11
Hi
I'm trying to get the Serial Number information of the ML2 device using the following c# code in Unity App
AndroidJavaClass SystemProperties = new AndroidJavaClass("android.os.SystemProperties");
string model = SystemProperties.CallStatic<string>("get", "ro.boot.serialno");
Debug.Log("Android Model: " + model);
In addition to the Serial Number , I'm also retrieving the ro.build.id
build version .
When I run the app in ML2 , It returns the build version but not the Serial Number
I verified that the property name is correct and running the adb shell getprop
command returns the value for the "ro.boot.serialno" property