Hi I am currently trying to test a 2G USB modem with the Android emulator. I have used the -radio <device> option to connect the modem emulation (emulator -radio /dev/ttyUSB0). However when the emulator is launched, it is set to airplane mode instead of full network service.
>From the radio log, using logcat -b radio, it is observed the following, the network was camped on initially, however it is set to airplane mode later (AT+CFUN=0). Do you know why the modem is set to airplane mode? And how can I resolved this issue? D/AT ( 28): AT< +CREG: 1,"005E","24A6" I/AT ( 28): readline I/AT ( 28): findNextEOL ^[[5~^[[5~I/PHONE ( 102): Network Mode set to 0 I/PHONE ( 102): Cdma Subscription set to 1 I/RILC ( 28): libril: new connection I/RIL ( 28): currentState [4] I/RILJ ( 102): Connected to 'rild' socket D/RILJ ( 102): Radio ON @ init; reset to OFF D/RILJ ( 102): [0000]> REQUEST_SET_PREFERRED_NETWORK_TYPE : 0 D/RIL ( 28): onRequest: SET_PREFERRED_NETWORK_TYPE D/RILJ ( 102): [0001]> RIL_REQUEST_CDMA_SET_SUBSCRIPTION : 1 D/RIL ( 28): onRequest: CDMA_SET_SUBSCRIPTION D/RILJ ( 102): [0002]> RADIO_POWER D/PHONE ( 102): mDoesRilSendMultipleCallRing=true D/PHONE ( 102): mCallRingDelay=3000 D/RILJ ( 102): [UNSL]< UNSOL_RESPONSE_RADIO_STATE_CHANGED RADIO_UNAVAILABLE D/RILJ ( 102): [0000]< REQUEST_SET_PREFERRED_NETWORK_TYPE error: com.android.internal.telephony.CommandException: REQUEST_NOT_SUPPORTED D/RILJ ( 102): [0001]< RIL_REQUEST_CDMA_SET_SUBSCRIPTION error: com.android.internal.telephony.CommandException: REQUEST_NOT_SUPPORTED D/RIL ( 28): onRequest: RADIO_POWER I/RIL ( 28): requestRadioPower D/AT ( 28): AT> AT+CFUN=0 D/AT ( 28): AT< AT+CFUN=0 I/AT ( 28): isSMSUnsolicited I/AT ( 28): processLine I/AT ( 28): isFinalResponseError I/AT ( 28): handleUnsolicited I/RIL ( 28): onUnsolicited D/AT ( 28): AT< OK Thank a lot.
-- unsubscribe: [email protected] website: http://groups.google.com/group/android-porting
