对于11岁之前的android版本,我使用下面的命令从我的设备中获取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,它不再工作了,这些都没有回报
有人能帮忙吗?
发布于 2022-05-12 11:46:03
下面是我的设备在Android 12上的工作原理:
adb root
adb shell "service call iphonesubinfo 1 i64 0 | cut -c 52-66 | tr -d '.[:space:]'"。
iphonesubinfo对每个安卓版本的调用都有一定的变化。我没有检查实现,所以上面的代码只是对服务进行实验的结果。iphonesubinfo 1似乎也报告了以前的安卓版本的IMEI,至少是从Android10开始。
https://stackoverflow.com/questions/71022247
复制相似问题