diff options
author | Kenny Root <kroot@google.com> | 2011-09-25 09:23:27 -0700 |
---|---|---|
committer | Kenny Root <kroot@google.com> | 2011-09-26 09:55:03 -0700 |
commit | 498fbe470e8201ed6d4a1677025b274d9ca65e0b (patch) | |
tree | b62716980373ea69e2aa8ebb2cfe37697421abdc /src/com/android/settings/DevelopmentSettings.java | |
parent | bde64e3d93b0144cd8b7c0ff65103ffb63fddba7 (diff) | |
download | packages_apps_Settings-498fbe470e8201ed6d4a1677025b274d9ca65e0b.zip packages_apps_Settings-498fbe470e8201ed6d4a1677025b274d9ca65e0b.tar.gz packages_apps_Settings-498fbe470e8201ed6d4a1677025b274d9ca65e0b.tar.bz2 |
Make verifier device id information visible
This makes the verifier device identifier information for this
particular device visible in the "Development" screen of
Settings.
Bug: 5205163
Change-Id: I55e0b32fe98f898e6e8d723ce6696529fdccffd0
Diffstat (limited to 'src/com/android/settings/DevelopmentSettings.java')
-rw-r--r-- | src/com/android/settings/DevelopmentSettings.java | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/com/android/settings/DevelopmentSettings.java b/src/com/android/settings/DevelopmentSettings.java index bdbec97..c3725e4 100644 --- a/src/com/android/settings/DevelopmentSettings.java +++ b/src/com/android/settings/DevelopmentSettings.java @@ -24,6 +24,8 @@ import android.content.ContentResolver; import android.content.Context; import android.content.DialogInterface; import android.content.Intent; +import android.content.pm.PackageManager; +import android.content.pm.VerifierDeviceIdentity; import android.os.BatteryManager; import android.os.Build; import android.os.Bundle; @@ -51,6 +53,8 @@ public class DevelopmentSettings extends PreferenceFragment OnPreferenceChangeListener { private static final String ENABLE_ADB = "enable_adb"; + + private static final String VERIFIER_DEVICE_IDENTIFIER = "verifier_device_identifier"; private static final String KEEP_SCREEN_ON = "keep_screen_on"; private static final String ALLOW_MOCK_LOCATION = "allow_mock_location"; private static final String HDCP_CHECKING_KEY = "hdcp_checking"; @@ -130,6 +134,13 @@ public class DevelopmentSettings extends PreferenceFragment mShowAllANRs = (CheckBoxPreference) findPreference( SHOW_ALL_ANRS_KEY); + final Preference verifierDeviceIdentifier = findPreference(VERIFIER_DEVICE_IDENTIFIER); + final PackageManager pm = getActivity().getPackageManager(); + final VerifierDeviceIdentity verifierIndentity = pm.getVerifierDeviceIdentity(); + if (verifierIndentity != null) { + verifierDeviceIdentifier.setSummary(verifierIndentity.toString()); + } + removeHdcpOptionsForProduction(); } |