Add a couple Bliss specific patches
Change-Id: I7fbd1099f5cc7fee360dc0132f26d3463ead4def
diff --git a/patches/platform_frameworks_base/0001-Revert-Revert-Remove-getIntWithSubId-in-TelephonyMan.patch b/patches/platform_frameworks_base/0001-Revert-Revert-Remove-getIntWithSubId-in-TelephonyMan.patch
new file mode 100644
index 0000000..be07474
--- /dev/null
+++ b/patches/platform_frameworks_base/0001-Revert-Revert-Remove-getIntWithSubId-in-TelephonyMan.patch
@@ -0,0 +1,63 @@
+From eee4d12d38bdbdab39abcd9c280eda864fd26855 Mon Sep 17 00:00:00 2001
+From: jhenrique09 <jhenrique09.mcz@hotmail.com>
+Date: Sat, 11 Aug 2018 13:40:00 -0400
+Subject: [PATCH] Revert "Revert "Remove getIntWithSubId in TelephonyManager.""
+
+This reverts commit e788decb1b366a9df9683d86314ea4cf22a10d74.
+---
+ .../android/telephony/TelephonyManager.java | 39 -------------------
+ 1 file changed, 39 deletions(-)
+
+diff --git a/telephony/java/android/telephony/TelephonyManager.java b/telephony/java/android/telephony/TelephonyManager.java
+index 10dc43ae539..487490c194b 100644
+--- a/telephony/java/android/telephony/TelephonyManager.java
++++ b/telephony/java/android/telephony/TelephonyManager.java
+@@ -6629,45 +6629,6 @@ public class TelephonyManager {
+ return false;
+ }
+
+- /**
+- * This function retrieves value for setting "name+subId", and if that is not found
+- * retrieves value for setting "name", and if that is not found throws
+- * SettingNotFoundException
+- *
+- * @hide
+- */
+- public static int getIntWithSubId(ContentResolver cr, String name, int subId)
+- throws SettingNotFoundException {
+- try {
+- return Settings.Global.getInt(cr, name + subId);
+- } catch (SettingNotFoundException e) {
+- try {
+- int val = Settings.Global.getInt(cr, name);
+- Settings.Global.putInt(cr, name + subId, val);
+-
+- /* We are now moving from 'setting' to 'setting+subId', and using the value stored
+- * for 'setting' as default. Reset the default (since it may have a user set
+- * value). */
+- int default_val = val;
+- if (name.equals(Settings.Global.MOBILE_DATA)) {
+- default_val = "true".equalsIgnoreCase(
+- SystemProperties.get("ro.com.android.mobiledata", "true")) ? 1 : 0;
+- } else if (name.equals(Settings.Global.DATA_ROAMING)) {
+- default_val = "true".equalsIgnoreCase(
+- SystemProperties.get("ro.com.android.dataroaming", "false")) ? 1 : 0;
+- }
+-
+- if (default_val != val) {
+- Settings.Global.putInt(cr, name, default_val);
+- }
+-
+- return val;
+- } catch (SettingNotFoundException exc) {
+- throw new SettingNotFoundException(name);
+- }
+- }
+- }
+-
+ /**
+ * Returns the IMS Registration Status for a particular Subscription ID.
+ *
+--
+2.17.1
+