安卓模拟器 : Set mobile device number?

标签 android emulation

有谁知道是否可以设置模拟器的手机号码?我无法在任何地方找到有关此的信息。谢谢。

最佳答案

主要完全控制本博客末尾详述的电话号码:

http://blog.talosintel.com/2013/04/changing-imei-provider-model-and-phone.html

前 7 个是完全可配置的,后 4 个可以是 16 个允许的端口号之一。

It turns out that the phone number is stored on the SIM card. Since there is no actual SIM card, one is emulated. This emulated SIM is hard coded in the emulator-arm binary. The reason replacements for 1555521 failed is because SIM cards have a specification that does not store the MSISDN (Mobile Subscriber Integrated Services Digital Network-Number, AKA phone number) in plain text. Instead, each set of digits is swapped in some reverse nibbled endianness nightmare.

... A quick way to find the MSISDN is to search for %d%df%d in the binary (highlighted in red below). The corresponding source code is in external/qemu/telephony/sim_card.c on line 436 in the current repo. The following is the format string portion of that sprintf:

"+CRSM:144,0,ffffffffffffffffffffffffffffffffffff0781515525%d1%d%df%dffffffffffff"

The interesting part is 515525%d1 (highlighted in blue). Swapping each set of two digits produces 1555521%d (thanks again CodePainters). That looks like the prefix to our mobile number.

在十六进制编辑器中编辑它。

关于安卓模拟器 : Set mobile device number?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5805031/

相关文章:

android - 当通过搜索栏更改大小时,Android v2 版 Google map 上的圆圈会闪烁

android - 从 Android 应用程序访问 Chromebook 的本地主机?

android - 如何配置 Android 模拟器来模拟 Galaxy Nexus?

android - 无法运行 Intel HAXM 安装程序 : Cannot start process, 工作目录不存在

android - Android 中 Eclipse 的特定目标模拟器?

java - 如何克服 LWUIT 中的 RecordStoreFullException 错误?

android - "adb shell uiautomator dump view.xml"之后的xml文件在哪里看

java - 不可转换的类型无法转换

java - 从 LinkedHashMap 获取对象值

javascript - 调查 IOS 设备上的 html/js 问题