Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 00b0b347 authored by Jaesoo Lee's avatar Jaesoo Lee Committed by android-build-merger
Browse files

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

am: a02b1f5b

Change-Id: I7c750c9838b22cbcd9acb849c10be47ba7a50feb
parents 25a6a9f1 a02b1f5b
Loading
Loading
Loading
Loading
+6 −0
Original line number Original line Diff line number Diff line
@@ -645,6 +645,12 @@ on property:sys.powerctl=*
on property:sys.boot_completed=1
on property:sys.boot_completed=1
    bootchart stop
    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,
# system server cannot write to /proc/sys files,
# and chown/chmod does not work for /proc/sys/ entries.
# and chown/chmod does not work for /proc/sys/ entries.
# So proxy writes through init.
# So proxy writes through init.