SudaMod / android_frameworks_base

Other
6 stars 14 forks source link

一加一黑屏手势失效 #16

Closed wuyi-levard closed 7 years ago

wuyi-levard commented 7 years ago

编译过lineageos和CM都没有问题,不知道是不是三指截屏之类的功能冲突

ghbhaha commented 7 years ago

因该不是三指截屏的问题

wuyi-levard commented 7 years ago

我看了RR也有三指截屏,对比了代码没有发现问题,同时移除了长按电源键开启手电筒,还是失效,会不会是晃动清理的问题?我找不到其他的原因

ghbhaha commented 7 years ago

额 刚准备让你看看是不是手电筒的原因

wuyi-levard commented 7 years ago

我昨天试过了,手电筒移除了还是不行

ghbhaha commented 7 years ago

我暂时也不清楚了 有段时间我没弄

sdhz151 commented 7 years ago

合这几样设置没有关系。我自己的源码这几样都有添加,正常

2017年1月1日 上午11:38,"wuyi-ligux" notifications@github.com写道:

我看了RR也有三指截屏,对比了代码没有发现问题,同时移除了长按电源键开启手电筒,还是失效,会不会是晃动清理的问题?我找不到其他的原因

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/SudaMod/android_frameworks_base/issues/16#issuecomment-269891104, or mute the thread https://github.com/notifications/unsubscribe-auth/AQd87lcNgnP7GpUprY8SOjWY9JRWl96zks5rNx-bgaJpZM4LYqIU .

wuyi-levard commented 7 years ago

sdhz151,你也是用一加?我编译的小米4C因为没有黑屏手势,这些也没有问题

sdhz151 commented 7 years ago

我的是一加二,不是suda的源码,说的是 这几样设置 没有冲突

2017年1月1日 上午11:43,"wuyi-ligux" notifications@github.com写道:

sdhz151,你也是用一加?我编译的小米4C因为没有黑屏手势,这些也没有问题

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/SudaMod/android_frameworks_base/issues/16#issuecomment-269891202, or mute the thread https://github.com/notifications/unsubscribe-auth/AQd87ngy-9OVZISg0-z1z5HxGY8h4K5xks5rNyDGgaJpZM4LYqIU .

wuyi-levard commented 7 years ago

那就奇怪了,真不知道那里出的问题

ghbhaha commented 7 years ago

https://github.com/SudaMod/android_frameworks_base/blob/sm-3.0/services/core/java/com/android/server/policy/PhoneWindowManager.java 把这个换成初始的试试

wuyi-levard commented 7 years ago

恩,昨天已经试过把这个里面的手电筒屏蔽了,今天彻底屏蔽掉试试

wuyi-levard commented 7 years ago

加了T9最好把contactsprovider的hanzi2pinyin也更新一下,使用自己的源吧

ghbhaha commented 7 years ago

邀请你了 你帮忙改下吧 出去有事了

wuyi-levard commented 7 years ago

好的

wuyi-levard commented 7 years ago

对了,短信的issues你没开,现在有个bug,不管归档是不是开启的,所有短信都会自动归档,有空要修复一下

ghbhaha commented 7 years ago

我没发现啊

wuyi-levard commented 7 years ago

我这里有人反馈,我也试了一下,我的开关都是关闭的,收到短信就自动归档进去了,进入短信界面是空的

wuyi-levard commented 7 years ago

换成初始的还是没用。。。。看来不是这里的问题,我再试试其他的

sdhz151 commented 7 years ago

是不是 光 手电筒 失效 黑屏手势 相机正常

2017年1月1日 下午5:03,"wuyi-ligux" notifications@github.com写道:

换成初始的还是没用。。。。看来不是这里的问题,我再试试其他的

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/SudaMod/android_frameworks_base/issues/16#issuecomment-269896378, or mute the thread https://github.com/notifications/unsubscribe-auth/AQd87hjSQ_P3JBeQrUqrG331HM-ecPLtks5rN2vjgaJpZM4LYqIU .

sdhz151 commented 7 years ago

packages/SystemUI/res/values/config.xml

false

改成

true

回着在 device/oneplus/./overlay/frameworks/base/packages/SystemUI/res/values/config.xml

添加

true

看看可以不

2017年1月2日 下午12:16,",杨辉" yanghui140@gmail.com写道:

是不是 光 手电筒 失效 黑屏手势 相机正常

2017年1月1日 下午5:03,"wuyi-ligux" notifications@github.com写道:

换成初始的还是没用。。。。看来不是这里的问题,我再试试其他的

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/SudaMod/android_frameworks_base/issues/16#issuecomment-269896378, or mute the thread https://github.com/notifications/unsubscribe-auth/AQd87hjSQ_P3JBeQrUqrG331HM-ecPLtks5rN2vjgaJpZM4LYqIU .

wuyi-levard commented 7 years ago

不是,是整个黑屏手势,除了双击唤醒,全部失效,比如画圈开相机,画V开手电,控制音乐,整个附加设置都废了

sdhz151 commented 7 years ago

哦 那就不知道了

2017年1月2日 下午1:31,"wuyi-ligux" notifications@github.com写道:

不是,是整个黑屏手势,除了双击唤醒,全部失效,比如画圈开相机,画V开手电,控制音乐,整个附加设置都废了

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/SudaMod/android_frameworks_base/issues/16#issuecomment-269935581, or mute the thread https://github.com/notifications/unsubscribe-auth/AQd87h2_eYGSQr5VokUbYkcbOB6dz5I7ks5rOIuigaJpZM4LYqIU .

wuyi-levard commented 7 years ago

我现在把整个SUDA添加的手势都还原了,试试看还会不会失效,如果不会,那就是这里的问题了

YumeMichi commented 7 years ago

姑且看看logcat能捕捉到黑屏手势事件

wuyi-levard commented 7 years ago

01-02 13:56:42.880 2513 2814 I PowerManagerService: Waking up from sleep (uid 1000)... 01-02 13:56:42.881 2513 2513 V KeyguardServiceDelegate: onStartedWakingUp() 01-02 13:56:42.887 3031 3031 W FingerprintManager: isFingerprintHardwareDetected(): Service not connected! 01-02 13:56:42.893 2513 2582 I DisplayPowerController: Blocking screen on until initial contents have been drawn. 01-02 13:56:42.894 2513 2582 V KeyguardServiceDelegate: onScreenTurnedOn(showListener = com.android.server.policy.PhoneWindowManager$2@79881d8) 01-02 13:56:42.894 2513 2582 I qti_sensors_hal: TMG-3993 Ambient: batch 4.00 inf 01-02 13:56:42.897 2513 2582 I qti_sensors_hal: TMG-3993 Ambient: activate=1 01-02 13:56:42.901 2513 2814 I QCOM PowerHAL: Got set_interactive hint 01-02 13:56:42.903 2513 2962 D Prevent : screen on 01-02 13:56:42.906 271 8058 D audio_hw_primary: adev_set_parameters: enter: screen_state=on 01-02 13:56:42.910 2513 2580 I DisplayManagerService: Display device changed state: "内置屏幕", ON 01-02 13:56:42.912 2513 4142 I qti_sensors_hal: TMG-3993 IR_Gesture & Proximity: batch 50.00 inf 01-02 13:56:42.912 2513 4142 I qti_sensors_hal: TMG-3993 IR_Gesture & Proximity: activate=1 01-02 13:56:42.912 255 255 D SurfaceFlinger: Set power mode=2, type=0 flinger=0xb6832000 01-02 13:56:42.912 255 255 D qdhwcomposer: hwc_setPowerMode: Setting mode 2 on display: 0 01-02 13:56:42.930 2513 2644 V KeyguardServiceDelegate: SHOWN CALLED 01-02 13:56:42.986 2513 2582 I DisplayPowerController: Unblocked screen on after 93 ms 01-02 13:56:42.986 2513 2582 V KeyguardServiceDelegate: onScreenTurnedOn() 01-02 13:56:43.143 4049 4237 D BrcmNfcJni: RoutingManager::nfaEeCallback: NFA_EE_SET_TECH_CFG_EVT; status=0x0 01-02 13:56:43.144 4049 4237 D BrcmNfcJni: RoutingManager::nfaEeCallback: NFA_EE_SET_PROTO_CFG_EVT; status=0x0 01-02 13:56:43.144 4049 25009 D BrcmNfcJni: RoutingManager::commitRouting 01-02 13:56:43.144 4049 4237 D BrcmNfcJni: RoutingManager::nfaEeCallback: NFA_EE_UPDATED_EVT 01-02 13:56:43.145 4049 4245 E NxpTml : _i2c_write() errno : 5 01-02 13:56:43.145 4049 4245 E NxpTml : PN54X - Error in I2C Write..... 01-02 13:56:43.145 4049 4247 E NxpHal : write error status = 0x1ff 01-02 13:56:43.145 4049 4237 E NxpHal : write_unlocked failed - PN54X Maybe in Standby Mode - Retry 01-02 13:56:43.181 255 384 I qdhwcomposer: handle_blank_event: dpy:0 panel power state: 1 01-02 13:56:43.183 255 255 D qdhwcomposer: hwc_setPowerMode: Done setting mode 2 on display 0 01-02 13:56:43.184 2513 2979 D SurfaceControl: Excessive delay in setPowerMode(): 274ms 01-02 13:56:44.469 2513 2814 I PowerManagerService: Going to sleep due to power button (uid 1000)... 01-02 13:56:44.477 3031 3031 W FingerprintManager: isFingerprintHardwareDetected(): Service not connected! 01-02 13:56:44.481 2513 2582 W Adreno-EGL: : EGL_BAD_ATTRIBUTE 01-02 13:56:44.953 2513 2582 V KeyguardServiceDelegate: onScreenTurnedOff() 01-02 13:56:44.956 2513 3449 I qti_sensors_hal: TMG-3993 IR_Gesture & Proximity: activate=0 01-02 13:56:44.972 2513 2582 I qti_sensors_hal: TMG-3993 Ambient: activate=0 01-02 13:56:44.978 2513 2580 I DisplayManagerService: Display device changed state: "内置屏幕", OFF 01-02 13:56:44.981 255 255 D SurfaceFlinger: Set power mode=0, type=0 flinger=0xb6832000 01-02 13:56:44.981 255 255 D qdhwcomposer: hwc_setPowerMode: Setting mode 0 on display: 0 01-02 13:56:45.200 255 384 I qdhwcomposer: handle_blank_event: dpy:0 panel power state: 0 01-02 13:56:45.206 255 255 D qdhwcomposer: hwc_setPowerMode: Done setting mode 0 on display 0 01-02 13:56:45.206 2513 2979 D SurfaceControl: Excessive delay in setPowerMode(): 228ms 01-02 13:56:45.209 2513 2582 I QCOM PowerHAL: Got set_interactive hint 01-02 13:56:45.214 2513 2582 I PowerManagerService: Sleeping (uid 1000)... 01-02 13:56:45.229 2513 2962 D Prevent : screen off 01-02 13:56:45.237 3031 3031 D PhoneStatusBar: disable: < expand ICONS alerts SYSTEM_INFO back HOME RECENT clock SEARCH quick_settings > 01-02 13:56:45.241 3031 3031 W FingerprintManager: isFingerprintHardwareDetected(): Service not connected! 01-02 13:56:45.245 3031 3031 W FingerprintManager: isFingerprintHardwareDetected(): Service not connected! 01-02 13:56:45.247 271 558 D audio_hw_primary: adev_set_parameters: enter: screen_state=off 01-02 13:56:45.247 3031 3031 W FingerprintManager: isFingerprintHardwareDetected(): Service not connected! 01-02 13:56:45.252 3024 3024 I GoogleInputMethod: onReceive() : Action = android.intent.action.SCREEN_OFF 01-02 13:56:45.281 4049 4245 E NxpTml : _i2c_write() errno : 5 01-02 13:56:45.281 4049 4245 E NxpTml : PN54X - Error in I2C Write..... 01-02 13:56:45.281 4049 4247 E NxpHal : write error status = 0x1ff 01-02 13:56:45.281 4049 4237 E NxpHal : write_unlocked failed - PN54X Maybe in Standby Mode - Retry

wuyi-levard commented 7 years ago

黑屏下手势完全没有log

wuyi-levard commented 7 years ago

还原了所有手势,还是不行。。。。汗!!!

YumeMichi commented 7 years ago

我拿X编译一个试试看 很久没用SudaMod了正好要弄AOSP顺便一起 (:з」∠)

wuyi-levard commented 7 years ago

X和1配置基本一样,不知道你的会不会出问题

YumeMichi commented 7 years ago

真有一样的问题 而且我连三段式都无效了

ghbhaha commented 7 years ago

我看了下 com.cyanogenmod.keyhandler.jar这个jar没有生成

YumeMichi commented 7 years ago

看了一下我这里有生成这个文件

ghbhaha commented 7 years ago

https://github.com/SudaMod/android_frameworks_base/blob/sm-3.0/services/core/java/com/android/server/policy/PhoneWindowManager.java 把debug设成true再看看有没有相关日志呢 ,暂时也不清楚了

YumeMichi commented 7 years ago

logcat 手势和三段式

01-02 17:34:02.793  1727  3225 D WindowManager: interceptKeyTq keycode=0 interactive=false keyguardActive=true policyFlags=2000000
01-02 17:34:02.794  1727  3225 D WindowManager: interceptKeyTq keycode=0 interactive=false keyguardActive=true policyFlags=2000000
01-02 17:34:04.857  1727  3225 D WindowManager: interceptKeyTq keycode=0 interactive=false keyguardActive=true policyFlags=2000000
01-02 17:34:04.857  1727  3225 D WindowManager: interceptKeyTq keycode=0 interactive=false keyguardActive=true policyFlags=2000000
01-02 17:34:05.811  1727  3225 D WindowManager: interceptKeyTq keycode=0 interactive=false keyguardActive=true policyFlags=2000000
01-02 17:34:05.811  1727  3225 D WindowManager: interceptKeyTq keycode=0 interactive=false keyguardActive=true policyFlags=2000000
01-02 17:34:20.312  1727  3225 D WindowManager: interceptKeyTq keycode=0 interactive=false keyguardActive=true policyFlags=2000000
01-02 17:34:20.316  1727  3225 D WindowManager: interceptKeyTq keycode=0 interactive=false keyguardActive=true policyFlags=2000000
01-02 17:34:21.583  1727  3225 D WindowManager: interceptKeyTq keycode=0 interactive=false keyguardActive=true policyFlags=2000000
01-02 17:34:21.584  1727  3225 D WindowManager: interceptKeyTq keycode=0 interactive=false keyguardActive=true policyFlags=2000000
01-02 17:34:22.295  1727  3225 D WindowManager: interceptKeyTq keycode=0 interactive=false keyguardActive=true policyFlags=2000000
01-02 17:34:22.298  1727  3225 D WindowManager: interceptKeyTq keycode=0 interactive=false keyguardActive=true policyFlags=2000000
01-02 17:34:23.190  1727  3225 D WindowManager: interceptKeyTq keycode=0 interactive=false keyguardActive=true policyFlags=2000000
01-02 17:34:23.193  1727  3225 D WindowManager: interceptKeyTq keycode=0 interactive=false keyguardActive=true policyFlags=2000000
01-02 17:34:23.214  1727  3225 D WindowManager: interceptKeyTq keycode=0 interactive=false keyguardActive=true policyFlags=2000000
01-02 17:34:23.215  1727  3225 D WindowManager: interceptKeyTq keycode=0 interactive=false keyguardActive=true policyFlags=2000000
01-02 17:34:23.588  1727  3225 D WindowManager: interceptKeyTq keycode=0 interactive=false keyguardActive=true policyFlags=2000000
01-02 17:34:23.589  1727  3225 D WindowManager: interceptKeyTq keycode=0 interactive=false keyguardActive=true policyFlags=2000000
wuyi-levard commented 7 years ago

我测试过lineage,是没有问题的,现在还原代码一大半了,剩下后台锁和状态栏的代码没有还原,可以排除其他的可能

sdhz151 commented 7 years ago

先还原cm_platform_sdk看看

2017年1月2日 下午5:53,"wuyi-ligux" notifications@github.com写道:

我测试过lineage,是没有问题的,现在还原代码一大半了,剩下后台锁和状态栏的代码没有还原,可以排除其他的可能

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/SudaMod/android_frameworks_base/issues/16#issuecomment-269951381, or mute the thread https://github.com/notifications/unsubscribe-auth/AQd87uFuHEOla_n1Lhj00PcCOu4jFAzOks5rOMksgaJpZM4LYqIU .

wuyi-levard commented 7 years ago

试过了,还是不行

wuyi-levard commented 7 years ago

后台锁排除

wuyi-levard commented 7 years ago

整个base都还原了,现在不调用sudasdk试试。。。。

ghbhaha commented 7 years ago

真够有毅力

wuyi-levard commented 7 years ago

欲哭无泪

wuyi-levard commented 7 years ago

没黑屏开手电真不习惯

ghbhaha commented 7 years ago

加qq吧 这里太不方便了

wuyi-levard commented 7 years ago

58865341,你加我吧

ghbhaha commented 7 years ago

https://github.com/SudaMod-devices/android_device_oppo_common/commit/30ad5c42613380d83428fa950025193655a6f617 把hasSetupCompleted()默认返回true就行,开机引导被我去掉了

wuyi-levard commented 7 years ago

原来是这个。。。。SM没编译开机引导app。。。。夭寿

YumeMichi commented 7 years ago

(:з」∠)