Skip to content

Commit

Permalink
HACK: telephony: Conditionally force enable LTE_CA
Browse files Browse the repository at this point in the history
* Apparently since S LTE_CA is not properly working,
  let's conditionally force enable it until a proper
  solution is found.

Signed-off-by: DarkJoker360 <simoespo159@gmail.com>
  • Loading branch information
DarkJoker360 authored and elpaablo committed Aug 24, 2023
1 parent b476f02 commit b8c21bf
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions telephony/java/android/telephony/NetworkRegistrationInfo.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
import android.os.Build;
import android.os.Parcel;
import android.os.Parcelable;
import android.os.SystemProperties;
import android.telephony.AccessNetworkConstants.TransportType;
import android.telephony.Annotation.NetworkType;
import android.text.TextUtils;
Expand Down Expand Up @@ -522,6 +523,11 @@ public List<Integer> getAvailableServices() {
* @hide
*/
public void setAccessNetworkTechnology(@NetworkType int tech) {
// HACK: Force LTE Carrier Aggregation
if (SystemProperties.getBoolean("persist.sys.radio.force_lte_ca", false)
&& tech == TelephonyManager.NETWORK_TYPE_LTE) {
mIsUsingCarrierAggregation = true;
}
if (tech == TelephonyManager.NETWORK_TYPE_LTE_CA) {
// For old device backward compatibility support
tech = TelephonyManager.NETWORK_TYPE_LTE;
Expand Down

0 comments on commit b8c21bf

Please sign in to comment.