Python

Forwarding Android Phone SMS to WeChat Contacts via ADB

relay\_msg.py * Forward Android device SMS messages to WeChat contacts in the form of screenshots. Use Cases * An Android phone placed in the office area as a h

relay_msg.py


Forward Android device SMS messages to WeChat contacts in the form of screenshots.

Use Cases


An Android phone placed in the office area as a hotspot, linked to various apps and bank cards, needs to forward unread SMS to an iPhone.

Required Python modules


  • subprocess
  • pinyin (ADB does not support Chinese, so it must be converted to pinyin before sending, hence the need for screenshots)

Usage


python3 /path/to/relay_msg.py WeChat_contact

or

crontab -e

*/5 * * * *   /path/to/relay_msg.py wechat_contact >> /var/log/relaymsg.log 2>&1

Author


Personal homepage

norvyn@norvyn.com

Tested Platforms


  • Python 3.11
  • Gentoo Linux 2.9
  • Galaxy On7 (2016)
  • Android 8.0.0

Source Code

GitHub

N
norvyn

独立 iOS 开发者,写字的人。在一座有海的城市,慢慢地做一些小而确定的东西。An independent iOS developer and writer — slowly making small, certain things in a city by the sea.

评论Comments

加载中…Loading…

留下评论Leave a comment