在./frameworks/base/policy/src/com/android/internal/policy/impl/PhoneWindowManager.java里面
将:
if (down && (policyFlags & WindowManagerPolicy.FLAG_VIRTUAL) != 0 && event.getRepeatCount() == 0)
改为:
if (down && (keyCode == KeyEvent.KEYCODE_HOME || keyCode == KeyEvent.KEYCODE_BACK|| keyCode == KeyEvent.KEYCODE_MENU || keyCode == KeyEvent.KEYCODE_SEARCH) && event.getRepeatCount() == 0)
就实现了改功能。