mqtt2exec/README.md

27 lines
516 B
Markdown
Raw Permalink Normal View History

2024-12-22 20:19:23 +01:00
# Setup
Root android with magisk
Install busybox
Create init script at `/data/adb/service.d/mqtt2exec.sh`
```shell
#!/system/bin/sh
/system/xbin/start-stop-daemon -S -b /system/xbin/mqtt2exec -- tcp://ENDPOINT:1883 CLIENT_ID USERNAME PASSWORD
exit 0
```
Set it as executable: `chmod +x /data/adb/service.d/mqtt2exec.sh`
Install binary:
```shell
adb push mqtt2exec /storage/emulated/0/mqtt2exec
adb shell
su
mv /storage/emulated/0/mqtt2exec /system/xbin/mqtt2exec
chmod +x /system/xbin/mqtt2exec
```
Reboot :)