From b8684d573e1357ee573f26d511a630b39e368d0f Mon Sep 17 00:00:00 2001 From: rich cannings Date: Mon, 21 Jul 2014 16:12:49 -0700 Subject: [PATCH] Remove "Verify apps" from Security settings The setting moved to Google settings Bug: 15588470 Change-Id: I40c0b6073949a69bfb8f0fa8f9fd405fbf9946de --- res/values/strings.xml | 4 --- res/xml/security_settings_misc.xml | 6 ---- src/com/android/settings/SecuritySettings.java | 44 -------------------------- 3 files changed, 54 deletions(-) diff --git a/res/values/strings.xml b/res/values/strings.xml index beff7d909e..fd3c249e46 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -2821,10 +2821,6 @@ 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 apps. - - Verify apps - - Regularly check device activity for security problems, and prevent or warn about potential harm. Advanced settings diff --git a/res/xml/security_settings_misc.xml b/res/xml/security_settings_misc.xml index 06743a5b7c..ed63028eab 100644 --- a/res/xml/security_settings_misc.xml +++ b/res/xml/security_settings_misc.xml @@ -57,12 +57,6 @@ android:summaryOn="@string/install_unknown_applications" android:persistent="false" /> - - 0; - } - - private boolean isVerifierInstalled() { - final PackageManager pm = getPackageManager(); - final Intent verification = new Intent(Intent.ACTION_PACKAGE_NEEDS_VERIFICATION); - verification.setType(PACKAGE_MIME_TYPE); - verification.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION); - final List receivers = pm.queryBroadcastReceivers(verification, 0); - return (receivers.size() > 0) ? true : false; - } - - private boolean showVerifierSetting() { - return Settings.Global.getInt(getContentResolver(), - Settings.Global.PACKAGE_VERIFIER_SETTING_VISIBLE, 1) > 0; - } - private void warnAppInstallation() { // TODO: DialogFragment? mWarnInstallApps = new AlertDialog.Builder(getActivity()).setTitle( @@ -583,9 +542,6 @@ public class SecuritySettings extends SettingsPreferenceFragment } else { setNonMarketAppsAllowed(false); } - } else if (KEY_TOGGLE_VERIFY_APPLICATIONS.equals(key)) { - Settings.Global.putInt(getContentResolver(), Settings.Global.PACKAGE_VERIFIER_ENABLE, - mToggleVerifyApps.isChecked() ? 1 : 0); } else if (KEY_TRUST_AGENT.equals(key)) { ChooseLockSettingsHelper helper = new ChooseLockSettingsHelper(this.getActivity(), this); -- 2.11.0