Follow the below-mentioned steps to enable sensors in android guest in CiV:
Step 1: Run iiod daemon in Ubuntu Host OS.
-
Check if iiod daemon running in host
- $ps -ef | grep -i iiod
- $ps -ef | grep -i iiod
-
If not running install the iiod daemon.
- $sudo apt install iiod
- sudo ./iiod &
- $sudo apt install iiod
Step 2: Launch android in CIV and set ip address property.
- $adb root
- $adb shell
- #setprop ipaddr <Host_ip_addr>
Step 3: Install any third-party sensor android apk in CIV
- Verify the sensors list in App.
E.g. Test Apk "Sensor_Test.apk".