| Commit message (Collapse) | Author | Age | Files | Lines |
|\
| |
| |
| |
| |
| |
| | |
Merge commit 'b4de2f997591d3ee5f1eff92fbf2d4628cee5f2c'
* commit 'b4de2f997591d3ee5f1eff92fbf2d4628cee5f2c':
When dropping privileges, check return values.
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
setuid() and family can fail. Check return values to make
sure this doesn't happen unexpectedly.
Also call setgid() to drop root group permissions.
Change-Id: Id06fbe6239e2ed2fe23368695e333514e0581e6d
|
| |
| |
| |
| |
| | |
Change-Id: I00a448bd44f3f5ca76948acad12ba20be794f3bd
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This comes in the form of a command, `screenshot`, which
will read /dev/graphics/fb0 (in a manner very similar to
adb's framebuffer_service) and write to the specified PNG
file.
Additionally, dumpstate now accepts a -p flag (mnemonic:
"picture" or "png") that, when specified, will cause a
screenshot to be captured in the same directory as the
bugreport.
Future work: invoke `dumpstate -p` when the bugreport
keychord is pressed, giving users a convenient way to attach
screenshots to bug reports (or simply take screenshots at
all without developer tools).
Bug: 2216571 (and probably plenty of others)
Change-Id: I36afbc55a0308a7bc01112ef39c4c62777efb203
|
| | |
|
|/
|
|
|
| |
Change-Id: I0271bf1f2cac874c1801658a81a3dcf7533da781
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
|
|
|
|
|
|
|
| |
Fix for http://b/2630027
Change-Id: I3606d8bf95c58df2b290dbd13f48538d82f16088
Signed-off-by: San Mehat <san@google.com>
|
|
|
|
|
| |
Change-Id: I56dfdc700db5704a91015ddcdc2adb0952b097ba
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
|
|
|
|
|
| |
Change-Id: Ib5a7611019c13bae04f6bf099c4c598f1662890a
Signed-off-by: San Mehat <san@google.com>
|
|
|
|
|
|
|
| |
Print ANR traces.txt even if it's old.
Print more detailed error messages about VM trace dumps.
Change-Id: I067c90b8f3b3647b6136528eff3120e6cfea5715
|
|
|
|
|
| |
Change-Id: I0cb465da86976f5cce3594c4bb846aa6510c52d6
Signed-off-by: San Mehat <san@google.com>
|
|
|
|
| |
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
|
|
|
|
|
| |
due to lack of permissions, usually due to an old adb running
"dumpstate" directly rather than via bugreport).
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- include basic build & timestamp information in the header
- collect stack traces immediately at bugreport time
- *also* show stack traces from last ANR (as before), if in the last 15 minutes
- alphabetize system properties dump
- remove now-obsolete (and always questionable) "dumpcrash" functionality
- write to a .tmp file first, then rename to the final filename
- friendly usage message
- output sections include the exact file/command run
- source de-weirdification -- it's several hundred lines shorter now
The same data is present in the same order as before, and I've tried
to preserve all the grep/search targets people might use to find their
way through the file.
|
| |
|
|
|
|
| |
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
|
|
|
|
|
|
|
| |
This is needed since its no longer copied to /data/dontpanic by init.
Change-Id: I5217da73ec470653824b7fb9a31e093e263a8dc9
Signed-off-by: Dima Zavin <dima@android.com>
|
|
|
|
|
| |
Change-Id: I99194df1d6c46254affef86ea8eb39e784c3dfb3
Signed-off-by: Mike Chan <mike@android.com>
|
|
|
|
| |
Signed-off-by: Iliyan Malchev <malchev@google.com>
|
| |
|
|
|
|
| |
Change-Id: I88c6e2679919e56f581fcf79dbe683393dd8ce27
|
|
|
|
| |
Signed-off-by: San Mehat <san@google.com>
|
|
|
|
|
|
|
|
|
|
|
| |
Since the logcat is not printed until later in the output, this will
make it easier to determine at what point the user pressed the key sequence
to initiate the bugreport, which can be helpful when debugging timing dependent problems.
b/2164183
Change-Id: I5b650a6163c383183ff28e344dac36fab11a2c7b
Signed-off-by: Mike Lockwood <lockwood@android.com>
|
|
|
|
|
|
|
| |
To help diagnose bugs b/2164183 and b/2164647
Change-Id: Ie80c3b205c231c485d8a24e68b0a9c5e025da479
Signed-off-by: Mike Lockwood <lockwood@android.com>
|
|
|
|
| |
Signed-off-by: San Mehat <san@google.com>
|
|
|
|
|
|
|
|
| |
Now that we have straightened out the permissions on /data/dontpanic,
root is no longer necessary.
Change-Id: Ic895d712c2e929e4935707da321e1a2b015285c0
Signed-off-by: Mike Lockwood <lockwood@android.com>
|
|
|
|
| |
Signed-off-by: San Mehat <san@google.com>
|
|
|
|
|
| |
Change-Id: I57acae2344a264751f38b910e1e2bc750a1f1d24
Signed-off-by: Mike Lockwood <lockwood@android.com>
|
|
|
|
|
|
|
|
| |
This will be used to allow running dumpstate as root from the init process
to enable gathering debugging information that requires root to access.
Change-Id: I5bb7e83071fad2b377e549058f318a5118194061
Signed-off-by: Mike Lockwood <lockwood@android.com>
|
|
|
|
| |
Signed-off-by: San Mehat <san@google.com>
|
|
|
|
| |
Signed-off-by: San Mehat <san@google.com>
|
|
|
|
|
|
| |
kernel crash."
This reverts commit 666c11d13fbf7b8e0502d44a94ffa00597ce92eb.
|
|
|
|
| |
Signed-off-by: Mike Lockwood <lockwood@android.com>
|
|
|
|
| |
Signed-off-by: Mike Lockwood <lockwood@android.com>
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|