android:title="@string/testing" >
<PreferenceScreen
- android:title="@string/testing_phone_info">
+ android:title="@string/testing_phone_info"
+ android:key="radio_info_settings">
<intent android:action="android.intent.action.MAIN"
android:targetPackage="com.android.settings"
android:targetClass="com.android.settings.RadioInfo" />
package com.android.settings;
import android.os.Bundle;
+import android.os.UserHandle;
import android.preference.PreferenceActivity;
+import android.preference.PreferenceScreen;
public class TestingSettings extends PreferenceActivity {
super.onCreate(savedInstanceState);
addPreferencesFromResource(R.xml.testing_settings);
+
+ if (UserHandle.myUserId() != UserHandle.USER_OWNER) {
+ PreferenceScreen preferenceScreen = (PreferenceScreen)
+ findPreference("radio_info_settings");
+ getPreferenceScreen().removePreference(preferenceScreen);
+ }
}
}