Permalink
Browse files

[All][community] add for community

Plan: as title
Type: PATCH
Test: No need to test

Upload QCOM new baseline:LA.UM.5.7.R1.07.00.00.253.056

Change-Id: I65c18bc3583c1de162ed9121a7dd2008591e0576
Signed-off-by: yangtingting <yilia.yang@oneplus.net>
  • Loading branch information...
yangtingting authored and desuvinodkumar committed Dec 29, 2016
2 parents 6788e35 + 951997a commit ec57e49b2fb0c995f95224f87e82ea4663754fb6
Showing with 122 additions and 1 deletion.
  1. +72 −0 include/telephony/ril.h
  2. +22 −0 libril/ril.cpp
  3. +23 −0 libril/ril_commands.h
  4. +4 −0 libril/ril_unsol_commands.h
  5. +1 −1 rild/rild.rc
72 include/telephony/ril.h 100644 → 100755
@@ -596,6 +596,11 @@ typedef struct {
} RIL_Dial;

typedef struct {
#ifdef VENDOR_EDIT
//dengql@OnLineRD.AirService.RIL, 2012/09/26, Add for NFC E-wallet
int cla;
#endif /* VENDOR_EDIT */

int command; /* one of the commands listed for TS 27.007 +CRSM*/
int fileid; /* EF id */
char *path; /* "pathid" from TS 27.007 +CRSM command.
@@ -610,6 +615,11 @@ typedef struct {
} RIL_SIM_IO_v5;

typedef struct {
#ifdef VENDOR_EDIT
//dengql@OnLineRD.AirService.RIL, 2012/09/26, Add for NFC E-wallet
int cla;
#endif /* VENDOR_EDIT */

int command; /* one of the commands listed for TS 27.007 +CRSM*/
int fileid; /* EF id */
char *path; /* "pathid" from TS 27.007 +CRSM command.
@@ -5289,6 +5299,58 @@ typedef struct {
* Must never fail
*/
#define RIL_REQUEST_UPDATE_ADN_RECORD 141
#ifdef VENDOR_EDIT
//DuYuanHua@OnLineRD.AirService.RIL, 2012/09/26, Add for EngineerMode
//xufei@OnLineRD.AirService.RIL, 2012/12/14, Add for factory mode nv process
#define RIL_REQUEST_FACTORY_MODE_NV_PROCESS 142

//TongJing.Shi@EXP.DataComm.Phone, 2013.08.29, Modify for
#define RIL_REQUEST_FACTORY_MODE_MODEM_GPIO 143

/**
* RIL_REQUEST_GET_BAND_MODE
*
* get current band mode
*
* "response" is int
*
* Valid errors:
* SUCCESS
* GENERIC_FAILURE
*/

#define RIL_REQUEST_GET_BAND_MODE 144

//#ifdef VENDOR_EDIT
//Zhengpeng.Tan@OnlineRD.AirService.Module, 2013/10/28, Add for report nv_restore when bootup
#define RIL_REQUEST_REPORT_BOOTUPNVRESTOR_STATE 145

//Wenlong.Cai@OnlineRD.AirService.Module, 2013/12/09, Add for get rffe device information
#define RIL_REQUEST_GET_RFFE_DEV_INFO 146

//dengql@OnLineRD.AirService.RIL, 2012/09/26, Add for NFC E-wallet
// "data" is a const RIL_SIM_IO *
// "response" is a const RIL_SIM_IO_Response *
#define RIL_REQUEST_SIM_TRANSMIT_BASIC 148
// "data" is a const char * containing the AID of the applet
// "response" is a int * containing the channel id
//#define RIL_REQUEST_SIM_OPEN_CHANNEL 147
// "data" is a const int * containing the channel id
// "response" is NULL
//#define RIL_REQUEST_SIM_CLOSE_CHANNEL 148
// "data" is a const RIL_SIM_IO *
// "response" is a const RIL_SIM_IO_Response *
#define RIL_REQUEST_SIM_TRANSMIT_CHANNEL 150

#endif /* VENDOR_EDIT */

//yangli@OnlineRD.AirService.Module, 2014/05/20, Add for send msg to make modem reset, {
#define RIL_REQUEST_GO_TO_ERROR_FATAL 151
#define RIL_REQUEST_GET_MDM_BASEBAND 152
//}add end

//yangli@OnlineRD.AirService.Module, 2014/09/22, Add for set only tdd-lte
#define RIL_REQUEST_SET_TDD_LTE 153

/***********************************************************************/

@@ -5937,6 +5999,16 @@ typedef struct {
*/
#define RIL_UNSOL_RESPONSE_ADN_RECORDS 1048

//penghongyi@oem.network add for nv backup response
//#ifdef VENDOR_EDIT
#define RIL_UNSOL_OEM_NV_BACKUP_RESPONSE 1049
//#endif

//#ifdef VENDOR_EDIT
//Hongyu.Bi@EXP.DataComm.Modem, 2014/02/26, Add for clearcode29/33
#define RIL_UNSOL_RAC_UPDATE 1050 //czp 1042-->1044
//#endif /* VENDOR_EDIT */

/***********************************************************************/


22 libril/ril.cpp 100644 → 100755
@@ -6025,6 +6025,28 @@ requestToString(int request) {
case RIL_UNSOL_PCO_DATA: return "RIL_UNSOL_PCO_DATA";
case RIL_UNSOL_RESPONSE_ADN_INIT_DONE: return "RIL_UNSOL_RESPONSE_ADN_INIT_DONE";
case RIL_UNSOL_RESPONSE_ADN_RECORDS: return "RIL_UNSOL_RESPONSE_ADN_RECORDS";
#ifdef VENDOR_EDIT
//penghongyi@mobile.network add for nv backup response
case RIL_UNSOL_OEM_NV_BACKUP_RESPONSE: return "RIL_UNSOL_OEM_NV_BACKUP_RESPONSE";
//DuYuanHua@OnLineRD.AirService.RIL, 2012/09/26, Add for EngineerMode
case RIL_REQUEST_GET_BAND_MODE: return "RIL_REQUEST_GET_BAND_MODE";
//xufei@OnLineRD.AirService.RIL, 2012/12/14, Add for factory mode nv process
//TongJing.Shi@EXP.DataComm.Phone, 2013.09.03, Modify for
case RIL_REQUEST_FACTORY_MODE_MODEM_GPIO: return "RIL_REQUEST_FACTORY_MODE_MODEM_GPIO";
//Wenlong.Cai@OnlineRD.AirService.Module, 2013/12/09, Add for get rffe device information
case RIL_REQUEST_GET_RFFE_DEV_INFO: return "GET_RFFE_DEV_INFO";
//dengql@OnLineRD.AirService.RIL, 2012/09/26, Add for NFC E-wallet
case RIL_REQUEST_SIM_TRANSMIT_BASIC: return "SIM_TRANSMIT_BASIC";
case RIL_REQUEST_SIM_TRANSMIT_CHANNEL: return "SIM_TRANSMIT_CHANNEL";
#endif /* VENDOR_EDIT */
//#ifdef VENDOR_EDIT
//yangli@OnlineRD.AirService.Module, 2014/05/20, Add for send msg to make modem reset, {
case RIL_REQUEST_GO_TO_ERROR_FATAL: return "RIL_REQUEST_GO_TO_ERROR_FATAL";
case RIL_REQUEST_GET_MDM_BASEBAND: return "RIL_REQUEST_GET_MDM_BASEBAND";
//}add end
//#endif /* VENDOR_EDIT */
//yangli@OnlineRD.AirService.Module, 2014/09/22, Add for set only tdd-lte
case RIL_REQUEST_SET_TDD_LTE: return "RIL_REQUEST_SET_TDD_LTE";
default: return "<unknown request>";
}
}
23 libril/ril_commands.h 100644 → 100755
@@ -156,3 +156,26 @@
{RIL_REQUEST_CAF_SIM_OPEN_CHANNEL_WITH_P2, dispatchOpenChannelWithP2, responseInts},
{RIL_REQUEST_GET_ADN_RECORD, dispatchVoid, responseInts},
{RIL_REQUEST_UPDATE_ADN_RECORD, dispatchAdnRecord, responseInts},
#ifdef VENDOR_EDIT
{RIL_REQUEST_FACTORY_MODE_NV_PROCESS, dispatchInts, responseVoid},
//TongJing.Shi@EXP.DataComm.Phone, 2013.08.31, Modify for
{RIL_REQUEST_FACTORY_MODE_MODEM_GPIO, dispatchInts, responseVoid},
//DuYuanHua@OnLineRD.AirService.RIL, 2012/09/26, Add for EngineerMode
{RIL_REQUEST_GET_BAND_MODE, dispatchVoid, responseInts},
//Zhengpeng.Tan@OnlineRD.AirService.Module, 2013/11/15, Add for report nv_restore when bootup
{RIL_REQUEST_REPORT_BOOTUPNVRESTOR_STATE, dispatchVoid, responseVoid},
//Wenlong.Cai@OnlineRD.AirService.Module, 2013/12/09, Add for get rffe device information
{RIL_REQUEST_GET_RFFE_DEV_INFO, dispatchInts, responseInts},
//zhunn@OnLineRD.AirService.Framework, 2013/02/19, add for skip RIL_REQUEST_OEM_BASE+6
{0, NULL, NULL},
//dengql@OnLineRD.AirService.RIL, 2012/09/26, Add for NFC E-wallet
{RIL_REQUEST_SIM_TRANSMIT_BASIC, dispatchSIM_IO, responseSIM_IO},
{0, NULL, NULL},
{0, NULL, NULL},
{RIL_REQUEST_SIM_TRANSMIT_CHANNEL, dispatchSIM_IO, responseSIM_IO},
{RIL_REQUEST_GO_TO_ERROR_FATAL, dispatchVoid, responseVoid},
{RIL_REQUEST_GET_MDM_BASEBAND, dispatchVoid, responseString},
//yangli@OnlineRD.AirService.Module, 2014/09/22, Add for set only tdd-lte
{RIL_REQUEST_SET_TDD_LTE, dispatchInts, responseVoid},
#endif /* VENDOR_EDIT */

4 libril/ril_unsol_commands.h 100644 → 100755
@@ -63,3 +63,7 @@
{RIL_UNSOL_PCO_DATA, responsePcoData, WAKE_PARTIAL},
{RIL_UNSOL_RESPONSE_ADN_INIT_DONE, responseVoid, WAKE_PARTIAL},
{RIL_UNSOL_RESPONSE_ADN_RECORDS, responseAdnRecords, WAKE_PARTIAL},
//penghongyi@Oneplus.network add for nv backup
//#ifdef VENDOR_EDIT
{RIL_UNSOL_OEM_NV_BACKUP_RESPONSE,responseString,WAKE_PARTIAL},
//#endif
2 rild/rild.rc 100644 → 100755
@@ -4,4 +4,4 @@ service ril-daemon /system/bin/rild
socket sap_uim_socket1 stream 660 bluetooth bluetooth
socket rild-debug stream 660 radio system
user root
group radio cache inet misc audio log readproc wakelock qcom_diag
group radio cache inet misc audio sdcard_r sdcard_rw qcom_diag diag log net_raw

0 comments on commit ec57e49

Please sign in to comment.