2 # Telephony Debug Intents
7 # Get the command as the first parameter
13 if [ "$1" == "" ]; then
14 echo "Usage: $file_name $cmd <dc> <count> <cause> <retry-time>"
15 echo " <dc> must specifiy the DataConnection such as DC or GsmDC-1"
16 echo " <count> := number of times to retry"
17 echo " <cause> := From DataConnection.FailCause; such as -3 for SIGNAL_LOST"
18 echo " <retry-time> := suggested retry time in milli-seconds"
24 if [ "$2" != "" ]; then
25 counter="--ei counter $2";
27 echo "counter=$counter"
29 if [ "$3" != "" ]; then
30 fail_cause="--ei fail_cause $3";
32 echo "fail_cause=$fail_cause"
34 if [ "$4" != "" ]; then
35 suggested_retry_time="--ei suggested_retry_time $4";
37 echo "suggested_retry_time=$suggested_retry_time"
40 adb shell am broadcast -a com.android.internal.telephony.$the_DC.action_fail_bringup $counter $fail_cause $suggested_retry_time
46 # Add more commands in the future
47 *) echo 'Broadcast telephony debug intents'; echo 'usage: tdi [dce]'; echo ' dce=DC errors';;