How can i build an app to control an android device from another android device?

How can i build an app to control an android device from another android device

You cannot control other Android devices using the mit app Inventor