blob: 988a5e193d77fc8aed0a27ea6adab2dd23b49f77 [file] [log] [blame]
Amit Pundir4e375822019-04-18 16:46:10 +05301import init.${ro.hardware}.usb.rc
2import init.${ro.hardware}.power.rc
3
4on fs
5 mount_all /vendor/etc/init/fstab.${ro.hardware}
6 swapon_all /vendor/etc/init/fstab.${ro.hardware}
7
Yongqin Liuab5d0cc2020-03-20 13:44:54 +08008on post-fs
9 # set RLIMIT_MEMLOCK to 64MB
10 setrlimit 8 67108864 67108864
11
Amit Pundir4e375822019-04-18 16:46:10 +053012on init
13 # For legacy support
14 # See storage config details at http://source.android.com/tech/storage/
15 # since /storage is mounted on post-fs in init.rc
16 symlink /sdcard /storage/sdcard0
17
18 # Initialize cpusets to boot-time values
19 write /dev/cpuset/foreground/cpus 0-7
20 write /dev/cpuset/background/cpus 0-7
21 write /dev/cpuset/system-background/cpus 0-7
22 write /dev/cpuset/top-app/cpus 0-7
23
24on early-boot
25 mount debugfs debugfs /sys/kernel/debug
26 chmod 755 /sys/kernel/debug
27 chmod 755 /sys/kernel/debug/sync
28 chown graphics graphics /sys/kernel/debug/sync/sw_sync
29 chmod 777 /sys/kernel/debug/sync/sw_sync
30 chown graphics graphics /sys/kernel/debug/sync/info
31
32on zygote-start
33 mkdir /data/vendor/wifi 0770 wifi wifi
34 mkdir /data/vendor/wifi/wpa 0770 wifi wifi
35 mkdir /data/vendor/wifi/wpa/sockets 0770 wifi wifi
36
37on property:sys.boot_completed=1
38 # update cpuset now that processors are up
39 # Foreground should contain most cores (7 is reserved for top-app)
40 write /dev/cpuset/foreground/cpus 0-6
41
42 # top-app gets all cpus (including reserved #7)
43 write /dev/cpuset/top-app/cpus 0-7
44
45 #background contains a small subset (generally one little core)
46 write /dev/cpuset/background/cpus 0
47
48 # add system-background cpuset, a new cpuset for system services
49 # that should not run on larger cores
50 # system-background is for system tasks that should only run on
51 # little cores, not on bigs to be used only by init
52 write /dev/cpuset/system-background/cpus 0-3
53
54service wpa_supplicant /vendor/bin/hw/wpa_supplicant \
55 -Dnl80211 -g@android:wpa_wlan0
56 interface android.hardware.wifi.supplicant@1.0::ISupplicant default
57 interface android.hardware.wifi.supplicant@1.1::ISupplicant default
58 socket wpa_wlan0 dgram 660 wifi wifi
59 class main
60 disabled
61 oneshot