ril: Add support for imsType parcel member

This is needed for Samsung devices like the Galaxy A5 2017.

Change-Id: I3b89cf8ac232fef5629b439dbf5d2f21bdb264a2
tirimbino
Christopher N. Hesse 7 years ago
parent ffe632e356
commit 7f2c1bf988
  1. 4
      ril/libril/Android.mk
  2. 4
      ril/libril/ril_service.cpp

@ -54,6 +54,10 @@ ifeq ($(BOARD_NEEDS_ROAMING_PROTOCOL_FIELD), true)
LOCAL_CFLAGS += -DNEEDS_ROAMING_PROTOCOL_FIELD
endif
ifeq ($(BOARD_NEEDS_IMS_TYPE_FIELD), true)
LOCAL_CFLAGS += -DNEEDS_IMS_TYPE_FIELD
endif
LOCAL_C_INCLUDES += $(LOCAL_PATH)/include
LOCAL_C_INCLUDES += external/nanopb-c
LOCAL_C_INCLUDES += $(LOCAL_PATH)/../include

@ -1948,6 +1948,10 @@ Return<void> RadioImpl::setInitialAttachApn(int32_t serial, const DataProfileInf
}
#endif
#ifdef NEEDS_IMS_TYPE_FIELD
iaa.imsType = 0;
#endif
CALL_ONREQUEST(RIL_REQUEST_SET_INITIAL_ATTACH_APN, &iaa, sizeof(iaa), pRI, mSlotId);
memsetAndFreeStrings(4, iaa.apn, iaa.protocol, iaa.username, iaa.password);

Loading…
Cancel
Save