本文把permission列表和使用方法放在一起的赐稽,總結(jié)一下:
一橱夭、權(quán)限列表
android.permission.ACCESS_CHECKIN_PROPERTIES允許讀寫訪問"properties"表在checkin數(shù)據(jù)庫中,改值可以修改上傳( Allows read/write access to the "properties" table in the checkin database, to change values that get uploaded)
android.permission.ACCESS_COARSE_LOCATION允許一個程序訪問CellID或WiFi熱點來獲取粗略的位置(Allows an application to access coarse (e.g., Cell-ID, WiFi) location)
android.permission.ACCESS_FINE_LOCATION允許一個程序訪問精良位置(如GPS) (Allows an application to access fine (e.g., GPS) location)
android.permission.ACCESS_LOCATION_EXTRA_COMMANDS允許應(yīng)用程序訪問額外的位置提供命令(Allows an application to access extra location provider commands)
android.permission.ACCESS_MOCK_LOCATION允許程序創(chuàng)建模擬位置提供用于測試(Allows an application to create mock location providers for testing)
android.permission.ACCESS_NETWORK_STATE允許程序訪問有關(guān)GSM網(wǎng)絡(luò)信息(Allows applications to access information about networks)
android.permission.ACCESS_SURFACE_FLINGER允許程序使用SurfaceFlinger底層特性(Allows an application to use SurfaceFlinger's low level features)
android.permission.ACCESS_WIFI_STATE允許程序訪問Wi-Fi網(wǎng)絡(luò)狀態(tài)信息(Allows applications to access information about Wi-Fi networks)
android.permission.ADD_SYSTEM_SERVICE允許程序發(fā)布系統(tǒng)級服務(wù)(Allows an application to publish system-level services).
android.permission.BATTERY_STATS允許程序更新手機電池統(tǒng)計信息(Allows an application to update the collected battery statistics)
android.permission.BLUETOOTH允許程序連接到已配對的藍牙設(shè)備(Allows applications to connect to paired bluetooth devices)
android.permission.BLUETOOTH_ADMIN允許程序發(fā)現(xiàn)和配對藍牙設(shè)備(Allows applications to discover and pair bluetooth devices)
android.permission.BRICK請求能夠禁用設(shè)備(非常危險)(Required to be able to disable the device (very dangerous!).)
android.permission.BROADCAST_PACKAGE_REMOVED允許程序廣播一個提示消息在一個應(yīng)用程序包已經(jīng)移除后(Allows an application to broadcast a notification that an application package has been removed)
android.permission.BROADCAST_STICKY.允許一個程序廣播常用intents(Allows an application to broadcast sticky intents)
android.permission.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.)
android.permission.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)
android.permission.CAMERA請求訪問使用照相設(shè)備(Required to be able to access the camera device. )
android.permission.CHANGE_COMPONENT_ENABLED_STATE允許一個程序是否改變一個組件或其他的啟用或禁用(Allows an application to change whether an application component (other than its own) is enabled or not. )
android.permission.CHANGE_CONFIGURATION允許一個程序修改當前設(shè)置钝诚,如本地化(Allows an application to modify the current configuration, such as locale. )
android.permission.CHANGE_NETWORK_STATE允許程序改變網(wǎng)絡(luò)連接狀態(tài)(Allows applications to change network connectivity state)
android.permission.CHANGE_WIFI_STATE允許程序改變Wi-Fi連接狀態(tài)(Allows applications to change Wi-Fi connectivity state)
android.permission.CLEAR_APP_CACHE允許一個程序清楚緩存從所有安裝的程序在設(shè)備中(Allows an application to clear the caches of all installed applications on the device. )
android.permission.CLEAR_APP_USER_DATA允許一個程序清除用戶設(shè)置(Allows an application to clear user data)
android.permission.CONTROL_LOCATION_UPDATES允許啟用禁止位置更新提示從無線模塊(Allows enabling/disabling location update notifications from the radio. )
android.permission.DELETE_CACHE_FILES允許程序刪除緩存文件(Allows an application to delete cache files)
android.permission.DELETE_PACKAGES允許一個程序刪除包(Allows an application to delete packages)
android.permission.DEVICE_POWER允許訪問底層電源管理(Allows low-level access to power management)
android.permission.DIAGNOSTIC允許程序RW診斷資源(Allows applications to RW to diagnostic resources. )
android.permission.DISABLE_KEYGUARD允許程序禁用鍵盤鎖(Allows applications to disable the keyguard )
android.permission.DUMP允許程序返回狀態(tài)抓取信息從系統(tǒng)服務(wù)(Allows an application to retrieve state dump information from system services.)
android.permission.EXPAND_STATUS_BAR允許一個程序擴展收縮在狀態(tài)欄,Android開發(fā)網(wǎng)提示應(yīng)該是一個類似Windows Mobile中的托盤程序(Allows an application to expand or collapse the status bar. )
android.permission.FACTORY_TEST作為一個工廠測試程序,運行在root用戶(Run as a manufacturer test application, running as the root user. )
android.permission.FLASHLIGHT訪問閃光燈,Android開發(fā)網(wǎng)提示HTC Dream不包含閃光燈(Allows access to the flashlight )
android.permission.FORCE_BACK允許程序強行一個后退操作是否在頂層activities(Allows an application to force a BACK operation on whatever is the top activity. )
android.permission.FOTA_UPDATE暫時不了解這是做什么使用的蝗蛙,Android開發(fā)網(wǎng)分析可能是一個預(yù)留權(quán)限.
android.permission.GET_ACCOUNTS訪問一個帳戶列表在Accounts Service中(Allows access to the list of accounts in the Accounts Service)
android.permission.GET_PACKAGE_SIZE允許一個程序獲取任何package占用空間容量(Allows an application to find out the space used by any package. )
android.permission.GET_TASKS允許一個程序獲取信息有關(guān)當前或最近運行的任務(wù)蝇庭,一個縮略的任務(wù)狀態(tài),是否活動等等(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.)
android.permission.HARDWARE_TEST允許訪問硬件(Allows access to hardware peripherals. )
android.permission.INJECT_EVENTS允許一個程序截獲用戶事件如按鍵捡硅、觸摸哮内、軌跡球等等到一個時間流,Android開發(fā)網(wǎng)提醒算是hook技術(shù)吧(Allows an application to inject user events (keys, touch, trackball) into the event stream and deliver them to ANY window.)
android.permission.INSTALL_PACKAGES允許一個程序安裝packages(Allows an application to install packages. )
android.permission.INTERNAL_SYSTEM_WINDOW允許打開窗口使用系統(tǒng)用戶界面(Allows an application to open windows that are for use by parts of the system user interface. )
android.permission.INTERNET允許程序打開網(wǎng)絡(luò)套接字(Allows applications to open network sockets)
android.permission.MANAGE_APP_TOKENS允許程序管理(創(chuàng)建壮韭、催后北发、z-order默認向z軸推移)程序引用在窗口管理器中(Allows an application to manage (create, destroy, Z-order) application tokens in the window manager. )
android.permission.MASTER_CLEAR目前還沒有明確的解釋,Android開發(fā)網(wǎng)分析可能是清除一切數(shù)據(jù)喷屋,類似硬格機
android.permission.MODIFY_AUDIO_SETTINGS允許程序修改全局音頻設(shè)置(Allows an application to modify global audio settings)
android.permission.MODIFY_PHONE_STATE允許修改話機狀態(tài)琳拨,如電源,人機接口等(Allows modification of the telephony state - power on, mmi, etc. )
android.permission.MOUNT_UNMOUNT_FILESYSTEMS允許掛載和反掛載文件系統(tǒng)可移動存儲(Allows mounting and unmounting file systems for removable storage. )
android.permission.PERSISTENT_ACTIVITY允許一個程序設(shè)置他的activities顯示(Allow an application to make its activities persistent. )
android.permission.PROCESS_OUTGOING_CALLS允許程序監(jiān)視屯曹、修改有關(guān)播出電話(Allows an application to monitor, modify, or abort outgoing calls)
android.permission.READ_CALENDAR允許程序讀取用戶日歷數(shù)據(jù)(Allows an application to read the user's calendar data.)
android.permission.READ_CONTACTS允許程序讀取用戶聯(lián)系人數(shù)據(jù)(Allows an application to read the user's contacts data.)
android.permission.READ_FRAME_BUFFER允許程序屏幕波或和更多常規(guī)的訪問幀緩沖數(shù)據(jù)(Allows an application to take screen shots and more generally get access to the frame buffer data)
android.permission.READ_INPUT_STATE允許程序返回當前按鍵狀態(tài)(Allows an application to retrieve the current state of keys and switches. )
android.permission.READ_LOGS允許程序讀取底層系統(tǒng)日志文件(Allows an application to read the low-level system log files. )
android.permission.READ_OWNER_DATA允許程序讀取所有者數(shù)據(jù)(Allows an application to read the owner's data)
android.permission.READ_SMS允許程序讀取短信息(Allows an application to read SMS messages.)
android.permission.READ_SYNC_SETTINGS允許程序讀取同步設(shè)置(Allows applications to read the sync settings)
android.permission.READ_SYNC_STATS允許程序讀取同步狀態(tài)(Allows applications to read the sync stats)
android.permission.REBOOT請求能夠重新啟動設(shè)備(Required to be able to reboot the device. )
android.permission.RECEIVE_BOOT_COMPLETED允許一個程序接收到 ACTION_BOOT_COMPLETED廣播在系統(tǒng)完成啟動(Allows an application to receive the ACTION_BOOT_COMPLETED that is broadcast after the system finishes booting. )
android.permission.RECEIVE_MMS允許一個程序監(jiān)控將收到MMS彩信,記錄或處理(Allows an application to monitor incoming MMS messages, to record or perform processing on them. )
android.permission.RECEIVE_SMS允許程序監(jiān)控一個將收到短信息狱庇,記錄或處理(Allows an application to monitor incoming SMS messages, to record or perform processing on them.)
android.permission.RECEIVE_WAP_PUSH允許程序監(jiān)控將收到WAP PUSH信息(Allows an application to monitor incoming WAP push messages. )
android.permission.RECORD_AUDIO允許程序錄制音頻(Allows an application to record audio)
android.permission.REORDER_TASKS允許程序改變Z軸排列任務(wù)(Allows an application to change the Z-order of tasks)
android.permission.RESTART_PACKAGES允許程序重新啟動其他程序(Allows an application to restart other applications)
android.permission.SEND_SMS允許程序發(fā)送SMS短信(Allows an application to send SMS messages)
android.permission.SET_ACTIVITY_WATCHER允許程序監(jiān)控或控制activities已經(jīng)啟動全局系統(tǒng)中Allows an application to watch and control how activities are started globally in the system.
android.permission.SET_ALWAYS_FINISH允許程序控制是否活動間接完成在處于后臺時Allows an application to control whether activities are immediately finished when put in the background.
android.permission.SET_ANIMATION_SCALE修改全局信息比例(Modify the global animation scaling factor.)
android.permission.SET_DEBUG_APP配置一個程序用于調(diào)試(Configure an application for debugging.)
android.permission.SET_ORIENTATION允許底層訪問設(shè)置屏幕方向和實際旋轉(zhuǎn)(Allows low-level access to setting the orientation (actually rotation) of the screen.)
android.permission.SET_PREFERRED_APPLICATIONS允許一個程序修改列表參數(shù)PackageManager.addPackageToPreferred() 和PackageManager.removePackageFromPreferred()方法(Allows an application to modify the list of preferred applications with the PackageManager.addPackageToPreferred() and PackageManager.removePackageFromPreferred() methods.)
android.permission.SET_PROCESS_FOREGROUND允許程序當前運行程序強行到前臺(Allows an application to force any currently running process to be in the foreground.)
android.permission.SET_PROCESS_LIMIT允許設(shè)置最大的運行進程數(shù)量(Allows an application to set the maximum number of (not needed) application processes that can be running. )
android.permission.SET_TIME_ZONE允許程序設(shè)置時間區(qū)域(Allows applications to set the system time zone)
android.permission.SET_WALLPAPER允許程序設(shè)置壁紙(Allows applications to set the wallpaper )
android.permission.SET_WALLPAPER_HINTS允許程序設(shè)置壁紙hits(Allows applications to set the wallpaper hints)
android.permission.SIGNAL_PERSISTENT_PROCESSES允許程序請求發(fā)送信號到所有顯示的進程中(Allow an application to request that a signal be sent to all persistent processes)
android.permission.STATUS_BAR允許程序打開惊畏、關(guān)閉或禁用狀態(tài)欄及圖標Allows an application to open, close, or disable the status bar and its icons.
android.permission.SUBSCRIBED_FEEDS_READ允許一個程序訪問訂閱RSS Feed內(nèi)容提供(Allows an application to allow access the subscribed feeds ContentProvider. )
android.permission.SUBSCRIBED_FEEDS_WRITE系統(tǒng)暫時保留改設(shè)置,Android開發(fā)網(wǎng)認為未來版本會加入該功能。
android.permission.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. )
android.permission.VIBRATE允許訪問振動設(shè)備(Allows access to the vibrator)
android.permission.WAKE_LOCK允許使用PowerManager的WakeLocks保持進程在休眠時從屏幕消失( Allows using PowerManager WakeLocks to keep processor from sleeping or screen from dimming)
android.permission.WRITE_APN_SETTINGS允許程序?qū)懭階PI設(shè)置(Allows applications to write the apn settings)
android.permission.WRITE_CALENDAR允許一個程序?qū)懭氲蛔x取用戶日歷數(shù)據(jù)(Allows an application to write (but not read) the user's calendar data. )
android.permission.WRITE_CONTACTS允許程序?qū)懭氲蛔x取用戶聯(lián)系人數(shù)據(jù)(Allows an application to write (but not read) the user's contacts data. )
android.permission.WRITE_GSERVICES允許程序修改Google服務(wù)地圖(Allows an application to modify the Google service map. )
android.permission.WRITE_OWNER_DATA允許一個程序?qū)懭氲蛔x取所有者數(shù)據(jù)(Allows an application to write (but not read) the owner's data.)
android.permission.WRITE_SETTINGS允許程序讀取或?qū)懭胂到y(tǒng)設(shè)置(Allows an application to read or write the system settings. )
android.permission.WRITE_SMS允許程序?qū)懚绦?Allows an application to write SMS messages)
android.permission.WRITE_SYNC_SETTINGS允許程序?qū)懭胪皆O(shè)置(Allows applications to write the sync settings)
我們看到Android平臺上的權(quán)限許可分得還是很細颜启,和Symbian S60 3rd的Capabilities比詳細的多,如果軟件無法正常執(zhí)行時看看是不是缺少相關(guān)的permission聲明浪讳,最終我們還需要使用android sign tools簽名生成的apk文件缰盏。
二、使用方法
需要在AndroidManifest.xml中定義相應(yīng)的權(quán)限(以獲取internet訪問權(quán)限為例)淹遵,如下:
< uses-permission android:name =”android.permission.INTERNET” />
注意在<application>也可以定義INTERNET權(quán)限口猜,如下:
< application android:permission =”android.permission.INTERNET” >
public static final String BROADCAST_PACKAGE_REMOVED
允許應(yīng)用程序發(fā)出一個應(yīng)用程序被刪除的通知。
常量值: "android.permission.BROADCAST_PACKAGE_REMOVED"
public static final String CALL_PHONE
允許應(yīng)用程序發(fā)起一個電話呼叫而不需要經(jīng)撥號器用戶界面確認透揣。
常量值: "android.permission.CALL_PHONE"
public static final String DUMP
允許應(yīng)用程序從系統(tǒng)服務(wù)獲取狀態(tài)存儲信息济炎。
常量值: "android.permission.DUMP"
public static final String FOTA_UPDATE
常量值: "android.permission.FOTA_UPDATE"
public static final String GET_TASKS
允許應(yīng)用程序獲得當前運行任務(wù)的信息:任務(wù)的簡短描述,運行著什么 activity等淌实。
常量值: "android.permission.GET_TASKS"
public static final String INSTALL_PACKAGES
允許應(yīng)用程序安裝包冻辩。
常量值: "android.permission.INSTALL_PACKAGES"
public static final String INTERNAL_SYSTEM_WINDOW
允許應(yīng)用程序打開作為系統(tǒng)用戶界面的一部分的窗口。
常量值: "android.permission.INTERNAL_SYSTEM_WINDOW"
public static final String RAISED_THREAD_PRIORITY
允許應(yīng)用程序獲取提升的線程優(yōu)先級拆祈,例如實時音頻重放恨闪。
常量值: "android.permission.RAISED_THREAD_PRIORITY"
public static final String READ_CONTACTS
允許應(yīng)用程序當前用戶的通訊錄數(shù)據(jù)。
常量值: "android.permission.READ_CONTACTS"
public static final String RECEIVE_SMS
允許應(yīng)用程序監(jiān)聽收到的短信放坏,并對短信進行記錄或執(zhí)行操作咙咽。
常量值: "android.permission.RECEIVE_SMS"
public static final String RECEIVE_WAP_PUSH
允許應(yīng)用程序監(jiān)聽提過WAP push進來的信息。
常量值: "android.permission.RECEIVE_WAP_PUSH"
public static final String RUN_INSTRUMENTATION
允許應(yīng)用程序開始運行某個包淤年。
常量值: "android.permission.RUN_INSTRUMENTATION"
public static final String SET_ACTIVITY_WATCHER
允許應(yīng)用程序監(jiān)視和控制Activity如何在系統(tǒng)中啟動钧敞。盡在調(diào)試狀態(tài)(通常是 monkey命令)下可用。
常量值: "android.permission.SET_ACTIVITY_WATCHER"
public static final String SIGNAL_PERSISTENT_PROCESSES
允許應(yīng)用程序請求一個發(fā)給所有固有進程的信號麸粮。
常量值: "android.permission.SIGNAL_PERSISTENT_PROCESSES"
public static final String SYSTEM_ALERT_WINDOW
允許應(yīng)用程序使用SYSTEM_ALERT_TYPE類型在所有其他應(yīng)用程序之上顯示窗口很少有程序用到這個許可;這些窗口與用戶進行系統(tǒng)級的交互溉苛。
常量值: "android.permission.SYSTEM_ALERT_WINDOW"
public static final String WRITE_CONTACTS
允許應(yīng)用程序?qū)懭?不能讀取)用戶的通訊錄數(shù)據(jù)。
常量值: "android.permission.WRITE_CONTACTS"
public static final String WRITE_SETTINGS
允許應(yīng)用程序讀寫用戶的通訊錄數(shù)據(jù)弄诲。
常量值: "android.permission.WRITE_SETTINGS"
構(gòu)造函數(shù)
public Manifest.permission()
String ADD_SHORTCUT_ACTION 動作:在系統(tǒng)中添加一個快捷方式愚战。. "android.intent.action.ADD_SHORTCUT"
String ALL_APPS_ACTION 動作:列舉所有可用的應(yīng)用。
輸入:無齐遵。 "android.intent.action.ALL_APPS"
String ALTERNATIVE_CATEGORY 類別:說明 activity 是用戶正在瀏覽的數(shù)據(jù)的一個可選操作寂玲。 "android.intent.category.ALTERNATIVE"
String ANSWER_ACTION 動作:處理撥入的電話。 "android.intent.action.ANSWER"
String BATTERY_CHANGED_ACTION 廣播:充電狀態(tài)梗摇,或者電池的電量發(fā)生變化拓哟。 "android.intent.action.BATTERY_CHANGED"
String BOOT_COMPLETED_ACTION 廣播:在系統(tǒng)啟動后,這個動作被廣播一次(只有一次)伶授。 "android.intent.action.BOOT_COMPLETED"
String BROWSABLE_CATEGORY 類別:能夠被瀏覽器安全使用的 activities 必須支持這個類別断序。 "android.intent.category.BROWSABLE"
String BUG_REPORT_ACTION 動作:顯示 activity 報告錯誤流纹。 "android.intent.action.BUG_REPORT"
String CALL_ACTION 動作:撥打電話,被呼叫的聯(lián)系人在數(shù)據(jù)中指定违诗。 "android.intent.action.CALL"
String CALL_FORWARDING_STATE_CHANGED_ACTION 廣播:語音電話的呼叫轉(zhuǎn)移狀態(tài)已經(jīng)改變捧颅。 "android.intent.action.CFF"
String CLEAR_CREDENTIALS_ACTION 動作:清除登陸憑證 (credential)。 "android.intent.action.CLEAR_CREDENTIALS"
String CONFIGURATION_CHANGED_ACTION 廣播:設(shè)備的配置信息已經(jīng)改變较雕,參見 Resources.Configuration. "android.intent.action.CONFIGURATION_CHANGED"
Creator CREATOR 無 無
String DATA_ACTIVITY_STATE_CHANGED_ACTION 廣播:電話的數(shù)據(jù)活動(data activity)狀態(tài)(即收發(fā)數(shù)據(jù)的狀態(tài))已經(jīng)改變。 "android.intent.action.DATA_ACTIVITY"
String DATA_CONNECTION_STATE_CHANGED_ACTION 廣播:電話的數(shù)據(jù)連接狀態(tài)已經(jīng)改變挚币。 "android.intent.action.DATA_STATE"
String DATE_CHANGED_ACTION 廣播:日期被改變亮蒋。 "android.intent.action.DATE_CHANGED"
String DEFAULT_ACTION 動作:和 VIEW_ACTION 相同,是在數(shù)據(jù)上執(zhí)行的標準動作妆毕。 "android.intent.action.VIEW"
String DEFAULT_CATEGORY 類別:如果 activity 是對數(shù)據(jù)執(zhí)行確省動作(點擊, center press)的一個選項慎玖,需要設(shè)置這個類別。 "android.intent.category.DEFAULT"
String DELETE_ACTION 動作:從容器中刪除給定的數(shù)據(jù)笛粘。 "android.intent.action.DELETE"
String DEVELOPMENT_PREFERENCE_CATEGORY 類別:說明 activity 是一個設(shè)置面板 (development preference panel). "android.intent.category.DEVELOPMENT_PREFERENCE"
String DIAL_ACTION 動作:撥打數(shù)據(jù)中指定的電話號碼趁怔。 "android.intent.action.DIAL"
String EDIT_ACTION 動作:為制定的數(shù)據(jù)顯示可編輯界面。 "android.intent.action.EDIT"
String EMBED_CATEGORY 類別:能夠在上級(父)activity 中運行薪前。 "android.intent.category.EMBED"
String EMERGENCY_DIAL_ACTION 動作:撥打緊急電話號碼润努。 "android.intent.action.EMERGENCY_DIAL"
int FORWARD_RESULT_LAUNCH 啟動標記:如果這個標記被設(shè)置,而且被一個已經(jīng)存在的 activity 用來啟動新的 activity示括,已有 activity 的回復(fù)目標 (reply target) 會被轉(zhuǎn)移給新的 activity铺浇。 16 0x00000010
String FOTA_CANCEL_ACTION 廣播:取消所有被掛起的 (pending) 更新下載。
"android.server.checkin.FOTA_CANCEL"
String FOTA_INSTALL_ACTION 廣播:更新已經(jīng)被確認垛膝,馬上就要開始安裝鳍侣。 "android.server.checkin.FOTA_INSTALL"
String FOTA_READY_ACTION 廣播:更新已經(jīng)被下載,可以開始安裝吼拥。 "android.server.checkin.FOTA_READY"
String FOTA_RESTART_ACTION 廣播:恢復(fù)已經(jīng)停止的更新下載倚聚。 "android.server.checkin.FOTA_RESTART"
String FOTA_UPDATE_ACTION 廣播:通過 OTA 下載并安裝操作系統(tǒng)更新。 "android.server.checkin.FOTA_UPDATE"
String FRAMEWORK_INSTRUMENTATION_TEST_CATEGORY 類別:To be used as code under test for framework instrumentation tests. "android.intent.category.FRAMEWORK_INSTRUMENTATION_TEST"
String GADGET_CATEGORY 類別:這個 activity 可以被嵌入宿主 activity (activity that is hosting gadgets)凿可。 "android.intent.category.GADGET"
String GET_CONTENT_ACTION 動作:讓用戶選擇數(shù)據(jù)并返回惑折。 "android.intent.action.GET_CONTENT"
String HOME_CATEGORY 類別:主屏幕 (activity),設(shè)備啟動后顯示的第一個 activity矿酵。 "android.intent.category.HOME"
String INSERT_ACTION 動作:在容器中插入一個空項 (item)唬复。 "android.intent.action.INSERT"
String INTENT_EXTRA 附加數(shù)據(jù):和 PICK_ACTIVITY_ACTION 一起使用時,說明用戶選擇的用來顯示的 activity;和 ADD_SHORTCUT_ACTION 一起使用的時候全肮,描述要添加的快捷方式敞咧。 "android.intent.extra.INTENT"
String LABEL_EXTRA 附加數(shù)據(jù):大寫字母開頭的字符標簽,和 ADD_SHORTCUT_ACTION 一起使用辜腺。 "android.intent.extra.LABEL"
String LAUNCHER_CATEGORY 類別:Activity 應(yīng)該被顯示在頂級的 launcher 中休建。 "android.intent.category.LAUNCHER"
String LOGIN_ACTION 動作:獲取登錄憑證乍恐。 "android.intent.action.LOGIN"
String MAIN_ACTION 動作:作為主入口點啟動,不需要數(shù)據(jù)测砂。 "android.intent.action.MAIN"
String MEDIABUTTON_ACTION 廣播:用戶按下了“Media Button”茵烈。 "android.intent.action.MEDIABUTTON"
String MEDIA_BAD_REMOVAL_ACTION 廣播:擴展介質(zhì)(擴展卡)已經(jīng)從 SD 卡插槽拔出,但是掛載點 (mount
point) 還沒解除 (unmount)砌些。 "android.intent.action.MEDIA_BAD_REMOVAL"
String MEDIA_EJECT_ACTION 廣播:用戶想要移除擴展介質(zhì)(拔掉擴展卡)呜投。 "android.intent.action.MEDIA_EJECT"
String MEDIA_MOUNTED_ACTION 廣播:擴展介質(zhì)被插入,而且已經(jīng)被掛載存璃。 "android.intent.action.MEDIA_MOUNTED"
String MEDIA_REMOVED_ACTION 廣播:擴展介質(zhì)被移除仑荐。 "android.intent.action.MEDIA_REMOVED"
String MEDIA_SCANNER_FINISHED_ACTION 廣播:已經(jīng)掃描完介質(zhì)的一個目錄。 "android.intent.action.MEDIA_SCANNER_FINISHED"
String MEDIA_SCANNER_STARTED_ACTION 廣播:開始掃描介質(zhì)的一個目錄纵东。 "android.intent.action.MEDIA_SCANNER_STARTED"
String MEDIA_SHARED_ACTION 廣播:擴展介質(zhì)的掛載被解除 (unmount)粘招,因為它已經(jīng)作為 USB 大容量存儲被共享。 "android.intent.action.MEDIA_SHARED"
String MEDIA_UNMOUNTED_ACTION 廣播:擴展介質(zhì)存在偎球,但是還沒有被掛載 (mount)洒扎。 "android.intent.action.MEDIA_UNMOUNTED"
String MESSAGE_WAITING_STATE_CHANGED_ACTION 廣播:電話的消息等待(語音郵件)狀態(tài)已經(jīng)改變。 "android.intent.action.MWI"
int MULTIPLE_TASK_LAUNCH 啟動標記:和 NEW_TASK_LAUNCH 聯(lián)合使用衰絮,禁止將已有的任務(wù)改變?yōu)榍熬叭蝿?wù) (foreground)袍冷。 8 0x00000008
String NETWORK_TICKLE_RECEIVED_ACTION 廣播:設(shè)備收到了新的網(wǎng)絡(luò) "tickle" 通知。 "android.intent.action.NETWORK_TICKLE_RECEIVED"
int NEW_TASK_LAUNCH 啟動標記:設(shè)置以后猫牡,activity 將成為歷史堆棧中的第一個新任務(wù)(棧頂)难裆。 4 0x00000004
int NO_HISTORY_LAUNCH 啟動標記:設(shè)置以后,新的 activity 不會被保存在歷史堆棧中镊掖。 1 0x00000001
String PACKAGE_ADDED_ACTION 廣播:設(shè)備上新安裝了一個應(yīng)用程序包乃戈。 "android.intent.action.PACKAGE_ADDED"
String PACKAGE_REMOVED_ACTION 廣播:設(shè)備上刪除了一個應(yīng)用程序包。 "android.intent.action.PACKAGE_REMOVED"
String PHONE_STATE_CHANGED_ACTION 廣播:電話狀態(tài)已經(jīng)改變亩进。 "android.intent.action.PHONE_STATE"
String PICK_ACTION 動作:從數(shù)據(jù)中選擇一個項目 (item)症虑,將被選中的項目返回。
"android.intent.action.PICK"
String PICK_ACTIVITY_ACTION 動作:選擇一個 activity归薛,返回被選擇的 activity 的類(名)谍憔。 "android.intent.action.PICK_ACTIVITY"
String PREFERENCE_CATEGORY 類別:activity是一個設(shè)置面板 (preference panel)。 "android.intent.category.PREFERENCE"
String PROVIDER_CHANGED_ACTION 廣播:更新將要(真正)被安裝主籍。 "android.intent.action.PROVIDER_CHANGED"
String PROVISIONING_CHECK_ACTION 廣播:要求 polling of provisioning service 下載最新的設(shè)置习贫。 "android.intent.action.PROVISIONING_CHECK"
String RUN_ACTION 動作:運行數(shù)據(jù)(指定的應(yīng)用),無論它(應(yīng)用)是什么。 "android.intent.action.RUN"
String SAMPLE_CODE_CATEGORY 類別:To be used as an sample code example (not part of the normal user experience). "android.intent.category.SAMPLE_CODE"
String SCREEN_OFF_ACTION 廣播:屏幕被關(guān)閉。 "android.intent.action.SCREEN_OFF"
String SCREEN_ON_ACTION 廣播:屏幕已經(jīng)被打開惕耕。 "android.intent.action.SCREEN_ON"
String SELECTED_ALTERNATIVE_CATEGORY 類別:對于被用戶選中的數(shù)據(jù)慨丐,activity 是它的一個可選操作祟身。 "android.intent.category.SELECTED_ALTERNATIVE"
String SENDTO_ACTION 動作:向 data 指定的接收者發(fā)送一個消息奥务。 "android.intent.action.SENDTO"
String SERVICE_STATE_CHANGED_ACTION 廣播:電話服務(wù)的狀態(tài)已經(jīng)改變。 "android.intent.action.SERVICE_STATE"
String SETTINGS_ACTION 動作:顯示系統(tǒng)設(shè)置袜硫。輸入:無氯葬。 "android.intent.action.SETTINGS"
String SIGNAL_STRENGTH_CHANGED_ACTION 廣播:電話的信號強度已經(jīng)改變。 "android.intent.action.SIG_STR"
int SINGLE_TOP_LAUNCH 啟動標記:設(shè)置以后婉陷,如果 activity 已經(jīng)啟動帚称,而且位于歷史堆棧的頂端,將不再啟動(不重新啟動) activity秽澳。 2 0x00000002
String STATISTICS_REPORT_ACTION 廣播:要求 receivers 報告自己的統(tǒng)計信息世杀。 "android.intent.action.STATISTICS_REPORT"
String STATISTICS_STATE_CHANGED_ACTION 廣播:統(tǒng)計信息服務(wù)的狀態(tài)已經(jīng)改變。 "android.intent.action.STATISTICS_STATE_CHANGED"
String SYNC_ACTION 動作:執(zhí)行數(shù)據(jù)同步肝集。 "android.intent.action.SYNC"
String TAB_CATEGORY 類別:這個 activity 應(yīng)該在 TabActivity 中作為一個 tab 使用。 "android.intent.category.TAB"
String TEMPLATE_EXTRA 附加數(shù)據(jù):新記錄的初始化模板蛛壳。 "android.intent.extra.TEMPLATE"
String TEST_CATEGORY 類別:作為測試目的使用杏瞻,不是正常的用戶體驗的一部分。 "android.intent.category.TEST"
String TIMEZONE_CHANGED_ACTION 廣播:時區(qū)已經(jīng)改變衙荐。 "android.intent.action.TIMEZONE_CHANGED"
String TIME_CHANGED_ACTION 廣播:時間已經(jīng)改變(重新設(shè)置)捞挥。 "android.intent.action.TIME_SET"
String TIME_TICK_ACTION 廣播:當前時間已經(jīng)變化(正常的時間流逝)。 "android.intent.action.TIME_TICK"
String UMS_CONNECTED_ACTION 廣播:設(shè)備進入 USB 大容量存儲模式忧吟。 "android.intent.action.UMS_CONNECTED"
String UMS_DISCONNECTED_ACTION 廣播:設(shè)備從 USB 大容量存儲模式退出砌函。 "android.intent.action.UMS_DISCONNECTED"
String UNIT_TEST_CATEGORY 類別:應(yīng)該被用作單元測試(通過 test harness 運行)。 "android.intent.category.UNIT_TEST"
String VIEW_ACTION 動作:向用戶顯示數(shù)據(jù)溜族。 "android.intent.action.VIEW"
String WALLPAPER_CATEGORY 類別:這個 activity 能過為設(shè)備設(shè)置墻紙讹俊。 "android.intent.category.WALLPAPER"
String WALLPAPER_CHANGED_ACTION 廣播:系統(tǒng)的墻紙已經(jīng)改變。 "android.intent.action.WALLPAPER_CHANGED"
String WALLPAPER_SETTINGS_ACTION 動作:顯示選擇墻紙的設(shè)置界面煌抒。輸入:無仍劈。 "android.intent.action.WALLPAPER_SETTINGS"
String WEB_SEARCH_ACTION 動作:執(zhí)行 web 搜索。 "android.intent.action.WEB_SEARCH"
String XMPP_CONNECTED_ACTION 廣播:XMPP 連接已經(jīng)被建立寡壮。 "android.intent.action.XMPP_CONNECTED"
String XMPP_DISCONNECTED_ACTION 廣播:XMPP 連接已經(jīng)被斷開贩疙。 "android.intent.action.XMP
ACCESS_FINE_LOCATION、ACCESS_LOCATION_EXTRA_COMMANDS况既、ACCESS_MOCK_LOCATION是有關(guān)GPS定位獲取的信息使用GPS LocationProvider類的相關(guān)定位信息必需聲明android.permission.ACCESS_FINE_LOCATION这溅、android.permission.ACCESS_LOCATION_EXTRA_COMMANDS和android.permission.ACCESS_MOCK_LOCATION
ACCESS_NETWORK_STATE是獲取網(wǎng)絡(luò)狀態(tài)的權(quán)限控制,如果獲取當前GSM網(wǎng)絡(luò)相關(guān)信息必需在androidmanifest.xml中聲明android.permission.ACCESS_NETWORK_STATE這句棒仍。
ACCESS_SURFACE_FLINGER是使用SurfaceFlinger底層API的令牌悲靴,必需聲明android.permission.ACCESS_SURFACE_FLINGER
ACCESS_WIFI_STATE權(quán)限可以獲取使用Wi-Fi等WLAN無線網(wǎng)絡(luò),加入android.permission.ACCESS_WIFI_STATE這句
ADD_SYSTEM_SERVICE是系統(tǒng)服務(wù)數(shù)據(jù)庫的管理權(quán)限莫其,比如添加一個系統(tǒng)服務(wù)必需聲明android.permission.ADD_SYSTEM_SERVICE
BATTERY_STATS是獲取Android平臺上電池設(shè)備的權(quán)限令牌对竣,必需聲明android.permission.BATTERY_STATS才可以獲得電池信息
BLUETOOTH藍牙信息類庇楞,獲取相關(guān)的藍牙信息必聲明android.permission.BLUETOOTH
BLUETOOTH_ADMIN是藍牙管理權(quán)限包含了身份安全認證,必需添加android.permission.BLUETOOTH_ADMIN類
BRICK "android.permission.BRICK"
BROADCAST_PACKAGE_REMOVED是廣播包移除類權(quán)限否纬,可以移除指定的系統(tǒng)消息吕晌,必需聲明android.permission.BROADCAST_PACKAGE_REMOVED這句
BROADCAST_STICKY "android.permission.BROADCAST_STICKY"
CALL_PHONE是允許Android手機撥打電話時使用的權(quán)限 "android.permission.CALL_PHONE"
CALL_PRIVILEGED "android.permission.CALL_PRIVILEGED"
CAMERA是攝像頭權(quán)限控制,可以管理照相功能的啟用 "android.permission.CAMERA"
CHANGE_COMPONENT_ENABLED_STATE "android.permission.CHANGE_COMPONENT_ENABLED_STATE"
CHANGE_CONFIGURATION是控制Android系統(tǒng)設(shè)置等敏感信息的權(quán)限临燃,修改時必需有android.permission.CHANGE_CONFIGURATION聲明睛驳。
CHANGE_NETWORK_STATE "android.permission.CHANGE_NETWORK_STATE"
CHANGE_WIFI_STATE是改變WLAN狀態(tài)的開關(guān),如果打開或關(guān)閉Wi-Fi必需加入android.permission.CHANGE_WIFI_STATE的聲明膜廊。
CLEAR_APP_CACHE清除程序緩存也是需要權(quán)限的乏沸,不要忘了包含android.permission.CLEAR_APP_CACHE這句
CLEAR_APP_USER_DATA "android.permission.CLEAR_APP_USER_DATA"
DELETE_CACHE_FILES "android.permission.DELETE_CACHE_FILES"
DELETE_PACKAGES "android.permission.DELETE_PACKAGES"
DEVICE_POWER "android.permission.DEVICE_POWER"
DISABLE_KEYGUARD "android.permission.DISABLE_KEYGUARD"
DUMP "android.permission.DUMP"
EXPAND_STATUS_BAR "android.permission.EXPAND_STATUS_BAR"
FACTORY_TEST "android.permission.FACTORY_TEST"
FLASHLIGHT "android.permission.FLASHLIGHT"
FORCE_BACK "android.permission.FORCE_BACK"
FOTA_UPDATE "android.permission.FOTA_UPDATE"
GET_ACCOUNTS "android.permission.GET_ACCOUNTS"
GET_PACKAGE_SIZE "android.permission.GET_PACKAGE_SIZE"
GET_TASKS "android.permission.GET_TASKS"
HARDWARE_TEST "android.permission.HARDWARE_TEST"
INJECT_EVENTS "android.permission.INJECT_EVENTS"
INSTALL_PACKAGES "android.permission.INSTALL_PACKAGES"
INTERNAL_SYSTEM_WINDOW "android.permission.INTERNAL_SYSTEM_WINDOW"
INTERNET "android.permission.INTERNET"
MANAGE_APP_TOKENS "android.permission.MANAGE_APP_TOKENS"
MASTER_CLEAR "android.permission.MASTER_CLEAR"
MODIFY_AUDIO_SETTINGS "android.permission.MODIFY_AUDIO_SETTINGS"
MODIFY_PHONE_STATE "android.permission.MODIFY_PHONE_STATE"
MOUNT_UNMOUNT_FILESYSTEMS "android.permission.MOUNT_UNMOUNT_FILESYSTEMS"
PERSISTENT_ACTIVITY "android.permission.PERSISTENT_ACTIVITY"
PROCESS_OUTGOING_CALLS "android.permission.PROCESS_OUTGOING_CALLS"
READ_CALENDAR "android.permission.READ_CALENDAR"
READ_CONTACTS "android.permission.READ_CONTACTS"
READ_FRAME_BUFFER "android.permission.READ_FRAME_BUFFER"
READ_INPUT_STATE "android.permission.READ_INPUT_STATE"
READ_LOGS "android.permission.READ_LOGS"
READ_OWNER_DATA "android.permission.READ_OWNER_DATA"
READ_PHONE_STATE "android.permission.READ_PHONE_STATE"
READ_SMS "android.permission.READ_SMS"
READ_SYNC_SETTINGS "android.permission.READ_SYNC_SETTINGS"
READ_SYNC_STATS "android.permission.READ_SYNC_STATS"
RECEIVE_BOOT_COMPLETED一般用于自啟動程序的聲明,當Android系統(tǒng)啟動時會發(fā)送這個廣播爪瓜,所以自啟動程序必需聲明android.permission.RECEIVE_BOOT_COMPLETED才可以正常運行
RECEIVE_MMS "android.permission.RECEIVE_MMS"
RECEIVE_SMS "android.permission.RECEIVE_SMS"
RECEIVE_WAP_PUSH "android.permission.RECEIVE_WAP_PUSH"
RECORD_AUDIO "android.permission.RECORD_AUDIO"
REORDER_TASKS "android.permission.REORDER_TASKS"
RESTART_PACKAGES "android.permission.RESTART_PACKAGES"
SEND_SMS "android.permission.SEND_SMS"
SET_ACTIVITY_WATCHER "android.permission.SET_ACTIVITY_WATCHER"
SET_ALWAYS_FINISH "android.permission.SET_ALWAYS_FINISH"
SET_ANIMATION_SCALE "android.permission.SET_ANIMATION_SCALE"
SET_DEBUG_APP "android.permission.SET_DEBUG_APP"
SET_ORIENTATION "android.permission.SET_ORIENTATION"
SET_PREFERRED_APPLICATIONS "android.permission.SET_PREFERRED_APPLICATIONS"
SET_PROCESS_FOREGROUND "android.permission.SET_PROCESS_FOREGROUND"
SET_PROCESS_LIMIT "android.permission.SET_PROCESS_LIMIT"
SET_TIME_ZONE "android.permission.SET_TIME_ZONE"
SET_WALLPAPER "android.permission.SET_WALLPAPER"
SET_WALLPAPER_HINTS "android.permission.SET_WALLPAPER_HINTS"
SIGNAL_PERSISTENT_PROCESSES "android.permission.SIGNAL_PERSISTENT_PROCESSES"
STATUS_BAR "android.permission.STATUS_BAR"
SYSTEM_ALERT_WINDOW "android.permission.SYSTEM_ALERT_WINDOW"
VIBRATE "android.permission.VIBRATE"
WAKE_LOCK "android.permission.WAKE_LOCK"
WRITE_CALENDAR "android.permission.WRITE_CALENDAR"
WRITE_CONTACTS "android.permission.WRITE_CONTACTS"
WRITE_OWNER_DATA "android.permission.WRITE_OWNER_DATA"
WRITE_SETTINGS "android.permission.WRITE_SETTINGS"
WRITE_SMS "android.permission.WRITE_SMS"
WRITE_SYNC_SETTINGS "android.permission.WRITE_SYNC_SETTINGS"