1 on early-init 2 # loglevel 8 3 symlink /sdcard /storage/sdcard0 4 mkdir /var/run 0755 root root 5 mkdir /var/run/media 0755 media root 6 mkdir /var/run/system 0755 system root 7 mkdir /dev/gce 0750 8 chown system system /dev/gce 9 10 mount debugfs debugfs /sys/kernel/debug 11 chmod 0755 /sys/kernel/debug 12 setprop ro.sf.lcd_density ${ro.boot.lcd_density} 13 setprop ro.hardware.egl ${ro.boot.hardware.egl} 14 15 16 on init 17 # ZRAM setup 18 write /sys/block/zram0/comp_algorithm lz4 19 20 21 on fs 22 mount_all /vendor/etc/fstab.${ro.hardware} 23 restorecon_recursive /vendor 24 25 start setup_wifi 26 # works around framework netiface enumeration issue 27 start rename_eth1 28 29 30 # TODO(ender): Find better way to talk to serial port. 31 chmod 622 /dev/kmsg 32 33 # for GCE camera HAL 34 mkdir /var/media 0770 audio media 35 36 chmod 0664 /sys/kernel/debug/ieee80211/phy1/hwsim/group 37 chmod 0664 /sys/kernel/debug/ieee80211/phy1/hwsim/ps 38 chmod 0664 /sys/kernel/debug/ieee80211/phy0/rc/fixed_rate_idx 39 chmod 0664 /sys/kernel/debug/ieee80211/phy0/hwsim/group 40 chmod 0664 /sys/kernel/debug/ieee80211/phy0/hwsim/ps 41 chmod 0664 /sys/kernel/debug/ieee80211/phy1/rc/fixed_rate_idx 42 43 on post-fs 44 # Set netd memlock rlimit to 8MB b/119279144 45 setrlimit 8 8388608 8388608 46 47 on post-fs-data 48 start vport_trigger 49 50 51 on late-fs 52 write /dev/kmsg "GUEST_BUILD_FINGERPRINT: ${ro.build.fingerprint}" 53 54 55 on boot 56 chmod 0660 /dev/cpuctl 57 mkdir /data/vendor/wifi 0770 wifi wifi 58 mkdir /data/vendor/wifi/wpa 0770 wifi wifi 59 mkdir /data/vendor/wifi/wpa/sockets 0770 wifi wifi 60 start socket_vsock_proxy 61 62 63 service setup_wifi /vendor/bin/setup_wifi 64 oneshot 65 66 67 service rename_eth1 /vendor/bin/rename_netiface eth1 rmnet0 68 oneshot 69 70 71 on property:sys.boot_completed=1 72 trigger sys-boot-completed-set 73 74 75 # We want one opportunity per boot to enable zram, so we 76 # use a trigger we fire from the above stanza. If 77 # persist.sys.zram_enabled becomes true after boot, 78 # we don't want to run swapon_all at that time. 79 on sys-boot-completed-set && property:persist.sys.zram_enabled=1 80 swapon_all /vendor/etc/fstab.${ro.hardware} 81 82 83 service socket_vsock_proxy /vendor/bin/socket_vsock_proxy -tcp_port=5555 -vsock_port=6520 84 85 86 service vport_trigger /vendor/bin/vport_trigger 87 oneshot 88 89 90 on property:vendor.ser.cf-logcat=* 91 symlink ${vendor.ser.cf-logcat} /dev/cf-logcat 92 enable seriallogging 93 94 95 service seriallogging /system/bin/logcat -b all -v threadtime -f /dev/cf-logcat *:V 96 class main 97 user root 98 disabled 99 100 101 on property:ro.boot.vsock_logcat_port=* 102 enable vsock_logcat 103 104 105 service vsock_logcat /vendor/bin/vsock_logcat 106 class main 107 user root 108 disabled 109 110 111 service wpa_supplicant /vendor/bin/hw/wpa_supplicant -g@android:wpa_wlan0 112 interface android.hardware.wifi.supplicant (a] 1.0::ISupplicant default 113 interface android.hardware.wifi.supplicant (a] 1.1::ISupplicant default 114 interface android.hardware.wifi.supplicant (a] 1.2::ISupplicant default 115 socket wpa_wlan0 dgram 660 wifi wifi 116 group system wifi inet 117 disabled 118 oneshot 119 120 121 service bugreport /system/bin/dumpstate -d -p -B -z -o /sdcard/bugreport 122 class main 123 disabled 124 oneshot 125 keycodes 30 48 126