如何在 Android 13 上使用 adb 命令获取 IMEI?

Jam*_*eng 3 shell android adb imei android-13

有一个关于使用 ADB 命令获取 IMEI 号码 Android 12 的问题。

adb root
adb shell "service call iphonesubinfo 1 i64 0 | cut -c 52-66 | tr -d '.[:space:]'"
Run Code Online (Sandbox Code Playgroud)

我测试了该方法,在Android 12上运行良好。

但从android 13开始,它只是返回一条错误消息:“Package does not属于...”

有人可以帮忙吗?谢谢!

小智 6

adb shell "service call iphonesubinfo 1 s16 com.android.shell | cut -c 52-66 | tr -d '.[:space:]'"
Run Code Online (Sandbox Code Playgroud)

这就是你想要的