• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1{
2    "jobs" : [{
3            "name" : "init",
4            "cmds" : [
5                "mkdir /dev/memcg",
6                "mount cgroup none /dev/memcg memory",
7                "chown system system /dev/memcg",
8                "chown system system /dev/memcg/tasks",
9                "chown system system /dev/memcg/memory.oom_control",
10                "chown system system /dev/memcg/cgroup.event_control",
11                "chown system system /dev/memcg/memory.pressure_level",
12                "chmod 0755 /dev/memcg",
13                "chmod 0755 /dev/memcg/tasks",
14                "chmod 0755 /dev/memcg/memory.oom_control",
15                "chmod 0755 /dev/memcg/cgroup.event_control",
16                "chmod 0755 /dev/memcg/memory.pressure_level",
17                "mkdir /dev/cpuset",
18                "mount cgroup none /dev/cpuset cpuset",
19                "mkdir /dev/cpuset/background",
20                "chown system system /dev/cpuset",
21                "chown system system /dev/cpuset/tasks",
22                "chown system system /dev/cpuset/background",
23                "chown system system /dev/cpuset/background/tasks",
24                "chmod 0755 /dev/cpuset",
25                "chmod 0755 /dev/cpuset/tasks",
26                "chmod 0755 /dev/cpuset/background",
27                "chmod 0755 /dev/cpuset/background/tasks",
28                "write /dev/cpuset/background/cpuset.cpus 0",
29                "mkdir /dev/cpuctl",
30                "mount cgroup none /dev/cpuctl cpu",
31                "mkdir /dev/cpuctl/background",
32                "chown system system /dev/cpuctl",
33                "chown system system /dev/cpuctl/tasks",
34                "chown system system /dev/cpuctl/background",
35                "chown system system /dev/cpuctl/background/tasks",
36                "chmod 0755 /dev/cpuctl",
37                "chmod 0755 /dev/cpuctl/tasks",
38                "chmod 0755 /dev/cpuctl/background",
39                "chmod 0755 /dev/cpuctl/background/tasks",
40                "write /dev/cpuctl/background/cpu.shares 512",
41                "mkdir /dev/freezer",
42                "mount cgroup none /dev/freezer freezer",
43                "mkdir /dev/freezer/frozen",
44                "mkdir /dev/freezer/thawed",
45                "chown system system /dev/freezer",
46                "chown system system /dev/freezer/frozen",
47                "chown system system /dev/freezer/frozen/tasks",
48                "chown system system /dev/freezer/thawed",
49                "chown system system /dev/freezer/thawed/tasks",
50                "chmod 0755 /dev/freezer",
51                "chmod 0755 /dev/freezer/frozen",
52                "chmod 0755 /dev/freezer/frozen/tasks",
53                "chmod 0755 /dev/freezer/thawed",
54                "chmod 0755 /dev/freezer/thawed/tasks",
55                "write /dev/freezer/frozen/freezer.state FROZEN",
56                "write /dev/freezer/thawed/freezer.state THAWED"
57            ]
58        }, {
59            "name" : "boot",
60            "cmds" : [
61                "chown radio system /sys/power/wake_lock",
62                "chown radio system /sys/power/wake_unlock",
63                "chmod 0664 /sys/power/wakeup_count",
64                "start foundation"
65            ]
66        }
67    ],
68    "services" : [{
69            "name" : "foundation",
70            "path" : ["/system/bin/sa_main", "/system/profile/foundation.xml"],
71            "importance" : -20,
72            "uid" : "system",
73            "gid" : ["system"],
74            "caps" : ["SYS_PTRACE", "KILL"]
75        }
76    ]
77}
78