commit | 7c8734f06747bd478ffe4350590f532b5580477f | [log] [tgz] |
---|---|---|
author | Himanshu Arora <hmarora@google.com> | Wed Dec 18 12:40:54 2024 +0000 |
committer | hmtheboy154 <buingoc67@gmail.com> | Sun Apr 06 10:26:50 2025 -0400 |
tree | 276820a636f8b1f374ef7f6f735c3085d02d37f8 | |
parent | 0cf4a797d333a9315c9fbf38f7491605e6efeca3 [diff] |
Ensure ownership validation in downloadprovider insert method Earlier, apps could access any file in Downloads by invoking the insert method in Downloadprovider. Now, it includes a check to ensure no existing record is present in Mediaprovider. If a record exists, the method validates the ownerPackageName before proceeding with the insert operation Bug: 304497167 Test: manual Flag: EXEMPT, fix only (cherry picked from commit bf66a79ddcd8d93f502bf908621469893f513780) (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:089bd5e1c622429b9c47f6b7ca1afe59d3d9b359) Merged-In: I8b2d24974cdf3ae8a9e5680c22cf422bce396940 Change-Id: I8b2d24974cdf3ae8a9e5680c22cf422bce396940