android uid 的定义

来源:互联网 发布:淘宝天下 邀请 小二 编辑:程序博客网 时间:2024/06/10 02:36
  1. #define AID_ROOT             0  /* traditional unix root user */  
  2.   
  3. #define AID_SYSTEM        1000  /* system server */  
  4.   
  5. #define AID_RADIO         1001  /* telephony subsystem, RIL */  
  6. #define AID_BLUETOOTH     1002  /* bluetooth subsystem */  
  7. #define AID_GRAPHICS      1003  /* graphics devices */  
  8. #define AID_INPUT         1004  /* input devices */  
  9. #define AID_AUDIO         1005  /* audio devices */  
  10. #define AID_CAMERA        1006  /* camera devices */  
  11. #define AID_LOG           1007  /* log devices */  
  12. #define AID_COMPASS       1008  /* compass device */  
  13. #define AID_MOUNT         1009  /* mountd socket */  
  14. #define AID_WIFI          1010  /* wifi subsystem */  
  15. #define AID_ADB           1011  /* android debug bridge (adbd) */  
  16. #define AID_INSTALL       1012  /* group for installing packages */  
  17. #define AID_MEDIA         1013  /* mediaserver process */  
  18. #define AID_DHCP          1014  /* dhcp client */  
  19. #define AID_SDCARD_RW     1015  /* external storage write access */  
  20. #define AID_VPN           1016  /* vpn system */  
  21. #define AID_KEYSTORE      1017  /* keystore subsystem */  
  22. #define AID_USB           1018  /* USB devices */  
  23. #define AID_DRM           1019  /* DRM server */  
  24. #define AID_AVAILABLE     1020  /* available for use */  
  25. #define AID_GPS           1021  /* GPS daemon */  
  26. #define AID_UNUSED1       1022  /* deprecated, DO NOT USE */  
  27. #define AID_MEDIA_RW      1023  /* internal media storage write access */  
  28. #define AID_MTP           1024  /* MTP USB driver access */  
  29. #define AID_NFC           1025  /* nfc subsystem */  
  30. #define AID_DRMRPC        1026  /* group for drm rpc */  
  31.   
  32. #define AID_SHELL         2000  /* adb and debug shell user */  
  33. #define AID_CACHE         2001  /* cache access */  
  34. #define AID_DIAG          2002  /* access to diagnostic resources */  
  35.   
  36. /* The 3000 series are intended for use as supplemental group id's only. 
  37.  * They indicate special Android capabilities that the kernel is aware of. */  
  38. #define AID_NET_BT_ADMIN  3001  /* bluetooth: create any socket */  
  39. #define AID_NET_BT        3002  /* bluetooth: create sco, rfcomm or l2cap sockets */  
  40. #define AID_INET          3003  /* can create AF_INET and AF_INET6 sockets */  
  41. #define AID_NET_RAW       3004  /* can create raw INET sockets */  
  42. #define AID_NET_ADMIN     3005  /* can configure interfaces and routing tables. */  
  43. #define AID_NET_BW_STATS  3006  /* read bandwidth statistics */  
  44. #define AID_NET_BW_ACCT   3007  /* change bandwidth statistics accounting */  
  45.   
  46. #define AID_MISC          9998  /* access to misc storage */  
  47. #define AID_NOBODY        9999  
  48.   
  49. #define AID_APP          10000 /* first app user */  
原创粉丝点击