How does the Android Password Manager app work?

I saw several password management apps in android, like lastpass. I am also trying to create such an application.

How do these apps work?

How do they access the third-party EditText and PasswordField?

How do they detect the login screen?

Is there any android api system for these apps?

Please give me a hint. How it works?

UPDATE

I found one useful resource on the Internet. But he said nothing about which api to use!

+4
source share
1 answer

. EditText PasswordField , api, edittext password, AccessibilityNodeInfo AccessibilityNodeInfo.ACTION_SET_TEXT. , api. , . android:packageNames="com.example" accessibility.xml .

com.example - , .

, , android.developer.

accessibility.xml

<?xml version="1.0" encoding="utf-8"?>
<accessibility-service xmlns:android="http://schemas.android.com/apk/res/android"
    android:accessibilityEventTypes="typeViewFocused|typeViewClicked"
    android:packageNames="com.example"
    android:accessibilityFeedbackType="feedbackAllMask"
    android:notificationTimeout="100"
    android:canRetrieveWindowContent="true"
    android:canRequestEnhancedWebAccessibility="true"/>
+3

Source: https://habr.com/ru/post/1583779/


All Articles