Android Keylogger

 ̄綄美尐妖づ 提交于 2020-12-05 20:21:21

问题


I am writing an application for the Android for an examination. One of the features of the application is the keylogger that captures everything that user types. I didn't understand how I could implement the functionality of keylogger, if is possible to catch everything a user types and unfortunately I found very little code in the network. Can anyone help me? Thanks for the attention


回答1:


I might be wrong but I believe that your application can catch only those inputs which were made inside the application. I do not think Android gives you the ability to capture all the key events in all the applications, from your application. So, you can get only those key-events which were targeted to your application in particular..

EDIT : I looked around on the internet and it seems that there a few unethical ways of doing this. You can create your own custom keyboard and catch the inputs from there. Another way of achieving this would be to run a service in the background with a KeyListener activity to catch the key-events.



来源:https://stackoverflow.com/questions/12432498/android-keylogger

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!