How does Android4.2 disable the sliding between the left and right sides of the screen lock?
1. Modify frameworks/base/policy/src/com/android/internal/policy/impl/keyguard/KeyguardHostView. java
AddDefaultWidgets ();
Comment out this line of code;
2. Modify frameworks/base/policy/src/com/android/internal/policy/impl/keyguard/KeyguardHostView. java to the following:
Runnable mSwitchPageRunnable = new Runnable (){
@ Override
Public void run (){
// ShowAppropriateWidgetPage ();
}
};
3. Modify frameworks/base/policy/src/com/android/internal/policy/impl/keyguard/PagedView. java
All codes except the return statement in the onInterceptTouchEvent and onTouchEvent methods are commented out;
Note:
This modification will cause the GMS package to be installed, and the screen will be locked when playing music with Play music. There will be no widgets for playing music on the screen.