Can some one please help me edit the Daydream related APK's to automatically pass the checks in /system/etc/permissions/handheld_core_hardware.xml for <feature name="android.software.vr.mode" /> and <feature name="android.hardware.vr.high_performance" /> ?
From my limited understanding, this would allow users without root and on unsupported phones like ours to try out/use the Daydream headset and controller as long as they are running the minimum OS version. (7.0, 7.1.1 etc...)
Right now if I just install the needed APK files I can open up Daydream and launch into VR mode (with a warning I can press OK on) but once in VR mode the controller will not sync, so you end up being stuck till you exit.
I would like to get back to shooting zombie chickens without root.
I hope that only the Google VR Services APK (https://www.apkmirror.com/apk/google-inc/google-vr-services-daydream/) needs to be edited/patched but here are the links to the other related APK's needed for Daydream just in case:
Daydream https://www.apkmirror.com/apk/google-inc/daydream-daydream/
Daydream Keyboard https://www.apkmirror.com/apk/google-inc/daydream-keyboard-daydream/
(remember the Moto Z Play is ARM - so make sure your getting the APK's that are ARM or ARM+ARM64 - I hope that's right)
I have tried decompiling the Google VR Services APK and think I found the checks, but I don't really know how to edit it (tried just deleting the lines) and my re-compile did not result in a working product.
My decompile found in line 300 of AndroidNCompat.smali
and in DaydreamUtils.smali around line 228
Witch I am assuming are the checks.
I have also created a VR headset profile that's based off the built in one for the Daydream View that better fits the Moto Z Play while in a thin case with a glass screen protector. Please see the attached QR code.
From my limited understanding, this would allow users without root and on unsupported phones like ours to try out/use the Daydream headset and controller as long as they are running the minimum OS version. (7.0, 7.1.1 etc...)
Right now if I just install the needed APK files I can open up Daydream and launch into VR mode (with a warning I can press OK on) but once in VR mode the controller will not sync, so you end up being stuck till you exit.
I would like to get back to shooting zombie chickens without root.
I hope that only the Google VR Services APK (https://www.apkmirror.com/apk/google-inc/google-vr-services-daydream/) needs to be edited/patched but here are the links to the other related APK's needed for Daydream just in case:
Daydream https://www.apkmirror.com/apk/google-inc/daydream-daydream/
Daydream Keyboard https://www.apkmirror.com/apk/google-inc/daydream-keyboard-daydream/
(remember the Moto Z Play is ARM - so make sure your getting the APK's that are ARM or ARM+ARM64 - I hope that's right)
I have tried decompiling the Google VR Services APK and think I found the checks, but I don't really know how to edit it (tried just deleting the lines) and my re-compile did not result in a working product.
My decompile found in line 300 of AndroidNCompat.smali
Code:
const-string v1, "android.software.vr.mode"
invoke-virtual {v0, v1}, Landroid/content/pm/PackageManager;->hasSystemFeature(Ljava/lang/String;)Z
move-result v0
if-eqz v0, :cond_0
and in DaydreamUtils.smali around line 228
Code:
const-string v1, "android.hardware.vr.high_performance"
.line 7
invoke-virtual {v0, v1}, Landroid/content/pm/PackageManager;->hasSystemFeature(Ljava/lang/String;)Z
move-result v0
goto :goto_0
Witch I am assuming are the checks.
I have also created a VR headset profile that's based off the built in one for the Daydream View that better fits the Moto Z Play while in a thin case with a glass screen protector. Please see the attached QR code.