diff options
author | Daniel Hillenbrand <codeworkx@cyanogenmod.org> | 2013-05-26 00:35:01 +0200 |
---|---|---|
committer | Daniel Hillenbrand <codeworkx@cyanogenmod.org> | 2013-05-26 00:47:40 +0200 |
commit | 770ea9ca3dae18373ff45b8dd2f7849450e78b2f (patch) | |
tree | 3539b5bdec775e1103f739e536f28b262ac26e5a | |
parent | b6623a5227834c44c54ccbc8375f7cd99b040df4 (diff) | |
download | device_samsung_galaxys2-common-770ea9ca3dae18373ff45b8dd2f7849450e78b2f.zip device_samsung_galaxys2-common-770ea9ca3dae18373ff45b8dd2f7849450e78b2f.tar.gz device_samsung_galaxys2-common-770ea9ca3dae18373ff45b8dd2f7849450e78b2f.tar.bz2 |
galaxys2: libril: remove handling of uusInfo and reenable
Change-Id: I7897a5d36bb5fa51e29f5244ebfbfc81f225f6cf
-rw-r--r-- | BoardCommonConfig.mk | 2 | ||||
-rw-r--r-- | common.mk | 5 | ||||
-rwxr-xr-x | libril/ril.cpp | 54 |
3 files changed, 1 insertions, 60 deletions
diff --git a/BoardCommonConfig.mk b/BoardCommonConfig.mk index 766111b..1a7601e 100644 --- a/BoardCommonConfig.mk +++ b/BoardCommonConfig.mk @@ -88,7 +88,7 @@ BOARD_USE_TINYALSA_AUDIO := true BOARD_USE_YAMAHA_MC1N2_AUDIO := true # RIL -#BOARD_PROVIDES_LIBRIL := true +BOARD_PROVIDES_LIBRIL := true # Camera BOARD_USES_PROPRIETARY_LIBFIMC := true @@ -112,11 +112,6 @@ PRODUCT_COPY_FILES += \ $(COMMON_PATH)/configs/media_profiles.xml:system/etc/media_profiles.xml # RIL -ifneq ($(BOARD_PROVIDES_LIBRIL),true) -PRODUCT_PROPERTY_OVERRIDES += \ - ro.telephony.ril_class=SamsungExynos4RIL -endif - PRODUCT_PROPERTY_OVERRIDES += \ mobiledata.interfaces=pdp0,wlan0,gprs,ppp0 \ ro.ril.hsxpa=1 \ diff --git a/libril/ril.cpp b/libril/ril.cpp index 1fb338d..e3c4dc4 100755 --- a/libril/ril.cpp +++ b/libril/ril.cpp @@ -596,9 +596,7 @@ invalid: static void dispatchDial (Parcel &p, RequestInfo *pRI) { RIL_Dial dial; - RIL_UUS_Info uusInfo; int32_t t; - int32_t uusPresent; status_t status; memset (&dial, 0, sizeof(dial)); @@ -612,51 +610,8 @@ dispatchDial (Parcel &p, RequestInfo *pRI) { goto invalid; } - status = p.readInt32(&uusPresent); - if (status != NO_ERROR) { - goto invalid; - } - - if (uusPresent == 0) { - dial.uusInfo = NULL; - } else { - int32_t len; - - dial.uusInfo = NULL; // Temporary, while block below is commented out -/* - memset(&uusInfo, 0, sizeof(RIL_UUS_Info)); //Troublemaker - - status = p.readInt32(&t); - uusInfo.uusType = (RIL_UUS_Type) t; - - status = p.readInt32(&t); - uusInfo.uusDcs = (RIL_UUS_DCS) t; - - status = p.readInt32(&len); - if (status != NO_ERROR) { - goto invalid; - } - - // The java code writes -1 for null arrays - if (((int) len) == -1) { - uusInfo.uusData = NULL; - len = 0; - } else { - uusInfo.uusData = (char*) p.readInplace(len); - } - - uusInfo.uusLength = len; - dial.uusInfo = &uusInfo; -*/ - } - startRequest; appendPrintBuf("%snum=%s,clir=%d", printBuf, dial.address, dial.clir); - if (uusPresent) { - appendPrintBuf("%s,uusType=%d,uusDcs=%d,uusLen=%d", printBuf, - dial.uusInfo->uusType, dial.uusInfo->uusDcs, - dial.uusInfo->uusLength); - } closeRequest; printRequest(pRI->token, pRI->pCI->requestNumber); @@ -669,7 +624,6 @@ dispatchDial (Parcel &p, RequestInfo *pRI) { free (dial.address); #ifdef MEMSET_FREED - memset(&uusInfo, 0, sizeof(uusInfo)); memset(&dial, 0, sizeof(dial)); #endif @@ -1453,14 +1407,6 @@ static int responseCallList(Parcel &p, void *response, size_t responselen) { p.writeInt32(p_cur->numberPresentation); writeStringToParcel(p, p_cur->name); p.writeInt32(p_cur->namePresentation); - if (p_cur->uusInfo != NULL && p_cur->uusInfo->uusData != NULL) { - RIL_UUS_Info *uusInfo = p_cur->uusInfo; - p.writeInt32(1); /* UUS Information is present */ - p.writeInt32(uusInfo->uusType); - p.writeInt32(uusInfo->uusDcs); - p.writeInt32(uusInfo->uusLength); - p.write(uusInfo->uusData, uusInfo->uusLength); - } appendPrintBuf("%s[id=%d,%s,toa=%d,", printBuf, p_cur->index, |