1#!/bin/sh 2 3rtrn=0 4 5adb shell mount | grep -q /sdcard 6if [ 0 -ne $? ] 7then 8 echo FAILURE: /sdcard is not mounted 9 exit 1 10fi 11 12for i in nosuid noexec 13do 14 adb shell mount | grep /sdcard | grep -q $i 15 if [ 0 -ne $? ] 16 then 17 echo FAILURE: /sdcard is not mounted $i 18 rtrn=$(expr $rtrn + 1) 19 fi 20done 21 22for i in mem kmem 23do 24 adb shell ls /dev/*mem | grep -q $i 25 if [ 0 -ne $? ] 26 then 27 echo FAILURE: $i is present on system 28 rtrn=$(expr $rtrn + 1) 29 fi 30 31done 32 33exit $rtrn 34 35