Commit graph

11 commits

Author SHA1 Message Date
Stephen Hines
6896f0626b NFC: Directly initialize the 's' variable.
As part of enabling -Wconditional-uninitialized, there are some false
positives. See https://bugs.llvm.org/show_bug.cgi?id=38856 for more info
about the limited flow analysis. To facilitate turning this flag on more
widely, we can just directly initialize these variables.

Bug: http://b/131390872
Test: Builds with -Wconditional-uninitialized.
Change-Id: Id6633a06478dfb0c51a1a3b0cabf4c4e5d57abaa
2019-05-09 13:11:59 -07:00
Felipe Leme
db3c898510 Added OWNERS to moar bugreport-related projects...
..and hooks to make sure they're developed on AOSP

Bug: none
Test: none

Change-Id: I6d541bc7b5815b187710cbf8838fc6307cf25e7c
2018-09-26 14:00:25 -07:00
Chih-Hung Hsieh
734e378a73 Use -Werror in frameworks/native/cmds
* Remove or comment out unused variables/functions.

Bug: 66996870
Test: build with WITH_TIDY=1
Change-Id: I15a463eb9a20bc12787c104f671063ceeafaa1cc
2017-10-09 15:16:59 -07:00
Felipe Leme
3b650731d3 Revert "R.I.P. bugreport, long live bugreportz!"
This reverts commit 2d5f161f60.

BUG: 30701244
BUG: 29448020

Change-Id: Idbdd1fe99ce3c17580b3a76f90c0a817c06a7b7d
2016-08-05 19:30:05 +00:00
Felipe Leme
2d5f161f60 R.I.P. bugreport, long live bugreportz!
Change-Id: Ie146f6f72f4a9dba3942d1821c634cf2c2186b5d
Fixes: 29448020
2016-08-04 13:32:54 -07:00
Dan Willemsen
e05dc6d59c Start converting Android.mk to Android.bp
See build/soong/README.md for more information.

Change-Id: Ifbe9b0072a63b4467c72b3a52148a606e5365f78
2016-08-01 18:11:42 -07:00
Felipe Leme
2628e9e939 Added support for 'bugreport -z'.
Dumpstate now supports zipped bugreport, whose output is more complete
than the flat-file bugreports provided prior to N.

The whole workflow is split in different components:

- adb supports a 'bugreport -z <ZIP_FILE>' option, which calls a
  bugreportz binary.
- bugreportz starts the dumpstatez service.
- dumpstatez starts dumpstate with some flags that opens a socket for
  control (not output).
- Once dumpstate is finished, it prints the bugreport location to
  stdout.
- adb pulls the zip file and renames according to the command-line
  argument.
- bugreport prints a deprecation message.

The reason for a new binary (bugreportz) instead of passing arguments to
bugreport (like -z) is backward compatibility: pre-N versions of
bugreport would ignore such argument and generate a text bugreport,
which is not what adb would be expecting.

BUG: 27653204

Change-Id: I47f6f677eba11d5fb54818ae5a0b3cab069776ee
2016-04-13 09:29:06 -07:00
Elliott Hughes
997abb668b Don't use TEMP_FAILURE_RETRY on close in frameworks/native.
Bug: http://b/20501816
Change-Id: Id13a62f02243c6c4831e2f47944dc34fa822f5b6
2015-05-15 17:05:40 -07:00
Christopher Ferris
9b73bf07d7 Refactor of the bugreport code.
Implemented these changes:

- Make this code C++.
- Avoid hangs by adding a timeout.
- Add the necessary TEMP_FAILURE_RETRY calls.
- Restructure the code a bit.

Bug: 18800936

Change-Id: Iba9f86a4c7beee4f0f36e51234855f4c0834db47
2015-01-23 13:40:56 -08:00
Guang Zhu
9fcca4ee17 releax wait timeout on start of dumpstate service
Bug: 12181612
Change-Id: If7ae97de1e42890dac37d036ead669ccda65e688
2014-01-15 15:58:54 -08:00
Mike Lockwood
94afecf4b6 Move non-Java commands over from frameworks/base
Change-Id: I0571813c1cfcf66abd36eb9f178fc49b618e88a6
Signed-off-by: Mike Lockwood <lockwood@google.com>
2012-10-24 10:45:23 -07:00