do not mount the debugfs on user builds

keep debugfs on userdebug and factory builds

Bug: 184801854
Change-Id: I6b4b7428b011a87a93d48af63f8dafc2c5d96e23
Signed-off-by: Aaron Ding <aaronding@google.com>
This commit is contained in:
Aaron Ding 2021-04-27 00:15:26 +08:00
parent 0278f84cf8
commit 254e03a21c
3 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,6 @@
on early-init
mount debugfs /sys/kernel/debug /sys/kernel/debug
on property:vendor.debug.ramdump.force_crash=true
write /sys/kernel/pixel_debug/trigger "null"

View file

@ -1,5 +1,8 @@
# Factory specific init.rc
on early-init
mount debugfs /sys/kernel/debug /sys/kernel/debug
on init
export PATH /product/bin:/apex/com.android.runtime/bin:/apex/com.android.art/bin:/system_ext/bin:/system/bin:/system/xbin:/odm/bin:/vendor/bin:/vendor/xbin:/vendor/bin/factory

View file

@ -15,7 +15,6 @@ service vendor.charger /system/bin/charger
file /proc/last_kmsg r
on early-init
mount debugfs /sys/kernel/debug /sys/kernel/debug
mount_all /vendor/etc/fstab.persist --early
on init