am 5fe6e4c4: Merge "Rewrite input handling for native applications" into jb-mr2-dev

* commit '5fe6e4c4c9de523fa9e74902473996ce5ee8b298':
  Rewrite input handling for native applications