- 去掉Settings里截屏菜单条目,packages/apps/Settings:
java
diff --git a/res/xml/top_level_settings.xml b/res/xml/top_level_settings.xml
old mode 100644
new mode 100755
index a5e4d06..a9420bb
--- a/res/xml/top_level_settings.xml
+++ b/res/xml/top_level_settings.xml
@@ -125,13 +125,13 @@
android:fragment="com.android.settings.accessibility.AccessibilitySettings"
settings:controller="com.android.settings.accessibility.TopLevelAccessibilityPreferenceController"/>
- <Preference
+ <!-- Preference
android:key="top_level_screenshot"
android:title="@string/screenshot_manager"
android:summary="@string/screenshot_manager"
android:icon="@drawable/ic_homepage_screenshot"
android:order="-10"
- android:fragment="com.android.settings.ScreenshotSettings"/>
+ android:fragment="com.android.settings.ScreenshotSettings"/ -->
<Preference
android:key="top_level_system"
- 去掉power键+音量减键组合截屏功能,frameworks/base:
java
diff --git a/services/core/java/com/android/server/policy/PhoneWindowManager.java b/services/core/java/com/android/server/policy/PhoneWindowManager.java
index 95c532e..3f4ebe8 100755
--- a/services/core/java/com/android/server/policy/PhoneWindowManager.java
+++ b/services/core/java/com/android/server/policy/PhoneWindowManager.java
@@ -966,7 +966,7 @@ public class PhoneWindowManager implements WindowManagerPolicy {
&& (event.getFlags() & KeyEvent.FLAG_FALLBACK) == 0) {
mScreenshotChordPowerKeyTriggered = true;
mScreenshotChordPowerKeyTime = event.getDownTime();
- interceptScreenshotChord();
+ //interceptScreenshotChord();
interceptRingerToggleChord();
}
@@ -3841,7 +3841,7 @@ public class PhoneWindowManager implements WindowManagerPolicy {
mScreenshotChordVolumeDownKeyTime = event.getDownTime();
mScreenshotChordVolumeDownKeyConsumed = false;
cancelPendingPowerKeyAction();
- interceptScreenshotChord();
+ //interceptScreenshotChord();
interceptAccessibilityShortcutChord();
}
} else {