// All non-virtual displays are currently considered secure.
第二步骤,修改旋转:
/home/doraemon/temp_android/6572/808/alps/frameworks/base/policy/src/com/android/internal/policy/impl/PhoneWindowManager.java
@Override
public int rotationForOrientationLw(int orientation, int lastRotation) {
synchronized (mLock) {
int sensorRotation = mOrientationListener.getProposedRotation(); // may be -1
if (sensorRotation < 0) {
sensorRotation = lastRotation;
return Surface.ROTATION_90; //zcfdebug++
}
if(true)return Surface.ROTATION_90; //zcfdebug++