Migrate CA certificates to all users
Copies the /data/misc/keychain/cacert-* directories to all users on
the device, whereas previously they were simply copied to user 0.
This is a shallow copy so anything that wasn't supposed to be there
will disappear.
Bug: 17811821
Change-Id: Iae5909ab8d5efdb83c9c8fdf0e10ab7060d022cc
diff --git a/cmds/installd/installd.h b/cmds/installd/installd.h
index a5cad45..36c3e8c 100644
--- a/cmds/installd/installd.h
+++ b/cmds/installd/installd.h
@@ -165,6 +165,8 @@
int delete_dir_contents_fd(int dfd, const char *name);
+int copy_dir_files(const char *srcname, const char *dstname, uid_t owner, gid_t group);
+
int lookup_media_dir(char basepath[PATH_MAX], const char *dir);
int64_t data_disk_free();