by raverbashing · 12y ago · 0 comments
Thanks Google, for making my phone less secure.
Even Google's own non-AOSP camera is guilty of this too.
The API docs says an app should check for camera capabilities before using them. Still the PhotoSphere feature in Google's non-AOSP camera attempts to set Flash-settings on devices with no flash-capability.
To overcome the issue you have to rewrite the camera-interface code to ignore API calls to SetFlash, SetLightmode etc when not supported, instead of throwing as you should be doing according to the docs.
So yeah. Even Google is guilty of this one.