I few people have asked me how to autostart synergy android on boot. I decided to share my script.
Make sure to install busybox from google play
--------BEGIN bc_handler.sh script
--------CUT HERE-------
!/system/bin/sh
su -c monkey -p org.synergy -c android.intent.category.LAUNCHER 1
sleep 3
su -c input touchscreen tap 1880 413
sleep 2
su -c input keyevent 3
su -c ionice $(ps | grep "synergy" | awk '{print $2}') rt 0
---------CUT HERE-------
adb root
adb shell mount -o remount,rw /system
adb push bc_handler.sh /system/bin/bc_handler.sh
adb reboot
If your screen is off it may not tap the right x/y here is the link with the correct tap x y
https://mobileqablog.wordpress.com/2016/08/20/android-automatic-touchscreen-taps-adb-shell-input-touchscreen-tap/
It works very simply first using scriptmanager it starts the script after boot.
the first command launches the android synergy app
the second taps the connect button
the third taps the home screen and exits
the final command changes the priority of the synergy to realtime (it seems to improve lag)
I few people have asked me how to autostart synergy android on boot. I decided to share my script. Make sure to install busybox from google play
--------BEGIN bc_handler.sh script --------CUT HERE------- !/system/bin/sh su -c monkey -p org.synergy -c android.intent.category.LAUNCHER 1 sleep 3 su -c input touchscreen tap 1880 413 sleep 2 su -c input keyevent 3 su -c ionice $(ps | grep "synergy" | awk '{print $2}') rt 0 ---------CUT HERE------- adb root adb shell mount -o remount,rw /system adb push bc_handler.sh /system/bin/bc_handler.sh adb reboot If your screen is off it may not tap the right x/y here is the link with the correct tap x y https://mobileqablog.wordpress.com/2016/08/20/android-automatic-touchscreen-taps-adb-shell-input-touchscreen-tap/
Then just install script manager from google play and select su,run script :) https://play.google.com/store/apps/details?id=os.tools.scriptmanager&hl=en
It works very simply first using scriptmanager it starts the script after boot. the first command launches the android synergy app the second taps the connect button the third taps the home screen and exits the final command changes the priority of the synergy to realtime (it seems to improve lag)
Enjoy