Merge "disable module loading after BOOT_COMPLETED broadcast" into oc-dev am: a02b1f5bed

am: 00b0b347a0

Change-Id: I62f0b7d807a96276d08d13adcd758d126a509c39
This commit is contained in:
Jaesoo Lee 2017-04-12 23:54:37 +00:00 committed by android-build-merger
commit 498e500e8f
1 changed files with 6 additions and 0 deletions

View File

@ -645,6 +645,12 @@ on property:sys.powerctl=*
on property:sys.boot_completed=1
bootchart stop
on property:sys.boot_completed=1 && property:ro.build.type=user
write /proc/sys/kernel/modules_disabled 1
on property:sys.boot_completed=1 && property:ro.build.type=userdebug
write /proc/sys/kernel/modules_disabled 1
# system server cannot write to /proc/sys files,
# and chown/chmod does not work for /proc/sys/ entries.
# So proxy writes through init.