How to stop the LG phone launching preset applications when the phone is locked and inside your pocket? This design concerns more LG phones, in my case it's LG G2 Mini, but it was reported also on LG D605 Optimus L9 II and probably other LG phones with the same logic.

On the back of LG G2 Mini (Android 4.4.2), there are 2 buttons, which keep being pushed in my pocket.

Unfortunately, there are applications mapped (by manufacturer setting) to the up and down buttons (some drawing notes and camera) when the phone is locked. They keep being launched unwillingly in my pocket.

I've searched through all the settings but couldn't find how to get rid of this mapping and set the buttons' action to void in the phone-locked mode.

My phone is rooted so I can change the system settings but don't know where it is stored.





EDIT: In the official LG upgrade of Android (5.0.2) the problem is solved, see my answer.
NEW SOLUTION:

In the official LG update of Android (5.0.2) LG finally came themselves with an option to turn off the "feature".

Settings | System | Shortcut key





ORIGINAL so called a "solution":

After a long research, I am answering my question by stating that in Android 4 (the original version of the phone) it does not have a proper solution.

I called to LG helpdesk as well as wrote them emails. They always answered that "It's a feature, not a bug", the buttons events are hard-coded and that I can use a protective case if I want to avoid the accidental push.