forked from CyanogenMod/android_device_lge_p880
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdevice_perms.h
62 lines (58 loc) · 2.17 KB
/
device_perms.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#define CONTROL_PERMS
struct {
const char *service;
unsigned int uid;
unsigned int gid;
} control_perms[] = {
{ "dumpstate",AID_SHELL, AID_LOG },
{ "ril-daemon",AID_RADIO, AID_RADIO },
{ "rawip_rmnet1",AID_RADIO, AID_RADIO },
{ "rawip_rmnet2",AID_RADIO, AID_RADIO },
{ "rmnet1_down", AID_RADIO, AID_RADIO },
{ "rmnet2_down", AID_RADIO, AID_RADIO },
{ "insmod_rawip", AID_RADIO, AID_RADIO },
{ "rmmod_rawip", AID_RADIO, AID_RADIO },
{NULL, 0, 0 }
};
#define PROPERTY_PERMS
struct {
const char *prefix;
unsigned int uid;
unsigned int gid;
} property_perms[] = {
{ "net.rmnet", AID_RADIO, 0 },
{ "net.gprs.", AID_RADIO, 0 },
{ "net.ppp", AID_RADIO, 0 },
{ "net.qmi", AID_RADIO, 0 },
{ "net.lte", AID_RADIO, 0 },
{ "net.cdma", AID_RADIO, 0 },
{ "ril.", AID_RADIO, 0 },
{ "gsm.", AID_RADIO, 0 },
{ "persist.radio", AID_RADIO, 0 },
{ "net.dns", AID_RADIO, 0 },
{ "sys.usb.config", AID_RADIO, 0 },
{ "net.", AID_SYSTEM, 0 },
{ "dev.", AID_SYSTEM, 0 },
{ "runtime.", AID_SYSTEM, 0 },
{ "hw.", AID_SYSTEM, 0 },
{ "sys.", AID_SYSTEM, 0 },
{ "service.", AID_SYSTEM, 0 },
{ "service.", AID_RADIO, 0 },
{ "wlan.", AID_SYSTEM, 0 },
{ "dhcp.", AID_SYSTEM, 0 },
{ "dhcp.", AID_DHCP, 0 },
{ "debug.", AID_SHELL, 0 },
{ "log.", AID_SHELL, 0 },
{ "service.adb.root", AID_SHELL, 0 },
{ "service.adb.tcp.port", AID_SHELL, 0 },
{ "persist.sys.", AID_SYSTEM, 0 },
{ "persist.service.", AID_SYSTEM, 0 },
{ "persist.service.", AID_RADIO, 0 },
{ "persist.security.",AID_SYSTEM, 0 },
{ "net.pdp", AID_RADIO, AID_RADIO },
{ "net.pdp1", AID_RADIO, AID_RADIO },
{ "net.pdp2", AID_RADIO, AID_RADIO },
{ "net.rmmod.svc_done", AID_RADIO, AID_RADIO },
{ "media.tegra", AID_MEDIA, 0 },
{ NULL, 0, 0 }
};