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