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

Commit a4e84a70 authored by Daniel Bright's avatar Daniel Bright
Browse files

Revert "Remove overlapping resources"

Revert submission 10319574-telephony_res_cleanup

Reason for revert: build issue
Reverted Changes:
I5caec1dc3: Remove overlapping resources
I6b389f4f1: Move base resources to telephony

Change-Id: I377293572d52b413d32e43e6601cf2733398e22a
parent 1aab1f7d
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -197,6 +197,9 @@
    <!-- Whether cbrs is supported on the device or not -->
    <bool name="config_cbrs_supported">false</bool>

    <!-- Enables SIP on WIFI only -->
    <bool name="config_sip_wifi_only">false</bool>

    <!-- Name of the dialog that is used to install the carrier app when the SIM is inserted -->
    <string name="config_carrierAppInstallDialogComponent"
            >com.android.simappdialog/com.android.simappdialog.InstallCarrierAppActivity</string>
+1 −0
Original line number Diff line number Diff line
@@ -55,6 +55,7 @@
            <item type="string" name="config_ims_package"/>
            <item type="string" name="config_carrierAppInstallDialogComponent"/>
            <item type="bool" name="config_cbrs_supported"/>
            <item type="bool" name="config_sip_wifi_only"/>
            <item type="string" name="mobile_provisioning_apn"/>
            <item type="array" name="config_cell_retries_per_error_code"/>
            <item type="bool" name="config_auto_attach_data_on_creation"/>
+28 −5
Original line number Diff line number Diff line
@@ -38,6 +38,9 @@
    <!-- Displayed when a carrier does not support call forwarding queries when roaming. -->
    <string name="mmiErrorWhileRoaming">Can not change call forwarding settings from your phone while you are roaming.</string>

    <!-- What the UI should display for "voice mail" unless overridden by the SIM-->
    <string name="defaultVoiceMailAlphaTag">Voicemail</string>

    <!-- Displayed when a phone feature such as call barring was activated. -->
    <string name="serviceEnabled">Service was enabled.</string>
    <!-- Displayed in front of the list of a set of service classes
@@ -329,11 +332,8 @@
    <string name="sim_added_title">SIM card added</string>
    <!-- See SIM_ADDED_DIALOG.  This is the message of that dialog. -->
    <string name="sim_added_message">Restart your device to access the mobile network.</string>

    <!-- Keep sim_restart_button is in frameworks/base due to reference in global_action_restart -->
    <!--string name="sim_restart_button">Restart</string-->
    <skip />

    <!-- See SIM_ADDED_DIALOG.  This is the button of that dialog. -->
    <string name="sim_restart_button">Restart</string>
    <!-- See Carrier_App_Dialog. This is the message of that dialog. -->
    <string name="install_carrier_app_notification_title">Activate mobile service</string>
    <!-- Notification message that shows when the user inserts a SIM card that requires a carrier app download, but the app name is unknown -->
@@ -386,4 +386,27 @@
    <string name="mmcc_imsi_unknown_in_hlr_msim_template">SIM <xliff:g id="simNumber" example="1">%d</xliff:g> not provisioned</string>
    <string name="mmcc_illegal_ms_msim_template">SIM <xliff:g id="simNumber" example="1">%d</xliff:g> not allowed</string>
    <string name="mmcc_illegal_me_msim_template">SIM <xliff:g id="simNumber" example="1">%d</xliff:g> not allowed</string>

    <!-- Shown in the lock screen when there is emergency calls only mode. -->
    <string name="emergency_calls_only" msgid="2485604591272668370">Emergency calls only</string>

    <!-- On the keyguard screen, it shows the carrier the phone is connected to.  This is displayed if the phone is not connected to a carrier.-->
    <string name="lockscreen_carrier_default">No service</string>

    <!-- Status message for a remote route attempting to connect -->
    <string name="media_route_status_connecting">Connecting...</string>

    <!-- WFC, summary for Disabled -->
    <string name="wifi_calling_off_summary">Off</string>
    <!-- WFC, summary for Wi-Fi Preferred -->
    <string name="wfc_mode_wifi_preferred_summary">Call over Wi-Fi</string>
    <!-- WFC, summary for Mobile data Preferred -->
    <string name="wfc_mode_cellular_preferred_summary">Call over mobile network</string>
    <!-- WFC, summary for Wi-Fi Only -->
    <string name="wfc_mode_wifi_only_summary">Wi-Fi only</string>

    <!-- Sequence of characters used to separate message strings in keyguard. Typically just em-dash
         with spaces on either side. [CHAR LIMIT=3] -->
    <string name="kg_text_message_separator" product="default">" \u2014 "</string>

</resources>
+2 −1
Original line number Diff line number Diff line
@@ -1681,7 +1681,8 @@ public class GsmCdmaPhone extends Phone {
        }

        if (ret == null || ret.length() == 0) {
            return mContext.getString(android.R.string.defaultVoiceMailAlphaTag);
            return TelephonyResourceUtils.getTelephonyResourceContext(mContext).getText(
                com.android.telephony.resources.R.string.defaultVoiceMailAlphaTag).toString();
        }

        return ret;
+12 −12
Original line number Diff line number Diff line
@@ -2702,12 +2702,14 @@ public class ServiceStateTracker extends Handler {
                final boolean forceDisplayNoService = shouldForceDisplayNoService() && !mIsSimReady;
                if (!forceDisplayNoService && Phone.isEmergencyCallOnly()) {
                    // No service but emergency call allowed
                    plmn = mPhone.getContext().getResources()
                            .getText(com.android.internal.R.string.emergency_calls_only)
                    plmn = TelephonyResourceUtils.getTelephonyResources(mPhone.getContext())
                            .getText(com.android.telephony.resources.R.string.emergency_calls_only)
                                .toString();
                } else {
                    // No service at all
                    plmn = getLockscreenCarrierDefaultText();
                    plmn = TelephonyResourceUtils.getTelephonyResources(mPhone.getContext())
                            .getText(com.android.telephony.resources.R.string
                                    .lockscreen_carrier_default).toString();
                    noService = true;
                }
                if (DBG) log("updateSpnDisplay: radio is on but out " +
@@ -2722,7 +2724,9 @@ public class ServiceStateTracker extends Handler {
            } else {
                // Power off state, such as airplane mode, show plmn as "No service"
                showPlmn = true;
                plmn = getLockscreenCarrierDefaultText();
                plmn = TelephonyResourceUtils.getTelephonyResources(mPhone.getContext())
                        .getText(com.android.telephony.resources.R.string
                                .lockscreen_carrier_default).toString();
                if (DBG) log("updateSpnDisplay: radio is off w/ showPlmn="
                        + showPlmn + " plmn=" + plmn);
            }
@@ -2790,7 +2794,9 @@ public class ServiceStateTracker extends Handler {
            }

            if (combinedRegState == ServiceState.STATE_OUT_OF_SERVICE) {
                plmn = getLockscreenCarrierDefaultText();
                plmn = TelephonyResourceUtils.getTelephonyResources(mPhone.getContext()).getText(
                                com.android.telephony.resources.R.string.lockscreen_carrier_default)
                        .toString();
                if (DBG) {
                    log("updateSpnDisplay: radio is on but out of svc, set plmn='" + plmn + "'");
                }
@@ -5720,10 +5726,4 @@ public class ServiceStateTracker extends Handler {
        values.put(SERVICE_STATE, p.marshall());
        return values;
    }

    private String getLockscreenCarrierDefaultText() {
        return mPhone.getContext().getResources()
                .getText(com.android.internal.R.string.lockscreen_carrier_default)
                .toString();
    }
}
Loading