diff --git a/services/etc/init.without_two_stages.cfg b/services/etc/init.without_two_stages.cfg index 84166bfd..d65816a2 100755 --- a/services/etc/init.without_two_stages.cfg +++ b/services/etc/init.without_two_stages.cfg @@ -9,14 +9,19 @@ "cmds" : [ "write /proc/sys/kernel/sysrq 0", "start ueventd", - "start watchdog_service", "mkdir /data", "mount_fstab /vendor/etc/fstab.${ohos.boot.hardware}", + "restorecon /data", "chown system system /data", "chmod 0771 /data", "mkdir /data/service 0711 root root", "mkdir /data/service/el0 0711 root root", - "load_persist_params " + "mount configfs none /config nodev noexec nosuid", + "load_persist_params ", + "mkdir /data/bootchart 0755 root root", + "bootchart start", + "chown access_token access_token /dev/access_token_id", + "chmod 0666 /dev/access_token_id" ] }, { "name" : "init", @@ -59,11 +64,14 @@ "chown system system /sys/power/state", "chown system system /sys/power/wakeup_count", "chmod 0660 /sys/power/state", + "mount pstore pstore /sys/fs/pstore nodev noexec nosuid", + "chown system log /sys/fs/pstore", + "chmod 0555 /sys/fs/pstore", "ifup lo", "hostname localhost", "domainname localdomain" ] - }, { + }, { "name" : "post-init", "cmds" : [ "trigger early-fs", @@ -105,6 +113,7 @@ "mkdir /data/app/el4 0711 root root", "mkdir /data/service/el1 0711 root root", "mkdir /data/service/el1/public 0711 root root", + "mkdir /data/service/el1/public/AbilityManagerService 0711 system system", "mkdir /data/service/el2 0711 root root", "mkdir /data/chipset 0711 root root", "mkdir /data/chipset/el1 0711 root root", @@ -121,46 +130,23 @@ "mkdir /data/app/el3/0/base 0711 root root", "mkdir /data/app/el4/0 0711 root root", "mkdir /data/app/el4/0/base 0711 root root", - "mkdir /data/service/el1/0 0711 root root", "mkdir /data/service/el2/0 0711 root root", "mkdir /data/service/el2/0/hmdfs 0711 system system", - "mkdir /data/chipset/el1/0 0711 root root", "mkdir /data/chipset/el2/0 0711 root root", - "mkdir /data/bootchart 0755 shell shell", + "mkdir /storage/media 0711 root root", "mkdir /data/app-staging 0750 system system", "copy /data/system/entropy.dat /dev/urandom", "mkdir /data/misc 01771 system misc", "mkdir /data/local 0751 root root", - "mkdir /data/preloads 0775 system system", "mkdir /data/vendor 0771 root root", - "mkdir /data/vendor_ce 0771 root root", - "mkdir /data/vendor_de 0771 root root", - "mkdir /data/vendor/hardware 0771 root root", "mkdir /data/local/tmp 0771 shell shell", "mkdir /data/local/traces 0777 shell shell", "mkdir /data/data 0771 system system", - "mkdir /data/app-private 0771 system system", - "mkdir /data/app-ephemeral 0771 system system", - "mkdir /data/app-asec 0700 root root", - "mkdir /data/app-lib 0771 system system", "mkdir /data/app 0771 system system", - "mkdir /data/ota 0771 root root", - "mkdir /data/ota_package 0770 update update", - "chown update update /data/ota_package", - "chmod 0770 /data/ota_package", - "mkdir /data/resource-cache 0771 system system", - "chown system system /data/resource-cache", - "chmod 0771 /data/resource-cache", - "mkdir /data/lost+found 0770 root root", - "mkdir /data/drm 0770 drm drm", - "mkdir /data/mediadrm 0770 mediadrm mediadrm", "mkdir /data/nfc 0770 nfc nfc", "mkdir /data/nfc/param 0770 nfc nfc", - "mkdir /data/backup 0700 system system", - "mkdir /data/ss 0700 system system", "mkdir /data/system 0775 system system", "mkdir /data/system/dropbox 0700 system system", - "mkdir /data/system/heapdump 0700 system system", "mkdir /data/system_de 0770 system system", "mkdir /data/system_ce 0770 system system", "mkdir /data/misc_de 01771 system misc", @@ -168,12 +154,6 @@ "mkdir /data/user 0711 system system", "mkdir /data/user_de 0711 system system", "symlink /data/data /data/user/0", - "mkdir /data/media 0770 media_rw media_rw", - "mkdir /data/media/obb 0770 media_rw media_rw", - "mkdir /data/cache 0770 system cache", - "mkdir /data/cache/recovery 0770 system cache", - "mkdir /data/cache/backup_stage 0700 system system", - "mkdir /data/cache/backup 0700 system system", "setparam sys.use_memfd false", "chown root system /dev/fscklogs/log", "chmod 0770 /dev/fscklogs/log", @@ -182,6 +162,9 @@ }, { "name" : "boot", "cmds" : [ + "write /sys/block/zram0/disksize 1024M", + "mkswap /dev/block/zram0", + "swapon /dev/block/zram0", "write /proc/sys/net/core/xfrm_acq_expires 3600", "write /proc/sys/vm/overcommit_memory 1", "write /proc/sys/vm/min_free_order_shift 4", @@ -189,8 +172,6 @@ "chmod 0664 /sys/block/zram0/idle", "write /proc/sys/vm/dirty_expire_centisecs 200", "write /proc/sys/vm/dirty_background_ratio 5", - "chown system system /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq", - "chmod 0660 /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq", "chown system system /sys/class/leds/red/brightness", "chown system system /sys/class/leds/green/brightness", "chown system system /sys/class/leds/blue/brightness", @@ -225,65 +206,11 @@ "write /proc/sys/kernel/perf_event_paranoid 3" ] }, { - "name" : "boot && param:const.debuggable=1", - "condition" : "boot && const.debuggable=1", + "name" : "services:console", "cmds" : [ "chmod 0773 /data/misc/trace", - "chmod 0775 /data/misc/wmtrace", - "start console" - ] - }, { - "name" : "reboot", - "cmds" : [ - "stopAllServices ", - "sync ", - "umount /vendor", - "umount /data MNT_FORCE", - "sync " + "chmod 0775 /data/misc/wmtrace" ] - } - ], - "services" : [{ - "name" : "ueventd", - "path" : ["/system/bin/ueventd"], - "socket" : [{ - "name" : "ueventd", - "family" : "AF_NETLINK", - "type" : "SOCK_DGRAM", - "protocol" : "NETLINK_KOBJECT_UEVENT", - "permissions" : "0660", - "uid" : "system", - "gid" : "system", - "option" : [ - "SOCKET_OPTION_PASSCRED", - "SOCKET_OPTION_RCVBUFFORCE", - "SOCK_CLOEXEC", - "SOCK_NONBLOCK" - ] - }], - "critical" : [ 0, 15, 5], - "ondemand" : true, - "sandbox" : 0, - "start-mode" : "condition" - }, { - "name" : "console", - "path" : ["/system/bin/sh"], - "disabled" : 1, - "console" : 1, - "uid" : "root", - "gid" : ["shell", "log", "readproc"], - "start-mode" : "condition" - }, { - "name" : "watchdog_service", - "path" : ["/system/bin/watchdog_service", "10", "20"], - "disabled" : 1, - "uid" : "watchdog", - "gid" : ["watchdog", "log", "readproc"], - "start-mode" : "condition" - }, { - "name" : "misc", - "path" : ["/system/bin/misc_daemon", "--write_logo", "/vendor/logo.rgb"], - "once" : 1 } ] } diff --git a/ueventd/etc/ueventd.config b/ueventd/etc/ueventd.config index 094a766a..34a38566 100755 --- a/ueventd/etc/ueventd.config +++ b/ueventd/etc/ueventd.config @@ -65,6 +65,7 @@ /dev/dri/card0-DSI-1 0666 0 1003 /dev/dri/card0-HDMI-A-1 0666 0 1003 /dev/dri/renderD128 0666 0 1003 +/dev/dri/card1 0666 0 1003 /dev/rtc0 0640 3819 3819 /dev/tty0 0660 0 1000 /dev/uinput 0660 3011 3011