android去掉振动相关选项

KK/L1

设置-提示音-设置:来电震动、触摸时震动
packages\apps\Settings\src\com\mediatek\audioprofile\Editprofile.java
private void initPreference() {

parent.removePreference(mHapticFeedback);
parent.removePreference(mVibrat);
}

设置-提示音:会议模式、户外模式
packages/apps/Settings/src/com/mediatek/audioprofile/AudioProfileSettings.java
public void onCreate(Bundle icicle) {

pref = (AudioProfilePreference) findPreference(MEETING_PREF_KEY);
pref.setOnSettingsClickListener(mProfileSettingListener);
getPreferenceScreen().removePreference(pref);
pref = (AudioProfilePreference) findPreference(OUTDOOR_PREF_KEY);
pref.setOnSettingsClickListener(mProfileSettingListener);
getPreferenceScreen().removePreference(pref);

闹钟
packages/apps/DeskClock/src/com/android/deskclock/AlarmClockFragment.java

  • if (!mHasVibrator) {
  • /* chenxs modify for remove vibrate checkbox. begin */
  • //if (!mHasVibrator) {
  • if (true) {
  • /* chenxs modify for remove vibrate checkbox. end */
    itemHolder.vibrate.setVisibility(View.INVISIBLE);
    } else {
    itemHolder.vibrate.setVisibility(View.VISIBLE);

下拉菜单:
KK
情景模式图标
frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/QuickSettings.java
private void addAudioProfileTile(ViewGroup parent, LayoutInflater inflater) {

点击情景模式后的选择图标
KK
frameworks/base/packages/SystemUI/src/com/mediatek/systemui/statusbar/toolbar/QuickSettingsConnectionModel.java
L1
frameworks/base/packages/SystemUI/src/com/mediatek/systemui/qs/tiles/AudioProfileTile.java
meetingProfile.setVisibility(View.GONE);
outdoorProfile.setVisibility(View.GONE);

你可能感兴趣的:(android)