Nexus 4 can have a very unpleasant problem with the navigation buttons, like in this video:
Solution of the problem was not known for a long time: Bugreport Indignant at this misunderstanding, I began to look for a solution and found it. ')
Who is too lazy to read, but the problem is https://github.com/gkraynov/nexus-4-navfix Someone suggested even particularly tough decisions . I could not believe that the problem lies solely in the hardware bug. After tinkering in the system of processing sensory events, an interesting thing is noticed - the deadzone. Whenever you type a message, the navigation bar is locked for a short time to avoid reacting to random keystrokes. Unfortunately, the Nexus 4 under mysterious circumstances can simply begin to block this zone forever. The easiest way was to turn off this zone altogether, after all, it's better than nothing. In order not to complicate the lives of users, I wrote a script that automatically generates the desired patch.
The algorithm is pretty simple: 1. Downloading SystemUI.apk via ADB 2. Unpack resources 3. The size of the deadzone is set to 0dip 4. Packed back 5. Create UPDATE.zip
In addition, there is still an update for rollback changes, which makes it easy to apply OTA updates and repeat the operation. Root is not required, only custom recovery. For Android 5.0.1, there is an already built package https://github.com/gkraynov/nexus-4-navfix/releases
If there are ideas for improvement, I would be grateful.