Commit Graph

36102 Commits

Author SHA1 Message Date
Daniel Rosenberg b7c118522f Add derive_gid flag for mounting sdcardfs
Turns on the derive_gid feature for sdcardfs. This was moved
under a mount flag in the kernel.

Test: If the derive_gid flag is supported, the first mount
      should succeed. If the flag is not, the second should
      succeed.
Bug: 63245673
Change-Id: If1c1bce13d14120732e420252cb5605d33ce7c40
2017-09-20 16:04:50 -07:00
Andreas Gampe 35fc039afc Merge "Base: Delete ostream<< with std::string*"
am: 2dd3b6e349

Change-Id: I6aac826ec56dec657f70357e3bdaad76f8ddb871
2017-09-20 22:01:55 +00:00
Treehugger Robot 2dd3b6e349 Merge "Base: Delete ostream<< with std::string*" 2017-09-20 21:58:39 +00:00
Mark Salyzyn f9ce38e3e2 Merge changes I45fbac4a,Ie390459d
am: 3b5538965e

Change-Id: I536828c2df621eff0c6c528a2ad2b74e863eab79
2017-09-20 20:22:46 +00:00
Treehugger Robot 3b5538965e Merge changes I45fbac4a,Ie390459d
* changes:
  bootstat: validate last kmsg and bootreason content more carefully
  bootstat: clang-format rebase
2017-09-20 20:17:19 +00:00
Dan Willemsen 0f048675b2 Enable libdemangle and libunwindstack on host bionic
libunwindstack_test:UnwindTest.* are all failing, but at least this
builds.

Test: Enable host bionic; m
Test: out/soong/host/linux_bionic-x86/nativetest64/libdemangle_test/libdemangle_test
Test: out/soong/host/linux_bionic-x86/nativetest64/libunwindstack_test/libunwindstack_test
Change-Id: Ie6c774ecb4d7a467b5ea7ae977833e9cba178f2d
2017-09-20 13:16:13 -07:00
Tom Cherry bf6168fd53 Merge "Remove comments and code about ro.boot.slot"
am: 7dcf076700

Change-Id: Ic28c5bd369d45489150741b1c1cf2b4c00c4eb52
2017-09-20 19:27:43 +00:00
Tom Cherry 7dcf076700 Merge "Remove comments and code about ro.boot.slot" 2017-09-20 19:21:18 +00:00
James Hawkins 2c41fa99eb Merge "libmetricslogger: Lookup tag ID by name at runtime."
am: 90e9c1f06a

Change-Id: I093eb9c096ee9644de2c41a34cd638c998bbb3c4
2017-09-20 18:44:40 +00:00
Treehugger Robot 90e9c1f06a Merge "libmetricslogger: Lookup tag ID by name at runtime." 2017-09-20 18:40:21 +00:00
Mark Salyzyn a16e437e9d bootstat: validate last kmsg and bootreason content more carefully
Establish a tighter trust relationship with digitization of the
battery level.  Validate the reboot reason collected from the last
kmsg.  Validate the last reboot reason before using for enhancing
system reboot reason.

Test: system/core/bootstat/boot_reason_test.sh
Bug: 63636262
Change-Id: I45fbac4a33c09295cda89de3b73c93a884033e3b
2017-09-20 11:28:02 -07:00
Mark Salyzyn 14b1e6d63d bootstat: clang-format rebase
Code style has drifted too far from our current clang-format
settings.

Test: compile
Side-Effects: none
Bug: 63736262
Change-Id: Ie390459db123cfadf09aa06c8dafb1ae69a72af8
2017-09-20 11:27:56 -07:00
Andreas Gampe 4ef5011a7b Base: Delete ostream<< with std::string*
In most reasonable cases, this is actually a bug. So delete the
operator overload and let the compiler complain.

Test: m
Change-Id: I7d66ec2f33cc46588b6f549876241871f19ce995
2017-09-20 10:54:20 -07:00
Tom Cherry f4ec2c50a3 Remove comments and code about ro.boot.slot
ro.boot.slot_suffix is the correct parameter.

Bug: 37663204
Test: boot sailfish
Change-Id: I72f94b3c611a2280d0732321dd8de88b0530a3cd
2017-09-20 10:14:44 -07:00
Mark Salyzyn 088fed7bb5 Merge "bootstat: refine kernel panic details"
am: 22a10f6766

Change-Id: Ifcc5ceb11a6dfef8c6d4ee9951e943c0a5fc55bb
2017-09-20 14:55:20 +00:00
Mark Salyzyn 22a10f6766 Merge "bootstat: refine kernel panic details" 2017-09-20 14:45:17 +00:00
Tom Cherry 00a15fc9bf Merge "init: fix typo"
am: 15a14d1ad9

Change-Id: I3805f03671f0ed09320df88b96b5cd958a9f742d
2017-09-20 00:45:07 +00:00
Treehugger Robot 15a14d1ad9 Merge "init: fix typo" 2017-09-20 00:35:30 +00:00
James Hawkins b2f4244f52 libmetricslogger: Lookup tag ID by name at runtime.
This allows the removal of the hardcoded value (which can become obsolete).

Bug: 65991710
Test: none
Change-Id: I4c9c668dbfe728852ab70d2a0ac8e6bb82a77ad3
2017-09-19 16:37:00 -07:00
Mark Salyzyn 6461089bf8 bootstat: refine kernel panic details
If bootloader reports kernel_panic, gives us permission for a
deeper check of which kind occurred.  Resolve a problem with
some kernels that do not have the 'sysrq: SysRq :' log stutter.

Test: system/core/bootstat/boot_reason_test.sh
Bug: 63736262
Change-Id: Idb8978de7a4f4e3c671c6ab7efc5ebe841f7bbd8
2017-09-19 16:30:05 -07:00
James Hawkins ae4ae45ca7 Merge "libmetricslogger: Fix one incorrect (deprecated) logtag and one duplicate logtag."
am: 8f3989b820

Change-Id: I53da00a3015fc28bfc259960ae2b28ae00c22f3e
2017-09-19 22:50:17 +00:00
Treehugger Robot 8f3989b820 Merge "libmetricslogger: Fix one incorrect (deprecated) logtag and one duplicate logtag." 2017-09-19 22:39:25 +00:00
Tom Cherry a141907ecf init: fix typo
Test: build
Change-Id: I2f6ff60356087f9fd6c6f24e3923d70b9e93dcf8
2017-09-19 13:13:17 -07:00
James Hawkins 2dcca295a6 libmetricslogger: Fix one incorrect (deprecated) logtag and one
duplicate logtag.

Bug: 65841976
Bug: 65961260
Test: none
Change-Id: I6491c3c05e3a56b45d4a77cfa83f8e14eb226e64
2017-09-19 12:03:47 -07:00
Tom Cherry 61b81a0341 Merge "init: use protobuf for serialization of persistent properties"
am: f5dba11085

Change-Id: I6177b5b86290a50884f6212d45a09604b69cffd6
2017-09-19 17:16:59 +00:00
Tom Cherry f5dba11085 Merge "init: use protobuf for serialization of persistent properties" 2017-09-19 17:07:00 +00:00
Tom Cherry a97faba653 init: use protobuf for serialization of persistent properties
I probably should have done this from the start...  There's a shim to
convert my manually serialized format to protobuf, and since that has
not yet shipped, it'll be reverted in a short period of time.

Test: init unit tests
Test: upgrade from legacy and intermediate property formats successfully
Change-Id: Iad25f6c30d0b44d294230a53dd6876222d1c785b
2017-09-19 09:56:31 -07:00
Mark Salyzyn c19c573b74 Merge "bootstat: reduce overall boot time"
am: e42278d114

Change-Id: I1cea97eacb8671a30c36f271c33a328aad4ea2ae
2017-09-19 14:45:48 +00:00
Mark Salyzyn 808d1d4f80 Merge "bootstat: battery test fails on QC devices"
am: 834e89c25a

Change-Id: I09dcbce33600fa9d2126300de10416400c82cb60
2017-09-19 14:40:58 +00:00
Mark Salyzyn 2c1ecaa540 Merge "bootstat: bootloader stat files misspelled"
am: b04f454216

Change-Id: I78d23ab58f2cad26af698f8a65a140797cddaf5c
2017-09-19 14:40:22 +00:00
Mark Salyzyn e42278d114 Merge "bootstat: reduce overall boot time" 2017-09-19 14:40:14 +00:00
Mark Salyzyn 0d8863f6a5 Merge "bootstat: reboot cold, warm and hard tests failed"
am: ae054903af

Change-Id: I39805b14c6a9e5f9800f2240e2063add1b846877
2017-09-19 14:39:51 +00:00
Mark Salyzyn 834e89c25a Merge "bootstat: battery test fails on QC devices" 2017-09-19 14:38:39 +00:00
Mark Salyzyn 557a9d4054 bootstat: reduce overall boot time
Run bootstat as a oneshot service rather than as a series of inline
exec commands.  exec commands impact boot time.

Test: cts-tradefed run cts-dev --module CtsBootStatsTestCases
      system/core/bootstat/boot_reason_test.sh all
         (make sure it filters out new init reports)
Bug: 65736247
Change-Id: Ic9d509a8cbee4bc1e278081de1001e25ae0915fd
2017-09-19 07:36:34 -07:00
Mark Salyzyn 8a30fcabcb bootstat: battery test fails on QC devices
Send the message multiple times into the last dmesg log so that one
may be picked up without data corruption.

Test: system/core/bootstat/boot_reason_test.sh
Bug: 63736262
Change-Id: Ie42ad1940b1eb4915e4cf6cc61815d0275a70ffe
2017-09-19 07:36:34 -07:00
Mark Salyzyn b04f454216 Merge "bootstat: bootloader stat files misspelled" 2017-09-19 14:35:36 +00:00
Mark Salyzyn 25246ddfe6 bootstat: bootloader stat files misspelled
Test: system/core/bootstat/boot_reason_test.sh
Bug: 63736262
Change-Id: I6620c9965f4af8b6a3829f1f4cdcc9b691471a71
2017-09-19 14:34:42 +00:00
Mark Salyzyn ae054903af Merge "bootstat: reboot cold, warm and hard tests failed" 2017-09-19 14:32:57 +00:00
Tom Cherry a6d75117e2 Merge "init: add exec_background command"
am: 424ed42fb4

Change-Id: I9529146ea9b29b2fb2e2c92f3533efc4e3106943
2017-09-18 21:37:38 +00:00
Tom Cherry 424ed42fb4 Merge "init: add exec_background command" 2017-09-18 21:33:26 +00:00
Mark Salyzyn 08b0256ea1 bootstat: reboot cold, warm and hard tests failed
If the bootloader insists on reporting reboot for cold, warm and
hard, we need to reconstruct canonical reason from the
persist.sys.boot.reason property.

Some log lines contained bootstate, letting their noise through
during testing, changed regex to look for bootstat[^e].

Test: system/core/bootstat/boot_reason_test.sh
Bug: 63736262
Change-Id: I3788c6cf8aca7fc73dd01bf95acb596d18ed7ee4
2017-09-18 21:03:10 +00:00
James Hawkins 52fe6feeb4 Merge "bootstat: Log the ro.boot.bootreason property through the new platform_reason Tron field."
am: 2fb5fa336b

Change-Id: I8f719dab152697f6159ea5dc395258e7598e3208
2017-09-18 20:11:09 +00:00
Treehugger Robot 2fb5fa336b Merge "bootstat: Log the ro.boot.bootreason property through the new platform_reason Tron field." 2017-09-18 19:36:40 +00:00
Tom Cherry 3631c545b8 init: add exec_background command
This command functions similarly to `exec` except that it does not
cause init to halt executing commands until the process has
terminated.  It is useful for launching simple one time background
tasks.

Bug: 65736247
Test: create an exec_background service and see it function properly
Change-Id: I719c8b85479b65201770aedc0a13191303007c11
2017-09-18 12:19:47 -07:00
Isaac Chen 51ddfac03c Merge "Enable HAS_VFP_D32 for 32-bit armv8 crasher"
am: 06c65ed667

Change-Id: I2cc4ef73ae01708b42cdbf9d0d9a6d1f00059cd7
2017-09-18 02:02:54 +00:00
Isaac Chen 06c65ed667 Merge "Enable HAS_VFP_D32 for 32-bit armv8 crasher" 2017-09-18 01:58:02 +00:00
Josh Gao 487f889016 Merge "libbacktrace: make Backtrace::FormatFrameData static."
am: 48b68b4944

Change-Id: I40b80d6609a7e6cd910b129ff463a0f4ef58fa73
2017-09-15 23:18:38 +00:00
Treehugger Robot 48b68b4944 Merge "libbacktrace: make Backtrace::FormatFrameData static." 2017-09-15 23:13:02 +00:00
James Hawkins 5240f204ed bootstat: Log the ro.boot.bootreason property through the new platform_reason Tron field.
Bug: 63584589
Test: none
Change-Id: Ifd6f3d4432d764b5ffc7db10dec5e573214f7c97
2017-09-15 16:01:57 -07:00
Tom Cherry 171587d10e Merge "init: fix crash when reboot is triggered by a builtin"
am: b92415cee2

Change-Id: I4137679d88e58c706f14adeeaf84b41426079de4
2017-09-15 21:14:08 +00:00