installd: Add support for migrating legacy obb data.
Data needs to be copied over from /data/media/obb to its
new location under /data/media/0/Android/obb.
This is currently implemented as a single "cp -r" between
the two paths. The cp is executed by a forked shell script
that runs in its own domain.
Test: Manua
Bug: 129167772
Change-Id: I8a0667f33f7fcee5c9e0dba7b00a963797b0dc34
diff --git a/cmds/installd/Android.bp b/cmds/installd/Android.bp
index d66066e..c80ae3b 100644
--- a/cmds/installd/Android.bp
+++ b/cmds/installd/Android.bp
@@ -128,6 +128,10 @@
],
},
},
+
+ // Needs to be wherever installd is as it's execed by
+ // installd.
+ required: [ "migrate_legacy_obb_data.sh" ],
}
// OTA chroot tool
@@ -254,3 +258,9 @@
"otapreopt_slot",
],
}
+
+// Script to migrate legacy obb data.
+sh_binary {
+ name: "migrate_legacy_obb_data.sh",
+ src: "migrate_legacy_obb_data.sh"
+}