1. 17 Oct, 2011 1 commit
    • Nick Kralevich's avatar
      liblog: ensure that the message length is consistent · 63f4a841
      Nick Kralevich authored
      When parsing log entries which may have embedded \0s, it's
      possible for entry->messageLen to not be the actual
      length of the string in entry->message.  Detect this condition.
      
      Bug: 5417417
      Change-Id: I712cac7696af7831e24765b5a1b345d6ff5fb407
      63f4a841
  2. 14 Oct, 2011 1 commit
  3. 13 Oct, 2011 9 commits
    • Andy McFadden's avatar
      Append log data to tombstones · 41e0cef3
      Andy McFadden authored
      The Android Problem Report site shows tombstones uploaded from
      devices.  We can see the native stack traces for every thread,
      but sometimes there's a very important bit of information sitting
      in the log, and without it we can't analyze the failure.
      
      This change modifies debuggerd so that the log contents for the
      crashing process are appended to the tombstone.  The format matches
      the output of "logcat -v threadtime".  Both "system" and "main" logs
      are included (but not interleaved -- we're not that fancy).
      
      This feature is only enabled when the "ro.debuggable" system property
      is set to 1 (indicating a development device).
      
      Bug 5456676
      
      Change-Id: I3be1df59813ccf1058cec496a906f6d31fbc7b04
      41e0cef3
    • Andy McFadden's avatar
      90e6f931
    • Dima Zavin's avatar
      am 471157a3: charger: key state being the same is not an error · 6606dc95
      Dima Zavin authored
      * commit '471157a3':
        charger: key state being the same is not an error
      6606dc95
    • Dima Zavin's avatar
      charger: key state being the same is not an error · 471157a3
      Dima Zavin authored
      
      Change-Id: I58d53899dbcca8329b65b189c1a6c5eea413c289
      Signed-off-by: default avatarDima Zavin <dima@android.com>
      471157a3
    • Dima Zavin's avatar
      am 47cca063: Merge changes Idcb48155,Iecb8c3db,I4924134b into ics-mr0 · d6da4d4f
      Dima Zavin authored
      * commit '47cca063':
        charger: ignore key event if value didn't change
        charger: sync with the current key state on boot
        charger: print last_kmsg directly using klog_write
      d6da4d4f
    • Dima Zavin's avatar
      Merge changes Idcb48155,Iecb8c3db,I4924134b into ics-mr0 · 47cca063
      Dima Zavin authored
      * changes:
        charger: ignore key event if value didn't change
        charger: sync with the current key state on boot
        charger: print last_kmsg directly using klog_write
      47cca063
    • Andy McFadden's avatar
      Show maps near native fault address · 136dcc5c
      Andy McFadden authored
      This adds some additional output to native crashes.  For example, if
      something tried to access a bit of mmap(/dev/zero) memory that had
      been mprotect()ed, you might see output like this:
      
      I DEBUG   : memory map around addr 4015a00c:
      I DEBUG   : 40159000-4015a000 /system/lib/libstdc++.so
      I DEBUG   : 4015a000-40162000 /dev/zero
      I DEBUG   : b0001000-b0009000 /system/bin/linker
      
      The idea is to see what's in and around the fault address to make it
      easier to identify bus errors due to file truncation and segmentation
      faults caused by buffer over/underruns.
      
      No output is generated for accesses below 0x1000 (which are likely
      NULL pointer dereferences) or for signals that don't set si_addr.
      
      Also, suppress the fault address for signals that don't set si_addr:
      I DEBUG   : signal 6 (SIGABRT), code 0 (?), fault addr --------
      
      We still print "fault addr" followed by 8 characters for anything
      that is parsing the contents.  The "address" shown for signals like
      SIGABRT was meaningless and possibly confusing.
      
      Bug 5358516
      
      Change-Id: Icae8ef309ea2d89b129f68d30f96b2ca8a69cc6c
      136dcc5c
    • Wu-cheng Li's avatar
      am baad2843: Update camera documentation about face detection. · 5babfad4
      Wu-cheng Li authored
      * commit 'baad2843':
        Update camera documentation about face detection.
      5babfad4
    • Wu-cheng Li's avatar
      Update camera documentation about face detection. · baad2843
      Wu-cheng Li authored
      bug:5169599
      Change-Id: I5280137cee5401fadec36cae732ecb78a2d44dc3
      baad2843
  4. 12 Oct, 2011 4 commits
  5. 11 Oct, 2011 1 commit
  6. 10 Oct, 2011 1 commit
  7. 08 Oct, 2011 1 commit
  8. 07 Oct, 2011 3 commits
  9. 05 Oct, 2011 1 commit
  10. 04 Oct, 2011 3 commits
  11. 03 Oct, 2011 1 commit
    • Kenny Root's avatar
      Add checking for log entry format · 4bf3c02e
      Kenny Root authored
      The log tag may be zero length if corrupted, so check for this
      condition.
      
      Change-Id: I7616226dabe78a85859b0ab53aca08f734dbdd84
      4bf3c02e
  12. 30 Sep, 2011 8 commits
  13. 29 Sep, 2011 3 commits
    • Lorenzo Colitti's avatar
    • Xianzhu Wang's avatar
      Fix SocketListener socket leak issue. · 4520246d
      Xianzhu Wang authored
      The problem was: if a socket is shared between SocketListener and another
      thread, only if the last reference is removed by SocketListener can the socket
      be closed, otherwise the socket will leak. This sometimes happens in netd's
      dnsproxyd.
      
      This change let the SocketClient own the socket and close the socket when
      the SocketClient is destructed.
      
      Change-Id: I2865fbfe9ee4d8b3e43d7e02919dbb2d261f70de
      4520246d
    • Lorenzo Colitti's avatar
      Support adding, deleting, and clearing IPv6 addrs. · 47ddb515
      Lorenzo Colitti authored
      - Provide a function to add and delete IPv4/IPv6 addresses
        using netlink.
      - Provide a function that clears all IP addresses on an
        interface that can be used by netd.
      
      Also, a couple of cleanups:
      
      - Update the header file to match reality, and include the
        header file in the implementation. Also fix a caller that
        has an incorrect method signature.
      - Fix whitespace in Android.mk.
      
      Change-Id: Ifba9d60cdfffb0b7e5c3b9c6ab328f5f77d259c4
      47ddb515
  14. 28 Sep, 2011 3 commits