- Grab a screen recording using the
screenrecord.sh
file. - Get a tool such as ScreenFlow, drop in a device frame and then drop in the recording. Crop as needed
- Export to mp4
- Convert mp4 to gif using GifBrewery
You can grab device art from https://developer.android.com/distribute/tools/promote/device-art.html .