Sunday 31 July 2016

[GUIDE] Fixes for Deadzone error (Consuming errant click) at Navigation bar



Hello,

Recently I've had problems with my Moto X Style (XT1575), where I wasn't able to use the navigation keys. A quick look at the logcat told me that the touch registered was being ignored. It was similar to this.


Code:


[DATE] DeadZone (1070, 1436): consuming errant click

Similar problems with other Nexus phones were found here
This seems to be a digitizer issue and most people under warranty were able to get replacements. Others, like me ;), were not so lucky.

The most obvious workaround is to use pie controls. But if you want to use the navigation controls again, there is one way. The deadzone spot extends to 1 cm above the screen, so, if the height of the navigation bar was altered, the controls would seemingly work again.

NOTE: This does not fix the dead spot in the screen. It will still be there until you change the digitizer. ROOT IS REQUIRED.

Method 1: Using apktool

-> Download Apktool.
-> Open cmd and navigate to adb folder
-> Pull framework res apk: adb pull /system/framework/framework-res.apk
-> Put both the files in adb folder (so that it'll be easy).
-> java -jar apktool.jar if framework-res.apk (Installation of framework).
-> java -jar apktool.jar d framework-res.apk (This will decompile the apk).
-> Navigate to /res/values/
-> Open dimens.xml with wordpad, notepad++, etc..
-> In search type navigation, it should show you the navigation, navigation landscape with the default dpi values (48 dpi).
-> Change this to 64 dpi and save.
-> java -jar apktool.jar b framework-res (This will recompile apk).
-> Put the application in system/framework.

Method 2: Using Xposed Framework

There is an app called Xperia V Mods for Xposed framework which offers the ability to change the NavBar height. Default is 48 dpi. Change it to 64 dpi. This may not work on all phones. But luckily, it worked on mine. :p



No comments:

Post a Comment