我编写了简单的程序来获取各种信息:信号强度、手机信息等……为了测试,我使用了两部具有相同 Android 版本 2.1 的手机——索尼爱立信和三星 Galaxy Spice。要提取邻居小区信息,我使用:
telephonyConnectionAdapter.getNeighboringCellInfos()
在 SE 上,我可以获取邻居单元信息,并且adb logcat -b radio
可以看到:
D/GSM ( 488): [GsmSST] Poll ServiceState done: oldSS=[0 home T-Mobile.pl
T- Mobile.pl 26002 EDGE:2 CSS not supported -1 -1 RoamInd=-1 DefRoamInd=-1
EmergOnly=false] newSS=[0 home T-Mobile.pl T-Mobile.pl 26002 EDGE:2 CSS not
supported -1 -1 RoamInd=-1 DefRoamInd=-1 EmergOnly=false] oldGprs=0 newData=0
oldMaxDataCalls=20 mNewMaxDataCalls=20
oldReasonDataDenied=-1 mNewReasonDataDenied=-1 oldType=EDGE:2 newType=EDGE:2
D/GSM ( 488): [EONS] Reading data from EF_OPL or EF_PNN is not complete.
Suppress operator name display until all EF_OPL/EF_PNN data is read.
D/RILJ ( 488): [8847]> REQUEST_GET_NEIGHBORING_CELL_IDS
D/RILJ ( 488): [8847]< REQUEST_GET_NEIGHBORING_CELL_IDS [b01b59c7@18 [b01b5260@27] [] [b01b63f9@19] [b01b2f4f@17]
但相同的应用程序无法在三星上提取邻居小区信息 - 列表为空,adb logcat -b radio
看起来:
D/GSM ( 1993): Poll ServiceState done: oldSS=[0 home Play Play 26006 (manual)
EDGE CSS not supported -1 -1RoamInd: -1DefRoamInd: -1] newSS=[0 home Play Play
26006 (manual) EDGE CSS not supported -1 -1RoamInd: -1DefRoamInd: -1] oldGprs=0
newGprs=0 oldType=EDGE newType=EDGE D/RILJ ( 1993): [5590]> REQUEST_GET_NEIGHBORING_CELL_IDS
D/RILC ( 1855): [5590]> GET_NEIGHBORING_CELL_IDS
D/RILC ( 1855): [5590]< GET_NEIGHBORING_CELL_IDS fails by E_REQUEST_NOT_SUPPORTED
D/RILJ ( 1993): [5590]< REQUEST_GET_NEIGHBORING_CELL_IDS error: com.android.internal.telephony.CommandException: REQUEST_NOT_SUPPORTED
这是一个更重要的信息。当我在三星上使用魔术代码*#*#197328640#*#*
并进入服务菜单时。几乎没有可见的相邻单元。
知道发生了什么吗?或者至少这是什么意思?
"com.android.internal.telephony.CommandException: REQUEST_NOT_SUPPORTED"