如何通过亚洲开发银行获得的android手机的电话号码?亚洲、开发银行、电话号码、手机

2023-09-04 09:20:35 作者:爷 ̄钻石般耀眼

有没有办法得到一个电话的电话号码,在亚行?

Is there a way to get the phone number of a phone over adb?

我看着dumpsys作为一个可能的答案,但没有系统服务似乎追踪的手机自己的号码。

I looked at dumpsys as a likely answer, but none of the system services seem to keep track of the phone's own number.

推荐答案

iphonesubinfo 服务跟踪,包括电话号码的用户信息。不幸的是 iphonesubinfo 服务不落实转储()方法,以便dumpsys显示什么。你将不得不使用服务电话命令调用 IPhoneSubInfo.getLine1Number() IPhoneSubInfo。 getMsisdn()而不是

iphonesubinfo service "keeps track" of the subscriber information including phone numbers. Unfortunately iphonesubinfo service does not implement the dump() method so dumpsys shows nothing. You will have to use service call command to call IPhoneSubInfo.getLine1Number() or IPhoneSubInfo.getMsisdn() instead

根据不同的Andr​​oid版本和运营商的一个或两个以下命令将告诉您的电话号码(服务电话命令要求权限):

Depending on the android version and your carrier one or two of the following commands will tell you the phone number (service call commands require root privileges):

service call iphonesubinfo 4
service call iphonesubinfo 5
service call iphonesubinfo 6
service call iphonesubinfo 7
service call iphonesubinfo 8

如果你想找出正确的code为特定的设备 - 从亚行壳后调用Android的服务,并运行它是这样的:

If you want to find out the proper code for your specific device - download the script from Calling Android services from ADB shell post and run it like this:

./get_android_service_call_numbers.sh iphonesubinfo | grep getLine1Number

更新

C $ CS交易$为Android 5.0:

Transaction codes for Android 5.0:

service call iphonesubinfo 11 # getLine1Number()
service call iphonesubinfo 15 # getMsisdn()

C $ CS交易$为Android 5.1:

Transaction codes for Android 5.1:

service call iphonesubinfo 13 # getLine1Number()
service call iphonesubinfo 17 # getMsisdn()