|
发表于 2017-12-22 10:46:36
只看该作者
板凳
解决了,官网默认是hdmi和其他的屏异显(lvds或edp或mipi),我目前做的是lvds和edp,需要操作下面,如果是其他lcd屏,改下参数就可以了
1、按照http://dev.t-firefly.com/?612285的补丁
2、参照源码最新补丁e2fa6fd081d99104c1473b4b1fa5d269119e0189
--- a/frameworks/base/services/core/java/com/android/server/wm/InputMonitor.java
+++ b/frameworks/base/services/core/java/com/android/server/wm/InputMonitor.java
@@ -495,6 +495,22 @@ private boolean validWindowState(WindowState win){
public long interceptMotionBeforeDispatching(
InputWindowHandle focus,MotionEvent event,int policyFlags){
+ int action = event.getAction();
+ int screenWidth = mService.getDefaultDisplayInfoLocked().logicalWidth;
+ if (mService.mCurConfiguration.dualscreenflag == Configuration.ENABLE_DUAL_SCREEN &&
+ action == MotionEvent.ACTION_HOVER_MOVE) {
+ int x1 = (int)event.getX();
+ int y1 = (int)event.getY();
+ if (/*x1 < 15 || */x1 + 15 > screenWidth) {
+ if(!mService.isWorked("com.android.Listappinfo.ManderService")){
+ LOGV("start com.android.Listappinfo.ManderService");
+ Intent intent = new Intent();
+ intent.setClassName("com.android.Listappinfo", "com.android.Listappinfo.ManderService");
+ mService.mContext.startService(intent);
+ return -1;
+ }
+ }
+ }
3、、在 out/target/product/rk3288/system/build.prop 里添加属性 ro.htg.force=1,再./mkimage.sh ota
不知道在这里发怎么截图,这个图片地址是什么 |
|