Reputation: 16837
I want to know what permissions are assigned to the stock camera app in Android 4.4. I tried to look for its AndroidManifest file online, but can't find it. Can anyone point me to some web-link which might help ?
Upvotes: 0
Views: 446
Reputation: 6736
from the docs you will need the following basic permissions & features for the camera itself:
<uses-permission android:name="android.permission.RECORD_AUDIO" />
<uses-permission android:name="android.permission.RECORD_VIDEO" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.CAMERA" />
<uses-feature android:name="android.hardware.camera" />
<uses-feature android:name="android.hardware.camera.autofocus" />
By looking up in the Settings > Applications > Camera in the emulator, I found the following settings:
Most of them are self-explanatory but I would like to explain the folling:
It is a PermissonGroup
which is required for recording audio/video etc.
Used for permissions that provide direct access to the hardware on the device. This includes audio, the camera, vibrator, etc.
Constant Value:
"android.permission-group.HARDWARE_CONTROLS"
this is required because camara apps also can display captured images which may be stored on the SD card. also required to store images.
Group of permissions that are related to SD card access.
Constant Value: "android.permission-group.STORAGE"
this is the best resource according to me:
Camera developer guide. Please let me know if you require any other explanation regarding a permission.
Upvotes: 1
Reputation: 8023
Settings > Apps > Camera. It lists all the permissions there.
And it looks like it uses almost all the permissions available ;)
Upvotes: 1