Android属性系统简介【转】( 三 )


具体的UID映射为:
#define AID_RADIO1001/* telephony subsystem, RIL */#define AID_BLUETOOTH1002/* bluetooth subsystem */#define AID_GRAPHICS1003/* graphics devices */#define AID_INPUT1004/* input devices */#define AID_AUDIO1005/* audio devices */#define AID_CAMERA1006/* camera devices */#define AID_LOG1007/* log devices */#define AID_COMPASS1008/* compass device */#define AID_MOUNT1009/* mountd socket */#define AID_WIFI1010/* wifi subsystem */#define AID_ADB1011/* android debug bridge (adbd) */#define AID_INSTALL1012/* group for installing packages */#define AID_MEDIA1013/* mediaserver process */#define AID_DHCP1014/* dhcp client */#define AID_SDCARD_RW1015/* external storage write access */#define AID_VPN1016/* vpn system */#define AID_KEYSTORE1017/* keystore subsystem */#define AID_USB1018/* USB devices */#define AID_DRM1019/* DRM server */#define AID_MDNSR1020/* MulticastDNSResponder (service discovery) */#define AID_GPS1021/* GPS daemon */#define AID_UNUSED11022/* deprecated, DO NOT USE */#define AID_MEDIA_RW1023/* internal media storage write access */#define AID_MTP1024/* MTP USB driver access */#define AID_UNUSED21025/* deprecated, DO NOT USE */#define AID_DRMRPC1026/* group for drm rpc */#define AID_NFC1027/* nfc subsystem */#define AID_SDCARD_R1028/* external storage read access */#define AID_CLAT1029/* clat part of nat464 */#define AID_LOOP_RADIO1030/* loop radio devices */#define AID_MEDIA_DRM1031/* MediaDrm plugins */#define AID_PACKAGE_INFO1032/* access to installed package details */#define AID_SDCARD_PICS1033/* external storage photos access */#define AID_SDCARD_AV1034/* external storage audio/video access */#define AID_SDCARD_ALL1035/* access all users external storage */#define AID_LOGD1036/* log daemon */#define AID_SHARED_RELRO1037/* creator of shared GNU RELRO files */
即如.sys开头的属性,只能有 user(包括root)进行修改,其他用户无法进行修改 。
这个user id表定义在\\core\init\.c和\\core\\\onfig.h文件中
6、
在 中还定义了 来对一些比较通用的数据进行初始化,并将数据写入.db.其中直接在 中被初始化的属性写在.xml中:
true60000falsecell,bluetooth,wifiwifitruetrue102false0%0%truefalsefalsegpstrue1truefalsetruefalsetruetruefalsetruetrue1/system/media/audio/ui/LowBattery.ogg0/system/media/audio/ui/Dock.ogg/system/media/audio/ui/Undock.ogg/system/media/audio/ui/Dock.ogg/system/media/audio/ui/Undock.ogg0/system/media/audio/ui/Lock.ogg/system/media/audio/ui/Unlock.oggtrue
将通过将这些数据读入.db,同时作为控制.db的,所有对该数据库的操作都要通过它来进行 。
其他具体的属性的描述都在.java这个类中描述 。