velitasali/devicecontroller ? reverse-engineered prompt
Reverse engineered prompt
Build me a silent remote control app for Android that can run in the background on older devices too, starting from API 14 and up.
It should act like a small server on the phone, listen on port 4632, and accept JSON commands from another device. Make it password protected so only someone with the right password can use it, and have it restart itself when the network changes. It should also watch incoming SMS messages and react to ones that start with a curly brace, since those are meant to be command messages.
I also want an option to enable device administrator permissions for extra control features. Please include a simple way to see what commands are supported, and make sure the remote control side is easy to connect to from another Android app on the same network. If you need to check current Android docs or networking details, look them up online first.