• Nick Kralevich's avatar
    implement partial matching using PCRE · 500b9116
    Nick Kralevich authored
    To speed up the boot process, Android doesn't visit every directory
    in /sys. Instead, only those directories which match a regular
    expression in /file_contexts are visited. Other directories are
    skipped. This results in 2-3 second boot time reduction.
    
    The initial version of this optimization was implemented in
    change 0e7340fb. However, because
    PCRE wasn't available, it was recognized that false positives and
    false negatives might occur.
    
    Now that PCRE is available, start using it. It will avoid the
    false positive / negatives problem.
    
    Bug: 17682157
    
    (cherry picked from commit d0b768ab)
    
    (cherry picked from commit d514c5af)
    
    Change-Id: I78a0453236d2c2ebf7a5dcd44f896c06a2b423c5
    500b9116
Android.mk 2.23 KB