I want to get the Build.getSerial() from the Android phone. Up to Android O i needed the Manifest.permission.READ_PHONE_STATE permission. However in Android 10 i get the above exception. What i did is added this permission to the manifest
<uses-permission android:name="android.permission.READ_PRIVILEGED_PHONE_STATE"
tools:ignore="ProtectedPermissions"/>
And in the activity i need to request for the permission but there is not such a permission
ActivityCompat.requestPermissions(this@ListActivity,
arrayOf(Manifest.permission.READ_PHONE_STATE,
<<Manifest.permission.READ_PRIVILEGED_PHONE_STATE>>),
SERIAL_NUMBER_PERMISSION)
So how can i get the serial Number if i cannot Grant the permission..? What should i do?