summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Enforce calling identity before clearing.stable/cm-13.0-ZNH0EJeff Sharkey2016-11-091-0/+31
| | | | | | | | | | | | | | | | | | | | | | When opening a downloaded file, enforce that the caller can actually see the requested download before clearing their identity to read internal columns. However, this means that we can no longer return the "my_downloads" paths: if those Uris were shared beyond the app that requested the download, access would be denied. Instead, we need to switch to using "all_downloads" Uris so that permission grants can be issued to third-party viewer apps. Since an app requesting a download doesn't normally have permission to "all_downloads" paths, we issue narrow grants toward the owner of each download, both at device boot and when new downloads are started. CYNGNOS-3303 Bug: 30537115, 30945409 Change-Id: If944aada020878a91c363963728d0da9f6fae3ea (cherry picked from commit 7c1af8c62c8bdf6e8de5a00c1927daf9fd9c03d1)
* Automatic translation importinky@build012016-10-022-28/+0
| | | | | Change-Id: If7d5634f31f9a4343ac55418e9daee5d97027aae Ticket: RM-214
* Automatic translation importinky@build012016-09-183-4/+7
| | | | | Change-Id: I9073b99d30808fe8aa963431f36ed525da833108 Ticket: RM-214
* Automatic translation importclyde@build012016-08-223-0/+222
| | | | | Change-Id: I5c6bc09ba65d03bc61eba5d2fb4640fe0b73551e Ticket: RM-214
* Automatic translation importpinky@build012016-08-183-0/+222
| | | | | Change-Id: I034bca7616cad7dcaf1f76cc0a9afb4f7e5e6921 Ticket: RM-214
* Automatic translation importinky@build012016-08-151-0/+22
| | | | | Change-Id: Ida9112242c14404552fb5b8b5dc660f14cb82fe8 Ticket: RM-214
* Automatic translation importclyde@build012016-08-132-0/+200
| | | | | Change-Id: Ie9fd6257e163e68bcb7bb612534b4707929886cd Ticket: RM-214
* Automatic translation importinky@build012016-06-022-0/+9
| | | | | Change-Id: I5706d5345cf5f58ace9ed4e60ef57b86d4b05530 Ticket: RM-214
* Automatic translation importAbhisek Devkota2016-05-181-0/+2
| | | | | Change-Id: Iec56dac075a46d82a260f9ca9c789aa52484faf3 Ticket: RM-214
* Automatic translation importAbhisek Devkota2016-05-14110-1056/+464
| | | | | Change-Id: I5e968b55b15fde8bfd5c3c0b437c4cd5a6f844f6 Ticket: RM-214
* Merge tag 'android-6.0.1_r20' into HEADJessica Wagantall2016-04-052-11/+23
|\ | | | | | | | | Ticket: CYNGNOS-2213 Android 6.0.1 release 20
| * DO NOT MERGE. Use resolved path when inserting and deleting.Jeff Sharkey2016-02-261-5/+15
| | | | | | | | | | | | | | | | This avoids a race condition where someone can change a symlink target after the security checks have passed. Bug: 26211054 Change-Id: Ia58425ab71c1472dd2f2dd31dae000ca29d0bcb2
| * Use resolved path for both checking and opening.Jeff Sharkey2016-02-262-6/+8
| | | | | | | | | | | | | | | | This avoids a race condition where someone can change a symlink target after the security checks have passed. Bug: 26211054 Change-Id: I5842aaecc7b7d417a3b1902957b59b8a1f3c1ccb
* | Automatic translation importMichael Bestas2016-03-2911-13/+414
| | | | | | | | | | | | RM-214 Change-Id: Icfddf9d4ac177ba2745e2197ac7a26ff401086fc (cherry picked from commit ed04a8afbff566728c36806ef012378889267d7b)
* | Automatic translation importMichael Bestas2016-03-2926-0/+169
| | | | | | | | | | | | RM-214 Change-Id: Ide31394cee382c695a4e9ed92fb04ddba262d99f (cherry picked from commit 150e9a28647632a59daff9d93a5b06a628b04a22)
* | Automatic translation importMichael Bestas2016-03-07212-6/+4599
| | | | | | | | | | RM-214 Change-Id: Id0ffd5843bee9edcab9903c066262b124a3095be
* | Automatic translation importMichael Bestas2016-03-072-2/+5
| | | | | | | | | | RM-214 Change-Id: I031d434c617d7ac53a03301f0e24bebaf51da01d
* | Automatic translation importMichael Bestas2016-03-076-0/+16
| | | | | | | | | | RM-214 Change-Id: I94378508b62a21d0055f8e4b01b8524fe8d413a1
* | Automatic translation importMichael Bestas2016-03-0722-0/+165
| | | | | | | | | | RM-214 Change-Id: Ib18dcd55d1a103b09fa4a2ff664801712694bcaf
* | Automatic translation importMichael Bestas2016-03-071-0/+3
| | | | | | | | | | RM-214 Change-Id: Ifae9ee45382d019203b28745d92237b63007d9f3
* | Automatic translation importMichael Bestas2016-01-114-0/+88
| | | | | | | | Change-Id: I0c2edd4c5a823eed3ecc812c8812d10db9efacb7
* | Automatic translation importMichael Bestas2015-12-2511-150/+8
| | | | | | | | Change-Id: Id5581589ad3c2ae891e7ba9f3043b72d1af6978c
* | Merge tag 'android-6.0.0_r26' into cm-13.0Ricardo Cerqueira2015-11-0579-632/+170
|\ \ | | | | | | | | | Android 6.0.0 release 26
| * \ merge in mnc-dr-release history after reset to mnc-dr-devThe Android Automerger2015-09-250-0/+0
| |\ \ | | |/ | |/|
| | * merge in mnc-dr-release history after reset to mnc-dr-devThe Android Automerger2015-09-240-0/+0
| | |\
| | | * merge in mnc-dr-release history after reset to mnc-dr-devThe Android Automerger2015-09-200-0/+0
| | | |\
| | | | * merge in mnc-dr-release history after reset to mnc-dr-devThe Android Automerger2015-08-310-0/+0
| | | | |\
| | | | | * merge in mnc-dr-release history after reset to mnc-dr-devThe Android Automerger2015-08-290-0/+0
| | | | | |\ | | | | | |/ | | | | |/|
| * | | / | Import translations. DO NOT MERGEBaligh Uddin2015-09-241-2/+2
| |/ / / / | | | | | | | | | | | | | | | | | | | | Change-Id: Id642601b72d6a4465d2b7f282bd4e08108379ce7 Auto-generated-cl: translation import
| * / / / Import translations. DO NOT MERGEBaligh Uddin2015-09-231-1/+1
| |/ / / | | | | | | | | | | | | | | | | Change-Id: I282fe4e34de9161e16c4c64894f720bda53642f9 Auto-generated-cl: translation import
| * / / Import translations. DO NOT MERGEBaligh Uddin2015-09-1879-632/+170
| |/ / | | | | | | | | | | | | Change-Id: Ibe6acc8f559ed63b2aa447f0004affddba21eca7 Auto-generated-cl: translation import
| * | am 346190f3: Add RTL flag to DownloadProvider.Julia Reynolds2015-08-271-0/+1
| |\ \ | | |/ | |/| | | | | | | * commit '346190f357128d3d4171494713546da773277d3b': Add RTL flag to DownloadProvider.
| | * Add RTL flag to DownloadProvider.Julia Reynolds2015-08-271-0/+1
| | | | | | | | | | | | | | | Bug: 23410732 Change-Id: Iae4628bb56c17140da32d40e9c425d9f85a9a920
| * | am 8b2880ba: Give secondary users read-only physical cards.Jeff Sharkey2015-07-291-1/+2
| |\| | | | | | | | | | | | | * commit '8b2880ba6d192c4dd66516541ed931a84e6d8a9a': Give secondary users read-only physical cards.
| * | am b8bc2a76: Switch to proxy variants of app-ops calls.Jeff Sharkey2015-07-251-2/+2
| |\ \ | | | | | | | | | | | | | | | | * commit 'b8bc2a76ddaa0c59d681913dba10fd7ec0a2a22b': Switch to proxy variants of app-ops calls.
| * \ \ am e6841c13: (-s ours) Import translations. DO NOT MERGEGeoff Mendal2015-07-150-0/+0
| |\ \ \ | | | | | | | | | | | | | | | | | | | | * commit 'e6841c13b2fc246d34d2645151056e3e347523a8': Import translations. DO NOT MERGE
| * \ \ \ am ed30deae: Relax permissions on package-specific paths.Jeff Sharkey2015-07-145-26/+115
| |\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | * commit 'ed30deae5fe5b9de142b44933001c9b098c47712': Relax permissions on package-specific paths.
| * | | | | Import translations. DO NOT MERGEGeoff Mendal2015-07-1112-21/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I4903c3288b6dc807cc7814bfd478e230f87cc6bb Auto-generated-cl: translation import
* | | | | | Merge branch 'cm-12.1' of ↵Steve Kondik2015-10-31119-8/+3219
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | git://github.com/CyanogenMod/android_packages_providers_DownloadProvider into cm-13.0
| * | | | | | Automatic translation importMichael Bestas2015-10-031-5/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: Id5ce5fdf4cda92b575a38792aafca99ff8d13523
| * | | | | | Fixed application/octet-stream to guess mimetypeherriojr2015-09-291-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When being downloaded, some files were being classified as application/octet-stream in the response even though they are a valid mimetype. This adds in guessing the mimetype before sending off the intent. It was chosen to put this here instead of when it is downloaded to make it backwards compatible with files that already exist in people's downloads. Change-Id: Id5fc9a3cca6851677b066854fcdccb5ae4fade7c Issue-Id: CYNGNOS-1153
| * | | | | | Automatic translation importMichael Bestas2015-09-241-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I3e01526243db283f53516a20bd063bba8b72ad1a
| * | | | | | Automatic translation importTom Powell2015-08-211-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: Iddc876bc92ae94a1fd6f07fbb69a7ffd1d8631ca
| * | | | | | Automatic translation importstaging/devMichael Bestas2015-07-275-0/+151
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: Ic7a2e14bb9fd93e11b16183f14b9b4f16addfe94
| * | | | | | Automatic translation importMichael Bestas2015-07-131-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I28677ad5e12c75cba28eba70eccb6535023f100b
| * | | | | | Automatic translation importMichael Bestas2015-07-022-0/+51
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: Ib3be1b0b5b4bc460d526747263722e6e7215ac70
| * | | | | | DownloadManager : Only remove stale id if download is not deletedDanesh Mondegarian2015-06-161-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This addresses the issue where if a download is enqueued and right after deleted, the notification doesn't stick around. Change-Id: Ie1ec08fc94420b0f46e1543ed52afd8c22aee372 (cherry picked from commit 794ab54677c50bac5c0f32bc5d9ad768ff10c039)
| * | | | | | DownloadManager: allow ACCESS_ALL_DOWNLOADS to be granted via whitelistRoman Birg2015-06-151-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I3e4a9a9475a9e03d7a22ae46344622ea5d41b947 Signed-off-by: Roman Birg <roman@cyngn.com>
| * | | | | | Automatic translation importMichael Bestas2015-06-132-0/+48
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I03360e060e5ac23729b5ed9f7d014901731239ab
| * | | | | | Automatic translation importMichael Bestas2015-05-241-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I502c6fa59babc5bb244a5c83a9f4806b29054c2c