Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit de02aeb9 authored by Nathan Harold's avatar Nathan Harold Committed by Android (Google) Code Review
Browse files

Merge changes from topic 'sms-file-refactor'

* changes:
  Permit privileged system apps to send SMS without persisting.
  Move newFromRil() function to a utility class
  Remove dependency on telephony-common from services/core
  Move OTASP_* Consts from ServiceStateTracker to TelephonyManager
  Port Utility Functions from DefaultPhoneNotifier
  Remove dependency on IccConstants from SmsManager
  Merge branch 'stage-telephony-refactor' into master
parents f1e54c9a 448c12c2
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -19,7 +19,6 @@ LOCAL_AIDL_INCLUDES += \

LOCAL_JAVA_LIBRARIES := \
    services.net \
    telephony-common \
    android.hardware.light@2.0-java \
    android.hardware.power@1.0-java \
    android.hardware.tv.cec@1.0-java
+4 −5
Original line number Diff line number Diff line
@@ -57,9 +57,8 @@ import com.android.internal.app.IBatteryStats;
import com.android.internal.telephony.IOnSubscriptionsChangedListener;
import com.android.internal.telephony.ITelephonyRegistry;
import com.android.internal.telephony.IPhoneStateListener;
import com.android.internal.telephony.DefaultPhoneNotifier;
import com.android.internal.telephony.PhoneConstantConversions;
import com.android.internal.telephony.PhoneConstants;
import com.android.internal.telephony.ServiceStateTracker;
import com.android.internal.telephony.TelephonyIntents;
import com.android.server.am.BatteryStatsService;

@@ -171,7 +170,7 @@ class TelephonyRegistry extends ITelephonyRegistry.Stub {

    private int[] mDataConnectionNetworkType;

    private int mOtaspMode = ServiceStateTracker.OTASP_UNKNOWN;
    private int mOtaspMode = TelephonyManager.OTASP_UNKNOWN;

    private ArrayList<List<CellInfo>> mCellInfo = null;

@@ -1497,7 +1496,7 @@ class TelephonyRegistry extends ITelephonyRegistry.Stub {

        Intent intent = new Intent(TelephonyManager.ACTION_PHONE_STATE_CHANGED);
        intent.putExtra(PhoneConstants.STATE_KEY,
                DefaultPhoneNotifier.convertCallState(state).toString());
                PhoneConstantConversions.convertCallState(state).toString());
        if (!TextUtils.isEmpty(incomingNumber)) {
            intent.putExtra(TelephonyManager.EXTRA_INCOMING_NUMBER, incomingNumber);
        }
@@ -1531,7 +1530,7 @@ class TelephonyRegistry extends ITelephonyRegistry.Stub {
        // required info.
        Intent intent = new Intent(TelephonyIntents.ACTION_ANY_DATA_CONNECTION_STATE_CHANGED);
        intent.putExtra(PhoneConstants.STATE_KEY,
                DefaultPhoneNotifier.convertDataState(state).toString());
                PhoneConstantConversions.convertDataState(state).toString());
        if (!isDataConnectivityPossible) {
            intent.putExtra(PhoneConstants.NETWORK_UNAVAILABLE_KEY, true);
        }
+1707 −0

File added.

Preview size limit exceeded, changes collapsed.

+884 −0

File added.

Preview size limit exceeded, changes collapsed.

+2975 −0

File added.

Preview size limit exceeded, changes collapsed.

Loading