android权限配置

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
      package="net.testSocket"
      android:versionCode="1"
      android:versionName="1.0">
    <application android:icon="@drawable/icon" android:label="@string/app_name">
        <activity android:name=".TestSocket"
                  android:label="@string/app_name">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
    </application>
    <!-- 添加可以通迅协议 -->
    <uses-permission android:name="android.permission.INTERNET"></uses-permission>
<!-- 开通大部分权限 用于程序开发 以下的注释都是解释的上面一条 -->
    <uses-permission android:name="android.permission.ACCESS_CHECKIN_PROPERTIES"></uses-permission>
<!-- 允许读写访问 "properties"表在checkin数据库中,改值可以修改上传( Allows read/write access to the "properties" table inthe checkin database, to change values that get uploaded) -->
  <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"></uses-permission>
<!-- 允许一个程序访问CellID或WiFi热点来获取粗略的位置(Allows an application to access coarse (e.g., Cell-ID, WiFi)location) -->
  <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"></uses-permission>
<!-- 允许一个程序访问精良位置(如GPS) (Allows an application to access fine(e.g., GPS) location) -->
  <uses-permission android:name="android.permission.ACCESS_LOCATION_EXTRA_COMMANDS"></uses-permission>
<!-- 允许应用程序访问额外的位置提供命令(Allows an application to access extra location provider commands) -->
  <uses-permission android:name="android.permission.ACCESS_MOCK_LOCATION"></uses-permission>
<!-- 允许程序创建模拟位置提供用于测试(Allows an application to create mock location providers fortesting) -->
  <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"></uses-permission>
<!-- 允许程序访问有关GSM网络信息(Allows applications to accessinformation about networks) -->
  <uses-permission android:name="android.permission.ACCESS_SURFACE_FLINGER"></uses-permission>
<!-- 允许程序使用SurfaceFlinger底层特性(Allows an application touse SurfaceFlinger's low level features) -->
  <uses-permission android:name="android.permission.ACCESS_WIFI_STATE"></uses-permission>
<!-- 允许程序访问Wi-Fi网络状态信息(Allows applications to accessinformation about Wi-Fi networks) -->
  <uses-permission android:name="android.permission.ADD_SYSTEM_SERVICE"></uses-permission>
<!-- 允许程序发布系统级服务(Allows an application to publish system-level services) -->
  <uses-permission android:name="android.permission.BROADCAST_PACKAGE_REMOVED"></uses-permission>
<!-- 允许程序广播一个提示消息在一个应用程序包已经移除后(Allows an application to broadcast a notification that anapplication package has been removed) -->
  <uses-permission android:name="android.permission.BROADCAST_STICKY"></uses-permission>
<!-- 允许一个程序广播常用intents(Allows an application to broadcast sticky intents) -->
  <uses-permission android:name="android.permission.CHANGE_COMPONENT_ENABLED_STATE"></uses-permission>
<!-- 允许一个程序是否改变一个组件或其他的启用或禁用(Allows an application to change whether an application component(other than its own) is enabled or not. ) -->
  <uses-permission android:name="android.permission.CHANGE_CONFIGURATION"></uses-permission>
<!-- 允许一个程序修改当前设置,如本地化(Allows an application to modify the current configuration, such aslocale. ) -->
  <uses-permission android:name="android.permission.CHANGE_NETWORK_STATE"></uses-permission>
<!-- 允许程序改变网络连接状态(Allows applications to change network connectivity state) -->
  <uses-permission android:name="android.permission.CHANGE_WIFI_STATE"></uses-permission>
<!-- 允许程序改变Wi-Fi连接状态(Allows applications to changeWi-Fi connectivity state) -->
  <uses-permission android:name="android.permission.CONTROL_LOCATION_UPDATES"></uses-permission>
<!-- 允许启用禁止位置更新提示从无线模块(Allows enabling/disabling location update notifications from theradio. ) -->
  <uses-permission android:name="android.permission.DELETE_CACHE_FILES"></uses-permission>
<!-- 允许程序删除缓存文件(Allows an application to delete cache files) -->
  <uses-permission android:name="android.permission.DELETE_PACKAGES"></uses-permission>
<!-- 允许一个程序删除包(Allows an application to delete packages) -->
  <uses-permission android:name="android.permission.DUMP"></uses-permission>
<!-- 允许程序返回状态抓取信息从系统服务(Allows an application to retrieve state dump information fromsystem services.) -->
  <uses-permission android:name="android.permission.FACTORY_TEST"></uses-permission>
<!-- 作为一个工厂测试程序,运行在root用户(Run as a manufacturer testapplication, running as the root user. ) -->
  <uses-permission android:name="android.permission.GET_PACKAGE_SIZE"></uses-permission>
<!-- 允许一个程序获取任何package占用空间容量(Allows an application to findout the space used by any package. ) -->
  <uses-permission android:name="android.permission.GET_TASKS"></uses-permission>
<!-- 允许一个程序获取信息有关当前或最近运行的任务,一个缩略的任务状态,是否活动等等(Allows an application to get information about the currently orrecently running tasks: a thumbnail representation of the tasks, whatactivities are running in it, etc.) -->
  <uses-permission android:name="android.permission.INSTALL_PACKAGES"></uses-permission>
<!-- 允许一个程序安装packages(Allows an application to install packages. ) -->
  <uses-permission android:name="android.permission.INTERNAL_SYSTEM_WINDOW"></uses-permission>
<!-- 允许打开窗口使用系统用户界面(Allows an application to open windows that are for use by parts ofthe system user interface. ) -->
  <uses-permission android:name="android.permission.MODIFY_PHONE_STATE"></uses-permission>
<!-- 允许修改话机状态,如电源,人机接口等(Allows modification of the telephony state - power on, mmi, etc. ) -->
  <uses-permission android:name="android.permission.MOUNT_UNMOUNT_FILESYSTEMS"></uses-permission>
<!-- 允许挂载和反挂载文件系统可移动存储(Allows mounting and unmounting file systems for removable storage.) -->
  <uses-permission android:name="android.permission.PERSISTENT_ACTIVITY"></uses-permission>
<!-- 允许一个程序设置他的activities显示(Allow an application to makeits activities persistent. ) -->
  <uses-permission android:name="android.permission.READ_SYNC_SETTINGS"></uses-permission>
<!-- 允许程序读取同步设置(Allows applications to read the sync settings) -->
  <uses-permission android:name="android.permission.READ_SYNC_STATS"></uses-permission>
<!-- 允许程序读取同步状态(Allows applications to read the sync stats) -->
  <uses-permission android:name="android.permission.RECEIVE_WAP_PUSH"></uses-permission>
<!-- 允许程序监控将收到WAP PUSH信息(Allows an application to monitorincoming WAP push messages. ) -->
  <uses-permission android:name="android.permission.RESTART_PACKAGES"></uses-permission>
<!-- 允许程序重新启动其他程序(Allows an application to restart other applications) -->
  <uses-permission android:name="android.permission.SET_ACTIVITY_WATCHER"></uses-permission>
<!-- 允许程序监控或控制activities已经启动全局系统中Allows an application towatch and control how activities are started globally in the system. -->
  <uses-permission android:name="android.permission.SET_ALWAYS_FINISH"></uses-permission>
<!-- 允许程序控制是否活动间接完成在处于后台时Allows an application to control whether activities are immediatelyfinished when put in the background. -->
  <uses-permission android:name="android.permission.SET_ANIMATION_SCALE"></uses-permission>
<!-- 修改全局信息比例(Modify the global animation scaling factor.) -->
  <uses-permission android:name="android.permission.SET_DEBUG_APP"></uses-permission>
<!-- 配置一个程序用于调试(Configure an application for debugging.) -->
  <uses-permission android:name="android.permission.SET_PREFERRED_APPLICATIONS"></uses-permission>
<!-- 允许一个程序修改列表参数PackageManager.addPackageToPreferred() 和PackageManager.removePackageFromPreferred()方法(Allows an application to modify the list of preferred applicationswith the PackageManager.addPackageToPreferred() andPackageManager.removePackageFromPreferred() methods.) -->
  <uses-permission android:name="android.permission.SIGNAL_PERSISTENT_PROCESSES"></uses-permission>
<!-- 允许程序请求发送信号到所有显示的进程中(Allow an application to request that a signal be sent to allpersistent processes) -->
  <uses-permission android:name="android.permission.STATUS_BAR"></uses-permission>
<!-- 允许程序打开、关闭或禁用状态栏及图标Allows an application to open, close, or disable the status bar andits icons. -->
  
</manifest>
发布了49 篇原创文章 · 获赞 34 · 访问量 18万+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章