1. 27 Oct, 2016 7 commits
  2. 26 Oct, 2016 5 commits
    • Christopher Tate's avatar
      DO NOT MERGE Isolated processes don't get precached system service binders · cf4e893a
      Christopher Tate authored
      More specifically, they get a PackageManager binder -- necessary for
      Android process startup and configuration -- but none of the other
      usual preloaded service binders.
      
      Bug 30202228
      
      Change-Id: I3810649f504cd631665ece338a83d2e54d41ad05
      (cherry picked from commit 2c61c57a)
      (cherry picked from commit 47796319)
      cf4e893a
    • Jason Monk's avatar
      Fix launching alarm pending intent · f460753a
      Jason Monk authored
      Launch it as a pending intent.
      
      Change-Id: I2adf9347facb9c6fb58cbf8549233c34fcc87350
      Fixes: 23909438
      (cherry picked from commit d0408f00)
      f460753a
    • Todd Kennedy's avatar
      Force APKs to be streamed · 43964567
      Todd Kennedy authored
      When using the new "cmd" command, APKs must be streamed instead of specifying
      a file.
      
      Change-Id: I977cd817ac545d7c5293f53b9fa4b155bea7449e
      Fixes: 31251489
      Test: manually installed packages using 'adb install', 'adb shell cmd package install' and 'adb shell pm install'
      (cherry picked from commit d220683d)
      43964567
    • Sungsoo's avatar
      ExifInterface: Provide backward compatibility · 965e4f23
      Sungsoo authored
      Resolve merge conflict into nyc-release
      ExifInterface.saveAttribute() didn't throw UnsupportedOperationException
      before. Use IOException instead of UnsupportedOperationException for
      backward compatibility.
      
      Bug: 30936376, Bug: 32068647, Bug: 31319086
      Change-Id: Ifb478db3af820eb846c5373d3a284367da3495a0
      (cherry picked from commit 5a7bd1b9f09ed0b67b0807e12cf4b1e477af5f90)
      965e4f23
    • gitbuildkicker's avatar
  3. 25 Oct, 2016 1 commit
  4. 24 Oct, 2016 1 commit
  5. 30 Sep, 2016 3 commits
  6. 29 Sep, 2016 1 commit
    • Fan Zhang's avatar
      Fix NPE for WifiConfiguration in AccessPoint. · 7d96a1a9
      Fan Zhang authored
      In getSummary methods, make a local reference to WifiConfig before
      accessing the fields to prevent member variable mConfig being reset in a
      different thread.
      
      Bug: 31617798
      Test: manually open/close/refresh wifi settings and see no crash.
      
      Change-Id: I254cb3cb59dead425a9ada17d9e84a7e2974f738
      (cherry picked from commit 51365c3b)
      7d96a1a9
  7. 28 Sep, 2016 1 commit
  8. 27 Sep, 2016 21 commits
    • Wyatt Riley's avatar
      LocationManager - Handle Shutdown for right User · e612ba0c
      Wyatt Riley authored
      Only process a shutdown when it is for all users (whole system),
      not a single user
      
      Change-Id: Id51b7fb4606460462c2f6749e5ac3984bdd8319f
      Bug: 30646142
      (cherry picked from commit 1b24fb17)
      (cherry picked from commit a8037fff)
      e612ba0c
    • Eino-Ville Talvala's avatar
      DO NOT MERGE ANYWHERE: ImageReader: Add discardFreeBuffers method · 63d556ab
      Eino-Ville Talvala authored
      This method (currently @hide) discards all cached buffers for
      the ImageReader, which can be useful to free up memory at the
      cost of reallocation time if more buffers are needed later.
      
      It has no effect on acquired Images, filled Images waiting to be
      acquired, or buffers being actively used by the source rendering to the
      Surface.
      
      Bug: 28695173
      Change-Id: I427a8ba4ad73a267083f843dbf228bfc53a730d9
      (cherry picked from commit e175aa82)
      63d556ab
    • Paul Jensen's avatar
      Avoid crashing when downloading MitM'd PAC that is too big am: 7d2198b5 am:... · 76d2d22f
      Paul Jensen authored
      Avoid crashing when downloading MitM'd PAC that is too big am: 7d2198b5 am: 9c1cb7a2 am: 6634e90a
      am: 66ee2296
      
      Change-Id: Ib0023b44e521b936ab2f9450ad367b1feda64492
      76d2d22f
    • Jeff Sharkey's avatar
      Use "all_downloads" instead of "my_downloads". · 03cc9664
      Jeff Sharkey authored
      Fix Merge Conflict into nyc-release
      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, DownloadProvider now issues narrow grants
      toward the owner of each download, both at device boot and when new
      downloads are started.
      
      Bug: 30537115, 30945409
      Change-Id: I533125b36444877f54373d88922f2acc777e250b
      (cherry picked from commit 9fab683c)
      (cherry picked from commit df0de20e)
      03cc9664
    • Jaewan Kim's avatar
      DO NOT MERGE Check caller for sending media key to global priority session · 20384cc8
      Jaewan Kim authored
      Prevent sending media key events from the non-system app to the global
      priority session through the MediaSessionManager.dispatchMediaKeyEvent().
      Note that any app can use the API indirectly with
      the public API AudioManager.dispatchMediaKeyEvent().
      
      Bug: 29833954
      Tested: Installed malicious apps and confirmed that they don't work.
      Tested: Run CtsTelecomTestCases and CtsMediaTestCases
      Change-Id: I2a9e78196ba7455324e485f098f095d03b47ee15
      (cherry picked from commit 09c3df00)
      20384cc8
    • Paul Jensen's avatar
      Fix build break due to automerge of 7d2198b5 · 7beb6c21
      Paul Jensen authored
      Bug: 30100884
      
      Change-Id: I8fa379a74b5d9467b5b9498bd18de2a043963c6f
      (cherry picked from commit baae57ab)
      7beb6c21
    • Tadashi G. Takaoka's avatar
      Catch all exceptions when parsing IME meta data · c46705b5
      Tadashi G. Takaoka authored
      Bug: 30568284
      Change-Id: I0b613f8ce0f014320c5ac1bf445699ea2702a0a2
      (cherry picked from commit dddc438e)
      c46705b5
    • Sudheer Shanka's avatar
      Fix deadlock in AcitivityManagerService. · 084a5b42
      Sudheer Shanka authored
      Don't hold mPidsSelfLocked lock when calling
      cleanUpApplicationRecordLocked.
      
      Bug: 31463143
      Change-Id: I421962cbfd7c466662edcef805c3e27321dc5a98
      (cherry picked from commit 67e05b4d)
      084a5b42
    • Hongming Jin's avatar
      Only return password for account session flow if the caller is signed · 072b4bdc
      Hongming Jin authored
      with system key and have get_password permission.
      
      Bug: 30455516
      Change-Id: I78484c59e4de1dff685ab91a0a8e7a756fffd9bf
      (cherry picked from commit 9342e137)
      072b4bdc
    • John Reck's avatar
      Ensure munmap matches mmap · 7e2d4788
      John Reck authored
      Bug: 31350622
      Change-Id: I6d3f9faec32d54360caa6706d17405e20b50966c
      (cherry picked from commit aa394dd4)
      7e2d4788
    • Marie Janssen's avatar
      Fix setPairingConfirmation permissions issue (2/2) · 1e704815
      Marie Janssen authored
      setPairingConfirmation was set to only require BLUETOOTH_ADMIN
      permission which shouldn't be able to set the confirmation itself.
      
      This is restricted to BLUETOOTH_PRIVILEGED permission.
      
      Bug: 29043989
      Change-Id: I887de32d156e672ec44aa0b286cd7ea7f9f8ad55
      (cherry picked from commit 93326cfd)
      1e704815
    • Sungsoo's avatar
      DO NOT MERGE) ExifInterface: Make saveAttributes throw an exception before change · 41cdd059
      Sungsoo authored
      ExifInterface object can be created with a unsupported file format.
      If saveAttribute is called with an unsupported file format, ExifInterface
      makes the file corrupted. This CL prevents those cases by throwing
      an exception before making any change on the file.
      
      Bug: 30936376
      Change-Id: I115a42601c774062485974042464abb0d65c35e9
      (cherry picked from commit a8f9a075)
      (cherry picked from commit 56ea7b49)
      41cdd059
    • Narayan Kamath's avatar
      Backport changes to whitelist sockets opened by the zygote. · d20378fe
      Narayan Kamath authored
      This is the backport of the following commits :
      
      Reopen whitelisted zygote file descriptors after a fork.
      
      We don't want these descriptors to be shared post-fork, so we'll
      have to close and reopen them when the zygote forks. The set of
      open descriptors is checked against a whitelist and it is a fatal
      error if a non whitelisted FD is opened. It is also a fatal error
      if anything other than a regular file / character device or socket
      is opened at the time of forking.
      
      This work is done in two stages :
      - An initial list of FDs is constructed and cached prior to the
        first zygote fork.
      
      - On each subsequent fork, we check whether the list of open FDs
        has changed. We are currently tolerant of changes, but in the
        longer term, it should be a fatal error if the set of open file
        descriptors in the zygote changes.
      
      - Post fork, we traverse the list of open descriptors and reopen
        them if necessary.
      
      bug: 30963384
      
      (cherry picked from commit c5f27a7c)
      
      Fix clang build breakage (-Werror -Wformat).
      
      Use %zd for size_t. Note that this will break only on (-plus-)aosp because
      clang is disabled on the N development branches.
      
      bug: 30963384
      
      (cherry picked from commit b334c33d)
      
      Add a whitelist of sockets on fork.
      
      Maintain a whitelist of AF_UNIX sockets that are permitted
      to exist at the time of forking. If an open socket does not belong
      to the whitelist (or is not AF_UNIX), the process will abort. If an
      open socket is whitelisted, it will be redirected to /dev/null after
      a sucessful fork. This allows us to unify our handling of the special
      zygote sockets (/dev/socket/zygote[_secondary]) with the existing
      whitelist of non socket file descriptors.
      
      This change also removes non-fatal ALOGW messages since they have the
      side effect of reopening the logging socket.
      
      bug: 30963384
      
      (cherry picked from commit 3764a260)
      
      fd_utils: Remove whitelist for "/dev/pmsg0".
      
      We're now calling __android_log_close prior to a fork, so this file
      shouldn't need to be open.
      
      bug: 31243313
      bug: 30963384
      
      (cherry picked from commit 8dee0541)
      
      fd_utils: Fix broken usage of iterators.
      
      There were two separate issues here :
      - RestatInternal was using an iterator after a call to erase(). This
        will not work because it will be invalidated.
      - The "standard" for loop idiom for iterating over a map while making
        structural changes to it is broken. Switch to a while loop and treat
        cases where elements are erased differently from cases where they
        aren't.
      
      bug: 31092930
      bug: 30963384
      
      (cherry picked from commit 0b76d6a2)
      
      add dri device to zygote whitelisted FDs
      
      The driver can be used just like /dev/ion for graphic buffers.
      
      (cherry picked from commit 8977e424)
      (cherry picked from commit a1252ccb)
      d20378fe
    • Robin Lee's avatar
      DO NOT MERGE Stop work challenge freeform bypass · d3c14385
      Robin Lee authored
      Bypassing work challenge in freeform mode was trivial by just keeping
      work apps open in freeform mode and then switching focus to them from
      another app.
      
      Because the only interception point is startActivity this never
      triggered work challenge.
      
      The solution is to trigger the check on focus change events and also to
      allow passing the result back into the freeform stack instead of dumping
      our user out into the homescreen.
      
      Change-Id: I141ecf90b5f0e708a21d27141b6fec6074e5d475
      Fix: 30693465
      (cherry picked from commit 0737c2b4)
      d3c14385
    • gitbuildkicker's avatar
    • Eric Laurent's avatar
      DO NOT MERGE - fix truncated boot sound · b8c8f075
      Eric Laurent authored
      Wait for audioserver service initialization to complete
      before playing the sound
      
      Bug: 31651778
      Change-Id: I988de549d20468a090c939a1c624ee47d4036cd3
      (cherry picked from commit 75bf3fd7)
      b8c8f075
    • Wyatt Riley's avatar
      LocationManager - Handle Shutdown for right User · 6db2c837
      Wyatt Riley authored
      Only process a shutdown when it is for all users (whole system),
      not a single user
      
      Change-Id: Id51b7fb4606460462c2f6749e5ac3984bdd8319f
      Bug: 30646142
      (cherry picked from commit 1b24fb17)
      (cherry picked from commit a8037fff)
      6db2c837
    • Paul Jensen's avatar
      Avoid crashing when downloading MitM'd PAC that is too big am: 7d2198b5 am:... · af7c2a7c
      Paul Jensen authored
      Avoid crashing when downloading MitM'd PAC that is too big am: 7d2198b5 am: 9c1cb7a2 am: 6634e90a
      am: 66ee2296
      
      Change-Id: Ib0023b44e521b936ab2f9450ad367b1feda64492
      af7c2a7c
    • Jaewan Kim's avatar
      DO NOT MERGE Check caller for sending media key to global priority session · 8dacd6f2
      Jaewan Kim authored
      Prevent sending media key events from the non-system app to the global
      priority session through the MediaSessionManager.dispatchMediaKeyEvent().
      Note that any app can use the API indirectly with
      the public API AudioManager.dispatchMediaKeyEvent().
      
      Bug: 29833954
      Tested: Installed malicious apps and confirmed that they don't work.
      Tested: Run CtsTelecomTestCases and CtsMediaTestCases
      Change-Id: I2a9e78196ba7455324e485f098f095d03b47ee15
      (cherry picked from commit 09c3df00)
      8dacd6f2
    • Paul Jensen's avatar
      Fix build break due to automerge of 7d2198b5 · a87d5131
      Paul Jensen authored
      Bug: 30100884
      
      Change-Id: I8fa379a74b5d9467b5b9498bd18de2a043963c6f
      (cherry picked from commit baae57ab)
      a87d5131
    • Tadashi G. Takaoka's avatar
      Catch all exceptions when parsing IME meta data · f30cfcb2
      Tadashi G. Takaoka authored
      Bug: 30568284
      Change-Id: I0b613f8ce0f014320c5ac1bf445699ea2702a0a2
      (cherry picked from commit dddc438e)
      f30cfcb2