)]}'
{
  "commit": "a60cbd347d753b9fec4fa5496d3d7fed2cfacc3f",
  "tree": "4203341a751a33e70e653b539f78d627005338ac",
  "parents": [
    "dfb42078ef88fa73c66b698234d070d72ed6afbc"
  ],
  "author": {
    "name": "Jingwen Chen",
    "email": "jingwen@google.com",
    "time": "Fri Mar 31 10:30:04 2023 +0000"
  },
  "committer": {
    "name": "Jingwen Chen",
    "email": "jingwen@google.com",
    "time": "Mon Apr 10 07:55:36 2023 +0000"
  },
  "message": "Override apex manifest package, android_app_certificate and apex_key with product config.\n\n- apex manifest package\n\nThe package name (not apex name) stamped into AndroidManifest.xml can be\noverriden with PRODUCT_MANIFEST_PACKAGE_NAME_OVERRIDES, a\ncolon-separated list of apex:package_name mapping. For example,\ntest1_com.android.tzdata:com.google.android.tzdata means that\ntest1_com.android.tzdata\u0027s package name is com.google.android.tzdata,\nand can be installed onto a device that has com.google.android.tzdata\npreinstalled.\n\n- android_app_certificate\n\nThe mapping for the certs used to sign APEX containers is similar to the\napex manifest package mapping, except that the certificates have to be\nsearched from the DefaultAppCertificate directory. For example,\ncom.android.tzdata:com.google.android.tzdata.certificate means to use\nthe Google certificate for signing the container.\n\nThis reuses the DefaultAppCertificateFiles filegroup added in a previous\nCL for transition-safe product variable accessors.\n\n- apex_key\n\nThis is used to sign the apex image (not container). While this doesn\u0027t\nhave a mapping like manifest package and app certificate, it is\ninfluenced by product config as well.\n\napex_key overriding is simpler. It checks if DefaultAppCertificate is\nset, and if so, look for the avbpubkey and pem in that directory.\nOtherwise it uses the module dir or the testkey. See config#ApexKeyDir:\n\nhttps://cs.android.com/android/platform/superproject/+/master:build/soong/android/config.go;l\u003d980-990;drc\u003d7a646211698cc713512bf5046b5bd3ba446143d1\n\nFixes: b/276416537\nFixes: b/275351675\nTest: presubmit\nTest: b build test1_com.android.tzdata, adb install onto internal cuttlefish device with com.google.android.tzdata5 preinstalled.\nTest: apex key test\nTest: abtd\n\nChange-Id: Id9486c4436ea82f1a5ead12a09c198c0c2f7d085\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "f3c8226f2d3041768a4ab41a55cc52d405c68326",
      "old_mode": 33188,
      "old_path": "product_config/android_product.bzl",
      "new_id": "52f5cd9a9233b809c1e7b752d229d57d46a7a26b",
      "new_mode": 33188,
      "new_path": "product_config/android_product.bzl"
    },
    {
      "type": "modify",
      "old_id": "524b3e792db6aa9ad3777177056e3aac4397d8ee",
      "old_mode": 33188,
      "old_path": "product_config/product_variables_providing_rule.bzl",
      "new_id": "7046caf89abbfa9b989fea69e0504f2182604644",
      "new_mode": 33188,
      "new_path": "product_config/product_variables_providing_rule.bzl"
    },
    {
      "type": "modify",
      "old_id": "8b9f242213b828f0533f23cec017ff30056ed2b0",
      "old_mode": 33188,
      "old_path": "rules/android/android_app_certificate.bzl",
      "new_id": "520e07ce94fbb4bdbec24164ccc5968d24646fe6",
      "new_mode": 33188,
      "new_path": "rules/android/android_app_certificate.bzl"
    },
    {
      "type": "modify",
      "old_id": "3f033d91c27d36b8df7ca72f4dda3aa3e7af41e7",
      "old_mode": 33188,
      "old_path": "rules/apex/apex.bzl",
      "new_id": "3cd5539fb68c998a751e4fdef369788e2ed0ef62",
      "new_mode": 33188,
      "new_path": "rules/apex/apex.bzl"
    },
    {
      "type": "modify",
      "old_id": "36723c997020b27310abf5772ace33e3ce58144a",
      "old_mode": 33188,
      "old_path": "rules/apex/apex_key.bzl",
      "new_id": "45e83f0160755610dadccf1924adc365ec5ca661",
      "new_mode": 33188,
      "new_path": "rules/apex/apex_key.bzl"
    },
    {
      "type": "modify",
      "old_id": "086cee250b5b7fae57d82df007eaaaa72bad3809",
      "old_mode": 33188,
      "old_path": "rules/apex/apex_key_test.bzl",
      "new_id": "fdd31a1b65fe4ba257a96beb9b79c55aefb533c7",
      "new_mode": 33188,
      "new_path": "rules/apex/apex_key_test.bzl"
    },
    {
      "type": "modify",
      "old_id": "4a23162d738bad9d66de9293c8949bbfa8b4b20d",
      "old_mode": 33188,
      "old_path": "rules/apex/apex_test.bzl",
      "new_id": "77f9d2a3ff7a9f1c61f059201ea8dadd40862e48",
      "new_mode": 33188,
      "new_path": "rules/apex/apex_test.bzl"
    },
    {
      "type": "modify",
      "old_id": "488d96df7c6efbe2fb6e519f2cc72d4e7ced6dcc",
      "old_mode": 33188,
      "old_path": "rules/apex/testdata/BUILD",
      "new_id": "88dc8ea4bfdb2b40db71da85af290d8c875adb67",
      "new_mode": 33188,
      "new_path": "rules/apex/testdata/BUILD"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "e69de29bb2d1d6434b8b29ae775ad8c2e48c5391",
      "new_mode": 33188,
      "new_path": "rules/apex/testdata/another.pk8"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "e69de29bb2d1d6434b8b29ae775ad8c2e48c5391",
      "new_mode": 33188,
      "new_path": "rules/apex/testdata/another.x509.pem"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "e69de29bb2d1d6434b8b29ae775ad8c2e48c5391",
      "new_mode": 33188,
      "new_path": "rules/apex/testdata/devkey.avbpubkey"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "e69de29bb2d1d6434b8b29ae775ad8c2e48c5391",
      "new_mode": 33188,
      "new_path": "rules/apex/testdata/devkey.pem"
    },
    {
      "type": "modify",
      "old_id": "bb29788bbf28727bd17394c3f2d7acdc2e6275e7",
      "old_mode": 33188,
      "old_path": "tests/products/BUILD",
      "new_id": "e7223e607bae34400527a66aba9a0c421af5ecdc",
      "new_mode": 33188,
      "new_path": "tests/products/BUILD"
    },
    {
      "type": "modify",
      "old_id": "94175317814dc790e629694a504e7ed7ff1a3ed9",
      "old_mode": 33188,
      "old_path": "tests/products/product_labels.bzl",
      "new_id": "a5f37ee1d6e7ce38df2bf792a33bd29f25e2eedb",
      "new_mode": 33188,
      "new_path": "tests/products/product_labels.bzl"
    }
  ]
}
