路径:package\apps\Settings\res\xml\device_info_status.xml
方法:注释<!--
<Preference android:key="bt_address"
Style="?android:attr/preferenceInformationStyle"
android:title="@string/status_bt_address"
android:summary="@string/device_info_not_available"
android:persistent="false" />
-->
package\apps\Settings\src\com\android\settings\deviceinfo\Status.java 453
Preference btAddressPref = findPreference(KEY_BT_ADDRESS);
if(btAddressPref != null)
{
if (bluetooth == null) {
// device not BT capable
getPreferenceScreen().removePreference(btAddressPref);
} else {
String address = bluetooth.isEnabled() ? bluetooth.getAddress() : null;
btAddressPref.setSummary(!TextUtils.isEmpty(address) ? address
: getString(R.string.status_unavailable));
}
}
方法:注释<!--
<Preference android:key="bt_address"
Style="?android:attr/preferenceInformationStyle"
android:title="@string/status_bt_address"
android:summary="@string/device_info_not_available"
android:persistent="false" />
-->
package\apps\Settings\src\com\android\settings\deviceinfo\Status.java 453
Preference btAddressPref = findPreference(KEY_BT_ADDRESS);
if(btAddressPref != null)
{
if (bluetooth == null) {
// device not BT capable
getPreferenceScreen().removePreference(btAddressPref);
} else {
String address = bluetooth.isEnabled() ? bluetooth.getAddress() : null;
btAddressPref.setSummary(!TextUtils.isEmpty(address) ? address
: getString(R.string.status_unavailable));
}
}