Enable ril-daemon only after migrating qcril.db

The Fairphone 2 had on Android 6 a QCOM-specific feature to
enable/disable SIM cards on multi SIM devices. This feature is not
supported anymore on Android 7. We need to make sure that previously
disabled SIMs will be enabled while upgrading, otherwise they won't be
accessible to the user without factory reset.

This db migration should be done after upgrading, but before the related
telephone components are initialized, so that no additional reboot is
required. Therefore, make sure that the ril deamon is only started when
the migration is done.

Issue: FP2N-174
Depends-On: I08acba8c28f989ab3ad5eb4dceb213933e252f5d
Change-Id: I4094586ec87c8d5738d10030dd96453ea8b57ec8
diff --git a/rild/rild.rc b/rild/rild.rc
index a43d77e..1f1f16f 100644
--- a/rild/rild.rc
+++ b/rild/rild.rc
@@ -5,3 +5,10 @@
     socket rild-debug stream 660 radio system
     user root
     group radio cache inet misc audio log readproc wakelock qcom_diag
+    disabled
+
+# Fairphone 2: Start the RIL daemon after applying custom migrations to the
+# qcril.db, so that they take effect without an additional reboot.
+# See migrate_qcril_db for details.
+on property:fp2.qcril_db_migration_done=1
+    enable ril-daemon