How to shake a virtual device created by Genymotion (Android Emulator)

I created a virtual device using Genymotion. I want to test an application that works with shaking a device. How can I make a virtual device shake? I could not find how to shake this device.

+5
source share
3 answers

⌘ + m works for OSX and also works in Genymotion

+4
source

This method only works with api up to 15

For accelerator tests and other similar gravity, a gyroscope, ... can use this application.

Download sensorsimulator first

These are 2 applications. One installation (SensorSimulatorSettings-2.0-rc1.apk) in the second emulator (sensorimulator-2.0-rc1.jar) is performed on your PC.

Additional information and a complete tutorial

enter image description here

Genymotion does not support this feature:

Additional Information Genymotion Shell

Another way:

You can use the Android Studio Android 6.0 emulator (Google APIS) x86.

This emulator (all x86 / x64 bits) is very fast and supports all sensors. enter image description here

Like this: enter image description here

+3
source

There is no native way to emulate jitter in genymotion, but you can try a tool like Frappe (Mac only) to send the vibration action to a virtual device. Depending on the client you are trying to emulate, the "input" input key "82" adb shell "may send a shake action, wake the device or simulate a menu key press.

+1
source

Source: https://habr.com/ru/post/1268529/


All Articles