From d2463902e28c7fe80f96b1a259f9024197c69c4c Mon Sep 17 00:00:00 2001 From: Nolen Johnson Date: Tue, 2 Feb 2021 12:59:34 -0500 Subject: [PATCH] msm8953-common: Fold important parts of `late-fs` into init.mmi.rc * I0731bb767ae22863bcb2245eb2f8d5e94d7b3672 dropped `late-fs` to prevent bootanimation from starting in charge_only_mode. Unfortunately, we missed a few small bits of `late-fs` trigger than charge_only_mode depends on. The only remaining parts of `late-fs` that have been omitted are "fs tuning" and the Pixel optimizations that early start bootanimation. Change-Id: Iec9146ba7902e78f02361ad3aa53ff76e89feabc --- rootdir/etc/init.mmi.rc | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/rootdir/etc/init.mmi.rc b/rootdir/etc/init.mmi.rc index c89a8fe..927c51c 100644 --- a/rootdir/etc/init.mmi.rc +++ b/rootdir/etc/init.mmi.rc @@ -235,6 +235,18 @@ on charger trigger early-fs trigger fs trigger post-fs + + ## Fold important parts of late-fs into `on charger` to prevent + ## starting bootanimation in charge_only_mode + + # Ensure that tracefs has the correct permissions. + # This does not work correctly if it is called in post-fs. + chmod 0755 /sys/kernel/tracing + chmod 0755 /sys/kernel/debug/tracing + + # HALs required before storage encryption can get unlocked (FBE/FDE) + class_start early_hal + trigger post-fs-data trigger moto-charger class_stop main