对于 Android 11 之前的版本,我使用以下命令从我的设备获取 IMEI 号码:
adb shell "service call iphonesubinfo 4 | cut -c 52-66 | tr -d '.[:space:]'"
或
adb shell service call iphonesubinfo 1 | toybox cut -d "'" -f2 | toybox grep -Eo '[0-9]' | toybox xargs | toybox sed 's/\ //g'
从 Android 12 开始,这些不再起作用,它们将返回空值。
有人可以帮忙吗?