安卓总结

1.

背景 常驻 应用  数目

famework/base/services/core/java/com/android/server/am/ProvessList.java

staticfinalint MAX_CACHED_APPS=16;

背景知识:

android内核剖析学习笔记:AMS(ActivityManagerService)内部原理和工作机制

http://blog.csdn.net/u013149325/article/details/41827013

2.

  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 */ 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值