#!/bin/bash

#TYPE_ACCELEROMETER = 1; TYPE_MAGNETIC_FIELD = 2; TYPE_ORIENTATION = 3;
#TYPE_LIGHT = 5;         TYPE_PRESSURE = 6;       TYPE_TEMPERATURE = 7;
#TYPE_PROXIMITY = 8;     TYPE_GRAVITY = 9;

sensorType=$1
logcat -c
am instrument -w  -e sensorType $sensorType -e class com.marvell.apse.factorytest.SensorTest#testReadSensorData com.marvell.apse.factorytest/.FactoryTestRunner
logcat -d -s FactoryTestResule
