English 中文(简体)
我如何改变安乐器的《流动国家法典》?
原标题:How do I change the Mobile Country Code (MCC) in the Android Emulator?

我的安乐器应用需要对不同的《流动国家法典》做出不同的反应。

似乎难以编码到mcc310(US)。 我可以从<代码>TelephonyManager.getSimCountryIso(上读到这一数值,或者通过使用诸如res/ Values-mcc123/等资源夹读到这一数值,但我如何在推介器中确定这一数值?

问题回答

更改<代码>TelephonyManager.getSimCountryIso(收益,简单执行

adb shell setprop gsm.sim.operator.iso-country no

并且现在没有(挪威)。

如果您想改动<代码>。 TelephonyManager.getSimOperator( Return (MCC+MNC) 然后执行

adb shell setprop gsm.sim.operator.numeric 24201

并且你将国家排雷中心改为242个(挪威),国家排雷中心改为01个(电话)。

了解你可以改变的其他财产,然后执行

adb shell getprop

经核实,这项工作既涉及DVD,又涉及遗传。 然而,这并不持续改变这些特性。

我注意到,这种财产的价值在某些APIC级上有所不同。 我试图解决这一问题。

您可在指挥下改变第26号计划的价值:

  1. adb shell
  2. su
  3. setprop gsm.operator.numeric 280701

<>说明: 一些支持者需要重新启动。

在一些继承人中,财产可能有不同的名称。

你可以找到以下财产名称:

  1. adb shell
  2. getprop

它将向您提供类似以下数据:

...
[dalvik.vm.lockprof.threshold]: [500]
[dalvik.vm.stack-trace-file]: [/data/anr/traces.txt]
[dalvik.vm.usejit]: [true]
[dalvik.vm.usejitprofiles]: [true]
[debug.atrace.tags.enableflags]: [0]
[debug.force_rtl]: [0]
[dev.bootcomplete]: [1]
[drm.service.enabled]: [true]
[gsm.current.phone-type]: [1]
[gsm.defaultpdpcontext.active]: [true]
[gsm.network.type]: [LTE]
[gsm.nitz.time]: [1524141151210]
[gsm.operator.alpha]: [Android]
[gsm.operator.iso-country]: [us]
[gsm.operator.isroaming]: [false]
[gsm.operator.numeric]: [310260]
[gsm.sim.operator.alpha]: [Android]
[gsm.sim.operator.iso-country]: [us]
[gsm.sim.operator.numeric]: [310260]
[gsm.sim.state]: [READY]
[gsm.version.baseband]: [1.0.0.0]
[gsm.version.ril-impl]: [android reference-ril 1.0]
[hwservicemanager.ready]: [true]
[init.svc.adbd]: [running]
[init.svc.audio-hal-2-0]: [running]
[init.svc.audioserver]: [running]
[init.svc.bootanim]: [stopped]
[init.svc.camera-provider-2-4]: [running]
[init.svc.cameraserver]: [running]
...

检索<代码>数字,在文本文档中复制产出。 获取财产名称和使用setprop <property name> <new MCC MNC>

您也可使用<代码>getProp,以核实价值是否已经改变。

学习者:去上台;WireLess and Network->Mobile Network->Access Point name。 Try changing MCC Value in the set APN and 然后尝试你的法典。

确实知道,每个国家依赖管理协委会并不总是正确。 例如,Digicell在几个国家使用一个MCC+MNC。 还理解,从网络角度看,管理协委会的整个想法相当模糊。 如果你两次在T-Mobile上用“AT&”手提,那么知道你是否在德国或荷兰回过来,那是无关紧要的。

似乎无法通过安乐器的环境改变MCC/MNC,每次试图改变预先配置的“T-Mobile”尼共(APN)将从名单上消失,网络连接丧失。 我甚至连在变化之后,就自发地重新boot子。

无论是方案方式还是工作方式,尼共(尼共(毛主义)在以下之后都将消失:

root@generic_x86:/ # content update --uri content://telephony/carriers/ --bind name:s: TheAPN  --bind apn:s:apn.operator.net --bind numeric:i:12345 --bind user:s: --bind password:s: --bind server:s: --bind proxy:s: --bind mmsproxy:s: --bind mmsc:s: --bind type:s: --bind mcc:i:123 --bind mnc:i:45 --bind current:i:1 --where _id=1

可以通过以同样的方式对投稿人进行ck弄,从而改变 rel=“nofollow noreferer”>,IMI

只有在非行的情形下,才能改变 em方的MCC+MNC。 为了改变种植者的MCC+MNC,与亚洲开发银行联系,如下:

adb -s 127.0.0.1:53001 shell

接着,贵国制定了本国法典。 23801年是《荷兰法典》。

setprop persist.<name of the emulator>.mccmnc 23801

Droid4 它是

setprop persist.droid4x.mccmnc 23801

重新召集人。





相关问题
Android - ListView fling gesture triggers context menu

I m relatively new to Android development. I m developing an app with a ListView. I ve followed the info in #1338475 and have my app recognizing the fling gesture, but after the gesture is complete, ...

AsyncTask and error handling on Android

I m converting my code from using Handler to AsyncTask. The latter is great at what it does - asynchronous updates and handling of results in the main UI thread. What s unclear to me is how to handle ...

Android intent filter for a particular file extension?

I want to be able to download a file with a particular extension from the net, and have it passed to my application to deal with it, but I haven t been able to figure out the intent filter. The ...

Android & Web: What is the equivalent style for the web?

I am quite impressed by the workflow I follow when developing Android applications: Define a layout in an xml file and then write all the code in a code-behind style. Is there an equivalent style for ...

TiledLayer equivalent in Android [duplicate]

To draw landscapes, backgrounds with patterns etc, we used TiledLayer in J2ME. Is there an android counterpart for that. Does android provide an option to set such tiled patterns in the layout XML?

Using Repo with Msysgit

When following the Android Open Source Project instructions on installing repo for use with Git, after running the repo init command, I run into this error: /c/Users/Andrew Rabon/bin/repo: line ...

Android "single top" launch mode and onNewIntent method

I read in the Android documentation that by setting my Activity s launchMode property to singleTop OR by adding the FLAG_ACTIVITY_SINGLE_TOP flag to my Intent, that calling startActivity(intent) would ...

From Web Development to Android Development

I have pretty good skills in PHP , Mysql and Javascript for a junior developer. If I wanted to try my hand as Android Development do you think I might find it tough ? Also what new languages would I ...

热门标签