Rate This Document
Findability
Accuracy
Completeness
Readability

Example Configuration

  1. Call the setprop method to input the acceleration sensor data.
    1
    2
    3
    setprop persist.sensors.mock.acce.data.x 5432.43
    setprop persist.sensors.mock.acce.data.y 456
    setprop persist.sensors.mock.acce.data.z 756
    
  2. View the configured acceleration data.

    You can use a relevant application for verification.

  3. Call the setprop method to input the gyroscope data.
    1
    2
    3
    setprop persist.sensors.mock.gyro.data.x 1.12
    setprop persist.sensors.mock.gyro.data.y 2.12
    setprop persist.sensors.mock.gyro.data.z 3.12
    
  4. View the gyroscope data.