#!/usr/bin/env bash

set -e
set -x

BIN=`basename $1`

adb remount
adb push $1 /system/bin
adb shell chmod +x /system/bin/$BIN 
adb shell /system/bin/$BIN ${@:2}
adb shell rm /system/bin/$BIN
