I noticed that the value for these properties varies depending on the API level. I tried to solve this problem.
You can use the following command to change the value in API 26:
adb shellsusetprop gsm.operator.numeric 280701
Note. Some emulators require a reboot.
On some emulators, the property may have a different name.
You can find the property name as follows:
adb shellgetprop
This will give you data like the following:
... [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] ...
Search for numeric by copying the output in a text file. Get property name and use setprop <property name> <new MCC MNC>
You can also use getProp to check if a value has been changed.
Sagar
source share