#!/bin/sh topdir=$(dirname $0) adb root | grep "^root access" ret="$?" if [ "${ret}" -ne 0 ] ; then adb wait-for-device adb remount adb push "${topdir}/device-files/graphics.sh" /system/bin/ adb shell "mount -o remount,ro /system" adb shell "sync" fi