How to connect 2 smartphones via USB to get the 1st to control applications running on the 2nd?
I don't mean the connection to be limited to screen mirroring or off-lione file transfer only.
I need 1st smartphone to control applications running on 2nd smartphone in interactive mode, exactly as I can control applications run on Android board connected to PC via USB cable.
Ok, OTG and host mode supported since modern smartphones intended to work in parallel.
Another related question: How to start an application using android ADB tools?
A couple of examples:
adb shell am start -a android.intent.action.MAIN -n
com.android.settings/.Settings
will launch Settings, and
adb shell am start -a android.intent.action.MAIN -n
com.android.browser/.BrowserActivity
will launch the Browser. If you want to point the Browser at a particular page, do this
adb shell am start -a android.intent.action.VIEW -n
com.android.browser/.BrowserActivity http://www.google.co.uk
From: How to run (not only install) an android application using .apk file?
follow-up 2
connected my 5.0.2 Android smartphone to 4.0.2 Android tablet via microUSB2USB cable inserted into OTG USB2micxroUSB to get microUSB on both hands Enabled usb debugging on both devices, run adb daemon on port 5038 on smartphone. None device connected, no TCPIP established In programming mode I need to select debugging app on tablet: one suggested by default is: com.android.partnerbrowsercustomizations.example other option is None Should I select the above or install one another, called ???