Updating strings for unknown sources settings

Updated strings and removed some obsolete strings that were no longer
used. Removed unusued instance variable in AppStateInstallAppsBridge

Test: Manual

Bug: 36454399
Change-Id: I858bb388f311fd012527500cf35255d191b4dfb7
This commit is contained in:
Suprabh Shukla
2017-03-20 18:47:30 -07:00
parent 26a5a71d31
commit 4e3dc4a91d
2 changed files with 22 additions and 19 deletions

View File

@@ -3343,20 +3343,25 @@
<string name="install_applications">Unknown sources</string> <string name="install_applications">Unknown sources</string>
<!-- Applications settings screen, setting check box title. If checked, the system allows installation of applications that are downloaded from random places, such as web sites. [CHAR LIMIT=30] --> <!-- Applications settings screen, setting check box title. If checked, the system allows installation of applications that are downloaded from random places, such as web sites. [CHAR LIMIT=30] -->
<string name="install_applications_title">Allow all app sources</string> <string name="install_applications_title">Allow all app sources</string>
<!-- Applications settings screen, setting check box summary. This is the summary for "Unknown sources" checkbox [CHAR LIMIT=65] -->
<string name="install_unknown_applications_title">Lets you install apps from sources other than Google Play</string> <!-- Warning that appears below the unknown sources switch in settings -->
<!-- Applications settings screen, setting check box summary. This is the summary for "Unknown sources" checkbox --> <string name="install_all_warning" product="tablet">
<string name="install_unknown_applications">Allow installation of apps from unknown sources</string> Your tablet and personal data are more vulnerable
<!-- Applications settings screen, message text of alert that appears if user selects the "Unknown sources" check box --> to attack by unknown apps. By installing apps from
<string name="install_all_warning" product="tablet">Your tablet and personal data are more vulnerable to attack by apps this source, you agree that you are responsible for
from unknown sources. You agree that you are solely responsible for any any damage to your tablet or loss of data that may
damage to your tablet or loss of data that may result from using result from their use.
these apps.</string> </string>
<!-- Applications settings screen, message text of alert that appears if user selects the "Unknown sources" check box -->
<string name="install_all_warning" product="default">Your phone and personal data are more vulnerable to attack by apps <!-- Warning that appears below the unknown sources switch in settings -->
from unknown sources. You agree that you are solely responsible for any <string name="install_all_warning" product="default">
damage to your phone or loss of data that may result from using Your phone and personal data are more vulnerable
these apps.</string> to attack by unknown apps. By installing apps from
this source, you agree that you are responsible for
any damage to your phone or loss of data that may
result from their use.
</string>
<!-- Applications settings screen, setting check box title. If checked, applications show more settings options. --> <!-- Applications settings screen, setting check box title. If checked, applications show more settings options. -->
<string name="advanced_settings">Advanced settings</string> <string name="advanced_settings">Advanced settings</string>
<!-- Applications settings screen, setting check box summary. This is the summary for "Advanced settings" checkbox --> <!-- Applications settings screen, setting check box summary. This is the summary for "Advanced settings" checkbox -->
@@ -7356,9 +7361,9 @@
<string name="system_alert_window_off">No</string> <string name="system_alert_window_off">No</string>
<!-- Title for settings screen for controlling apps that can install other apps on device [CHAR LIMIT=50] --> <!-- Title for settings screen for controlling apps that can install other apps on device [CHAR LIMIT=50] -->
<string name="install_other_apps">Install other apps</string> <string name="install_other_apps">Install unknown apps</string>
<!-- Keywords for setting screen for controlling apps that can install other apps on device --> <!-- Keywords for setting screen for controlling apps that can install other apps on device -->
<string name="keywords_install_other_apps">install apps external unknown sources</string> <string name="keywords_install_other_apps">install apps unknown sources</string>
<!-- Write Settings settings --> <!-- Write Settings settings -->
<!-- Settings title in main settings screen for WRITE_SETTINGS [CHAR LIMIT=30] --> <!-- Settings title in main settings screen for WRITE_SETTINGS [CHAR LIMIT=30] -->
@@ -7391,7 +7396,7 @@
<!-- Summary of app not trusted to install apps [CHAR LIMIT=45] --> <!-- Summary of app not trusted to install apps [CHAR LIMIT=45] -->
<string name="external_source_untrusted">No</string> <string name="external_source_untrusted">No</string>
<!-- Title of switch preference that controls whether an external app source is trusted or not [CHAR LIMIT=50] --> <!-- Title of switch preference that controls whether an external app source is trusted or not [CHAR LIMIT=50] -->
<string name="external_source_switch_title">Trust apps from this source</string> <string name="external_source_switch_title">Allow app installs</string>
<!-- Title of setting that controls gesture to open camera [CHAR LIMIT=40] --> <!-- Title of setting that controls gesture to open camera [CHAR LIMIT=40] -->
<string name="camera_gesture_title">Double twist for camera</string> <string name="camera_gesture_title">Double twist for camera</string>

View File

@@ -43,12 +43,10 @@ public class AppStateInstallAppsBridge extends AppStateBaseBridge {
private final IPackageManager mIpm; private final IPackageManager mIpm;
private final AppOpsManager mAppOpsManager; private final AppOpsManager mAppOpsManager;
private final Context mContext;
public AppStateInstallAppsBridge(Context context, ApplicationsState appState, public AppStateInstallAppsBridge(Context context, ApplicationsState appState,
Callback callback) { Callback callback) {
super(appState, callback); super(appState, callback);
mContext = context;
mIpm = AppGlobals.getPackageManager(); mIpm = AppGlobals.getPackageManager();
mAppOpsManager = (AppOpsManager) context.getSystemService(Context.APP_OPS_SERVICE); mAppOpsManager = (AppOpsManager) context.getSystemService(Context.APP_OPS_SERVICE);
} }