has anyone found a way to remove the Google Cardboard SDK built in android permissions?
i found the following question posted on stackoverflow a few months ago but not a single person responded. i would like to know the exact same thing. these permissions drastically reduce the number of people interested in the app. "The Google Cardboard SDK says:
android.permission.NFC permission is required by the Cardboard SDK to access Cardboard's NFC tag. android.permission.READ_EXTERNAL_STORAGE and android.permission.WRITE_EXTERNAL_STORAGE. These permissions are required by the Cardboard SDK to pair the user's phone to their VR viewer. What does it mean by pair my phone to my cardboard? I don't think cardboard has any ability to be connected since it doesn't have any electronic things on it. It's just a cardboard with lenses. Also, does my cardboard really have NFC tag inside? Isn't it just a cardboard? If it does, what does the SDK need to do with the NFC tag of my cardboard?
I am asking this because I need to know if it's okay to remove these permissions from my apk or not. I tried removing those but when I remove NFC permission, my game crashes saying "Unfortunately 'my game' has stopped" when I exit my game."
Answer by sweatyrat · Jun 03, 2016 at 07:06 PM
So i have found that removing permissions from the APK itself causes it to crash but you can go in and track down all of the functions in the SDK scripts that use those permissions and remove them which then remove the permissions from being added when it's compiled.
Hi Sweatyrat, I'm still looking for where the NFC permission is used. I search for NFC, but no chance. Any idea what string should I looking for?
Answer by lokesh90 · Oct 14, 2016 at 06:49 AM
Search in [Your Project]/Assets/Plugins/Android/
There you found it and remove or add any permission from here.
Your answer
Follow this Question
Related Questions
Google Pixel C tablet not recognised 0 Answers
Unity 5.5 to Unity 2017 - Google VR 0 Answers
Game Native SDK error 0 Answers
Google Cardboard for Unity renders only one light source 1 Answer
Google VR SDK for Unity Compiler errors 2 Answers