Open oldbirdy opened 4 years ago
https://developer.android.google.cn/reference/android/telephony/TelephonyManager.html#getDeviceId()
if the calling app is targeting API level 29 or higher, then a SecurityException is thrown.
You can use the following library. https://github.com/mofneko/EmulatorDetector
https://developer.android.google.cn/reference/android/telephony/TelephonyManager.html#getDeviceId()
if the calling app is targeting API level 29 or higher, then a SecurityException is thrown.