system/weaved: Fix the location of device_registration_info file
On ChromeOS, buffet saved this file in /var/lib/buffet/ directory.
/var doesn't exist on Brillo, but other daemons save their own
settings under /data/misc, so update weaved to do the same.
Had to create /data/misc/weaved at system boot and change the init
class of weaved to late_start because it needs to start only after
/data is decrypted and mounted.
BUG: 23428579
Change-Id: I8ef38662cb0e8f8ce4db8cd6deb19dd019108b30
diff --git a/init.weaved.rc b/init.weaved.rc
new file mode 100644
index 0000000..a47d37f
--- /dev/null
+++ b/init.weaved.rc
@@ -0,0 +1,8 @@
+on boot
+ mkdir /data/misc/weaved 0700 system system
+
+service weaved /system/bin/weaved
+ class late_start
+ user system
+ group system dbus inet
+ seclabel u:r:brillo:s0