1. 10 Apr, 2015 1 commit
    • Chris Fries's avatar
      fs_mgr: introduce fs_mgr_format to format wiped partitions · 79f33846
      Chris Fries authored
      Move fastboot's format logic into fs_mgr, to consolidate the knowledge
      about how to do this (and when to wipe metadata).
      
      Try to format these formattable paritions if they are wiped.
      
      If formatting fails, we will fall out to let recovery mode handle it.
      
      Bug: 20082763
      Change-Id: I397cc197550e78d932e8a154fd234695c46dbe7b
      79f33846
  2. 06 Feb, 2015 1 commit
  3. 21 Jan, 2015 1 commit
  4. 15 Jan, 2015 6 commits
  5. 14 Jan, 2015 5 commits
    • Christopher Ferris's avatar
      Add timed versions of stack dumping functions. · 5f2ff6a9
      Christopher Ferris authored
      Under some unknown circumstances, debuggerd could become unresponsive.
      If you try and take a bugreport during this time, it will hang forever.
      Adding functions that have a timeout will allow dumpstate to stop if
      dumping is taking too long.
      
      Bug: 18766581
      Change-Id: I85053b8dcfe6224e2b64b4d8f7f2ef448b3cda34
      5f2ff6a9
    • Al Sutton's avatar
      Remove explict use of ASCII encoding · 77262e7d
      Al Sutton authored
      Replace the use of CFStringGetCString with kCFStringEncodingASCII specified
      with CFStringGetFileSystemRepresentation which will ensure the correct
      character encoding is used to conver the CFString into a NULL terminated
      char array suitable for use with POSIX APIs.
      
      (cherry picked from commit 2a4b5f9e)
      
      Change-Id: Ie6e2027e59b49ca634c7308bcda7bb492d372f46
      77262e7d
    • Al Sutton's avatar
      Return path including executable instead of without · d5b41767
      Al Sutton authored
      The previous implementation returned the path the executable was in instead
      of returning the path including the executable (i.e. it returned ...bin
      instead of ...bin/executable). This is not what the original methods did
      and caused the process forking of adb to fail.
      
      This patch corrects the implementation.
      
      (cherry picked from commit 26b53bb7)
      
      Change-Id: Icad6870bbb0a88f611ca71d90fff30f7b576c367
      d5b41767
    • Al Sutton's avatar
      Fix building on modern versions of Xcode and OS X. · 017c97a5
      Al Sutton authored
      Recent versions of XCode fail to compile the adb and fastboot binaries due to
      two functions being deprecated in 10.9 (GetCurrentProcess and
      ProcessInformationCopyDictionary), and the use of -Werrror.
      
      This patch replaces the method implementations which use calls to methods
      deprecated in the 10.9 SDK with versions which only call non-deprecated methods.
      
      (cherry picked from commit f456d47c)
      
      Change-Id: Ibd80dda73ccdd7c561b50b4065581e645d9855d6
      017c97a5
    • Narayan Kamath's avatar
      sdcard : inode numbers must be fully representable as uint32_t. · faa0935f
      Narayan Kamath authored
      This works around a bug on on 64 bit kernels + sdcard daemons
      where we were using memory addresses as inode numbers.
      
      bug: 19012244
      
      Change-Id: Ia63c5b33b4212bf03ff92fa2faff0bb76e48791c
      faa0935f
  6. 09 Jan, 2015 1 commit
  7. 07 Jan, 2015 2 commits
    • Christopher R. Palmer's avatar
      init: Fix memory corruption when sanitizing platform paths · ba95be58
      Christopher R. Palmer authored
      This commit fixes code that incorrectly increments s when it
      hits the terminator character of the string being sanitized.
      This means it will randomly start trashing memory beyond the
      end of the string being sanitized until it happens to hit two
      NULs (\0\0) which will break it out of the loop.
      
      (cherry picked from commit 07f3fee1)
      
      Bug: 18885357
      Change-Id: If6b01fe2b9bd5985f08f1278deb03b311d0170dc
      ba95be58
    • Paul Lawrence's avatar
      Provide a way to select force encryption from vendor partition · 703b87de
      Paul Lawrence authored
      This allows a vendor to force encryption on devices via a vendor
      partition flag:
      
      ro.vold.forceencryption 1
      
      Bug: 18764230
      Change-Id: Id0049ce64e34e4f6f96e593aadd70c277ac131c8
      703b87de
  8. 09 Dec, 2014 1 commit
  9. 24 Nov, 2014 2 commits
    • Eric Laurent's avatar
      audio: new stream types · 47f52f24
      Eric Laurent authored
      Added stream types for internal use by audio policy
      and audio flinger.
      
      Bug: 18067208.
      Change-Id: I90fd4df9ed5e0d8fb8c220d67e95fd0e32a06f14
      47f52f24
    • Daisuke Okitsu's avatar
      sdcard: mount sdcard with the noexec option · a5a4e9e0
      Daisuke Okitsu authored
      Vold mounts the sdcard with noexec, but the fuse deamon
      mounts with exec, so it is still possible to execute
      binaries:
      
        /dev/fuse /storage/sdcard1 fuse rw,nosuid,nodev,relatime,
        user_id=1023,group_id=1023,default_permissions,allow_other 0 0
      
        /dev/block/vold/179:65 /mnt/media_rw/sdcard1 vfat rw,dirsync,
        nosuid,nodev,noexec,relatime,uid=1023,gid=1023,fmask=0007,
        dmask=0007,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,
        shortname=mixed,utf8,errors=remount-ro 0 0
      
      With this change both vold and fuse mounts with noexec.
      
      (cherry picked from commit f777d6694eecf6e61d9859df2090199863050017)
      
      Change-Id: I66cbfc3a3a89a26958f83577f5e7a5e27f99184e
      a5a4e9e0
  10. 19 Nov, 2014 1 commit
    • Nick Kralevich's avatar
      logd: throttle SELinux denials to 20/sec · 83d85563
      Nick Kralevich authored
      Impose a limit of 20 selinux denials per second. Denials beyond
      that point don't add any value, and have the potential to cause
      crashes or denial of service attacks.
      
      Do some other misc cleanup while I'm here.
      
      Bug: 18341932
      
      (cherry picked from commit c234a1b8)
      
      Change-Id: Ic5c96003db82e504baf301e87be5c8c539c73c2a
      83d85563
  11. 14 Nov, 2014 4 commits
  12. 13 Nov, 2014 3 commits
  13. 08 Nov, 2014 1 commit
  14. 07 Nov, 2014 1 commit
  15. 05 Nov, 2014 2 commits
  16. 03 Nov, 2014 8 commits