Skip to content

Technaur/sms-listener-example

Repository files navigation

Generate the 11 character hash


  1. Build your keytool command. (I ran mine in bash, powershell might behave differently)

    Just replace com.sms_listener with your own package name. The default -alias for the debug keystore will always be androiddebugkey

    keytool -exportcert -alias androiddebugkey -keystore debug.keystore | xxd -p | tr -d "[:space:]" | echo -n <<<com.sms_listener>>> `cat` | sha256sum | tr -d "[:space:]-" | xxd -r -p | base64 | cut -c1-11
    

    OR

    ./sms_retriever_hash_v9.sh — package “com.your.packagename” — keystore /path/to/upload.keystore
    

    If you are using the debug keystore like me, it will ask for a password after you run the above command. The default password is: android

    A string will then be generated, something like this: gaMzAZ+vMRr

  2. In the extended controls for Android Emulator

    Phone --> SMS Message

    <#> Your Example app code is: 123ABC78 /gaMzAZ+vMRr
    

    Of course replacing the 11 hash characters at the end with your own :)


Bingo, it worked

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published