1#!/system/bin/sh
2
3LOG_FILE="/data/misc/touchfwup/rmi4update.txt"
4
5echo -n "Updater date/time: " > ${LOG_FILE}
6date >> ${LOG_FILE}
7echo "Pre-update Firmware version:" >> ${LOG_FILE}
8/system/bin/rmi4update -d /dev/hidraw0 -p >> ${LOG_FILE} 2>&1
9
10/system/bin/rmi4update -d /dev/hidraw0 /vendor/firmware/synaptics.img >> ${LOG_FILE} 2>&1
11
12echo "Post-update Firmware version:" >> ${LOG_FILE}
13/system/bin/rmi4update -d /dev/hidraw0 -p >> ${LOG_FILE} 2>&1
14
15chmod a+r ${LOG_FILE}
16