summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDrgravy <drg113001@gmail.com>2016-10-29 17:16:56 -0500
committerDrgravy <drg113001@gmail.com>2016-11-05 23:00:43 -0500
commit96fb18b3388eee3a0d350ce042b8733413307d2a (patch)
tree0bc58f1d536f72075411dad300645d162f9d0869
parent29a90b0d72f6d0504ddb50c8d02a4695c8fa67a9 (diff)
revert: vs980: remove custom ril class
(reverted from commit 12ab6774c00b13b2b684d75de8718997fbc71171) Change-Id: I7fc20fff5e6356df0d0d9ec9dac15cd769d04b69
-rw-r--r--BoardConfig.mk3
-rw-r--r--overlay/frameworks/base/core/res/res/values/config.xml6
-rw-r--r--ril/telephony/java/com/android/internal/telephony/VS980RIL.java81
-rw-r--r--system.prop25
4 files changed, 114 insertions, 1 deletions
diff --git a/BoardConfig.mk b/BoardConfig.mk
index c4c734d..fac5178 100644
--- a/BoardConfig.mk
+++ b/BoardConfig.mk
@@ -21,3 +21,6 @@ TARGET_KERNEL_CONFIG := cyanogenmod_vs980_defconfig
TARGET_OTA_ASSERT_DEVICE := vs980,g2,galbi
G2_DTS_TARGET := msm8974-g2-vzw
+
+# RIL
+BOARD_RIL_CLASS += ../../../device/lge/vs980/ril/
diff --git a/overlay/frameworks/base/core/res/res/values/config.xml b/overlay/frameworks/base/core/res/res/values/config.xml
index 1550613..acc9f27 100644
--- a/overlay/frameworks/base/core/res/res/values/config.xml
+++ b/overlay/frameworks/base/core/res/res/values/config.xml
@@ -34,4 +34,10 @@
<!-- Flag specifying whether VoLTE is available on device -->
<bool name="config_device_volte_available">true</bool>
+ <!-- The RadioAccessFamilies supported by the device.
+ Empty is viewed as "all". Only used on devices which
+ don't support RIL_REQUEST_GET_RADIO_CAPABILITY
+ format is UMTS|LTE|... -->
+ <string translatable="false" name="config_radio_access_family">LTE|CDMA|EVDO</string>
+
</resources>
diff --git a/ril/telephony/java/com/android/internal/telephony/VS980RIL.java b/ril/telephony/java/com/android/internal/telephony/VS980RIL.java
new file mode 100644
index 0000000..ca04823
--- /dev/null
+++ b/ril/telephony/java/com/android/internal/telephony/VS980RIL.java
@@ -0,0 +1,81 @@
+/*
+ * Copyright (C) 2015 The CyanogenMod Project
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.android.internal.telephony;
+
+import android.content.Context;
+import android.os.Parcel;
+
+import com.android.internal.telephony.uicc.IccCardApplicationStatus;
+import com.android.internal.telephony.uicc.IccCardStatus;
+
+/**
+ * Custom Qualcomm RIL for VS980
+ *
+ * {@hide}
+ */
+public class VS980RIL extends LgeLteRIL implements CommandsInterface {
+ static final String LOG_TAG = "VS980RIL";
+
+ public VS980RIL(Context context, int preferredNetworkType,
+ int cdmaSubscription, Integer instanceId) {
+ super(context, preferredNetworkType, cdmaSubscription, instanceId);
+ }
+
+ public VS980RIL(Context context, int networkMode, int cdmaSubscription) {
+ this(context, networkMode, cdmaSubscription, null);
+ }
+
+ @Override
+ protected Object
+ responseIccCardStatus(Parcel p) {
+ IccCardApplicationStatus appStatus = null;
+
+ IccCardStatus cardStatus = new IccCardStatus();
+ cardStatus.setCardState(p.readInt());
+ cardStatus.setUniversalPinState(p.readInt());
+ cardStatus.mGsmUmtsSubscriptionAppIndex = p.readInt();
+ cardStatus.mCdmaSubscriptionAppIndex = p.readInt();
+ cardStatus.mImsSubscriptionAppIndex = p.readInt();
+
+ int numApplications = p.readInt();
+
+ // limit to maximum allowed applications
+ if (numApplications > IccCardStatus.CARD_MAX_APPS) {
+ numApplications = IccCardStatus.CARD_MAX_APPS;
+ }
+ cardStatus.mApplications = new IccCardApplicationStatus[numApplications];
+
+ for (int i = 0 ; i < numApplications ; i++) {
+ appStatus = new IccCardApplicationStatus();
+ appStatus.app_type = appStatus.AppTypeFromRILInt(p.readInt());
+ appStatus.app_state = appStatus.AppStateFromRILInt(p.readInt());
+ appStatus.perso_substate = appStatus.PersoSubstateFromRILInt(p.readInt());
+ appStatus.aid = p.readString();
+ appStatus.app_label = p.readString();
+ appStatus.pin1_replaced = p.readInt();
+ appStatus.pin1 = appStatus.PinStateFromRILInt(p.readInt());
+ appStatus.pin2 = appStatus.PinStateFromRILInt(p.readInt());
+ int remaining_count_pin1 = p.readInt();
+ int remaining_count_puk1 = p.readInt();
+ int remaining_count_pin2 = p.readInt();
+ int remaining_count_puk2 = p.readInt();
+ cardStatus.mApplications[i] = appStatus;
+ }
+
+ return cardStatus;
+ }
+}
diff --git a/system.prop b/system.prop
index 6242f40..9153a63 100644
--- a/system.prop
+++ b/system.prop
@@ -3,10 +3,33 @@
#
# RIL
+rild.libargs=-d /dev/smd0
ro.telephony.get_imsi_from_sim=true
+persist.rild.nitz_plmn=
+persist.rild.nitz_long_ons_0=
+persist.rild.nitz_long_ons_1=
+persist.rild.nitz_long_ons_2=
+persist.rild.nitz_long_ons_3=
+persist.rild.nitz_short_ons_0=
+persist.rild.nitz_short_ons_1=
+persist.rild.nitz_short_ons_2=
+persist.rild.nitz_short_ons_3=
telephony.lteOnCdmaDevice=1
ril.subscription.types=NV,RUIM
ro.telephony.default_cdma_sub=0
ro.telephony.default_network=10
+ro.cdma.homesystem=66,67,69,71,72,74
+ro.cdma.subscribe_on_ruim_ready=true
+ro.ril.svdo=true
+persist.data_netmgrd_mtu=1428
+persist.qcril.disable_retry=true
+android.telephony.apn-restore=1800000
+vzw.telephony.appsapn-restore=60000
+persist.radio.snapshot_enabled=1
+persist.radio.snapshot_timer=22
+persist.radio.add_power_save=1
+DEVICE_PROVISIONED=1
+ro.cdma.homesystem=64,65,76,77,78,79,80,81,82,83
ro.ril.force_eri_from_xml=true
-ro.telephony.get_imsi_from_sim=true \ No newline at end of file
+ro.telephony.get_imsi_from_sim=true
+ro.telephony.ril_class=VS980RIL