Disable LTE only patch

This commit is contained in:
Tad 2017-07-19 04:10:19 -04:00
parent ce9c9f83c9
commit 612c0a8cbf
3 changed files with 8 additions and 9 deletions

View File

@ -23,7 +23,6 @@ General Changes
- Disabled "Instant Apps"
- Increased animation speed
- Increased max password length
- Forced LTE only option
- Per app performance profiles for 170 apps
- Replaced default profiles with better ones
- Trebuchet

View File

@ -1,19 +1,19 @@
From f9c63a4aa80bd9b4aab7c709d73fded90076de9d Mon Sep 17 00:00:00 2001
From 741499c77cbd21d408be9fba833b845cd9fa272f Mon Sep 17 00:00:00 2001
From: Daniel Micay <danielmicay@gmail.com>
Date: Tue, 18 Jul 2017 22:46:21 -0400
Date: Tue, 18 Jul 2017 23:03:05 -0400
Subject: [PATCH] LTE only option
This is a modified version of thestinger's implementation in CopperheadOS from a time when the repo was/is still licensed under Apache2
https://github.com/CopperheadOS/platform_packages_services_Telephony/commit/567b8daca2d5d570e4eeecd548aa03c606ee9c18
Change-Id: Ic359205d2f353981589b4374a98383607e2f518e
Change-Id: Ic69c6ad330ee1c04d1607f08fbd08f5356c108ae
---
res/values/strings.xml | 16 ++++++++++++++++
src/com/android/phone/MobileNetworkSettings.java | 8 +++++++-
2 files changed, 23 insertions(+), 1 deletion(-)
diff --git a/res/values/strings.xml b/res/values/strings.xml
index 4ec44534..17f2ecb7 100644
index 4ec44534..bf251f88 100644
--- a/res/values/strings.xml
+++ b/res/values/strings.xml
@@ -423,6 +423,8 @@
@ -43,8 +43,8 @@ index 4ec44534..17f2ecb7 100644
<item>@string/network_3G</item>
</string-array>
<string-array name="enabled_networks_except_gsm_4g_choices" translatable="false">
+ <item>@string/network_4G_only</item>
<item>@string/network_4G</item>
+ <item>@string/network_4G_only</item>
<item>@string/network_3G</item>
</string-array>
<string-array name="enabled_networks_except_gsm_values" translatable="false">

View File

@ -121,7 +121,7 @@ sed -i 's/ln -s /ln -sf /' Android.mk;
sed -i 's/ext.androidBuildVersionTools = "24.0.3"/ext.androidBuildVersionTools = "25.0.3"/' build.gradle;
enter "packages/apps/FDroid"
patch -p1 < $patches"android_packages_apps_FDroid/0001.patch" #Enable privigled module
patch -p1 < $patches"android_packages_apps_FDroid/0001.patch" #Mark as privigled
patch -p1 < $patches"android_packages_apps_FDroid/0002-Repos.patch" #Add IzzySoft, microG, and Eutopia repos
#sed -i 's|cd $(fdroid_root)/$(fdroid_dir) && gradle assembleRelease|cd $(fdroid_root) && ./gradlew assembleRelease|' Android.mk; #Gradle 4.0 fix #FIXME: Doesn't work?
@ -165,8 +165,8 @@ sed -i 's|drawer_search_default">true|drawer_search_default">false|' res/values/
enter "packages/inputmethods/LatinIME"
patch -p1 < $patches"android_packages_inputmethods_LatinIME/0001-Voice.patch" #Remove voice input key
enter "packages/services/Telephony"
patch -p1 < $patches"android_packages_services_Telephony/0001-LTE_Only.patch" #LTE only preferred network mode choice
#enter "packages/services/Telephony"
#patch -p1 < $patches"android_packages_services_Telephony/0001-LTE_Only.patch" #LTE only preferred network mode choice FIXME: b32ed854afebe0060b9dc06476a1ecfd4ea4961d butchered everything
enter "system/core"
cat /tmp/ar/hosts >> rootdir/etc/hosts #Merge in our HOSTS file