Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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 task

To 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 :)