[gn] embed mac codesign metadata in android artifacts (#37951)

* add top level metadata for androids

* add top level metadata for androids
diff --git a/shell/platform/android/BUILD.gn b/shell/platform/android/BUILD.gn
index d59de0d..2da0fe0 100644
--- a/shell/platform/android/BUILD.gn
+++ b/shell/platform/android/BUILD.gn
@@ -592,6 +592,12 @@
   deps = [ ":gen_android_javadoc" ]
 }
 
+generated_file("android_entitlement_config") {
+  outputs = [ "$target_gen_dir/android_entitlements.txt" ]
+  contents = [ "gen_snapshot" ]
+  deps = []
+}
+
 if (target_cpu != "x86") {
   zip_bundle("gen_snapshot") {
     gen_snapshot_bin = "gen_snapshot"
@@ -647,6 +653,16 @@
     ]
 
     deps = [ "//third_party/dart/runtime/bin:gen_snapshot($host_toolchain)" ]
+
+    if (host_os == "mac") {
+      deps += [ ":android_entitlement_config" ]
+      files += [
+        {
+          source = "$target_gen_dir/android_entitlements.txt"
+          destination = "entitlements.txt"
+        },
+      ]
+    }
   }
 }