1 #!/bin/sh 2 3 rtrn=0 4 5 adb shell mount | grep -q /sdcard 6 if [ 0 -ne $? ] 7 then 8 echo FAILURE: /sdcard is not mounted 9 exit 1 10 fi 11 12 for i in nosuid noexec 13 do 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 20 done 21 22 for i in mem kmem 23 do 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 31 done 32 33 exit $rtrn 34 35