Tuesday, December 27, 2016

Broken Screen + Using adb shell to run vnc server



I have an HTC HD2 with a completely busted screen, I tried repairing it with a replacement screen but broke the ribbon cable to the screen (oops) sad day,


I've got two of these and I've been running them as servers and ipcam cameras.


I started using qtadb, which did work on my phone despite a broken screen. I installed droid VNC Server beta using the file manager on qtadb. I grabbed the app's manifest:









































and I have tried several things to start and run the service using the console on qtadb. I have tried running:



am start -a android.intent.action.MAIN -n org.onaips.vnc/com.mobclix.android.sdk.MobclixBrowserActivity

am start -a android.intent.action.MAIN -n org.onaips.vnc/org.onaips.vnc.MainActivity

am start -n org.onaips.vnc/com.mobclix.android.sdk.MobclixBrowserActivity

am start -n org.onaips.vnc/org.onaips.vnc.MainActivity


am startservice -a android.intent.action.MAIN -n org.onaips.vnc/com.mobclix.android.sdk.MobclixBrowserActivity


am startservice -a android.intent.action.MAIN -n org.onaips.vnc/org.onaips.vnc.MainActivity

etc....


I test each time by NMAPing my device's ip address, no new ports show up. (I don't have a firewall)


But on a working phone, it doesn't start when you run the app; it starts when you press the run button. So How do I press the run button with a broken screen?


I just need vnc server to run so i can actually do some config things to run debian and my video server on it.



Answer



Use adb shell am start -a android.intent.action.Main -n org.onaips.vnc/.MainActivity outside the shell, and the VNC server will start.


No comments:

Post a Comment

samsung galaxy s 2 - Cannot restore Kies backup after firmware upgrade

I backed up my Samsung Galaxy S2 on Kies before updating to Ice Cream Sandwich. After the upgrade I tried to restore, but the restore fails ...