Skip to content

Instantly share code, notes, and snippets.

@GluTbl
Last active June 6, 2021 03:55
Show Gist options
  • Save GluTbl/32a214c96dc12f3a7405e52380056551 to your computer and use it in GitHub Desktop.
Save GluTbl/32a214c96dc12f3a7405e52380056551 to your computer and use it in GitHub Desktop.
[DroidVNC] #shell #linux
#!/bin/bash
echo "Connecting to the adb of the droid"
adb connect 192.168.29.246 &&
echo "Giving Accessibility Permision...."
adb shell "su -c 'settings put secure enabled_accessibility_services net.dinglisch.android.taskerm/net.dinglisch.android.taskerm.MyAccessibilityService:com.joaomgcd.autoinput/com.joaomgcd.autoinput.service.ServiceAccessibility:de.abr.android.avnc/de.abr.android.scclib.etc.AcService'" &&
sleep 5
echo "Launching app...."
adb shell am start -n de.abr.android.avnc/de.abr.android.avnc.activity.VncActivity &&
echo
echo "Done"
echo
echo "The following command might be usefull:"
echo
echo "adb shell pidof de.abr.android.avnc"
echo
echo "adb shell netstat -lptn"
echo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment