• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Root [Boost Mobile] For Discussion of Development for CM7 Only

Well I assumed that the kernel source was to help get that on track? I'd have to go back and read through the posts on here, I've been waiting for the kernel to continue, hence my absence. :)

kernel source is more for me to see how far I can get with CM9
 
well, im still working on cm7 myself, trying to fix ril issues. been trying a couple of builds. Hroark's kernel source is beautiful though, enables alot of stuff for this phone that it needs, and would be PERFECT for cm9. Im running another test of my cm7 now, going to see if adding qcrilhook.jar from stock framework to cm7 framework would work.

[EDIT]
doing that ended up in a bootloop, kept saying the odex was stale. so Im deodexing my cm7 framework, adding qcnvitems.jar and omadrmclient.jar since qcrilhook.jar has some dependencies there too. after I do that, hopefully it'll boot...

[EDIT2]
Well, Im making some progress, it recognizes the network, also recognizes the network ID, heres a logcat of the radio alone, lets see if someone can figure out what the eff Im doing wrong... :

Code:
D/RILC    (  145): UI <--- RIL_REQUEST_QUERY_NETWORK_SELECTION_MODE (45) Complete --- RIL [RID 0, Token 132, Generic Failure, Len 0 ]
D/RILJ    (  435): [0129]< OPERATOR {Boost Mobile, Boost Mobile, 310000}
D/RILJ    (  435): [0130]< GPRS_REGISTRATION_STATE {1, null, null, 8, 0, 20}
D/RILJ    (  435): [0131]< REGISTRATION_STATE {1, null, null, 8, 595, 580278, -1105894, 0, 04168, 00008, 1, 1, 1, 0, null}
D/RILJ    (  435): [0132]< QUERY_NETWORK_SELECTION_MODE error: com.android.internal.telephony.CommandException: GENERIC_FAILURE
E/GSM     (  435): RIL implementation has returned an error where it must succeedcom.android.internal.telephony.CommandException: GENERIC_FAILURE
E/GSM     (  435): Wrong network type: 8
E/GSM     (  435): Wrong network type: 8
D/GSM     (  435): Poll ServiceState done:  oldSS=[0 home Boost Mobile Boost Mobile 310000  EvDo rev. A CSS not supported -1 -1RoamInd: -1DefRoamInd: -1EmergOnly: false] newSS=[0 home Boost Mobile Boost Mobile 310000  EvDo rev. A CSS not supported -1 -1RoamInd: -1DefRoamInd: -1EmergOnly: false] oldGprs=0 newGprs=0 oldType=unknown newType=unknown
D/RILC    (  145): RID 0 MID 0 Received srvsys event : CM_SS_EVENT_HDR_RSSI (73733)
D/RILC    (  145): RID 0 MID 0 Queued event CM_SS_EVENT_HDR_RSSI (3800 bytes)
D/RILC    (  145): qcril_event_main(): 1 items on queue
D/RILC    (  145): RID 0 MID 0 De-queued event CM_SS_EVENT_HDR_RSSI (73733)
D/RILC    (  145): RIL <--- CM_SS_EVENT_HDR_RSSI(73733), RID 0, MID 0 --- AMSS
D/RILC    (  145): Process event rssi, iid 0, mid 0
D/RILC    (  145): RID 0 MID 0 Serving System : srv status 2, sys mode 2, roam status 0, IDM 4, hdr_hybrid 1, hdr srv status 2, hdr roam status 0, srv cap = 3
D/RILC    (  145): RID 0 voice srv: modem id=0, ma=Multimode(0), net_pref=CDMA EVDO(4)
D/RILC    (  145): RID 0 MID 0 Update voice radio tech 2
D/RILC    (  145): RID 0 MID 0 Update ECC property 2
D/RILC    (  145): RID 0 MID 0 no update on ril.ecclist needed
D/RILC    (  145): [CM_SS_EVENT_HDR_RSSI(73733)] Modem: On --> On, Voice Tech: 3GPP2 --> 3GPP2
D/RILC    (  145): [CM_SS_EVENT_HDR_RSSI(73733)] GW SIM(pri): Not ready --> Not ready, CDMA SIM(pri): Not ready --> Not ready, GW SIM(sec): Not ready --> Not ready, CDMA SIM(sec): Not ready --> Not ready
D/RILC    (  145): RID 0 voice tech: cdma modem id=0, ma=Multimode(0), net_pref=CDMA EVDO(4)
D/RILC    (  145): RID 0 data tech: cdma modem id=0, evdo modem id=0, pdt modem id=1, pdt=Unknown(0), ma=Multimode(0), net_pref=CDMA EVDO(4)
D/RILC    (  145): Arch: cdma modem id=0, evdo modem id=0, gwl modem id =0, ma=Multimode(0)
D/RILC    (  145): Signal strength: raw_rssi: 85, gwl_rssi: 99, gw_bit_error: 99, cdma_dbm: 79, cdma_ecio: 90, hdr_dbm: 70, hdr_ecio: 50, hdr_sinr: 4, lte_rsrp -1, lte_rsrq -1
D/RILC    (  145):  
D/RILC    (  145): UI <--- RIL_UNSOL_SIGNAL_STRENGTH (1009) --- RIL [RID 0, Len 40, (null)]
D/RILC    (  145): qcril_event_main(): Waiting...
D/RILC    (  145): RID 0 MID 0 Received srvsys event : CM_SS_EVENT_HDR_RSSI (73733)
D/RILC    (  145): RID 0 MID 0 Queued event CM_SS_EVENT_HDR_RSSI (3800 bytes)
D/RILC    (  145): qcril_event_main(): 1 items on queue
D/RILC    (  145): RID 0 MID 0 De-queued event CM_SS_EVENT_HDR_RSSI (73733)
D/RILC    (  145): RIL <--- CM_SS_EVENT_HDR_RSSI(73733), RID 0, MID 0 --- AMSS
D/RILC    (  145): Process event rssi, iid 0, mid 0
D/RILC    (  145): RID 0 MID 0 Serving System : srv status 2, sys mode 2, roam status 0, IDM 4, hdr_hybrid 1, hdr srv status 2, hdr roam status 0, srv cap = 3
D/RILC    (  145): RID 0 voice srv: modem id=0, ma=Multimode(0), net_pref=CDMA EVDO(4)
D/RILC    (  145): RID 0 MID 0 Update voice radio tech 2
D/RILC    (  145): RID 0 MID 0 Update ECC property 2
D/RILC    (  145): RID 0 MID 0 no update on ril.ecclist needed
D/RILC    (  145): [CM_SS_EVENT_HDR_RSSI(73733)] Modem: On --> On, Voice Tech: 3GPP2 --> 3GPP2
D/RILC    (  145): [CM_SS_EVENT_HDR_RSSI(73733)] GW SIM(pri): Not ready --> Not ready, CDMA SIM(pri): Not ready --> Not ready, GW SIM(sec): Not ready --> Not ready, CDMA SIM(sec): Not ready --> Not ready
D/RILC    (  145): RID 0 voice tech: cdma modem id=0, ma=Multimode(0), net_pref=CDMA EVDO(4)
D/RILC    (  145): RID 0 data tech: cdma modem id=0, evdo modem id=0, pdt modem id=1, pdt=Unknown(0), ma=Multimode(0), net_pref=CDMA EVDO(4)
D/RILC    (  145): Arch: cdma modem id=0, evdo modem id=0, gwl modem id =0, ma=Multimode(0)
D/RILC    (  145): Signal strength: raw_rssi: 85, gwl_rssi: 99, gw_bit_error: 99, cdma_dbm: 79, cdma_ecio: 90, hdr_dbm: 75, hdr_ecio: 50, hdr_sinr: 4, lte_rsrp -1, lte_rsrq -1
D/RILC    (  145):  
D/RILC    (  145): UI <--- RIL_UNSOL_SIGNAL_STRENGTH (1009) --- RIL [RID 0, Len 40, (null)]
D/RILC    (  145): qcril_event_main(): Waiting...
D/RILJ    (  435): [0133]> SCREEN_STATE: false
D/RILC    (  145): UI --- RIL_REQUEST_SCREEN_STATE (61) ---> RIL [RID 0, token id 133, data len 4]
D/RILC    (  145): De-registering the RSSI, HDR RSSI, and SRV_CHANGED events on screen-off request
D/RILC    (  145): RIL=>AMSS [ label = "cm_mm_client_ss_reg()" ];
D/GSM     (  435): [DataConnection] Stop poll NetStat
D/RILC    (  145): Reply to RIL --> Screen off
D/RILC    (  145): UI <--- RIL_REQUEST_SCREEN_STATE (61) Complete --- RIL [RID 0, Token 133, Success, Len 0 Off]
D/RILJ    (  435): [0133]< SCREEN_STATE
[EDIT3]
Hmm, this error in the radio logcat is interesting:
Code:
E/GSM     (  435): RIL implementation has returned an error where it must succeedcom.android.internal.telephony.CommandException: GENERIC_FAILURE
E/GSM     (  435): Wrong network type: 8
E/GSM     (  435): Wrong network type: 8
D/GSM     (  435): Poll ServiceState done:  oldSS=[0 home Boost Mobile Boost Mobile 310000  EvDo rev. A CSS not supported -1 -1RoamInd: -1DefRoamInd: -1EmergOnly: false] newSS=[0 home Boost Mobile Boost Mobile 310000  EvDo rev. A CSS not supported -1 -1RoamInd: -1DefRoamInd: -1EmergOnly: false] oldGprs=0 newGprs=0 oldType=unknown newType=unknown
network type 8... reminds me of the system.prop on the htc mecha aka the thunderbolt, they do use the same chipset tho, so doesnt surprise me, they also use libril-qc-1.so and their system.prop values for cne are alike. they are both sprint phones, the difference is that the thunderbolt supports LTE... altho I wouldnt be surprised if the warp supported LTE judging by this system.prop value that was in the stock:

#
# system props for telephony modules
#
#device supports EHRPD
# wangcheng_ril_20110120 remove ro.config.ehrpd=true

I added the value into my cm7 system.prop... IM going to change the default network type to 8 to see if that fixes some of my issues, 8 is CDMA/EVDO/LTE auto, maybe the system is calling that value. I really dont know, and wont know till I test it.
 
hmm the new RIL code i found seems to work (no errors like the RIL I was using earlier), BUT, for some reason it keeps defaulting to gsm mode instead of cdma. Yes, ro.telephony.default_network=4 is set and ro.ril.def.preferred.network=4 is set too.

heres some of the logcat of the radio:

Code:
D/RILC    (  145): UI <--- RIL_UNSOL_RESPONSE_RADIO_STATE_CHANGED (1000) --- RIL [RID 0, Len 0, (null)]
D/RILC    (  145): RID 0 currentState() -> Radio On(2)
D/RILC    (  145): qcril_event_main(): Waiting...
D/RILJ    (  435): [0001]< RADIO_POWER 
D/RILJ    (  435): [UNSL]< UNSOL_RESPONSE_RADIO_STATE_CHANGED SIM_NOT_READY
D/RILB    (  435): Notifying: Radio On
D/RILB    (  435): Notifying: radio technology change CDMA OFF to GSM
D/CDMA    (  435): [CdmaDataConnection-1] DcInactiveState: msg.what=EVENT_RESET, ignore we're already reset
D/CDMA    (  435): [CdmaDataConnection-1] NotifyDisconnectCompleted
D/CDMA    (  435): [CdmaDataConnection-1] clearSettings
D/CDMA    (  435): [DataConnection] Stop poll NetStat
D/CDMA    (  435): [IccCard] Broadcasting intent ACTION_SIM_STATE_CHANGED NOT_READY reason null
D/RILJ    (  435): [0002]> BASEBAND_VERSION
D/RILC    (  145): UI --- RIL_REQUEST_BASEBAND_VERSION (51) ---> RIL [RID 0, token id 2, data len 0]
D/RILC    (  145): RID 0 nv srv Common(2): modem id=0, ma=Multimode(0), net pref=CDMA EVDO(4)
D/RILC    (  145): [RID 0] ReqList entries :
D/RILC    (  145):     RIL_REQUEST_BASEBAND_VERSION (51), token id 2
D/RILC    (  145): RIL=>AMSS [ label = "nv_cmd_remote() - Read NV_SW_VERSION_INFO_I" ];
D/RILJ    (  435): [0003]> RIL_REQUEST_DEVICE_IDENTITY
D/RILC    (  145): Reply to RIL --> Baseband Version : 
D/RILC    (  145): [RID 0] ReqList entries : Empty 
D/RILC    (  145): UI <--- RIL_REQUEST_BASEBAND_VERSION (51) Complete --- RIL [RID 0, Token 2, Success, Len 31 ]
D/RILJ    (  435): [0002]< BASEBAND_VERSION 
D/RILC    (  145): UI --- RIL_REQUEST_DEVICE_IDENTITY (98) ---> RIL [RID 0, token id 3, data len 0]
D/RILC    (  145): RID 0 nv srv 3GPP(1): modem id=0, ma=Multimode(0), net pref=CDMA EVDO(4)
D/RILC    (  145): RIL=>AMSS [ label = "nv_cmd_remote() - Read NV_UE_IMEI_I" ];
D/CDMA    (  435): Event EVENT_RADIO_OFF_OR_NOT_AVAILABLE Received
D/RILC    (  145): RIL=>AMSS [ label = "nv_cmd_remote() - Read NV_UE_IMEISV_SVN_I" ];
D/RILC    (  145): RID 0 nv srv 3GPP2(0): modem id=0, ma=Multimode(0), net pref=CDMA EVDO(4)
D/RILC    (  145): RIL=>AMSS [ label = "nv_cmd_remote() - Read NV_ESN_I" ];
D/RILC    (  145): RIL=>AMSS [ label = "nv_cmd_remote() - Read NV_MEID_I" ];
D/RILC    (  145): Reply to RIL -->  IMEI XXXXXXXXXXX, IMEISV 00, ESN XXXXXX, MEID XXXXXXXXXXXXX
D/RILC    (  145): UI <--- RIL_REQUEST_DEVICE_IDENTITY (98) Complete --- RIL [RID 0, Token 3, Success, Len 16 ]
D/CDMA    (  435): [CdmaServiceStateTracker] Radio Technology Change ongoing, setting SS to off
D/RILJ    (  435): [0004]> GET_CURRENT_CALLS
D/RILC    (  145): UI --- RIL_REQUEST_GET_CURRENT_CALLS (9) ---> RIL [RID 0, token id 4, data len 0]
D/RILC    (  145): Reply to RIL --> Number of calls : 0
D/RILC    (  145): UI <--- RIL_REQUEST_GET_CURRENT_CALLS (9) Complete --- RIL [RID 0, Token 4, Success, Len 0 ]
D/CDMA    (  435): Event EVENT_RADIO_ON Received
D/PHONE   (  435): [PhoneProxy] Switching phone from CDMAPhone to GSMPhone
D/PHONE   (  435): [PhoneProxy] Make a new GSMPhone and destroy the old CDMAPhone.
E/CDMA    (  435): method unregisterForSuppServiceNotification is NOT supported in CDMA!
D/CDMA    (  435): [CdmaDataConnection-1] DcInactiveState: msg.what=EVENT_RESET, ignore we're already reset
D/CDMA    (  435): [CdmaDataConnection-1] NotifyDisconnectCompleted
D/RILJ    (  435): [0003]< RIL_REQUEST_DEVICE_IDENTITY {351602000709090, 00, 803acc79, a000002bda6f57}
D/RILJ    (  435): [0004]< GET_CURRENT_CALLS  
D/CDMA    (  435): [CdmaDataConnection-1] clearSettings
D/CDMA    (  435): [DataConnection] Stop poll NetStat
D/CDMA    (  435): [CdmaCallTracker] update phone state, old=IDLE new=IDLE
D/PHONE   (  435): mDoesRilSendMultipleCallRing=true
D/PHONE   (  435): mCallRingDelay=0
W/GSM     (  435): Can't open /system/etc/voicemail-conf.xml
W/GSM     (  435): Can't open /system/etc/spn-conf.xml
D/GSM     (  435): [DSAC DEB] registerForPsRestrictedEnabled 
D/GSM     (  435): [DSAC DEB] registerForPsRestrictedDisabled 
D/GSM     (  435): [GsmDataConnection-2] DataConnection constructor E
D/GSM     (  435): [GsmDataConnection-2] clearSettings
D/GSM     (  435): [GsmDataConnection-2] DataConnection constructor X
D/GSM     (  435): [GsmDataConnection-2] Made GsmDataConnection-2
D/RILJ    (  435): [0005]> RIL_REQUEST_REPORT_STK_SERVICE_IS_RUNNING
D/STK     (  435): StkService: StkService: is running
D/STK     (  435): StkService: NEW sInstance
D/RILC    (  145): UI --- RIL_REQUEST_REPORT_STK_SERVICE_IS_RUNNING (103) ---> RIL [RID 0, token id 5, data len 0]
D/RILC    (  145): Event [QCRIL_EVT_GSTK_QMI_NOTIFY_RIL_IS_READY, 266241] data was NULL!
D/RILC    (  145): RID 0 MID 0 Queued event QCRIL_EVT_GSTK_QMI_NOTIFY_RIL_IS_READY (0 bytes)
D/RILC    (  145): UI <--- RIL_REQUEST_REPORT_STK_SERVICE_IS_RUNNING (103) Complete --- RIL [RID 0, Token 5, Success, Len 0 ]
D/RILJ    (  435): [0005]< RIL_REQUEST_REPORT_STK_SERVICE_IS_RUNNING 
D/RILC    (  145): qcril_event_main(): 1 items on queue
D/RILC    (  145): RID 0 MID 0 De-queued event QCRIL_EVT_GSTK_QMI_NOTIFY_RIL_IS_READY (266241)
D/RILC    (  145): RIL --- QCRIL_EVT_GSTK_QMI_NOTIFY_RIL_IS_READY(266241), RID 0, MID 0 ---> RIL
D/RILC    (  145): Set timer with ID 1
D/RILC    (  145): qcril_event_main(): Waiting...
D/RILJ    (  435): [0006]> SET_SUPP_SVC_NOTIFICATION
D/RILC    (  145): UI --- RIL_REQUEST_SET_SUPP_SVC_NOTIFICATION (62) ---> RIL [RID 0, token id 6, data len 4]
D/RILC    (  145): RIL_REQUEST_SET_SUPP_SVC_NOTIFICATION Enable
D/RILC    (  145): RID 0 voice srv: modem id=0, ma=Multimode(0), net_pref=CDMA EVDO(4)
D/RILC    (  145): RIL=>AMSS [ label = "cm_mm_client_call_reg(CM_CLIENT_EVENT_REG)" ];
D/RILC    (  145): RIL=>AMSS [ label = "cm_mm_client_call_reg(CM_CLIENT_EVENT_REG)" ];
D/RILC    (  145): RIL=>AMSS [ label = "cm_mm_client_call_reg(CM_CLIENT_EVENT_REG)" ];
D/CDMA    (  435): Baseband version: 
D/RILC    (  145): RIL=>AMSS [ label = "cm_mm_client_call_reg(CM_CLIENT_EVENT_REG)" ];
D/RILC    (  145): RIL=>AMSS [ label = "cm_mm_client_call_reg(CM_CLIENT_EVENT_REG)" ];
D/RILC    (  145): RIL=>AMSS [ label = "cm_mm_client_call_reg(CM_CLIENT_EVENT_REG)" ];
D/RILC    (  145): RIL=>AMSS [ label = "cm_mm_client_call_reg(CM_CLIENT_EVENT_REG)" ];
D/RILC    (  145): RIL=>AMSS [ label = "cm_mm_client_call_reg(CM_CLIENT_EVENT_REG)" ];
D/RILC    (  145): RIL=>AMSS [ label = "cm_mm_client_call_reg(CM_CLIENT_EVENT_REG)" ];
D/RILC    (  145): RIL=>AMSS [ label = "cm_mm_client_call_reg(CM_CLIENT_EVENT_REG)" ];
D/RILC    (  145): RIL=>AMSS [ label = "cm_mm_client_call_reg(CM_CLIENT_EVENT_REG)" ];
D/RILC    (  145): RIL=>AMSS [ label = "cm_mm_client_call_reg(CM_CLIENT_EVENT_REG)" ];
D/RILC    (  145): UI <--- RIL_REQUEST_SET_SUPP_SVC_NOTIFICATION (62) Complete --- RIL [RID 0, Token 6, Success, Len 0 ]
D/RILJ    (  435): [0006]< SET_SUPP_SVC_NOTIFICATION 
D/CDMA    (  435): Event EVENT_POLL_CALLS_RESULT Received
D/CDMA    (  435): [CdmaCallTracker] update phone state, old=IDLE new=IDLE
D/RILJ    (  435): [0007]> GET_CURRENT_CALLS
D/RILJ    (  435): [0008]> OPERATOR
D/RILC    (  145): UI --- RIL_REQUEST_GET_CURRENT_CALLS (9) ---> RIL [RID 0, token id 7, data len 0]
D/RILC    (  145): Reply to RIL --> Number of calls : 0
D/RILC    (  145): UI <--- RIL_REQUEST_GET_CURRENT_CALLS (9) Complete --- RIL [RID 0, Token 7, Success, Len 0 ]
D/RILJ    (  435): [0007]< GET_CURRENT_CALLS  
D/RILJ    (  435): [0009]> GPRS_REGISTRATION_STATE
D/RILJ    (  435): [0010]> REGISTRATION_STATE
D/RILC    (  145): UI --- RIL_REQUEST_OPERATOR (22) ---> RIL [RID 0, token id 8, data len 0]
D/RILC    (  145): RID 0 voice srv: modem id=0, ma=Multimode(0), net_pref=CDMA EVDO(4)
D/RILC    (  145): Reply to RIL --> Current operator full name : (null)
D/RILC    (  145): Reply to RIL --> Current operator short name : (null)
D/RILC    (  145): Reply to RIL --> Current operator MCCMNC : (null)
D/RILC    (  145): UI <--- RIL_REQUEST_OPERATOR (22) Complete --- RIL [RID 0, Token 8, Success, Len 12 ]
D/RILC    (  145): UI --- RIL_REQUEST_DATA_REGISTRATION_STATE (21) ---> RIL [RID 0, token id 9, data len 0]
D/RILC    (  145): RID 0 data tech: cdma modem id=0, evdo modem id=0, pdt modem id=1, pdt=Unknown(0), ma=Multimode(0), net_pref=CDMA EVDO(4)
D/RILC    (  145): Current System : srv status 0, sys mode 0, roam status 0, srv domain 0, srv cap 0, IDM 0, hybrid 0, hdr srv status 0 managed roaming 0, mode pref 22
D/RILC    (  145): NO SERVICE
D/RILC    (  145): Reject cause value sent to UI = 0
D/RILC    (  145): Registration State: Not registered/Actively searching, RadioTech: Unknown, LAC: (null), CID: (null), BSID: (null), BSLat: (null), BSLong: (null)
D/RILC    (  145):                     CCS: (null), SID: (null), NID: (null), RoamStatus: (null), PRL: (null), DefRoamStatus: (null), RejReason: 0
D/RILC    (  145): Current System : srv status 0, sys mode 0, roam status 0, srv domain 0, srv cap 0, IDM 0, hybrid 0, hdr srv status 0 managed roaming 0, mode pref 22
D/RILC    (  145): NO SERVICE
D/RILC    (  145): Reject cause value sent to UI = 0
D/RILC    (  145): Registration State: Not registered/Actively searching, RadioTech: Unknown, LAC: (null), CID: (null), BSID: (null), BSLat: (null), BSLong: (null)
D/RILC    (  145):                     CCS: (null), SID: (null), NID: (null), RoamStatus: (null), PRL: (null), DefRoamStatus: (null), RejReason: 0
D/RILC    (  145): UI <--- RIL_REQUEST_DATA_REGISTRATION_STATE (21) Complete --- RIL [RID 0, Token 9, Success, Len 24 Not registered/Actively searching]
D/RILJ    (  435): [0008]< OPERATOR {null, null, null}
D/RILJ    (  435): [0009]< GPRS_REGISTRATION_STATE {2, null, null, 0, 0, 20}
D/RILJ    (  435): [0011]> QUERY_NETWORK_SELECTION_MODE
D/RILC    (  145): UI --- RIL_REQUEST_REGISTRATION_STATE (20) ---> RIL [RID 0, token id 10, data len 0]
D/RILC    (  145): RID 0 voice tech: cdma modem id=0, ma=Multimode(0), net_pref=CDMA EVDO(4)
D/RILC    (  145): Current System : srv status 0, sys mode 0, roam status 0, srv domain 0, srv cap 0, IDM 0, hybrid 0, hdr srv status 0 managed roaming 0, mode pref 22
D/RILC    (  145): NO SERVICE
D/RILC    (  145): Reject cause value sent to UI = 0
D/RILC    (  145): Registration State: Not registered/Actively searching, RadioTech: Unknown, LAC: (null), CID: (null), BSID: (null), BSLat: (null), BSLong: (null)
D/RILC    (  145):                     CCS: (null), SID: (null), NID: (null), RoamStatus: (null), PRL: (null), DefRoamStatus: (null), RejReason: 0
D/RILC    (  145): UI <--- RIL_REQUEST_REGISTRATION_STATE (20) Complete --- RIL [RID 0, Token 10, Success, Len 60 Not registered/Actively searching]
D/RILJ    (  435): [0010]< REGISTRATION_STATE {2, null, null, 0, null, null, null, null, null, null, null, null, null, 0, null}
D/RILC    (  145): UI --- RIL_REQUEST_QUERY_NETWORK_SELECTION_MODE (45) ---> RIL [RID 0, token id 11, data len 0]
E/RILC    (  145): RID 0 ph srv 3GPP(1): not supported, ma=Multimode(0), net_pref=CDMA EVDO(4)
D/RILC    (  145): UI <--- RIL_REQUEST_QUERY_NETWORK_SELECTION_MODE (45) Complete --- RIL [RID 0, Token 11, Generic Failure, Len 0 ]
D/GSM     (  435): [DataConnection] Stop poll NetStat
D/RILJ    (  435): [0011]< QUERY_NETWORK_SELECTION_MODE error: com.android.internal.telephony.CommandException: GENERIC_FAILURE
D/GSM     (  435): [DSAC DEB] trySetupData with mIsPsRestricted=false
D/RILJ    (  435): [0012]> BASEBAND_VERSION
D/RILC    (  145): UI --- RIL_REQUEST_BASEBAND_VERSION (51) ---> RIL [RID 0, token id 12, data len 0]
D/RILC    (  145): RID 0 nv srv Common(2): modem id=0, ma=Multimode(0), net pref=CDMA EVDO(4)
D/RILC    (  145): [RID 0] ReqList entries :
D/RILC    (  145):     RIL_REQUEST_BASEBAND_VERSION (51), token id 12
D/RILC    (  145): RIL=>AMSS [ label = "nv_cmd_remote() - Read NV_SW_VERSION_INFO_I" ];
D/RILJ    (  435): [0013]> GET_IMEI
D/RILC    (  145): Reply to RIL --> Baseband Version : 
D/RILC    (  145): [RID 0] ReqList entries : Empty 
D/RILC    (  145): UI <--- RIL_REQUEST_BASEBAND_VERSION (51) Complete --- RIL [RID 0, Token 12, Success, Len 31 ]
D/RILJ    (  435): [0012]< BASEBAND_VERSION 
D/RILC    (  145): UI --- RIL_REQUEST_GET_IMEI (38) ---> RIL [RID 0, token id 13, data len 0]
D/RILC    (  145): RID 0 nv srv 3GPP(1): modem id=0, ma=Multimode(0), net pref=CDMA EVDO(4)
D/RILC    (  145): [RID 0] ReqList entries :
D/RILC    (  145):     RIL_REQUEST_GET_IMEI (38), token id 13
D/RILC    (  145): RIL=>AMSS [ label = "nv_cmd_remote() - Read NV_UE_IMEI_I" ];
D/RILJ    (  435): [0014]> GET_IMEISV
D/RILC    (  145): Reply to RIL --> IMEI XXXXXXXXXXX
D/RILC    (  145): [RID 0] ReqList entries : Empty 
D/RILC    (  145): UI <--- RIL_REQUEST_GET_IMEI (38) Complete --- RIL [RID 0, Token 13, Success, Len 16 ]
D/RILJ    (  435): [0013]< GET_IMEI 
D/RILC    (  145): UI --- RIL_REQUEST_GET_IMEISV (39) ---> RIL [RID 0, token id 14, data len 0]
D/RILC    (  145): RID 0 nv srv 3GPP(1): modem id=0, ma=Multimode(0), net pref=CDMA EVDO(4)
D/RILC    (  145): [RID 0] ReqList entries :
D/RILC    (  145):     RIL_REQUEST_GET_IMEISV (39), token id 14
D/RILC    (  145): RIL=>AMSS [ label = "nv_cmd_remote() - Read NV_UE_IMEISV_SVN_I" ];
D/RILC    (  145): [RID 0] ReqList entries : Empty 
D/RILC    (  145): UI <--- RIL_REQUEST_GET_IMEISV (39) Complete --- RIL [RID 0, Token 14, Success, Len 3 ]
D/RILJ    (  435): [0014]< GET_IMEISV 
E/GSM     (  435): RIL implementation has returned an error where it must succeedcom.android.internal.telephony.CommandException: GENERIC_FAILURE
E/GSM     (  435): Wrong network type: 0
E/GSM     (  435): Wrong network type: 0
D/GSM     (  435): Poll ServiceState done:  oldSS=[1 home null null null  Unknown CSS not supported 0 0RoamInd: 0DefRoamInd: 0EmergOnly: false] newSS=[1 home null null null  Unknown CSS not supported 0 0RoamInd: 0DefRoamInd: 0EmergOnly: false] oldGprs=1 newGprs=1 oldType=unknown newType=unknown
D/GSM     (  435): Baseband version: 
D/RILC    (  145): RID 0 MID 0 Received srvsys event : CM_SS_EVENT_RSSI (73729)
D/RILC    (  145): RID 0 MID 0 Queued event CM_SS_EVENT_RSSI (3800 bytes)
D/RILC    (  145): qcril_event_main(): 1 items on queue
and here is about where it fails:

Code:
D/RILC    (  145): UI --- RIL_REQUEST_QUERY_NETWORK_SELECTION_MODE (45) ---> RIL [RID 0, token id 22, data len 0]
E/RILC    (  145): RID 0 ph srv 3GPP(1): not supported, ma=Multimode(0), net_pref=CDMA EVDO(4)
D/RILC    (  145): UI <--- RIL_REQUEST_QUERY_NETWORK_SELECTION_MODE (45) Complete --- RIL [RID 0, Token 22, Generic Failure, Len 0 ]
D/RILJ    (  435): [0017]< REGISTRATION_STATE {1, null, null, 4, 0, 0, 0, 0, 04168, 00008, 1, 1, 1, 0, null}
D/RILJ    (  435): [0018]< QUERY_NETWORK_SELECTION_MODE error: com.android.internal.telephony.CommandException: GENERIC_FAILURE
D/RILJ    (  435): [0019]< OPERATOR {Boost Mobile, Boost Mobile, 310000}
D/RILJ    (  435): [0020]< GPRS_REGISTRATION_STATE {2, null, null, 0, 0, 20}
D/RILJ    (  435): [0021]< REGISTRATION_STATE {1, null, null, 4, 0, 0, 0, 0, 04168, 00008, 1, 1, 1, 0, null}
D/RILJ    (  435): [0022]< QUERY_NETWORK_SELECTION_MODE error: com.android.internal.telephony.CommandException: GENERIC_FAILURE
I/GSM     (  435): NITZ: Setting time of day to Thu May 10 13:55:40 EDT 2012 NITZ receive delay(ms): 40 gained(ms): 14468 from 12/05/10,17:55:40-16,01
I/GSM     (  435): NITZ: after Setting time of day
E/GSM     (  435): RIL implementation has returned an error where it must succeedcom.android.internal.telephony.CommandException: GENERIC_FAILURE
E/GSM     (  435): Wrong network type: 0
E/GSM     (  435): Wrong network type: 0
D/GSM     (  435): Poll ServiceState done:  oldSS=[1 home null null null  Unknown CSS not supported 0 0RoamInd: 0DefRoamInd: 0EmergOnly: false] newSS=[0 home Boost Mobile Boost Mobile 310000  Unknown CSS not supported -1 -1RoamInd: -1DefRoamInd: -1EmergOnly: false] oldGprs=1 newGprs=1 oldType=unknown newType=unknown
D/RILC    (  145): RID 0 MID 0 Received srvsys event : CM_SS_EVENT_SRV_CHANGED (73728)
and what I dont understand is why cm7 is doing this:

Code:
D/RILC    (  145): UI <--- RIL_REQUEST_BASEBAND_VERSION (51) Complete --- RIL [RID 0, Token 2, Success, Len 31 ]
D/RILC    (  145): UI --- RIL_REQUEST_DEVICE_IDENTITY (98) ---> RIL [RID 0, token id 3, data len 0]
D/RILC    (  145): RID 0 nv srv 3GPP(1): modem id=0, ma=Multimode(0), net pref=CDMA EVDO(4)
D/RILC    (  145): RIL=>AMSS [ label = "nv_cmd_remote() - Read NV_UE_IMEI_I" ];
D/RILJ    (  431): [0002]< BASEBAND_VERSION 
D/RILC    (  145): RIL=>AMSS [ label = "nv_cmd_remote() - Read NV_UE_IMEISV_SVN_I" ];
D/RILC    (  145): RID 0 nv srv 3GPP2(0): modem id=0, ma=Multimode(0), net pref=CDMA EVDO(4)
D/RILC    (  145): RIL=>AMSS [ label = "nv_cmd_remote() - Read NV_ESN_I" ];
D/RILC    (  145): RIL=>AMSS [ label = "nv_cmd_remote() - Read NV_MEID_I" ];
D/RILC    (  145): Reply to RIL -->  IMEI XXXXXXXXXXXXX, IMEISV 00, ESN XXXXXXXXXX, MEID XXXXXXXXX
D/RILC    (  145): UI <--- RIL_REQUEST_DEVICE_IDENTITY (98) Complete --- RIL [RID 0, Token 3, Success, Len 16 ]
D/RILJ    (  431): [0003]< RIL_REQUEST_DEVICE_IDENTITY {XXXXXXXXXXXXX, 00, XXXXXXXXXX, XXXXXXXXXXXXXX}
D/CDMA    (  431): [CdmaServiceStateTracker] Radio Technology Change ongoing, setting SS to off
D/RILJ    (  431): [0004]> GET_CURRENT_CALLS
D/RILC    (  145): UI --- RIL_REQUEST_GET_CURRENT_CALLS (9) ---> RIL [RID 0, token id 4, data len 0]
D/RILC    (  145): Reply to RIL --> Number of calls : 0
D/RILC    (  145): UI <--- RIL_REQUEST_GET_CURRENT_CALLS (9) Complete --- RIL [RID 0, Token 4, Success, Len 0 ]
D/RILJ    (  431): [0004]< GET_CURRENT_CALLS  
D/CDMA    (  431): Event EVENT_RADIO_ON Received
D/PHONE   (  431): [PhoneProxy] Switching phone from CDMAPhone to GSMPhone
D/PHONE   (  431): [PhoneProxy] Make a new GSMPhone and destroy the old CDMAPhone.
E/CDMA    (  431): method unregisterForSuppServiceNotification is NOT supported in CDMA!
cuz apparently, judging by the logcat, it's getting notification of being a cdma phone, pulls the IMEI and MEID from device, activates service and runs in 1xEVDO for the first 10 seconds of phone boot, then something happens, and CM7 switches it to GSM phone (Phone Proxy). my RIL works, dont haveta call a class in build.prop for it to make a phone, registers as a cdma phone, but for some effing reason CM7 isnt fond of something and says "**** YOU lets make you a gsm phone, JUST FOR THE **** OF IT...." (can you tell Im irritated?)....
 

Hopefully they have no screwups this time in kernel source... back to my cm7 research:

I notice that the RIL is having trouble finding the baseband of our sexy zte warp, it could be because of a setting in the source,

Code:
 BOARD_KERNEL_CMDLINE := console=ttyMSM1,115200 androidboot.emmc=true androidboot.mode=normal androidboot.bootloader=0.85.0000 [COLOR=Red]androidboot.baseband=msm[/COLOR]

the part I highlighted in red could be the issue, When doing adb shell and a getprop ro.baseband, I got msm instead of the actual baseband of N860B01. Theres one of the issues I found... Im still hunting, and trying to see if setting the actual baseband will help. *Crosses fingers*
 
took me a while to find this thread, unfortunately I'm still lacking a Warp, I was in Calif and Florida over the last 3 weeks and tried a few Boost Stores in both places (I didnt get that much time for fun tho since it was a work trip) and none of them had stock.

I'm back in the UK for the next 3 weeks, and then I'm going to spend the summer in the US.. anything to get away from the Olympics :)

I really don't know that much about CDMA devices, so hopefully I'll be able to learn/help at somepoint
 
I do believe I may have found the problem, idk though... it's in phoneproxy.java in frameworks/base/telephony/java/com/android/internal/telephony .....

here's the issue i believe:

on line 89 of phoneproxy.java:

Code:
if(mOutgoingPhone.equals("[COLOR=Red]GSM[/COLOR]")) {
                logd("Make a new CDMAPhone and destroy the old GSMPhone.");

                // Since we already know we're disposing of this
                CallManager.getInstance().unregisterPhone(mActivePhone);
                ((GSMPhone)mActivePhone).dispose();
                Phone oldPhone = mActivePhone;

                //Give the garbage collector a hint to start the garbage collection asap
                // NOTE this has been disabled since radio technology change could happen during
                //   e.g. a multimedia playing and could slow the system. Tests needs to be done
                //   to see the effects of the GC call here when system is busy.
                //System.gc();

                mActivePhone = PhoneFactory.getCdmaPhone();
                ((GSMPhone)oldPhone).removeReferences();

                // out with the old...
                oldPhone = null;

                // ...and in with the new!
                CallManager.getInstance().registerPhoneAsDefault(mActivePhone);
            } else {
                logd("Make a new GSMPhone and destroy the old CDMAPhone.");

                CallManager.getInstance().unregisterPhone(mActivePhone);
                ((CDMAPhone)mActivePhone).dispose();
                //mActivePhone = null;
                Phone oldPhone = mActivePhone;

                // Give the GC a hint to start the garbage collection asap
                // NOTE this has been disabled since radio technology change could happen during
                //   e.g. a multimedia playing and could slow the system. Tests needs to be done
                //   to see the effects of the GC call here when system is busy.
                //System.gc();

                mActivePhone = PhoneFactory.getGsmPhone();
                ((CDMAPhone)oldPhone).removeReferences();

                oldPhone = null;
                CallManager.getInstance().registerPhoneAsDefault(mActivePhone);
            }
The bit highlighted in red should be a dead giveaway... instead of making a cdma phone, it's making a gsm phone and vice versa.. Kinda odd, but maybe if I change that to CDMA, it'll work. LETS SEEEEE!!!

[EDIT]
I will piss myself if this works...-.-
 
If it works, I will piss on you too

lol r-kelly wannabe :P

[EDIT]
Build just finished, will update when done testing

[EDIT2]
well, now that i finished building, started testing and came into this hangup:

Code:
D/RILC    (  145): 1XEVDO time received : 12/05/10,23:50:35-480,00
D/RILC    (  145): UI <--- RIL_UNSOL_NITZ_TIME_RECEIVED (1008) --- RIL [RID 0, Len 28, (null)]
E/RILJ    ( 8996): Exception processing unsol response: 1037Exception:java.lang.RuntimeException: Unrecognized unsol response: 1037

thats the only RIL response that i can tell is missing, problem I have is... I dunno how to decompile stock framework and pull that response from it...
 
I think I found it, didnt see it in CM7's RIL.java, or in the one I built....

Code:
D/RILC    (  108): UI <--- RIL_UNSOL_EXIT_EMERGENCY_CALLBACK_MODE (1037) --- RIL [RID 0, Len 0, No service on No service]
I added it to my RIL, gonna see if it works now too...=)

My edits to phoneProxy.java exploded in my face. didnt realize that cm7 calls that process twice, once to set the phone to gsm, and another to bring it up to cdma. my edits to that file ended up looping the radio and phone process... ouch....
 
::::::crickets:::::::::confused:

find myself checking back often though and wondering how things are going as well, not that I am looking for an eta, just progress/bug reports... I think some of them are taking a break after the kernel work though, long nights of drinking can only go on so long before you have to rest up a bit :)
 
well, Im back... finally got a couple days off from work to do some ZTE work. Well, now for my new findings...:

using the lgeqcom ril class results in network being found, cdma being chosen, BUT also results in an error in the code from cyanogen...:

in /system/frameworks/base/telephony/java/com/android/internal/telephony/cdma/CdmaServiceStateTracker.java

an error is thrown here:

Code:
if (states.length == 14) {
                    try {
                        if (states[0] != null) {
                            registrationState = Integer.parseInt(states[0]);
                        }
                        if (states[3] != null) {
                            radioTechnology = Integer.parseInt(states[3]);
                        }
                        // Samsung CDMA devices provide following states
                        // in hex format as opposed to dec
                        if (states[4] != null) {
                            if (mIsSamsungCdma)
                                baseStationId = Integer.parseInt(states[4], 16);
                            else
                                baseStationId = Integer.parseInt(states[4]);
                        }
                        if (states[5] != null) {
                            if (mIsSamsungCdma)
                                baseStationLatitude = Integer.parseInt(states[5], 16);
                            else
                                baseStationLatitude = Integer.parseInt(states[5]);
                        }
                        if (states[6] != null) {
                            if (mIsSamsungCdma)
                                baseStationLongitude = Integer.parseInt(states[6], 16);
                            else
                                baseStationLongitude = Integer.parseInt(states[6]);
                        }
                        // Some carriers only return lat-lngs of 0,0
                        if (baseStationLatitude == 0 && baseStationLongitude == 0) {
                            baseStationLatitude  = CdmaCellLocation.INVALID_LAT_LONG;
                            baseStationLongitude = CdmaCellLocation.INVALID_LAT_LONG;
                        }
                        if (states[7] != null) {
                            cssIndicator = Integer.parseInt(states[7]);
                        }
                        if (states[8] != null) {
                            systemId = Integer.parseInt(states[8]);
                        }
                        if (states[9] != null) {
                            networkId = Integer.parseInt(states[9]);
                        }
                        if (states[10] != null) {
                            roamingIndicator = Integer.parseInt(states[10]);
                        }
                        if (states[11] != null) {
                            systemIsInPrl = Integer.parseInt(states[11]);
                        }
                        if (states[12] != null) {
                            defaultRoamingIndicator = Integer.parseInt(states[12]);
                        }
                        if (states[13] != null) {
                            reasonForDenial = Integer.parseInt(states[13]);
                        }
                    } catch (NumberFormatException ex) {
                        Log.w(LOG_TAG, "error parsing RegistrationState: " + ex);
                    }
                } else {
                    throw new RuntimeException("Warning! Wrong number of parameters returned from "
                                         + "RIL_REQUEST_REGISTRATION_STATE: expected 14 got "
                                         + states.length);
                }

basically the phone cant find the registration state because boost towers are sending too much info about the states... heres the radio logcat of the error being thrown, it's thrown every time the radio goes to check registration state:

Code:
E/CDMA    (  702): java.lang.RuntimeException: Warning! Wrong number of parameters returned from RIL_REQUEST_REGISTRATION_STATE: expected 14 got 15
E/CDMA    (  702):     at com.android.internal.telephony.cdma.CdmaServiceStateTracker.handlePollStateResult(CdmaServiceStateTracker.java:784)
E/CDMA    (  702):     at com.android.internal.telephony.cdma.CdmaServiceStateTracker.handleMessage(CdmaServiceStateTracker.java:418)
E/CDMA    (  702):     at android.os.Handler.dispatchMessage(Handler.java:99)
E/CDMA    (  702):     at android.os.Looper.loop(Looper.java:130)
E/CDMA    (  702):     at android.app.ActivityThread.main(ActivityThread.java:3835)
E/CDMA    (  702):     at java.lang.reflect.Method.invokeNative(Native Method)
E/CDMA    (  702):     at java.lang.reflect.Method.invoke(Method.java:507)
E/CDMA    (  702):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:864)
E/CDMA    (  702):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:622)
E/CDMA    (  702):     at dalvik.system.NativeStart.main(Native Method)

Im going to modify the code JUST a wee bit to see if I can allow more states to be checked out.
 
I'll check it out when I get the chance, I also found out that my cm7 is having a problem loading the wifi driver, maybe some of the settings in source are wrong. Im trying to only do one project at a time because I dont really have time for multiple projects...x_x

[EDIT]
SUCCESS!!! Now I can send and recieve text messages, BUT im getting a roaming indicator instead of the 3g indicator. idk why, but soon i will find a fix...
 
I'll check it out when I get the chance, I also found out that my cm7 is having a problem loading the wifi driver, maybe some of the settings in source are wrong. Im trying to only do one project at a time because I dont really have time for multiple projects...x_x

[EDIT]
SUCCESS!!! Now I can send and recieve text messages, BUT im getting a roaming indicator instead of the 3g indicator. idk why, but soon i will find a fix...


wifi never worked on this, it should be able to be fixed

can you tell me which files you are editing?
 
wifi never worked on this, it should be able to be fixed

can you tell me which files you are editing?

/cm7/system/frameworks/base/telephony/java/com/android/internal/telephony/cdma/CdmaServiceStateTracker.java

^^ basically the only file I edited, also edited the build.prop.... Hadta redownload the source 8 times figuring this out... I originally edited the RIL.java and the RILconstants.java to add the missing identifier for the RIL_UNSOL_EXIT_EMERGENCY_CALLBACK_MODE variable, then realized that the QualcommNoSimReadyRIL.java had it in there already. so, I redownloaded source instead of deleting my edits (They murdered the source...) then focused on the only error I was getting when using the lgeqcom ril class in build.prop.

[EDIT]
Thank god for good internet and a fast computer... takes me like 20 mins to download source... and 5-10 to build cm7.
 
Correct me if I'm wrong, but isn't the processor a msm8655? If so, being that Quacomm processors are system on chip, which include the radio, is it possible to use drivers from another phone? I was looking into HTC thunderbolt, mind you, yes, a completely different manufacturer, but the specs are almost exactly the same. I winmerge the libs for cm7 for that phone, they are all different. But if we are looking for correcting our drivers, it maybe a start. Anyways, if processor is wrong, let me know, i'll look in a different direction, worst come to worse, it the libs just don't work.
This is the example I was comparing it to. Do not install nor look at, development only, you have been warned!
http://rootzwiki.com/topic/13354-cust-thundershed-v15-cm72-ics-ish-march-31st/
and the github for that
https://github.com/workshed64
 
Correct me if I'm wrong, but isn't the processor a msm8655? If so, being that Quacomm processors are system on chip, which include the radio, is it possible to use drivers from another phone? I was looking into HTC thunderbolt, mind you, yes, a completely different manufacturer, but the specs are almost exactly the same. I winmerge the libs for cm7 for that phone, they are all different. But if we are looking for correcting our drivers, it maybe a start. Anyways, if processor is wrong, let me know, i'll look in a different direction, worst come to worse, it the libs just don't work.
This is the example I was comparing it to. Do not install nor look at, development only, you have been warned!
{CUST} ThunderShed v1.5 | CM7.2 [ICS-ish] {March, 31st} - Thunderbolt Development - RootzWiki
and the github for that
https://github.com/workshed64


the msm8655 is basically an upgraded version of the msm7x30


just because two phones have the same chip does not mean they use the same Baseband firmware, ZTE baseband stuff for their Qualcom phones is CAF based, but they do make changes to it, and it is these changes that are causing us these issues


I am not working on CM7 anymore, I am making progress with CM9 now
 
Back
Top Bottom