mirror of
https://github.com/Divested-Mobile/DivestOS-Build.git
synced 2024-09-08 02:22:16 +00:00
![Tad](/assets/img/avatar_default.png)
- No patches were found with incorrect authorship/From: lines - The older AndroidHardening patch repos are no longer available to verify CID. - New GrapheneOS patches do not include a CID. - *Signature_Spoofing.patch CID could not be found. - Fixed CID of *Harden_Sig_Spoofing.patch to match 14.1 - Fixed CID of *LGE_Fixes.patch to match 14.1 - Fixed CID of *Harden.patch to match 14.1 - Added edit note to *Harden.patch - Fixed CID of *PREREQ_Handle_All_Modes.patch to match 14.1 - Fixed CID of *More_Preferred_Network_Modes.patch to match 14.1 - Fixed CID of *AES256.patch to match 14.1 - Fixed CID of *0001-OTA_Keys.patch to match 18.1 - Fixed CID of *Camera_Fix.patch to match 15.1 - Fixed CID of *Connectivity.patch to match 14.1 - Fixed CID of *Fix_Calling.patch to match 14.1 - Fixed CID of *Remove_Analytics.patch to match 14.1 - Fixed CID of Unused-*.patch/audio_extn to match original Signed-off-by: Tad <tad@spotco.us>
55 lines
2.2 KiB
Diff
55 lines
2.2 KiB
Diff
From 9b44570bfb806930b33227e9a89467e2aeca490f Mon Sep 17 00:00:00 2001
|
|
From: Tad <tad@spotco.us>
|
|
Date: Tue, 14 Apr 2020 16:59:46 -0400
|
|
Subject: [PATCH] Fix calling after VoLTE is removed from devices that had it
|
|
previously enabled
|
|
|
|
Change-Id: Id5e3b8f7793d0783104b8b59581688c8ef821396
|
|
---
|
|
src/java/com/android/ims/ImsManager.java | 22 +---------------------
|
|
1 file changed, 1 insertion(+), 21 deletions(-)
|
|
|
|
diff --git a/src/java/com/android/ims/ImsManager.java b/src/java/com/android/ims/ImsManager.java
|
|
index 7c24c7d..058624d 100644
|
|
--- a/src/java/com/android/ims/ImsManager.java
|
|
+++ b/src/java/com/android/ims/ImsManager.java
|
|
@@ -466,12 +466,6 @@ public class ImsManager {
|
|
* {@link #isEnhanced4gLteModeSettingEnabledByUser()} instead.
|
|
*/
|
|
public static boolean isEnhanced4gLteModeSettingEnabledByUser(Context context) {
|
|
- ImsManager mgr = ImsManager.getInstance(context,
|
|
- SubscriptionManager.getDefaultVoicePhoneId());
|
|
- if (mgr != null) {
|
|
- return mgr.isEnhanced4gLteModeSettingEnabledByUser();
|
|
- }
|
|
- loge("isEnhanced4gLteModeSettingEnabledByUser: ImsManager null, returning default value.");
|
|
return false;
|
|
}
|
|
|
|
@@ -486,21 +480,7 @@ public class ImsManager {
|
|
* return the default value.
|
|
*/
|
|
public boolean isEnhanced4gLteModeSettingEnabledByUser() {
|
|
- int setting = SubscriptionManager.getIntegerSubscriptionProperty(
|
|
- getSubId(), SubscriptionManager.ENHANCED_4G_MODE_ENABLED,
|
|
- SUB_PROPERTY_NOT_INITIALIZED, mContext);
|
|
- boolean onByDefault = getBooleanCarrierConfig(
|
|
- CarrierConfigManager.KEY_ENHANCED_4G_LTE_ON_BY_DEFAULT_BOOL);
|
|
-
|
|
- // If Enhanced 4G LTE Mode is uneditable, hidden or not initialized, we use the default
|
|
- // value
|
|
- if (!getBooleanCarrierConfig(CarrierConfigManager.KEY_EDITABLE_ENHANCED_4G_LTE_BOOL)
|
|
- || getBooleanCarrierConfig(CarrierConfigManager.KEY_HIDE_ENHANCED_4G_LTE_BOOL)
|
|
- || setting == SUB_PROPERTY_NOT_INITIALIZED) {
|
|
- return onByDefault;
|
|
- } else {
|
|
- return (setting == ProvisioningManager.PROVISIONING_VALUE_ENABLED);
|
|
- }
|
|
+ return false;
|
|
}
|
|
|
|
/**
|
|
--
|
|
2.26.0
|
|
|