#!/bin/bash
echo
adb shell wpa_cli list_n all
sleep 2
echo
adb shell am broadcast -a amazon.speech.ROUTE_DIRECTIVE --es directive '{"directive": {"header": {"namespace": "Alexa.Networking.WiFi","name": "GetProfiles","messageId": "123e4567-e89b-12d3-a456-426652350006","correlationToken": "1234"},"payload": {}}}'
sleep 80
echo
adb shell logcat -v time -b all | grep -i "getprofile"
sleep 10
..the command which starts from "am broadcast" should be given inside adb shell. Then only it's giving the exact output. Rather if i use the command out side the adb shell like "adb shell am broadcast" then it's not working. Could you please help me