)]}'
{
  "commit": "0985478406c2cdbcff01074ca1d3012c670ed6f9",
  "tree": "eb21b3d909bf1f6b65012aa17e078f010564a457",
  "parents": [
    "452f0beb15a97d475dbae5e77cf0967e9b3b6dcf"
  ],
  "author": {
    "name": "Ivan Chiang",
    "email": "chiangi@google.com",
    "time": "Wed Oct 15 03:27:26 2025 +0000"
  },
  "committer": {
    "name": "Android Build Coastguard Worker",
    "email": "android-build-coastguard-worker@google.com",
    "time": "Wed Jan 07 21:37:59 2026 -0800"
  },
  "message": "Reapply \"[PM] Check unknown sources user restriction for intent installation\"\n\nThis reverts commit 29962260bd043c197e411b690e862a318b31bae5.\nFix the issues and reland the patch.\n\nBypass the unknown source user restrictions check when either of the\nfollowing two conditions is met:\n1. An installer with the INSTALL_PACKAGES permission initiated the\n   installation via the PackageInstaller APIs and not via an\n   ACTION_VIEW or ACTION_INSTALL_PACKAGE intent.\n2. An installer is a privileged app and initiated the installer via\n   the ACTION_INSTALL_PACKAGE or ACTION_VIEW intent, but it has set\n   the EXTRA_NOT_UNKNOWN_SOURCE flag to be true in the intent.\n\nFlag: EXEMPT BUGFIX\nBug: 438352252\nTest: atest CtsDevicePolicyManagerTestCases:MixedProfileOwnerTest#testPackageInstallUserRestrictions\nTest: atest CtsDevicePolicyManagerTestCases:MixedManagedProfileOwnerTest#testPackageInstallUserRestrictions\nTest: atest CtsPackageInstallTestCases:IntentTest\nTest: atest CtsPackageInstallSessionTestCases:SessionTest\nCherrypick-From: https://googleplex-android-review.googlesource.com/q/commit:81f83fdb0944d0d8a3337d2578d73dd77d60143b\nCherrypick-From: https://googleplex-android-review.googlesource.com/q/commit:6e0b7c02e54a0c8f26ecb2eefd136677df7decfc\nCherrypick-From: https://googleplex-android-review.googlesource.com/q/commit:9d20d0ae8fef770df8788e287feee1bdaa1d82fe\nMerged-In: Ib917acb2c4738f6a4758b8ca149b80943f00acca\nChange-Id: Ib917acb2c4738f6a4758b8ca149b80943f00acca\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "379dfe32cc51175059210622b476ccf1bc3bea02",
      "old_mode": 33188,
      "old_path": "packages/PackageInstaller/src/com/android/packageinstaller/InstallStart.java",
      "new_id": "155a85af0486a5eac58bede5f4c10dac51b17bbf",
      "new_mode": 33188,
      "new_path": "packages/PackageInstaller/src/com/android/packageinstaller/InstallStart.java"
    }
  ]
}
