Example Configuration
- Call the setprop method to input the acceleration sensor data.
# setprop persist.sensors.mock.id 0 # setprop persist.sensors.mock.data.x 5432.43 # setprop persist.sensors.mock.data.y 456 # setprop persist.sensors.mock.data.z 756
- View the configured acceleration data.

- Call the setprop method to input the gyroscope data.
# setprop persist.sensors.mock.id 1 # setprop persist.sensors.mock.data.x 1.12 # setprop persist.sensors.mock.data.y 2.12 # setprop persist.sensors.mock.data.z 3.12
- View the gyroscope data.

The preceding screenshots of the acceleration and gyroscope data are obtained from an internal APK. You can use a related application for verification.