am: 17dc473
* commit '17dc4732e8058e155eab6491bb2228d623b28bf3':
bootstat: Two changes to aid in debugging TimeSinceFactoryReset.
Change-Id: I3e086b31db98ef5a74fd9286d99eed496cda8ce4
am: 4b71388
* commit '4b7138889635e716989a6f7772f185ab1d63526b':
bootstat: Two changes to aid in debugging TimeSinceFactoryReset.
Change-Id: Id7b47b7b1889eec950f2bd18a20e192bd8c93425
* Also log to the BootEventRecordStore to check lossiness.
* Log factory_reset_current_time_failure separately.
Bug: 27550578
Change-Id: Id3d579a74a59ac28290cb7d6048765519f9ba59b
(cherry picked from commit fff95ba5dd)
am: 470df1b
* commit '470df1b9045da29ec93e08b985c4c4c36f4bf53c':
debuggerd: set the name of the signal sender.
Change-Id: Id8bd485f53160f86976d316e96812a661a95e10b
am: 4eb63f3
* commit '4eb63f3f4abf66ca2570ce99ca3d63566b63d46d':
bootstat: Two changes to aid in debugging TimeSinceFactoryReset.
Change-Id: Ibe29773316cef0ccc15585d67eae1646b240325f
am: 437911e
* commit '437911ec87fe471a4cbe7e3dfa722e11d3187805':
debuggerd: set the name of the signal sender.
Change-Id: I23723649fcc33a624f4aba80cde81f1bbb71fc3b
am: 6da6ad9
* commit '6da6ad9ffa98b548b61fcee344b7174f270befd6':
bootstat: Two changes to aid in debugging TimeSinceFactoryReset.
Change-Id: I2d56fd25e817a63962ea4855432fc023914c244b
As logging macros uses `if xxx else yyy` style, it is reported as an
error when DCHECK() is compiled with -Wdangling-else option. Because
after preprocess, DCHECK(x) becomes:
if (EnableDChecks)
if (x)
;
else
LogMessage(FATAL) << yyy;
This CL avoids compilation error by replacing `if xxx else yyy`
with `xxx && yyy` or `!(xxx) || yyy`.
Bug: 26962895
Change-Id: Ib0bf242cc04a238ec31a1ab66b53fc8a5b5ed28f
(cherry picked from commit 2527628eda)
am: 3d0a87b
* commit '3d0a87bd5bfe8b1c66d5cbaec5685a9e5ec80938':
debuggerd: set the name of the signal sender.
Change-Id: I8b4134dfaaeeab8f7b83f28d9dde758d8b372d9e
am: a348dfc
* commit 'a348dfcd651d8410bba41cde63c45e3c4d760d5a':
bootstat: Two changes to aid in debugging TimeSinceFactoryReset.
Change-Id: I4f91e3ac286ce02885089ac63cd0201f996b53c9
am: dc53f5b
* commit 'dc53f5bfd50e045ae9c9740ec73374890940284c':
Add C++ thread annotations support to core.
Change-Id: I9373d833673a46320565780d4dd16d84fee5a3ea
am: c1c761b
* commit 'c1c761b5fdcc391ef333c87ee5f021ef5245e9a1':
mkbootimg: use int for os_version and os_patch_level
Change-Id: I83c80725f82f080c09e2846b8c51647b9081d8ef
am: bebd381
* commit 'bebd38114c47965ab475c7736d689b564dc54890':
mkbootimg: use int for os_version and os_patch_level
Change-Id: I56cee9e16544a0603544f143a204cb1bf3d53275
am: 835b974
* commit '835b974e26e819190ee2f254530a39fe50481bae':
mkbootimg: use int for os_version and os_patch_level
Change-Id: Ifb8af34a6f3a3f5c74ecdd7b2675e0255052c004
am: e4052d2
* commit 'e4052d2ca544d47e104f4ff842a013429463420d':
mkbootimg: use int for os_version and os_patch_level
Change-Id: I61c57e45900da7dbdb303565ed5219f19b1e10b1
am: adbe06d
* commit 'adbe06db4870e9829ddc8c702f8789df6f2401b1':
mkbootimg: use int for os_version and os_patch_level
Change-Id: I23125c4f1842491effa903b2e30aee07664a6b98
The parse_int function attempts to interpret the string to detect
base, which leads to it assuming strings starting with 0 are base
8. This obviously fails for certain dates, so use int instead.
Bug: 27498078
Bug: 22914603
Change-Id: I50b1fb3d7876f2ec17d00649cc9a2d23af2aec2b
(cherry picked from commit 294eb9dac3)
Switch insmod from using init_module to finit_module. From
"man finit_module":
The finit_module() system call is like init_module(), but reads the
module to be loaded from the file descriptor fd. It is useful when the
authenticity of a kernel module can be determined from its location in
the file system; in cases where that is possible, the overhead of
using cryptographically signed modules to determine the authenticity
of a module can be avoided.
finit_module is preferred over init_module because it allows LSMs, such
as SELinux, to perform a permission check on kernel module loads based on
the file from which the module is loaded. This functionality is not yet
implemented in the Linux kernel, but is on the SEAndroid TODO list.
See https://bitbucket.org/seandroid/wiki/wiki/ToDo
Bug: 27824855
Change-Id: Id0ea88cd1930393c8c73ce38e63d5b2eeadf946a