Android 12 通过 adb 获取 imei 信息
小米
E:\exe>adb shell "service call iphonesubinfo 1 | cut -c 52-66 | tr -d '.[:space:]'"
869595052*********
E:\exe>adb shell "service call iphonesubinfo 4 | cut -c 52-66 | tr -d '.[:space:]'"
86959505*********
华为
E:\exe>adb shell "service call iphonesubinfo 4 | cut -c 52-66 | tr -d '.[:space:]'"
A00000*********
E:\exe>adb shell "service call iphonesubinfo 3 | cut -c 52-66 | tr -d '.[:space:]'"
80*********
E:\exe>adb shell "service call iphonesubinfo 1 | cut -c 52-66 | tr -d '.[:space:]'"
A0000*********
E:\exe>
如果获取不到的可以通过修改 iphonesubinfo 后面的数字进行获取