1. 21 Mar, 2016 1 commit
  2. 13 Oct, 2015 1 commit
    • Jeff Sharkey's avatar
      Allow deletion of media through SAF. · 2e1abd83
      Jeff Sharkey authored
      Now that we're putting the media roots up front and center through
      the Settings > Storage UI, users have an expectation of deleting
      media to free up disk space.
      
      Bug: 24450605
      Change-Id: I38e1b021db2bf1f42a43f81f609818df905a0c0b
      2e1abd83
  3. 18 Sep, 2015 1 commit
  4. 20 Aug, 2015 1 commit
  5. 19 Aug, 2015 1 commit
    • Jeff Sharkey's avatar
      Create default directories on all storage devices. · 72613f7b
      Jeff Sharkey authored
      Previously, MediaProvider would only create default directories once
      during the lifetime of a device.  However, we're now regularly wiping
      storage devices when formatted as internal or portable, so we should
      create these directories the first time we encounter each device.
      
      Bug: 23329611
      Change-Id: I71f8e9b47ad28c9883925c61f31ae61a070cc9b4
      72613f7b
  6. 16 Aug, 2015 1 commit
  7. 14 Aug, 2015 1 commit
    • Jeff Sharkey's avatar
      Update primary storage paths when volumes change. · cba15caa
      Jeff Sharkey authored
      Devices that use physical media as their primary storage may not
      have that storage mounted by the time that MediaProvider is started,
      which means we'd snapshot a stale primary storage path.
      
      To fix this, refresh those paths as volumes are mounted or unmounted
      over time.  Also fix logic that detects secondary storage devices.
      
      Bug: 22629557
      Change-Id: I3c6b057ce082318e1b28e261c953a436da42e36f
      cba15caa
  8. 05 Aug, 2015 2 commits
  9. 29 Jul, 2015 2 commits
  10. 27 Jul, 2015 3 commits
  11. 25 Jul, 2015 1 commit
  12. 24 Jul, 2015 1 commit
    • Jeff Sharkey's avatar
      Check app-ops when enforcing permissions. · 55f76906
      Jeff Sharkey authored
      When enforcing various storage permissions, check associated app-ops
      to see if they've been revoked.  We're okay throwing outright, since
      Environment already told the app that volumes are unmounted, so they
      have no business poking around.
      
      Read/write sanity checking should only be relaxed to group-level for
      files living on storage devices; continue using globally readable
      flags for all other files.
      
      Refresh storage paths whenever volumes change.
      
      Bug: 22718722
      Change-Id: I8640998f490550b4cd3a9b27bb6cb1a658bd102a
      55f76906
  13. 21 Jul, 2015 2 commits
  14. 15 Jul, 2015 2 commits
  15. 11 Jul, 2015 1 commit
  16. 09 Jul, 2015 1 commit
    • Jeff Sharkey's avatar
      MtpService always expects a start intent. · bc640a08
      Jeff Sharkey authored
      Return START_REDELIVER_INTENT to make sure we always get the intent
      if we're ever killed and restarted.
      
      Bug: 22349167
      Change-Id: I696284b8d55a8c8d1fb2362cd769981ae0d45366
      bc640a08
  17. 08 Jul, 2015 1 commit
    • Jeff Sharkey's avatar
      Generate stable MTP storage IDs. · 40fef25a
      Jeff Sharkey authored
      It ends up that MediaProvider is persisting MTP storage IDs in its
      database, so we need to make sure we generate stable IDs over time,
      otherwise we can end up looking into a black hole.
      
      Bug: 22256092
      Change-Id: Ia419c37f87c7c0aa59ef0de530fd219c82988f6c
      40fef25a
  18. 12 Jun, 2015 1 commit
  19. 10 Jun, 2015 1 commit
    • Nick Kralevich's avatar
      Fix USB access control when adb is disabled. · 1469c78b
      Nick Kralevich authored
      When adb is disabled, the default usb mode would be "none", which
      would turn off the driver and prevent UsbDeviceManager from receiving
      any new USB connect / disconnect messages. This prevents the user
      from ever enabling MTP and sharing data when adb is turned off.
      
      As discussed in bug 21429947, we work around this problem by keeping
      the USB driver in MTP mode most of the time, so that we continue to
      receive USB connect / disconnect messages.
      
      To avoid leaking confidential user photos, this change honors the
      unlock state sent to us by the UsbDeviceManager code. We only expose
      user data if explicitly authorized by the user. MTP being enabled
      is decoupled from data being exposed on the USB connection.
      
      Bug: 21429947
      Change-Id: I495011aa4e3e18c5e5e6fe7b9d0e1a3efe747ee7
      1469c78b
  20. 21 May, 2015 2 commits
  21. 20 May, 2015 1 commit
  22. 24 Apr, 2015 1 commit
  23. 30 Mar, 2015 1 commit
  24. 21 Mar, 2015 1 commit
  25. 27 Feb, 2015 3 commits
  26. 12 Feb, 2015 3 commits
  27. 09 Feb, 2015 1 commit
  28. 07 Feb, 2015 1 commit
  29. 06 Feb, 2015 1 commit