Add strings for NTN connection manual type

Flag: EXEMPT bug fix
Fix: b/397958254
Test: Manual test. see b/397958254#comment10
(cherry picked from commit b91d21ba762ec0fba6e77c35ab350c3d6c8e2bb7)
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:3e0ffb799c949f98b044e45675173ed1f232d015)
Merged-In: Ibcd3511edee9b3203c6c0cad68e0988b4b621b39
Change-Id: Ibcd3511edee9b3203c6c0cad68e0988b4b621b39
diff --git a/res/values/strings.xml b/res/values/strings.xml
index f7e680c..db679d7 100644
--- a/res/values/strings.xml
+++ b/res/values/strings.xml
@@ -12347,12 +12347,20 @@
     <string name="category_name_how_it_works">How it works</string>
     <!-- Title for satellite connection guide [CHAR_LIMIT=NONE] -->
     <string name="title_satellite_connection_guide">When you don\u2019t have a mobile network</string>
+    <!-- Title for satellite connection guide for NTN manual connection type. [CHAR_LIMIT=NONE] -->
+    <string name="title_satellite_connection_guide_for_manual_type">Text a phone number</string>
     <!-- Summary for satellite connection guide [CHAR_LIMIT=NONE] -->
     <string name="summary_satellite_connection_guide">Your phone will auto-connect to a satellite. For the best connection, keep a clear view of the sky.</string>
+    <!-- Summary for satellite connection guide for NTN manual connection type. [CHAR_LIMIT=NONE] -->
+    <string name="summary_satellite_connection_guide_for_manual_type">If you don\u2019t have a mobile network, you\u2019ll see an option to use satellite messaging.</string>
     <!-- Title for satellite supported service [CHAR_LIMIT=NONE] -->
     <string name="title_supported_service">After your phone connects to a satellite</string>
+    <!-- Title for satellite supported service for NTN manual connection type. [CHAR_LIMIT=NONE] -->
+    <string name="title_supported_service_for_manual_type">Follow steps to connect to the satellite</string>
     <!-- Summary for satellite supported service [CHAR_LIMIT=NONE] -->
     <string name="summary_supported_service">You can text anyone, including emergency services. Your phone will reconnect to a mobile network when available.</string>
+    <!-- Summary for satellite supported service for NTN manual connection type. [CHAR_LIMIT=NONE] -->
+    <string name="summary_supported_service_for_manual_type">After your phone is connected, you can text anyone, including emergency services.</string>
     <!-- learn more text - more about satellite messaging [CHAR_LIMIT=NONE] -->
     <string name="satellite_setting_summary_more_information">A satellite connection may be slower and is available only in some areas. Weather and certain structures may affect the connection. Calling by satellite isn\u2019t available. Emergency calls may still connect.\n\nIt may take some time for account changes to show in Settings. Contact <xliff:g id="carrier_name" example="T-Mobile">%1$s</xliff:g> for details.</string>
     <!-- more about satellite messaging [CHAR_LIMIT=NONE] -->
diff --git a/src/com/android/settings/network/telephony/SatelliteSetting.java b/src/com/android/settings/network/telephony/SatelliteSetting.java
index 744e388..a65f327 100644
--- a/src/com/android/settings/network/telephony/SatelliteSetting.java
+++ b/src/com/android/settings/network/telephony/SatelliteSetting.java
@@ -68,6 +68,9 @@
     private static final String PREF_KEY_YOUR_SATELLITE_DATA_PLAN = "key_your_satellite_data_plan";
     private static final String PREF_KEY_CATEGORY_ABOUT_SATELLITE = "key_category_about_satellite";
     private static final String KEY_FOOTER_PREFERENCE = "satellite_setting_extra_info_footer_pref";
+    private static final String KEY_SATELLITE_CONNECTION_GUIDE = "key_satellite_connection_guide";
+    private static final String KEY_SUPPORTED_SERVICE = "key_supported_service";
+
 
     static final String SUB_ID = "sub_id";
     static final String EXTRA_IS_SERVICE_DATA_TYPE = "is_service_data_type";
@@ -221,6 +224,15 @@
             category.setEnabled(false);
             category.setShouldDisableView(true);
         }
+        if (!isCarrierRoamingNtnConnectedTypeManual()) {
+            return;
+        }
+        Preference connectionGuide = findPreference(KEY_SATELLITE_CONNECTION_GUIDE);
+        connectionGuide.setTitle(R.string.title_satellite_connection_guide_for_manual_type);
+        connectionGuide.setSummary(R.string.summary_satellite_connection_guide_for_manual_type);
+        Preference supportedService = findPreference(KEY_SUPPORTED_SERVICE);
+        supportedService.setTitle(R.string.title_supported_service_for_manual_type);
+        supportedService.setSummary(R.string.summary_supported_service_for_manual_type);
     }
 
     private void updateFooterContent() {