Skip to content

Commit

Permalink
[init] trigger late_start on property change
Browse files Browse the repository at this point in the history
Android's late_start is triggered by mount_all, which also determines whether
the /data partition is encrypted.

Mer rootfs now has to spawn a service after mount points are ready, and before
peripheral services (such as sensors, wlan, bt, ...) are started. That service
has to issue `setprop droid.late_start trigger_late_start`
  • Loading branch information
siteshwar committed Jun 12, 2014
1 parent ba0a3a1 commit ad12f38
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions rootdir/init.rc
Original file line number Diff line number Diff line change
Expand Up @@ -360,9 +360,14 @@ on boot
class_start core
class_start main

# Never gets called, since Mer does its own 'mount_all'
on nonencrypted
class_start late_start

# Mer needs to set this property when fs units are mounted
on property:droid.late_start=trigger_late_start
class_start late_start

on charger
class_start charger

Expand Down

0 comments on commit ad12f38

Please sign in to comment.