我要评分
获取效率
正确性
完整性
易理解

Example Configuration

  1. 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
  2. View the configured acceleration data.

  3. 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
  4. 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.