Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pedrogabriel/adb-getevent-php-converter
Convert 'adb shell getevent' to 'sendevent' using PHP
https://github.com/pedrogabriel/adb-getevent-php-converter
cli
Last synced: 20 days ago
JSON representation
Convert 'adb shell getevent' to 'sendevent' using PHP
- Host: GitHub
- URL: https://github.com/pedrogabriel/adb-getevent-php-converter
- Owner: PedroGabriel
- Created: 2015-11-21T19:44:18.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2016-07-29T21:33:10.000Z (over 8 years ago)
- Last Synced: 2024-12-01T05:36:54.740Z (22 days ago)
- Topics: cli
- Language: PHP
- Homepage:
- Size: 1.95 KB
- Stars: 5
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# adb-getevent-php-converter
#### Convert 'adb shell getevent' to 'sendevent' using PHP
__hex2dat.php generated a .scr (not a screen saver) file based on input file and it's name.__Open your app/place you want to start
To record an action:
`$ adb shell getevent > `
Press ctrl+c / stop the proccess when you end your taskTo convert the file:
`$ php hex2dat.php `Upload into device sdcard (considering you have an sdcard):
`$ adb push .scr /sdcard/`To play the recorded action:
`$ adb shell sh /sdcard/`##### Sample:
`$ adb shell getevent > home_button_press`
Press the home button on the phone then ctrl+c/cancel this procces in `$ terminal` window`$ php hex2dat.php home_button_press`
`$ adb push home_button_press.scr /sdcard/home_button_press.scr`
`$ adb shell sh /sdcard/home_button_press.scr`And the home button was pressed :)