The recent hype Pokémon Go game had shown that augmented reality (AR) can be really great, but to get most out of it your device should have Gyroscope sensor built-in. Most AR apps use a phone’s gyroscope sensor, but unfortunately most low to mid-range Android smartphones do not have Gyroscope sensor installed, so augmented reality capabilities severely decreased on these devices. But, don’t worry, you can enable Gyroscope on any Android phone.
With GyroEmu Xposed module, you can simulate Gyroscope on any Android phone, if the phone has built-in Accelerometer and Magnetometer. Thanks to XDA developer Mourdraug, his GyroEmu Xposed module replicates Gyroscope (virtual Gyroscope) by utilizing your phone’s accelerometer and magnetometer.
The Xposed module ‘GyroEmu’ is still in developing stage, so it may not give pure output at present, but the developer is working on it to make a perfect Gyroscope emulator for any Android phone.
Here is how GyroEmu simulate Gyroscope on an Android phone:
“Module works by creating new Sensor instance and injecting it into SystemSensorManager sensor list after its constructor, so getDefaultSensor(Sensor.TYPE_GYROSCOPE) will return it.
Module registers then SensorEventListeners for accel and magnet sensors and does it’s calculations on accelerometers update and calls onSensorChanged of listener that uses it’.