commit | a80a1fd6133b21117fec94d6a0a10e8cac3bf527 | [log] [tgz] |
---|---|---|
author | Himanshu Arora <hmarora@google.com> | Wed Dec 18 12:40:54 2024 +0000 |
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Thu Jan 09 12:30:23 2025 -0800 |
tree | 9eba4792ac26ab39d420d886b612ece0fa77915d | |
parent | 6cc82ad47da3f1677101e11ea06dc2bc59c6c50b [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:1d5c91f62c1bffcf8b2243cf0634da17a96ac919) Merged-In: I8b2d24974cdf3ae8a9e5680c22cf422bce396940 Change-Id: I8b2d24974cdf3ae8a9e5680c22cf422bce396940