Confirming bank transfers from Android notifications with 15 lines of Python
Описание и применение
Автоматическое подтверждение банковских переводов с помощью Android‑уведомлений, используя 15 строк кода Python и инструмент Droidline.
Задача
Small shops need to confirm bank transfers manually; bank APIs are costly and require contracts.
Результат
Automated confirmation of bank transfers using only free notification data, eliminating manual marking and avoiding bank API costs.
Рабочий процесс
- Install Droidline on the phone and PC
- Pair phone via QR code using
droidline pair - Run
droidline serveon PC to start server - Connect from code using
connect("s23") - Set notification filter to bank app package with
notify_filter(["com.example.bank"]) - Define callback to check notification text starts with "[Deposit]" and call
mark_paid - Register callback with
on_notification(callback=paid) - Run the script to listen for notifications
Доказательства
Small shops that take bank transfers usually confirm them by hand: the bank app shows "deposit received", someone opens the order list and marks the order paid.
The phone already gets the information for free, as a notification. So I wired the notification straight into code.
There's no ADB, no USB debugging and no root. You pair the phone once by scanning a QR code from droidline pair.
- Дата записи: 2026-10-10T01:41:02.763Z