diff --git a/system/core/rootdir/init.rc b/system/core/rootdir/init.rc
index 8b51a0373b…530c04b27c 100755
— a/system/core/rootdir/init.rc
+++ b/system/core/rootdir/init.rc
@@ -693,3 +693,26 @@ on property:ro.debuggable=1
service flash_recovery /system/bin/install-recovery.sh
class main
oneshot
+
+
+#add byf
+service reboot_adb /system/bin/preupdatelogo.sh
- class main
- user root
- group root shell
- disabled
- seclabel u:r:preupdatelogo:s0
- oneshot
+#add byf
+on property:sys.powerctl=*
- start reboot_adb
+on property:vendor.reboot=*
- start reboot_adb
+on property:vendor.reboot.adb.event=1
- start reboot_adb
+on property:vendor.reboot.test=1
- exec -