有谁知道是否可以设置模拟器的手机号码?我无法在任何地方找到有关此的信息。谢谢。
最佳答案
主要完全控制本博客末尾详述的电话号码:
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/