Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- # Run Command when volume button is Pressed on Android
- # no Root Needed (at lest not on my device)
- # Deferent devices the "event" file might change
- cat /dev/input/event0|\
- xxd|\
- grep '7200 0100'|\
- while read l;
- do
- echo "Button Pressed"
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement