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:
parent
0278f84cf8
commit
254e03a21c
3 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,6 @@
|
||||||
|
on early-init
|
||||||
|
mount debugfs /sys/kernel/debug /sys/kernel/debug
|
||||||
|
|
||||||
on property:vendor.debug.ramdump.force_crash=true
|
on property:vendor.debug.ramdump.force_crash=true
|
||||||
write /sys/kernel/pixel_debug/trigger "null"
|
write /sys/kernel/pixel_debug/trigger "null"
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,8 @@
|
||||||
# Factory specific init.rc
|
# Factory specific init.rc
|
||||||
|
|
||||||
|
on early-init
|
||||||
|
mount debugfs /sys/kernel/debug /sys/kernel/debug
|
||||||
|
|
||||||
on init
|
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
|
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
|
||||||
|
|
||||||
|
|
|
@ -15,7 +15,6 @@ service vendor.charger /system/bin/charger
|
||||||
file /proc/last_kmsg r
|
file /proc/last_kmsg r
|
||||||
|
|
||||||
on early-init
|
on early-init
|
||||||
mount debugfs /sys/kernel/debug /sys/kernel/debug
|
|
||||||
mount_all /vendor/etc/fstab.persist --early
|
mount_all /vendor/etc/fstab.persist --early
|
||||||
|
|
||||||
on init
|
on init
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue