
build_binary = "pyinstaller --onefile enplug_device.py --distpath ../bin/"
clear_cache = "adb shell pm clear com.enplug.player"
reboot = "adb shell reboot"
set_version = "adb shell sqlite3 /data/data/com.enplug.player/databases/settings.db \"delete from Settings where key='ZoningHostUrl'; insert into Settings values ('ZoningHostUrl', 'https://player.enplug.in/{0}/');\""
set_version_old = "adb shell sqlite3 /data/data/com.enplug.player/databases/settings.db \"insert into Settings values ('ZoningHostUrl', 'https://player.enplug.in/{0}/');update Settings set value='https://player.enplug.in/{0}/';\""
delete_custom_zoning_host_url = "adb shell sqlite3 /data/data/com.enplug.player/databases/settings.db \"delete from Settings where key='ZoningHostUrl';\""
make_sdcard_writable = "adb shell mount -o rw,remount rootfs /"
copy_player_file_to_device = "adb push Player.apk '/sdcard/Download'"
uninstall_package = "adb uninstall com.enplug.player"
install_package = "adb install Player.apk"
set_staging_flag_in_db = "adb shell sqlite3 /data/data/com.enplug.player/databases/settings.db \"delete from settings where key='eduid';delete from settings where key='eduid';delete from settings where key='edutoken';delete from settings where key='eduname';insert into settings (key, value) values ('environment', 'staging');update settings set value='staging' where key='environment';\""