T
T
t38c3j2018-08-15 04:15:04
linux
t38c3j, 2018-08-15 04:15:04

How to get smartphone sensor readings via adb?

Ruth is right. It is necessary to pull out either raw or already formed indicators of various sensors such as accelerometer, gyroscope, proximity ... I tried to sort out / dev /. no success. Where in android can I get these readings through the terminal? Ie so that it was not necessary to write an application also for smart.
PS.1
Android 8.1 costs if anything.
PS2

getevent output
land:/ # getevent
add device 1: /dev/input/event6
  name:     "uinput-fpc"
add device 2: /dev/input/event5
  name:     "msm8952-sku1-snd-card Button Jack"
add device 3: /dev/input/event4
  name:     "msm8952-sku1-snd-card Headset Jack"
add device 4: /dev/input/event0
  name:     "qpnp_pon"
add device 5: /dev/input/event2
  name:     "gf3208"
could not get driver version for /dev/input/mice, Not a typewriter
add device 6: /dev/input/event3
  name:     "gpio-keys"
add device 7: /dev/input/event1
  name:     "ft5x06_720p"

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Radjah, 2018-08-15
@Radjah

You can look in / sys, everything usually sticks out there.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question