Closed leinardi closed 1 year ago
pr welcome. my computer will stuck when run emulator
I just notice that this is actually doable using adb_output()
:
device.adb_output(['emu', 'sensor', 'set', 'acceleration', '100:100:100'])
time.sleep(1)
device.adb_output(['emu', 'sensor', 'set', 'acceleration', '0:0:0'])
I would like to be able to send sensor data to the emulator. From command line I can use something like this to simulate, for example, a 1 second device shake:
It would be nice to be able to use
adbutils
to send thisemu
commands.