diff --git a/res/values/strings.xml b/res/values/strings.xml index f36c8a2ba81..d42be7ca590 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -2108,6 +2108,10 @@ from unknown sources. You agree that you are solely responsible for any damage to your phone or loss of data that may result from using these applications. + + Advanced settings + + Enable more settings options. Application info diff --git a/res/xml/application_settings.xml b/res/xml/application_settings.xml index 4e77a934c38..3ad1e5dbb03 100644 --- a/res/xml/application_settings.xml +++ b/res/xml/application_settings.xml @@ -54,6 +54,13 @@ android:summaryOn="@string/install_unknown_applications" android:persistent="false" /> + + 0; + } + + private void setAdvancedSettingsEnabled(boolean enabled) { + int value = enabled ? 1 : 0; + // Change the system setting + Settings.Secure.putInt(getContentResolver(), Settings.System.ADVANCED_SETTINGS, value); + // TODO: the settings thing should broadcast this for thread safety purposes. + Intent intent = new Intent(Intent.ACTION_ADVANCED_SETTINGS_CHANGED); + intent.putExtra("state", value); + getActivity().sendBroadcast(intent); + } + private boolean isNonMarketAppsAllowed() { return Settings.Secure.getInt(getContentResolver(), Settings.Secure.INSTALL_NON_MARKET_APPS, 0) > 0;