`

android permission list

阅读更多

              今天准备用android提供的SMS接口发送消息,结果第一个helloWorld就报错了,说没有android.permission.SEND_SMS   go之发现需要配置这个东东,故在想其他还有什么我以后可能会用的的权限呢,go之半天结果都是访问developer.android.com  今天的GAE翻q也不给力,翻不出去了(可能是我自己哪里搞错了),然后在stackoverflow.com 找到一个帖子 http://stackoverflow.com/questions/4237982/where-can-i-get-a-list-of-android-permissions 帖子里说查看Manifest.permission class ,好吧自己傻了原来就在sdk里的,因为验证的时候总要用吧。

              为了以后方便查询 ,故在此记录下总的列表,我的sdk选的还是1.6的(虽然有2.3的可用,为了兼容以前的版本)

 

             permission_group

 

ACCOUNTS = "android.permission-group.ACCOUNTS";
COST_MONEY = "android.permission-group.COST_MONEY";
DEVELOPMENT_TOOLS = "android.permission-group.DEVELOPMENT_TOOLS";
HARDWARE_CONTROLS = "android.permission-group.HARDWARE_CONTROLS";
LOCATION = "android.permission-group.LOCATION";
MESSAGES = "android.permission-group.MESSAGES";
NETWORK = "android.permission-group.NETWORK";
PERSONAL_INFO = "android.permission-group.PERSONAL_INFO";
PHONE_CALLS = "android.permission-group.PHONE_CALLS";
STORAGE = "android.permission-group.STORAGE";
SYSTEM_TOOLS = "android.permission-group.SYSTEM_TOOLS";
 

             permission

 

ACCESS_CHECKIN_PROPERTIES = "android.permission.ACCESS_CHECKIN_PROPERTIES";
ACCESS_COARSE_LOCATION = "android.permission.ACCESS_COARSE_LOCATION";
ACCESS_FINE_LOCATION = "android.permission.ACCESS_FINE_LOCATION";
ACCESS_LOCATION_EXTRA_COMMANDS = "android.permission.ACCESS_LOCATION_EXTRA_COMMANDS";
ACCESS_MOCK_LOCATION = "android.permission.ACCESS_MOCK_LOCATION";
ACCESS_NETWORK_STATE = "android.permission.ACCESS_NETWORK_STATE";
ACCESS_SURFACE_FLINGER = "android.permission.ACCESS_SURFACE_FLINGER";
ACCESS_WIFI_STATE = "android.permission.ACCESS_WIFI_STATE";
BATTERY_STATS = "android.permission.BATTERY_STATS";
BIND_APPWIDGET = "android.permission.BIND_APPWIDGET";
BIND_INPUT_METHOD = "android.permission.BIND_INPUT_METHOD";
BLUETOOTH = "android.permission.BLUETOOTH";
BLUETOOTH_ADMIN = "android.permission.BLUETOOTH_ADMIN";
BRICK = "android.permission.BRICK";
BROADCAST_PACKAGE_REMOVED = "android.permission.BROADCAST_PACKAGE_REMOVED";
BROADCAST_SMS = "android.permission.BROADCAST_SMS";
BROADCAST_STICKY = "android.permission.BROADCAST_STICKY";
BROADCAST_WAP_PUSH = "android.permission.BROADCAST_WAP_PUSH";
CALL_PHONE = "android.permission.CALL_PHONE";
CALL_PRIVILEGED = "android.permission.CALL_PRIVILEGED";
CAMERA = "android.permission.CAMERA";
CHANGE_COMPONENT_ENABLED_STATE = "android.permission.CHANGE_COMPONENT_ENABLED_STATE";
CHANGE_CONFIGURATION = "android.permission.CHANGE_CONFIGURATION";
CHANGE_NETWORK_STATE = "android.permission.CHANGE_NETWORK_STATE";
CHANGE_WIFI_MULTICAST_STATE = "android.permission.CHANGE_WIFI_MULTICAST_STATE";
CHANGE_WIFI_STATE = "android.permission.CHANGE_WIFI_STATE";
CLEAR_APP_CACHE = "android.permission.CLEAR_APP_CACHE";
CLEAR_APP_USER_DATA = "android.permission.CLEAR_APP_USER_DATA";
CONTROL_LOCATION_UPDATES = "android.permission.CONTROL_LOCATION_UPDATES";
DELETE_CACHE_FILES = "android.permission.DELETE_CACHE_FILES";
DELETE_PACKAGES = "android.permission.DELETE_PACKAGES";
DEVICE_POWER = "android.permission.DEVICE_POWER";
DIAGNOSTIC = "android.permission.DIAGNOSTIC";
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";
GET_ACCOUNTS = "android.permission.GET_ACCOUNTS";
GET_PACKAGE_SIZE = "android.permission.GET_PACKAGE_SIZE";
GET_TASKS = "android.permission.GET_TASKS";
GLOBAL_SEARCH = "android.permission.GLOBAL_SEARCH";
HARDWARE_TEST = "android.permission.HARDWARE_TEST";
INJECT_EVENTS = "android.permission.INJECT_EVENTS";
INSTALL_LOCATION_PROVIDER = "android.permission.INSTALL_LOCATION_PROVIDER";
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_FORMAT_FILESYSTEMS = "android.permission.MOUNT_FORMAT_FILESYSTEMS";
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_HISTORY_BOOKMARKS = "com.android.browser.permission.READ_HISTORY_BOOKMARKS";
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";
REBOOT = "android.permission.REBOOT";
RECEIVE_BOOT_COMPLETED = "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_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";
SUBSCRIBED_FEEDS_READ = "android.permission.SUBSCRIBED_FEEDS_READ";
SUBSCRIBED_FEEDS_WRITE = "android.permission.SUBSCRIBED_FEEDS_WRITE";
SYSTEM_ALERT_WINDOW = "android.permission.SYSTEM_ALERT_WINDOW";
UPDATE_DEVICE_STATS = "android.permission.UPDATE_DEVICE_STATS";
VIBRATE = "android.permission.VIBRATE";
WAKE_LOCK = "android.permission.WAKE_LOCK";
WRITE_APN_SETTINGS = "android.permission.WRITE_APN_SETTINGS";
WRITE_CALENDAR = "android.permission.WRITE_CALENDAR";
WRITE_CONTACTS = "android.permission.WRITE_CONTACTS";
WRITE_EXTERNAL_STORAGE = "android.permission.WRITE_EXTERNAL_STORAGE";
WRITE_GSERVICES = "android.permission.WRITE_GSERVICES";
WRITE_HISTORY_BOOKMARKS = "com.android.browser.permission.WRITE_HISTORY_BOOKMARKS";
WRITE_OWNER_DATA = "android.permission.WRITE_OWNER_DATA";
WRITE_SECURE_SETTINGS = "android.permission.WRITE_SECURE_SETTINGS";
WRITE_SETTINGS = "android.permission.WRITE_SETTINGS";
WRITE_SMS = "android.permission.WRITE_SMS";
WRITE_SYNC_SETTINGS = "android.permission.WRITE_SYNC_SETTINGS";
 

 

分享到:
评论

相关推荐

    Android Permission Util 安卓权限申请工具类.zip

    Android Permission Util 安卓权限申请工具类QS权限实用程序Android Permission Util 安卓权限申请工具类Copy and paste just do it! 复制粘贴就是干! PermissionUtil.requestPermission(this, new PermissionUtil....

    百度地图API报PERMISSION_UNFINISHED错误

    keytool -list -v -keystore ~/.android/debug.keystore -alias androiddebugkey -storepass android -keypass android ``` 这里假设使用的是默认的调试证书。如果使用了自定义的签名文件,则需要相应调整路径和...

    Android 获取手机所有已安装的应用,并可以打开它

    <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" /> <uses-permission android:name="android.permission.GET_TASKS" /> ``` 接着,我们创建一个Activity,用于展示所有已安装的应用。...

    takephoto拍照相册开源库更改为用androidx库v4.1.0版本实例演示

    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> <uses-feature android:name="android.hardware.camera" android:required="true" /> ``` 然后在活动中初始化takephoto库并设置回...

    android读取Excel文件(Android studio开发环境)

    <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" /> ``` 并在需要读取文件的地方检查并请求权限: ```java if (ContextCompat.checkSelfPermission(this, Manifest.permission....

    Android获取Wifi列表

    <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" /> <uses-permission android:name="android.permission.CHANGE_WIFI_STATE" /> ``` 这两个权限分别用于读取Wi-Fi状态和改变Wi-Fi状态。...

    Android 基于libaums实现读写U盘文件

    <uses-permission android:name="android.permission.USB_PERMISSION" /> ``` 同时,你需要在用户连接U盘时动态请求`USB_PERMISSION`权限。 总的来说,通过libaums库,开发者可以在Android应用中实现对U盘的读写...

    android google map 导航

    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> <uses-permission android:name="com.google.android.providers.gsf.permission.READ_GSERVICES" /> <uses-permission android:name...

    android获取wifi列表

    <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /> ``` 8. **运行并测试**: 运行应用程序,确保手机有开启Wi-Fi的权限。点击应用,你应该能看到当前可用的Wi-Fi列表。当Wi-Fi扫描...

    Qt for android 动态权限申请

    <uses-permission android:name="android.permission.READ_CONTACTS" /> ``` 以上是一个基本的Qt for Android动态权限申请工具类的实现。在实际应用中,你可能需要为多个权限添加检查和请求功能,或者封装成更...

    Android加载附近WiFi列表,并自动更新

    <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /> <!-- 对于Android 6.0及以上版本需要运行时权限 --> ``` 六、处理WiFi列表 `getScanResults()`返回一个`ScanResult`列表,每个`...

    android studio wifi 扫描 连接代码

    <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" /> <uses-permission android:name="android.permission.CHANGE_WIFI_STATE" /> ``` 接下来,我们创建一个Activity,用于处理WiFi操作。在...

    Android studio—读取通讯录

    <uses-permission android:name="android.permission.READ_CONTACTS" /> ``` 然后,在运行时,我们需要检查并请求此权限。在Activity或Fragment中,可以使用`shouldShowRequestPermissionRationale()`和`...

    Android一键清理后台实现

    在Android 6.0(API 23)及以上版本,需要在运行时请求`android.permission.KILL_BACKGROUND_PROCESSES`权限,因为这是一个危险权限。 最后,为了优化用户体验,我们可以考虑添加其他功能,如定期清理、清理历史...

    android文件管理类

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

    androidwifi自动连接

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

    Android代码-Android-ContactPicker

    The Android Contact Picker is a beautifully designed component to pick one or several contacts (including groups) from the Android contacts list. A demo app can be found here: ...

    详解Android开发录音和播放音频的步骤(动态获取权限)

    * `android.permission.READ_EXTERNAL_STORAGE`:读取外部存储设备的权限 * `android.permission.WRITE_EXTERNAL_STORAGE`:写入外部存储设备的权限 * `android.permission.RECORD_AUDIO`:录音权限 步骤二:实例化...

    Android与Internet接轨Android与Internet接轨Android与Internet接轨

    在描述中提到的`<uses-permission android:name="android.permission.INTERNET"/>`这一行代码就是授予应用访问网络的权限,没有这个权限,应用无法进行任何网络通信。 1. **HTTP Post方式访问**: 当你需要发送...

    android13配置GlobalSearch全局搜索

    <uses-permission android:name="android.permission.BIND_GLOBAL_SEARCH_SERVICE" /> ``` 2. **注册服务**:声明一个继承自`GlobalSearchService`的服务,并在`AndroidManifest.xml`中注册它: ```xml android:...

Global site tag (gtag.js) - Google Analytics