diff --git a/res/values/strings.xml b/res/values/strings.xml
index c68557f..43ef48c 100755
--- a/res/values/strings.xml
+++ b/res/values/strings.xml
@@ -19,6 +19,28 @@
<string name="root_access_warning_title">Allow root access?</string>
<string name="root_access_warning_message">Allowing apps to request root access is very dangerous and could compromise the security of your system!</string>
+ <!--add by louhn display advanced_settings -->
+ <string name="color">Color</string>
+ <string name="ok">OK</string>
+ <string name="cancel">Cancel</string>
+ <string name="advanced_settings">Secondary Screen Advanced settings</string>
+ <string name="advanced_settings_main">Main Screen Advanced settings</string>
+ <string name="bcsh">BCSH</string>
+ <string name="bcsh_reset">reset</string>
+ <string name="bcsh_cold">cold</string>
+ <string name="bcsh_warm">warm</string>
+ <string name="bcsh_sharp">sharp</string>
+ <string name="hdr">SDR->HDR</string>
+ <string name="sdr">HDR->SDR</string>
+ <string name="brightness">Brightness</string>
+ <string name="current">Current value:</string>
+ <string name="contrast">Contrast</string>
+ <string name="saturation">Saturation</string>
+ <string name="tone">Tone</string>
+ <string name="max_brightness">Max brightness</string>
+ <string name="min_brightness">Min brightness</string>
+
+
<!-- Strings for Dialog yes button -->
<string name="yes">"Yes"</string>
<!-- Strings for Dialog no button -->
@@ -3410,7 +3432,7 @@
damage to your phone or loss of data that may result from using
these apps.</string>
<!-- 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 -->
<string name="advanced_settings_summary">Enable more settings options</string>
<!-- Manage applications, individual application info screen title. For example, if they click on "Browser" in "Manage applications", the title of the next screen will be this -->
diff --git a/res/xml/hdmi_settings_timeout.xml b/res/xml/hdmi_settings_timeout.xml
index b86c58a..829121c 100644
--- a/res/xml/hdmi_settings_timeout.xml
+++ b/res/xml/hdmi_settings_timeout.xml
@@ -31,6 +31,15 @@
<Preference
android:key="hdmi_screen_zoom"
android:title="@string/hdmi_screen_zoom" />
+
+ <!--add by louhn-->
+ <Preference
+ android:key="advanced_settings_main"
+ android:title="@string/advanced_settings_main" />
+ <Preference
+ android:key="advanced_settings"
+ android:title="@string/advanced_settings" />
+
<ListPreference
android:key="hdmi_rotation"
diff --git a/src/com/android/settings/ApplicationSettings.java b/src/com/android/settings/ApplicationSettings.java
index 759ccea..52b3679 100644
--- a/src/com/android/settings/ApplicationSettings.java
+++ b/src/com/android/settings/ApplicationSettings.java
@@ -30,7 +30,7 @@ public class ApplicationSettings extends SettingsPreferenceFragment {
private static final String KEY_TOGGLE_ADVANCED_SETTINGS = "toggle_advanced_settings";
private static final String KEY_APP_INSTALL_LOCATION = "app_install_location";
-
+
// App installation location. Default is ask the user.
private static final int APP_INSTALL_AUTO = 0;
private static final int APP_INSTALL_DEVICE = 1;
@@ -115,7 +115,7 @@ public class ApplicationSettings extends SettingsPreferenceFragment {
Settings.System.ADVANCED_SETTINGS,
Settings.System.ADVANCED_SETTINGS_DEFAULT) > 0;
}
-
+
private void setAdvancedSettingsEnabled(boolean enabled) {
int value = enabled ? 1 : 0;
// Change the system setting
diff --git a/src/com/android/settings/DisplaySettings.java b/src/com/android/settings/DisplaySettings.java
index 0e66032..a6923d4 100755
--- a/src/com/android/settings/DisplaySettings.java
+++ b/src/com/android/settings/DisplaySettings.java
@@ -58,6 +58,21 @@ import com.android.settingslib.RestrictedPreference;
import java.util.ArrayList;
import java.util.List;