====Permissions====
=====Hosted=====
* "storage":{} - Utilize storage (appcache, pinned apps, IndexedDB) without size limitations. See appcache, IndexedDB** There appear to be no calls to appcache or IndexedDB. This permissions may be extraneous.needed to store the settings ?* "desktop-notification":{} - Display a notification on the user's desktop** No calls to createNotification() or creation of new Notification objects. This permission may be extraneous.used at least in airplane_mode.js to reset notification params
=====Privileged=====
* "device-storage:pictures":{ "access": "readonly" } - Add, read, or modify picture files stored on the device.** No calls to getDeviceStorage('pictures'). Appears this permissions is extraneous.I think it is needed in the the Display panel (to view the wallpaper)* "device-storage:music":{ "access": "readonlyreadwrite" } - Add, read, or modify music files stored on the device.** No calls to getDeviceStorage('music'). Appears this permissions is extraneous.It is used to set the ringtones and in the Sound panel (see sound.js)!! should be “readonly” but see bug 914404 (workaround to set a ringtone)* "device-storage:videos":{ "access": "readonly" } - Add, read, or modify video files stored on the device.** No calls to getDeviceStorage('videos'). Appears this permissions is extraneous.I think it is used in media_storage (hidden in a constant list MEDIA_TYPE at the beginning of the file)* "device-storage:sdcard":{ "access": "readonly" } - Add, read, or modify files stored on the device's SD card.** Used to access SD storage. Check if there is free space on SD card. * "audio-channel-notification":{} - New email, incoming SMS.** Used to preview sounds for calls and SMS via mozAudioChannelType = 'notification'
=====Certified=====
* "mobileconnection":{} - Obtain information about the current mobile voice and data connection.** Used throughout the application to access SIM card* "voicemail":{} - Access voicemail.** Used for voicemail settings* "bluetooth":{} - Low level access to Bluetooth hardware.** Handle bluetooth settings.
* "device-storage:apps":{ "access": "readonly" } - Add, read, or modify files stored in the apps location on the device.
* "webapps-manage":{} - Obtain access to the navigator.mozApps.mgmt API to manage installed Open Web Apps.
* "wifi-manage":{} - Enumerate available WiFi networks, get signal strength, connect to a network.
* "attention":{} - Allow content to open a window in front of all other content. Used by telephone and SMS.
* "time":{} - Set current time. Time zone information is controlled by the Settings API. Formerly called systemclock.* "power":{} - Turn the screen on or off, control CPU, device power, and so on. Listen for and inspect resource lock events
* "idle":{} - Notify the app if the user is idle.
* "telephony":{} - Access all telephony-related APIs to make and recieve receive phone calls.
====Web Activity Handlers ====