我们曾经使用以下命令获取设备ID / IMEI:
adb shell dumpsys iphonesubinfo
但是自从上次Android更新(5.0 – Lollilop)以来,这个命令并没有返回任何内容,我在Nexus 4和Nexus 5上都进行了这个测试.
您可以随时使用service call命令来调用服务方法.
原文链接:https://www.f2er.com/bash/385798.html以下是android-5.0.0_r1中iphonesubinfo服务的TRANSACTION CODES:
1 getDeviceId 2 getDeviceIdForSubscriber 3 getImeiForSubscriber 4 getDeviceSvn 5 getSubscriberId 6 getSubscriberIdForSubscriber 7 getGroupIdLevel1 8 getGroupIdLevel1ForSubscriber 9 getIccSerialNumber 10 getIccSerialNumberForSubscriber 11 getLine1Number 12 getLine1NumberForSubscriber 13 getLine1AlphaTag 14 getLine1AlphaTagForSubscriber 15 getMsisdn 16 getMsisdnForSubscriber 17 getVoiceMailNumber 18 getVoiceMailNumberForSubscriber 19 getCompleteVoiceMailNumber 20 getCompleteVoiceMailNumberForSubscriber 21 getVoiceMailAlphaTag 22 getVoiceMailAlphaTagForSubscriber 23 getIsimImpi 24 getIsimDomain 25 getIsimImpu 26 getIsimIst 27 getIsimPcscf 28 getIsimChallengeResponse 29 getIccSimChallengeResponse