summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Revert "Enforce calling identity before clearing."Adam Seaton2016-08-261-13/+0
| | | | | | | This reverts commit 8be3a92eb0b4105a9ed748be5a937ce79145f565. Change-Id: I10401d57239b868f8e3514f81a0e20486838e29c (cherry picked from commit b440ceb00fd46c9233723066c680a538067fbf82)
* Enforce calling identity before clearing.Jeff Sharkey2016-08-251-0/+13
| | | | | | | | | | When opening a downloaded file, enforce that the caller can actually see the requested download before clearing their identity to read internal columns. Bug: 30537115 Change-Id: I01bbad7997e5e908bfb19f5d576860a24f59f295 (cherry picked from commit 8be3a92eb0b4105a9ed748be5a937ce79145f565)
* 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
* 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.
| * Give secondary users read-only physical cards.Jeff Sharkey2015-07-281-1/+2
| | | | | | | | | | | | | | Follow method refactoring so we only consider writable locations. Bug: 22787184 Change-Id: Ib8b037216d23ab474d7e0df427671d174eaf030a
* | 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.
| * Switch to proxy variants of app-ops calls.Jeff Sharkey2015-07-241-2/+2
| | | | | | | | | | Bug: 22718722 Change-Id: I9c054956c3b3655332475607d6919dc34515e550
* | am e6841c13: (-s ours) Import translations. DO NOT MERGEGeoff Mendal2015-07-150-0/+0
|\| | | | | | | | | * commit 'e6841c13b2fc246d34d2645151056e3e347523a8': Import translations. DO NOT MERGE
| * Import translations. DO NOT MERGEGeoff Mendal2015-07-1513-24/+24
| | | | | | | | | | Change-Id: I4ccf722a3452199e4d97a47fff05ff7b0077d422 Auto-generated-cl: translation import
* | am ed30deae: Relax permissions on package-specific paths.Jeff Sharkey2015-07-145-26/+115
|\| | | | | | | | | * commit 'ed30deae5fe5b9de142b44933001c9b098c47712': Relax permissions on package-specific paths.
| * Relax permissions on package-specific paths.Jeff Sharkey2015-07-145-26/+115
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Normally apps must hold the WRITE_EXTERNAL_STORAGE permission in order to use DownloadManager. However, now that the platform has relaxed permissions on package-specific directories, we relax the DownloadManager check in a similar way. This also opens up using DownloadManager to save files on secondary external storage devices. Fix bug so that we now check the relevant volume state when thinking about resuming a download. Bug: 22135060 Change-Id: If439340ea48789ea167f49709b5b69a4f0883150
* | Import translations. DO NOT MERGEGeoff Mendal2015-07-1112-21/+21
|/ | | | | Change-Id: I4903c3288b6dc807cc7814bfd478e230f87cc6bb Auto-generated-cl: translation import
* Fix crash in TrampolineActivityMakoto Onuki2015-06-231-1/+1
| | | | | | | | | TrampolineActivity was trying to show a dialog with Theme.NoDisplay. Changed to Theme.Translucent.NoTitleBar. Bug 20146947 Change-Id: Iab75d18ccfc35053f0a1d485583d0d15c5b2d351
* Create a handler threadTodd Kennedy2015-06-191-1/+5
| | | | | | | | | | The onCreate() method [where we initialize the handler] runs on the main thread. This means the ParcelFileDescriptor also runs tasks involving disk access on the main thread. We need to create a separate thread to run the Content Provider's handler. Bug: 19718299 Change-Id: Ia3661fafd3442ad6260f04253ba24ddf83b176b2
* Actually delete files when rows are deleted.Jeff Sharkey2015-06-161-5/+12
| | | | | | | Otherwise they're orphaned until the next idle maintenance pass. Bug: 21786983 Change-Id: I6eb2240d657366b65482bd3a0d5683e5d34a541a
* Don't call size() on a null ListChristopher Tate2015-06-081-5/+7
| | | | | | | | | JobScheduler.getAllPendingJobs() can return null when there are none. Deal with it. Bug 21642868 Change-Id: I11fcc6e146f9db51e03dcf57f7518bb7878fbd28
* Import translations. DO NOT MERGEGeoff Mendal2015-05-301-2/+1
| | | | | Change-Id: I63b0dc11b38c1ae5dda3df7dcda560eb69990315 Auto-generated-cl: translation import
* Import translations. DO NOT MERGEGeoff Mendal2015-05-142-6/+6
| | | | | Change-Id: Icef1a6fecbfcf2537e9c3277d454d2307ea08ba2 Auto-generated-cl: translation import
* Sanitize display names, keep extensions intact.Ben Kwa2015-04-221-8/+4
| | | | | | | | | | Use the newly factored FileUtils sanitize the requested display names to be valid FAT filenames, and also allow any extension that maps to the requested MIME type. BUG=20157955 Change-Id: Ic37863a3362a941d81632bd4a7562dae40053652
* Import translations. DO NOT MERGEGeoff Mendal2015-04-226-0/+336
| | | | | Change-Id: I6586b3adc94218ae560efe68338eb137aa6cd742 Auto-generated-cl: translation import
* Declare that DownloadProvider uses cleartext HTTP traffic.Alex Klyubin2015-04-141-1/+2
| | | | | | | DownloadProvider offers downloading over HTTP and HTTPS. Bug: 19215516 Change-Id: I4f0583fd0b00842892a5229f1a87c7af53c5abe4
* am 5332ab3e: am 65d94cee: Merge "Make DownloadProvider honor the cleartext ↵Alex Klyubin2015-04-025-0/+82
|\ | | | | | | | | | | | | traffic policy." * commit '5332ab3e035389445ff9351a34c1d7c94fefa318': Make DownloadProvider honor the cleartext traffic policy.
| * am 65d94cee: Merge "Make DownloadProvider honor the cleartext traffic policy."Alex Klyubin2015-04-015-0/+82
| |\ | | | | | | | | | | | | * commit '65d94cee4a6d4d5f9bc887a89f46eaf9d2570ad9': Make DownloadProvider honor the cleartext traffic policy.
| | * Merge "Make DownloadProvider honor the cleartext traffic policy."Alex Klyubin2015-04-015-0/+82
| | |\
| | | * Make DownloadProvider honor the cleartext traffic policy.Alex Klyubin2015-04-015-0/+82
| | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This makes the Provider-side of the DownloadManager framework honor the per-UID cleartext network traffic policy. The policy is enforced in the Provider rather than in its client (DownloadManager) because download URLs could get redirected between HTTPS and HTTP and only the Provider currently has visibility into and control over this. Whether cleartext network traffic is permitted is a per-package policy. However, the DownloadProvider can only access the UID of the requesting application. Multiple packages can run under the same UID. In that scenario, cleartext traffic is permited for the UID if cleartext traffic is permitted for any of the packages running under the UID. This could be improved by making the DownloadManager provide the package name in addition to the UID. Bug: 19215516 Change-Id: Ib37585a7a2fc2869954d52a1b08052926f49bc9b
* | | Import translations. DO NOT MERGEGeoff Mendal2015-03-302-2/+2
| | | | | | | | | | | | | | | Change-Id: Ia082b51eacfe95e4cfad095de71369035744c3d5 Auto-generated-cl: translation import
* | | Import translations. DO NOT MERGEGeoff Mendal2015-03-213-1/+113
| | | | | | | | | | | | | | | Change-Id: I0e8fd3069bff048448055d1bb80862afa9415f11 Auto-generated-cl: translation import
* | | Import translations. DO NOT MERGEGeoff Mendal2015-03-164-21/+21
| | | | | | | | | | | | | | | Change-Id: I6ee3f2e8abbd7b1b4b7d217e362a1d65b5c8daa4 Auto-generated-cl: translation import
* | | Import translations. DO NOT MERGEGeoff Mendal2015-03-092-23/+23
| | | | | | | | | | | | | | | Change-Id: Ifd21e5b624206c24c76a65ccaab6486acd05a3bf Auto-generated-cl: translation import
* | | am 82f69f42: (-s ours) am 5e116a6d: (-s ours) Import translations. DO NOT MERGEGeoff Mendal2015-02-270-0/+0
|\| | | | | | | | | | | | | | * commit '82f69f42c87b6868fd5398e72f12685a84f66faf': Import translations. DO NOT MERGE
| * | am 5e116a6d: (-s ours) Import translations. DO NOT MERGEGeoff Mendal2015-02-270-0/+0
| |\| | | | | | | | | | | | | * commit '5e116a6d63b4f5060041adeeb1bdc2b0585266cd': Import translations. DO NOT MERGE
| | * Import translations. DO NOT MERGEGeoff Mendal2015-02-2676-201/+129
| |/ | | | | | | | | Change-Id: Id2255cf5429382da0169e8a98b4bc7a613fc046b Auto-generated-cl: translation import
* | am 590ccb96: (-s ours) am c7c23071: (-s ours) Import translations. DO NOT MERGEGeoff Mendal2015-02-130-0/+0
|\| | | | | | | | | * commit '590ccb96d0bd46014ce6767c5b0a8ef7109a8274': Import translations. DO NOT MERGE
| * am c7c23071: (-s ours) Import translations. DO NOT MERGEGeoff Mendal2015-02-130-0/+0
| |\ | | | | | | | | | | | | * commit 'c7c23071be84c8df58cc59a9597ae84af5cac026': Import translations. DO NOT MERGE
| | * Import translations. DO NOT MERGEGeoff Mendal2015-02-1221-50/+33
| | | | | | | | | | | | | | | Change-Id: I5f4b68932cc08ca445a573449eb1259afd1e1c96 Auto-generated-cl: translation import
* | | am 5d53e8df: am 35558a84: am f3679d03: Can not continue to download ↵Benson Huang2015-01-161-0/+1
|\| | | | | | | | | | | | | | | | | | | | after powering on the phone * commit '5d53e8dfdc77be8bd5665a7eec053a0dcdf0b7c8': Can not continue to download after powering on the phone
| * | am 35558a84: am f3679d03: Can not continue to download after powering on ↵Benson Huang2015-01-161-0/+1
| |\| | | | | | | | | | | | | | | | | | | the phone * commit '35558a84c1f211005091f3e3b622631d8a21023b': Can not continue to download after powering on the phone
| | * am f3679d03: Can not continue to download after powering on the phoneBenson Huang2015-01-161-0/+1
| | |\ | | | | | | | | | | | | | | | | * commit 'f3679d0367cd8a0e72875800decf9f63033645a0': Can not continue to download after powering on the phone
| | | * Can not continue to download after powering on the phoneBenson Huang2015-01-151-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1. Launch chrome and open www.baidu.com -> Choose "software" in the site navigation -> Tap "games" option, choose one apk to download -> During downloading, power off the phone -> Power on the phone and check, it can't continue to download apk. The fix is to add one condition for retrying to download when IO exception happens (i.e. Failed to open for writing: java.io.FileNotFoundException). Bug 18834618 Review: https://partner-android-review.git.corp.google.com/#/c/193436 Signed-off-by: Benson Huang <benson.huang@mediatek.com> Change-Id: I2f975ff7ffedfc4136fb250dcb5ef8fdca4a367d
* | | | Import translations. DO NOT MERGEBaligh Uddin2014-12-224-18/+18
| | | | | | | | | | | | | | | | | | | | Change-Id: I71b49ea8b3f497f568ac327c5092a616c0da794f Auto-generated-cl: translation import
* | | | Import translations. DO NOT MERGEGeoff Mendal2014-12-086-24/+24
| | | | | | | | | | | | | | | | | | | | Change-Id: Ib1ebd29334a22947d71f4f6784fad17847e4fe5b Auto-generated-cl: translation import
* | | | am 2c8cddfd: am 36957351: am 1bb7a08a: Use FileUtils to validate FAT filenames.Jeff Sharkey2014-12-011-50/+1
|\| | | | | | | | | | | | | | | | | | | * commit '2c8cddfdd905857643876e5b724ff188e7398ef2': Use FileUtils to validate FAT filenames.
| * | | am 36957351: am 1bb7a08a: Use FileUtils to validate FAT filenames.Jeff Sharkey2014-12-011-50/+1
| |\| | | | | | | | | | | | | | | | | | * commit '36957351d75fd52ae0eb1eb94764ad472d3afd4f': Use FileUtils to validate FAT filenames.
| | * | am 1bb7a08a: Use FileUtils to validate FAT filenames.Jeff Sharkey2014-12-011-50/+1
| | |\| | | | | | | | | | | | | | | | | * commit '1bb7a08a3df915e84647bc8a5ca87cc157378e61': Use FileUtils to validate FAT filenames.