From 544c820ac7986902d5e758993ede98e2d52113f4 Mon Sep 17 00:00:00 2001 From: Steven Moreland Date: Thu, 23 Mar 2017 05:07:46 +0000 Subject: [PATCH] Revert "Development Options: toggle binderized hals" This reverts commit 73dd0ae30e2779cb845d1ac6e785d619e1e1e310. Reason for revert: b/34274385 - This was a temporary setting. Change-Id: I98b2d05c431bb5361b11cd3b05b7f5ac4e939e0e --- res/values/strings.xml | 3 --- res/xml/development_prefs.xml | 4 ---- .../android/settings/DevelopmentSettings.java | 19 ------------------- 3 files changed, 26 deletions(-) diff --git a/res/values/strings.xml b/res/values/strings.xml index 1af24a7a75e..877da582145 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -7370,9 +7370,6 @@ Automatic system updates - - Binderized HALs (requires reboot) - Usage diff --git a/res/xml/development_prefs.xml b/res/xml/development_prefs.xml index eebf47d7487..b65586557d0 100644 --- a/res/xml/development_prefs.xml +++ b/res/xml/development_prefs.xml @@ -90,10 +90,6 @@ android:title="@string/color_temperature" android:summary="@string/color_temperature_desc" /> - - diff --git a/src/com/android/settings/DevelopmentSettings.java b/src/com/android/settings/DevelopmentSettings.java index c96ca61e342..f074abc3e40 100644 --- a/src/com/android/settings/DevelopmentSettings.java +++ b/src/com/android/settings/DevelopmentSettings.java @@ -223,8 +223,6 @@ public class DevelopmentSettings extends RestrictedSettingsFragment private static final String KEY_CONVERT_FBE = "convert_to_file_encryption"; private static final String OTA_DISABLE_AUTOMATIC_UPDATE_KEY = "ota_disable_automatic_update"; - private static final String ENABLE_HAL_BINDERIZATION_KEY = "enable_hal_binderization"; - private static final String ENABLE_HAL_BINDERIZATION_PROPERTY = "persist.hal.binderization"; private static final int RESULT_DEBUG_APP = 1000; private static final int RESULT_MOCK_LOCATION_APP = 1001; @@ -287,7 +285,6 @@ public class DevelopmentSettings extends RestrictedSettingsFragment private ListPreference mBluetoothSelectA2dpLdacPlaybackQuality; private SwitchPreference mOtaDisableAutomaticUpdate; - private SwitchPreference mEnableHalBinderization; private SwitchPreference mWifiAllowScansWithTraffic; private SwitchPreference mStrictMode; private SwitchPreference mPointerLocation; @@ -526,8 +523,6 @@ public class DevelopmentSettings extends RestrictedSettingsFragment mOtaDisableAutomaticUpdate = findAndInitSwitchPref(OTA_DISABLE_AUTOMATIC_UPDATE_KEY); - mEnableHalBinderization = findAndInitSwitchPref(ENABLE_HAL_BINDERIZATION_KEY); - mColorModePreference = (ColorModePreference) findPreference(KEY_COLOR_MODE); mColorModePreference.updateCurrentAndSupported(); if (mColorModePreference.getColorModeCount() < 2) { @@ -757,7 +752,6 @@ public class DevelopmentSettings extends RestrictedSettingsFragment updateShowAllANRsOptions(); updateVerifyAppsOverUsbOptions(); updateOtaDisableAutomaticUpdateOptions(); - updateEnableHalBinderizationOptions(); updateBugreportOptions(); updateForceRtlOptions(); updateLogdSizeValues(); @@ -1047,17 +1041,6 @@ public class DevelopmentSettings extends RestrictedSettingsFragment mOtaDisableAutomaticUpdate.isChecked() ? 0 : 1); } - private void updateEnableHalBinderizationOptions() { - updateSwitchPreference(mEnableHalBinderization, - SystemProperties.getBoolean(ENABLE_HAL_BINDERIZATION_PROPERTY, false)); - } - - private void writeEnableHalBinderizationOptions() { - SystemProperties.set(ENABLE_HAL_BINDERIZATION_PROPERTY, - mEnableHalBinderization.isChecked() ? "true" : "false"); - pokeSystemProperties(); - } - private boolean enableVerifierSetting() { final ContentResolver cr = getActivity().getContentResolver(); if (Settings.Global.getInt(cr, Settings.Global.ADB_ENABLED, 0) == 0) { @@ -2444,8 +2427,6 @@ public class DevelopmentSettings extends RestrictedSettingsFragment writeVerifyAppsOverUsbOptions(); } else if (preference == mOtaDisableAutomaticUpdate) { writeOtaDisableAutomaticUpdateOptions(); - } else if (preference == mEnableHalBinderization) { - writeEnableHalBinderizationOptions(); } else if (preference == mStrictMode) { writeStrictModeVisualOptions(); } else if (preference == mPointerLocation) {