diff --git a/res/drawable-hdpi/ic_sprint_tools.png b/res/drawable-hdpi/ic_sprint_tools.png
new file mode 100644
index 000000000000..18acb56e2d4a
Binary files /dev/null and b/res/drawable-hdpi/ic_sprint_tools.png differ
diff --git a/res/drawable-mdpi/ic_sprint_tools.png b/res/drawable-mdpi/ic_sprint_tools.png
new file mode 100644
index 000000000000..1e23f6511a35
Binary files /dev/null and b/res/drawable-mdpi/ic_sprint_tools.png differ
diff --git a/res/drawable-xhdpi/ic_sprint_tools.png b/res/drawable-xhdpi/ic_sprint_tools.png
new file mode 100644
index 000000000000..615e375f4e51
Binary files /dev/null and b/res/drawable-xhdpi/ic_sprint_tools.png differ
diff --git a/res/values/bools.xml b/res/values/bools.xml
index a660341fba33..3df8ae015da6 100644
--- a/res/values/bools.xml
+++ b/res/values/bools.xml
@@ -34,4 +34,7 @@
false
+
+
+ false
diff --git a/res/values/strings.xml b/res/values/strings.xml
index dd8e552258bf..24281814679a 100644
--- a/res/values/strings.xml
+++ b/res/values/strings.xml
@@ -4487,4 +4487,7 @@
Device hostname
+
+
+ Sprint Tools
diff --git a/res/xml/settings_headers.xml b/res/xml/settings_headers.xml
index 4c0b924b60e6..d9e470f8ebd5 100644
--- a/res/xml/settings_headers.xml
+++ b/res/xml/settings_headers.xml
@@ -98,6 +98,15 @@
android:targetClass="com.cyanogenmod.settings.device.DeviceSettings" />
+
+
diff --git a/src/com/android/settings/Settings.java b/src/com/android/settings/Settings.java
index 2893f854effb..40e0b3aa3d58 100644
--- a/src/com/android/settings/Settings.java
+++ b/src/com/android/settings/Settings.java
@@ -125,7 +125,8 @@ public class Settings extends PreferenceActivity
R.id.rom_control,
R.id.themes,
R.id.performance,
- R.id.advanced_settings
+ R.id.advanced_settings,
+ R.id.sprint_tools
};
private SharedPreferences mDevelopmentPreferences;
@@ -436,7 +437,10 @@ private void updateHeaderList(List target) {
} else if (id == R.id.advanced_settings) {
if (!needsAdvancedSettings())
target.remove(header);
- } else if (id == R.id.wifi_settings) {
+ } else if (id == R.id.sprint_tools) {
+ if (!isSprintDevice())
+ target.remove(header);
+ } else if (id == R.id.wifi_settings) {
// Remove WiFi Settings if WiFi service is not available.
if (!getPackageManager().hasSystemFeature(PackageManager.FEATURE_WIFI)) {
target.remove(i);
@@ -556,6 +560,10 @@ private boolean needsAdvancedSettings() {
return getResources().getBoolean(R.bool.has_advanced_settings);
}
+ private boolean isSprintDevice() {
+ return getResources().getBoolean(R.bool.is_sprint_device);
+ }
+
private void getMetaData() {
try {
ActivityInfo ai = getPackageManager().getActivityInfo(getComponentName(),