天天看點

android 權限

這些權限就可以放在 AndroidManifest.xml這個檔案裡聲明,書寫格式如下:

<uses-permission android:name="android.permission.SEND_SMS"></uses-permission>

ACCESS_CHECKIN_PROPERTIES 允許讀寫通路"properties"表在checkin資料庫中,改值可以修改上傳 Allows read/write access to the "properties" table in the checkin database, to change values that get uploaded.

ACCESS_COARSE_LOCATION 允許應用程式通路粗糙的位置(例如:Cell-ID,WiFi)。 Allows an application to access coarse (e.g., Cell-ID, WiFi) location

ACCESS_FINE_LOCATION 允許一個程式通路精良位置(如GPS) Allows an application to access fine (e.g., GPS) location

ACCESS_LOCATION_EXTRA_COMMANDS 允許一個程式通路額外的位置來提供指令。 Allows an application to access extra location provider commands

ACCESS_MOCK_LOCATION 允許程式建立模拟位置提供用于測試 Allows an application to create mock location providers for testing

ACCESS_NETWORK_STATE 允許程式通路有關GSM網絡資訊 Allows applications to access information about networks

ACCESS_SURFACE_FLINGER 允許程式使用SurfaceFlinger底層特性 Allows an application to use SurfaceFlinger's low level features

ACCESS_WIFI_STATE 允許程式通路Wi-Fi網絡狀态資訊 Allows applications to access information about Wi-Fi networks

BATTERY_STATS 允許程式收集手機電池統計資訊 Allows an application to collect battery statistics

BIND_APPWIDGET 允許程式通知AppWidget服務,哪個程式可以通路AppWidget資料。 Allows an application to tell the AppWidget service which application can access AppWidget's data.

BIND_INPUT_METHOD 輸入法服務必須請求來確定隻有唯一的系統可以綁定他們。 Must be required by input method services, to ensure that only the system can bind to them.

BLUETOOTH 允許程式連結比對的藍牙裝置。 Allows applications to connect to paired bluetooth devices

BLUETOOTH_ADMIN 允許程式發現和配對藍牙裝置 Allows applications to discover and pair bluetooth devices

BRICK 請求能夠禁用裝置(非常危險) Required to be able to disable the device (very dangerous!).

BROADCAST_PACKAGE_REMOVED 允許程式廣播一個提示消息在一個應用程式包已經移除後 Allows an application to broadcast a notification that an application package has been removed.

BROADCAST_SMS 允許程式廣播一個SMS接收提示。 Allows an application to broadcast an SMS receipt notification

BROADCAST_STICKY 允許一個程式廣播常用 Allows an application to broadcast sticky intents.

BROADCAST_WAP_PUSH 允許程式廣播一個WAP PUSH接收提示。 Allows an application to broadcast a WAP PUSH receipt notification

CALL_PHONE 允許一個程式初始化一個電話撥号不需通過撥号使用者界面需要使用者确認 Allows an application to initiate a phone call without going through the Dialer user interface for the user to confirm the call being placed.

CALL_PRIVILEGED 允許一個程式撥打任何号碼,包含緊急号碼無需通過撥号使用者界面需要使用者确認 Allows an application to call any phone number, including emergency numbers, without going through the Dialer user interface for the user to confirm the call being placed.

CAMERA 請求通路使用照相裝置 Required to be able to access the camera device.

CHANGE_COMPONENT_ENABLED_STATE 允許一個程式是否改變一個元件或其他的啟用或禁用 Allows an application to change whether an application component (other than its own) is enabled or not.

CHANGE_CONFIGURATION 允許一個程式修改目前設定,如本地化 Allows an application to modify the current configuration, such as locale.

CHANGE_NETWORK_STATE 允許程式改變網絡連接配接狀态 Allows applications to change network connectivity state

CHANGE_WIFI_MULTICAST_STATE 允許程式進入Wi-Fi連通模式。 Allows applications to enter Wi-Fi Multicast mode

CHANGE_WIFI_STATE 允許程式改變Wi-Fi連接配接狀态。 Allows applications to change Wi-Fi connectivity state

CLEAR_APP_CACHE 允許程式清除裝置上所有安裝程式的緩存。 Allows an application to clear the caches of all installed applications on the device.

CLEAR_APP_USER_DATA 允許程式清除使用者資料。 Allows an application to clear user data

CONTROL_LOCATION_UPDATES 允許啟用禁止位置更新提示從無線子產品 Allows enabling/disabling location update notifications from the radio.

DELETE_CACHE_FILES 允許程式删除緩存檔案 Allows an application to delete cache files.

DELETE_PACKAGES 允許程式删除資料包 Allows an application to delete packages.

DEVICE_POWER 允許通路底層電源管理 Allows low-level access to power management

DIAGNOSTIC 允許程式RW診斷資源 Allows applications to RW to diagnostic resources.

DISABLE_KEYGUARD 允許程式禁用鍵盤鎖 Allows applications to disable the keyguard

DUMP 允許程式恢複狀态轉存資訊通過系統服務 Allows an application to retrieve state dump information from system services.

EXPAND_STATUS_BAR 允許程式擴充或折疊狀态欄 Allows an application to expand or collapse the status bar.

FACTORY_TEST 作為一個工廠測試程式,運作在root使用者 Run as a manufacturer test application, running as the root user.

FLASHLIGHT 允許通路閃光燈 Allows access to the flashlight

FORCE_BACK 允許程式強行一個傳回程式無論什麼在頂層活動 Allows an application to force a BACK operation on whatever is the top activity.

GET_ACCOUNTS 允許賬戶服務中通路賬戶清單 Allows access to the list of accounts in the Accounts Service

GET_PACKAGE_SIZE 允許一個程式擷取任何package占用空間容量 Allows an application to find out the space used by any package.

GET_TASKS 允許一個程式擷取資訊有關目前或最近運作的任務,一個縮略的任務狀态,是否活動等等 Allows an application to get information about the currently or recently running tasks: a thumbnail representation of the tasks, what activities are running in it, etc.

GLOBAL_SEARCH 許可可能被用在内容提供商上,為了允許全局搜尋系統通路他們資料 This permission can be used on content providers to allow the global search system to access their data.

HARDWARE_TEST 允許通路硬體裝置 Allows access to hardware peripherals.

INJECT_EVENTS 允許一個程式截獲使用者事件如按鍵、觸摸、軌迹球等變成事件流并發送他們到任何視窗。 Allows an application to inject user events (keys, touch, trackball) into the event stream and deliver them to ANY window.

INSTALL_LOCATION_PROVIDER 允許程式安裝一個位置提供商到位置管理處。 Allows an application to install a location provider into the Location Manager

INSTALL_PACKAGES 允許一個程式安裝包 Allows an application to install packages.

INTERNAL_SYSTEM_WINDOW 允許打開視窗使用系統使用者界面 Allows an application to open windows that are for use by parts of the system user interface.

INTERNET 允許程式打開網絡套接字 Allows applications to open network sockets.

MANAGE_APP_TOKENS 允許程式管理(建立、撤消、z-order預設向z軸推移)程式引用在視窗管理器中 Allows an application to manage (create, destroy, Z-order) application tokens in the window manager.

MASTER_CLEAR 目前還沒有明确的解釋,Android開發網分析可能是清除一切資料,類似硬格機

MODIFY_AUDIO_SETTINGS 允許程式修改全局音頻設定 Allows an application to modify global audio settings

MODIFY_PHONE_STATE 允許修改話機狀态,如電源,人機接口等 Allows modification of the telephony state - power on, mmi, etc.

MOUNT_FORMAT_FILESYSTEMS 允許格式化文字系統可移動存儲。 Allows formatting file systems for removable storage.

MOUNT_UNMOUNT_FILESYSTEMS 允許挂載和反挂載檔案系統可移動存儲 Allows mounting and unmounting file systems for removable storage.

PERSISTENT_ACTIVITY 允許一個程式設定他的activities顯示 Allow an application to make its activities persistent.

PROCESS_OUTGOING_CALLS 允許程式監視、修改有關播出電話 Allows an application to monitor, modify, or abort outgoing calls.

READ_CALENDAR 允許程式讀取使用者月曆資料 Allows an application to read the user's calendar data.

READ_CONTACTS 允許程式讀取使用者聯系人資料 Allows an application to read the user's contacts data.

READ_FRAME_BUFFER 允許程式螢幕波或和更多正常的通路幀緩沖資料 Allows an application to take screen shots and more generally get access to the frame buffer data

READ_HISTORY_BOOKMARKS 允許程式讀取(但不能寫入)使用者浏覽器的曆史記錄和收藏夾。 Allows an application to read (but not write) the user's browsing history and bookmarks.

READ_INPUT_STATE 允許程式恢複按鍵的目前狀态。 Allows an application to retrieve the current state of keys and switches.

READ_LOGS 允許程式讀取底層系統日志檔案 Allows an application to read the low-level system log files.

READ_OWNER_DATA 允許程式讀取所有者資料 Allows an application to read the owner's data.

READ_PHONE_STATE 允許隻讀來通路話機狀态 Allows read only access to phone state.

READ_SMS 允許程式讀取短資訊 Allows an application to read SMS messages.

READ_SYNC_SETTINGS 允許程式讀取同步設定 Allows applications to read the sync settings

READ_SYNC_STATS 許程式讀取同步狀态 Allows applications to read the sync stats

REBOOT 請求能夠重新啟動裝置 Required to be able to reboot the device.

RECEIVE_BOOT_COMPLETED 允許一個程式接收到 ACTION_BOOT_COMPLETED,它在系統完成啟動後廣播 Allows an

application to receive the ACTION_BOOT_COMPLETED that is broadcast after the system finishes booting.

RECEIVE_MMS 允許一個程式監控将收到MMS彩信,記錄或處理 Allows an application to monitor incoming MMS messages, to record or perform processing on them.

RECEIVE_SMS 允許程式監控一個将收到短資訊,記錄或處理 Allows an application to monitor incoming SMS messages, to record or perform processing on them.

RECEIVE_WAP_PUSH 允許程式監控将收到WAP PUSH資訊 Allows an application to monitor incoming WAP push messages.

RECORD_AUDIO 允許程式錄制音頻 Allows an application to record audio

REORDER_TASKS 允許程式改變Z軸排列任務 Allows an application to change the Z-order of tasks

RESTART_PACKAGES 允許程式重新啟動其他程式 Allows an application to restart other applications.

SEND_SMS 許程式發送SMS短信 Allows an application to send SMS messages.

SET_ACTIVITY_WATCHER 允許程式監控和控制活動如何在全球範圍系統中開始的 Allows an application to watch and control how activities are started globally in the system.

SET_ALWAYS_FINISH 允許程式控制是否活動間接完成當處于背景時 Allows an application to control whether activities are immediately finished when put in the background.

SET_ANIMATION_SCALE 修改全局資訊比例 Modify the global animation scaling factor.

SET_DEBUG_APP 配置一個程式用于調試 Configure an application for debugging.

SET_ORIENTATION 允許底層通路設定螢幕方向和實際旋轉 Allows low-level access to setting the orientation (actually rotation) of the screen.

SET_PREFERRED_APPLICATIONS 允許一個程式修改清單參數PackageManager.addPackageToPreferred() 和PackageManager.removePackageFromPreferred()方法 Allows an application to modify the list of preferred applications with the PackageManager.addPackageToPreferred() and PackageManager.removePackageFromPreferred() methods.

SET_PROCESS_LIMIT 允許設定最大的運作程序數量(不是必需的) Allows an application to set the maximum number of (not needed) application processes that can be running.

SET_TIME_ZONE 允許程式設定系統時間時區 Allows applications to set the system time zone

SET_WALLPAPER 允許程式設定桌面 Allows applications to set the wallpaper

SET_WALLPAPER_HINTS 允許程式設定桌面提示 Allows applications to set the wallpaper hints

SIGNAL_PERSISTENT_PROCESSES 允許程式請求發送信号到所有顯示的程序中 Allow an application to request that a

signal be sent to all persistent processes

STATUS_BAR 允許程式打開、關閉或禁用狀态欄及圖示 Allows an application to open, close, or disable the status bar and its icons.

SUBSCRIBED_FEEDS_READ 允許一個程式通路訂閱RSS Feed(内容提供者) Allows an application to allow access the subscribed feeds ContentProvider.

SUBSCRIBED_FEEDS_WRITE 系統暫時保留改設定,Android開發網認為未來版本會加入該功能。

SYSTEM_ALERT_WINDOW 允許程式打開視窗通過使用TYPE_SYSTEM_ALERT,顯示在其他所有程式的頂層 Allows an application to open windows using the type TYPE_SYSTEM_ALERT, shown on top of all other applications.

UPDATE_DEVICE_STATS 允許程式更新裝置統計資訊 Allows an application to update device statistics.

VIBRATE 允許通路振動裝置 Allows access to the vibrator

WAKE_LOCK 允許使用PowerManager的WakeLocks保持程序在休眠時從螢幕消失( Allows using PowerManager WakeLocks to keep processor from sleeping or screen from dimming

WRITE_APN_SETTINGS 允許程式寫入API設定 Allows applications to write the apn settings

WRITE_CALENDAR 允許程式寫入但不讀取使用者月曆資料 Allows an application to write (but not read) the user's calendar data.

WRITE_CONTACTS 允許程式寫入但不讀取使用者聯系人資料 Allows an application to write (but not read) the user's contacts data.

WRITE_EXTERNAL_STORAGE 允許程式寫入外部存儲器 Allows an application to write to external storage

WRITE_GSERVICES 允許程式修改Google服務地圖 Allows an application to modify the Google service map.

WRITE_HISTORY_BOOKMARKS 允許程式寫入但不讀取使用者浏覽器的曆史記錄和收藏夾 Allows an application to write (but

not read) the user's browsing history and bookmarks.

WRITE_OWNER_DATA 允許一個程式寫入但不讀取所有者資料 Allows an application to write (but not read) the owner's data.

WRITE_SECURE_SETTINGS 允許程式讀取或寫入安全系統設定 Allows an application to read or write the secure system settings.

WRITE_SETTINGS 允許程式讀取或寫入系統設定 Allows an application to read or write the system settings.

WRITE_SMS 允許程式寫短信 Allows an application to write SMS messages.

WRITE_SYNC_SETTINGS 允許程式寫入同步設定 Allows applications to write the sync settings