Generating hash string for google sms retriever api - 'xxd' is not recognized as an internal or external command

Finally I managed to get hash key for using SMS retriever API - Android.

Steps I followed.

  1. I was using Git so it was installed on my machine. Head over to C:\Program Files\Git\usr\bin and I see that it has xxd.exe and tr.exe which was my requirement.

  2. So I added the environment variable to Path > New > C:\Program Files\Git\usr\bin

  3. Restart the cmd with administrator privileges. xxd and tr command started working.

Hope this will help others as google has stopped CALL_LOG, READ_SMS permission.

Cheers.

---------------------UPDATE-----------------------

I found an another good answer here.

Please follow the link it gives a step by step tut for creating the hash key.

I followed this because after publishing app to play store the generated hash key doesn't work any more.

How to generate 11 char hash key for Sms Retriever with Google App signing

Hope it will help someone!