Android Key logger

前端 未结 3 1817
春和景丽
春和景丽 2020-12-04 17:12

Intro: I want to create a POC on Android Security which requires to identify if there is any KeyLogger running on Android device or not. And if it is running or installed on

3条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-04 17:40

    I know this question already has an accepted answer but I disagree with the accepted answer!
    This can be done in android via the accessibility APIs.
    Take a look at the below program :

    Type Machine

    It uses the accessibility APIs, and correctly stores every key stroke you type in any application which is essentially what a key logger does!
    EDIT : I am not exactly sure what TypeMachine uses but you should be able to get the text from accessibility service using this method. For Example, the following code can be used to get a new text:

    void onViewTextChanged(AccessibilityEvent accessibilityEvent, AccessibilityNodeInfo accessibilityNodeInfo) {
         List text = accessibilityEvent.getText();
         CharSequence latestText = (CharSequence) text.get(0);
         Log.i(MY_TAG, latestText.toString());
    }
    

提交回复
热议问题