Frazew / VirtualSensor

Emulates several sensors on Android devices that do not support them thanks to the Xposed Framework
GNU Lesser General Public License v3.0
101 stars 39 forks source link

Gyroscope Does Not work/move - Samsung Galaxy Grand Prime SM-G530W #20

Open JamesMacLean opened 7 years ago

JamesMacLean commented 7 years ago

Hello Developers. Thank you for making this app. Unfortunately it is not working on my phone.

My phone: Device Name: Galaxy Grand Prime Model: SM-G530W Android Version: 5.1.1 Virtual sensor version 1.41

screenshot_2016-12-21-22-05-23 1

I have installed the Xposed framework on my phone. The Xposed installer verifies that that the framework is installed. I have used an Xposed module called Device Faker (to get the vr apps to download from the play store) and this module works. The Xposed framework is not the official version though. I am using an unofficial version designed for Samsung devices. If you try to install the default version it creates bootloops because Samsung modified android to include a feature called Touchwiz. The version I installed is detailed here: https://devs-lab.com/download-install-xposed-for-samsung-devices.html

screenshot_2016-12-21-22-15-59 1

I have enabled the VirtualSensor module in Xposed installer and rebooted. When I open the VirtualSensor app the changing gyroscope readings appear on the screen and the app acknowledges that i have an accelerometer and magnetic sensor. screenshot_2016-12-21-22-02-47 1

I have tried three apps that use gyroscopes and none of them worked:

  1. Sensor Box for Android This is an app you can use to test sensors on your phone. It acknowledges that I have a gyroscope, but whenever I move the phone and try to get the colored box to rotate, the box doesn't move. screenshot_2016-12-21-22-03-16 1

  2. Google Cardboard The app works, but in the setup demo I can't rotate my view and look at the wolf. The view stays still.

screenshot_2016-12-21-22-04-02 1

  1. FullDive VR The app works, but I can't rotate my view. The view stays still

I seem to be the second user of a SM-G530 variant to have this problem. Let me know if you need any more information or any files.

Cheers, James

JamesMacLean commented 7 years ago

I have downloaded Android Studio and will try to debug and get a logcat to you in the next couple days.

iago318 commented 7 years ago

I also have a sm-g530m and the same thing happens to me

ghost commented 7 years ago

Me too, Galaxy A7 2016 and VirtualSensor is unavailable in Google Cardboard and similar apps.

Frazew commented 7 years ago

I don't have any samsung device to test the module on so it's harder for me to make it work on these devices. I had already looked into this issue a while ago and didn't find anything that would stop it from working (at least that's what I remember).

JamesMacLean commented 7 years ago

@Frazew I would like to help somehow, but I am not an android developer. But I could probably get some sort of log file for you if you give me instructions. I have been playing with the android studio android monitor tool and there do seem to be some error messages when I open up apps that use a gyro.

fahririfkinaila commented 7 years ago

I got a same problem, but with original Xposed Installer, my device is OPPO Neo 5 R1201

Frazew commented 7 years ago

I think I'll make a "debug" module that will log the state of the hooks to pin down the issue. I'll update here when I have it.

fahririfkinaila commented 7 years ago

Thanks

perritochuchu commented 7 years ago

hi, I'm test the module in a samsung prime sm-g531m, with "Sensor Kinetics Pro" the gyroscope test work fine , but in vr apks or carboards apks doesn´t work.

illtellyoulater commented 7 years ago

Got the same issue with a Moto G (first gen). Your app shows gyroscope data being updated, but all apps using gyroscope will not detect any motion.

mangstad commented 7 years ago

I don't have a Samsung device, I have a Blu Life One 4g LTE (x010q), however this is the same behavior I see with my phone. It has both an accelerometer and magnetic sensor. After installing the virtual gyroscope, activating in xposed, and rebooting, the phone passes any tests for gyroscope presence, but using it in any apps completely fails to move at all. Tried with both 1.41 and 1.5 test release.

Frazew commented 7 years ago

I see you've tried with the "1.5 test release" (I guess that means you built it yourself from the source here) but which Android version do you run ? The latest fix I did (ie commit 437457376d0897a71d679e1e54b1212a9a014ade) was only for SDK23, I did not modify the hooks for older versions. I'll do it, it's just that I was testing things on my device, which runs on Android M.

mangstad commented 7 years ago

Hmm, no I didn't compile myself. I just downloaded the apk from the v1.5-test pre-release on the "Releases" page on the repo. I'm on android 4.4.4

devian777 commented 7 years ago

Is there any progress about this? Im using grand prime g530h and facing the almost same problem. The app seems to be updating. But doesnt work with most vr app. There some app that can turn up down but very slowly but can't turn left/right. Is the left right using magnet sensor instead of compass?

Frazew commented 7 years ago

I now have some time, but unfortunately no laptop to work on. I'll try to get a build ready because it's really been a while and there are some issues fixed (hopefully). Indeed, left/right is using the compass. It seems to be the main issue everyone's having, we'll see if the next build fixes it (I remember fixing it, but I'm not sure about that).

LudwigVan33 commented 6 years ago

Moto G (2015) user here, it works well for nougat I can watch 360 youtube vídeos can move to everywhere the problemas is when I press the VR carboard button it loads smooth, i can watch the vídeo, cant pause or skip forward i dont know if its how it works, but cant move top, down, left or right, just like the report in this issue. Regards