To set the Preferred service for passwords, passkeys & autofill to a specific app on LineageOS (or any Android-based system) using ADB, you can use the following command:
bashadb shell cmd autofill set_service <package_name_of_your_app>
Replace <package_name_of_your_app> with the actual package name of the app you want to set as the default (e.g., com.example.passwordmanager).
This command directly sets the autofill service preference via ADB, which is useful for automation or when UI access is limited. If you need to find the package name of your app, you can use:
bashadb shell pm list packages | grep -i "password"
This will list all installed packages related to password managers, helping you identify the correct package name to use in the set_service command.
If you need further assistance with the exact package name or troubleshooting, let me know!