Commit graph

60226 commits

Author SHA1 Message Date
Nikita Ioffe
fb4ac314ec Merge "Make /data/apex/active world readable" into rvc-dev am: e343f439a3
Change-Id: Ic976bf67ad7bb28547903cc64617b250b3c35004
2020-04-24 21:59:40 +00:00
Nikita Ioffe
e343f439a3 Merge "Make /data/apex/active world readable" into rvc-dev 2020-04-24 21:44:40 +00:00
Jeffrey Huang
202d8ba56d Add require root to libstats tests am: 18d239c5c5
Change-Id: I1a950c82481a3e83b2fbe01af2a0585f865e7dbe
2020-04-24 21:31:53 +00:00
Treehugger Robot
e9e0cb93a7 Merge changes I25df8eec,I493ff192 am: d694a67865 am: 7b0205642c
Change-Id: I5eb4618e9c385d2e27a6c40411e56163ed30d9c6
2020-04-24 21:04:38 +00:00
Treehugger Robot
7b0205642c Merge changes I25df8eec,I493ff192 am: d694a67865
Change-Id: Id8da42b8da9278bfd778940e8a8746565f6ac186
2020-04-24 20:53:42 +00:00
Treehugger Robot
d694a67865 Merge changes I25df8eec,I493ff192
* changes:
  result.h - fix bugprone-suspicious-semicolon warning
  expected.h - fix bugprone-forwarding-reference-overload warnings
2020-04-24 20:43:33 +00:00
Maciej Żenczykowski
57d2fa4e52 result.h - fix bugprone-suspicious-semicolon warning
Fixes:
  system/core/base/include/android-base/result.h:
  133:94: warning: potentially unintended semicolon [bugprone-suspicious-semicolon]

Bernie says:
  it probably means that there's a parser bug with "if constexpr"

  maybe, at static analysis pass, the "if constexpr" was evaluated to false,
  and the compiler removed the "then" block from the AST...
  ... and then it thought you had written it that way :-)
  https://reviews.llvm.org/D46027

Test: builds
Bug: 153035880
Signed-off-by: Maciej Żenczykowski <maze@google.com>
Change-Id: I25df8eeca4ec06b3180c1cd21b554fc583c5581a
2020-04-24 11:28:06 -07:00
Maciej Żenczykowski
dc12124aba expected.h - fix bugprone-forwarding-reference-overload warnings
Fixes:
  system/core/base/include/android-base/expected.h:
  186:13: warning: constructor accepting a forwarding reference can hide the copy and move constructors [bugprone-forwarding-reference-overload]
  195:22: warning: constructor accepting a forwarding reference can hide the copy and move constructors [bugprone-forwarding-reference-overload]
  611:13: warning: constructor accepting a forwarding reference can hide the copy and move constructors [bugprone-forwarding-reference-overload]

To quote Tom Cherry:
  I'm a bit confused at what's happening there.
  I think it's a bug in the linter itself.
  The general solution to that problem is a heavy dose of std::enable_if<>
  to hide that constructor when the 'U' parameter is the same class,
  but those constructors do have the necessarily std::enable_if<> lines.

  I think the problem is that the linter doesn't check that the macro
  _ENABLE_IF() expands into std::enable_if<>.  Let me try explicitly
  putting the std::enable_if<> instead of the macro and check if it
  goes away.

  I expanded the macro but the linter doesn't still doesn't accept
  the format of `std::enable_if_t<(condition_here)>* = nullptr`.
  It does accept `typename Enable = std::enable_if_t<(condition_here), void>`,
  which is the syntax used on their example here:
    https://clang.llvm.org/extra/clang-tidy/checks/bugprone-forwarding-reference-overload.html.

  That latter syntax doesn't work for us.
  See the Notes section on
    https://en.cppreference.com/w/cpp/types/enable_if
  as a reference for why what we're doing is correct.

Test: builds
Bug: 153035880
Signed-off-by: Maciej Żenczykowski <maze@google.com>
Change-Id: I493ff19208cc104f5f176a36ec23fbcb914388f7
2020-04-24 11:28:06 -07:00
Jeffrey Huang
18d239c5c5 Add require root to libstats tests
root is required for coverage tests

Bug: 154652564
Test: m -j
Change-Id: I3325565818a275a069aed35a34bf3a58ee4b5bfc
2020-04-24 10:44:25 -07:00
Treehugger Robot
64be234492 Merge "llkd: Print thread group before panic the kernel" am: e0edc7ec32 am: 21510e02a2
Change-Id: Iefc871d640616c1f5d4d38432322bc2d87808d7e
2020-04-24 14:27:33 +00:00
Treehugger Robot
21510e02a2 Merge "llkd: Print thread group before panic the kernel" am: e0edc7ec32
Change-Id: I245873c98ee7046876acc43e6c38ff59baa46606
2020-04-24 14:16:18 +00:00
Treehugger Robot
e0edc7ec32 Merge "llkd: Print thread group before panic the kernel" 2020-04-24 14:04:03 +00:00
Joshua Duong
7833075fb5 Merge "[adb] Disable _adb._tcp. service auto-connect by default." am: 3eea62432d am: 6974e7b043
Change-Id: I6f5fc03d22e516eaf48bcb1e289f6773fa75b384
2020-04-24 06:12:48 +00:00
Joshua Duong
6974e7b043 Merge "[adb] Disable _adb._tcp. service auto-connect by default." am: 3eea62432d
Change-Id: Ie3d7d6a509ec741c493034d040d45e249a09e9e6
2020-04-24 05:55:09 +00:00
Joshua Duong
3eea62432d Merge "[adb] Disable _adb._tcp. service auto-connect by default." 2020-04-24 05:38:22 +00:00
Ytai Ben-tsvi
dae9e9af0f [automerger skipped] Merge "Control audio HAL services in start/stop" am: 07ccf08af2 am: 945ee83f50 -s ours
am skip reason: Change-Id I39878b978b47a169c4fe446c43d7347809d15e06 with SHA-1 6025b731e6 is in history

Change-Id: Ie54f5b8f6c5a5a979d9a48002bc4af7ed0261af7
2020-04-24 03:09:58 +00:00
TreeHugger Robot
39ba8f2b3f [automerger skipped] Merge "expected.h - fix bugprone-branch-clone warning" into rvc-dev am: 61e2b0104a -s ours
am skip reason: Change-Id Ie67a8bb1bf622319adea15466c42077e0e9b1a18 with SHA-1 4fc9b99329 is in history

Change-Id: I42c60388181f6d8e292dcfe68267f2c0291f93ac
2020-04-24 02:59:36 +00:00
Ytai Ben-tsvi
945ee83f50 Merge "Control audio HAL services in start/stop" am: 07ccf08af2
Change-Id: Icc5c1889a649f31885bb11ee16bf8fae0d98b3cb
2020-04-24 02:59:14 +00:00
Woody Lin
e5a09d8da5 llkd: Print thread group before panic the kernel
Debugging information for addressing the reason why the process stops as
a zombie, can be found by observing the call trace and running status of
threads in thread group of the zombie process.

Bug: 154667692
Change-Id: Icd7fa2161e88b08fd5ce0d5dc3a3790ed4ac02d1
2020-04-24 02:55:00 +00:00
Ytai Ben-tsvi
07ccf08af2 Merge "Control audio HAL services in start/stop" 2020-04-24 02:40:10 +00:00
TreeHugger Robot
61e2b0104a Merge "expected.h - fix bugprone-branch-clone warning" into rvc-dev 2020-04-24 02:39:42 +00:00
Treehugger Robot
fb3cce57b0 Merge "Using ABB for install-multi." am: abc40c7c5d am: 3a9114c337
Change-Id: I27df5ad5f916bc75ead36cb439aa9370ce9431ca
2020-04-24 01:36:57 +00:00
Treehugger Robot
3a9114c337 Merge "Using ABB for install-multi." am: abc40c7c5d
Change-Id: I0310e2f504db06d4c4478292ba2b077b9b0f2909
2020-04-24 01:29:39 +00:00
Treehugger Robot
abc40c7c5d Merge "Using ABB for install-multi." 2020-04-24 01:15:49 +00:00
Ytai Ben-tsvi
9a00e92141 Merge "Control audio HAL services in start/stop" into rvc-dev am: a6f8993f8b
Change-Id: Ia1bf36549f9871df3bcd2b408f231652af7ac448
2020-04-24 00:39:48 +00:00
Ytai Ben-tsvi
a6f8993f8b Merge "Control audio HAL services in start/stop" into rvc-dev 2020-04-24 00:30:36 +00:00
Treehugger Robot
ffaa7d6751 expected.h - fix bugprone-branch-clone warning
Fixes:
  system/core/base/include/android-base/expected.h:606:39: warning: repeated branch in conditional chain [bugprone-branch-clone]
    if (x.has_value() != y.has_value()) {
                                        ^
  system/core/base/include/android-base/expected.h:608:4: note: end of the original
    } else if (!x.has_value()) {
     ^
  system/core/base/include/android-base/expected.h:610:10: note: clone 1 starts here
    } else {
           ^

Test: builds
Bug: 153035880
Signed-off-by: Maciej Żenczykowski <maze@google.com>
Change-Id: Ie67a8bb1bf622319adea15466c42077e0e9b1a18
Merged-In: Ie67a8bb1bf622319adea15466c42077e0e9b1a18
2020-04-24 00:24:38 +00:00
Jeffrey Huang
7d444c2dc6 Merge "Tag libstatspull and libstatssocket tests as MTS" into rvc-dev am: 6d99e68e74
Change-Id: Iac29d037456481490bd0383414e92c960baf7bcc
2020-04-24 00:19:34 +00:00
Treehugger Robot
7c2e3df022 Merge "expected.h - fix bugprone-branch-clone warning" am: 2722a3bef9 am: 55b99b5313
Change-Id: I52834b6efa6ad5f64d79ceacb02832ed826ec320
2020-04-24 00:19:24 +00:00
Treehugger Robot
55b99b5313 Merge "expected.h - fix bugprone-branch-clone warning" am: 2722a3bef9
Change-Id: I7700a28c31da4e04c481eb2563b3b1dd335e045c
2020-04-24 00:01:02 +00:00
Joshua Duong
2eedc2303b [adb] Disable _adb._tcp. service auto-connect by default.
Added ADB_MDNS_AUTO_CONNECT envionment variable to control which
services to allow auto-connect. By default, only _adb-tls-connect
services can auto-connect, since these services only auto-connect once
paired. _adb services will try to auto-connect to every service found.

Bug: 152636135

Test: ADB_TRACE=1 adb server nodaemon | grep whitelist
Test: ADB_TRACE=1 ADB_MDNS_AUTO_CONNECT=adb adb server nodaemon | grep whitelist
Test: ADB_TRACE=1 ADB_MDNS_AUTO_CONNECT=adb,adb-tls-connect adb server nodaemon | grep whitelist
Test: ADB_TRACE=1 ADB_MDNS_AUTO_CONNECT=adb-tls-connect adb server nodaemon | grep whitelist
Test: ADB_TRACE=1 ADB_MDNS_AUTO_CONNECT=0 adb server nodaemon | grep whitelist
Test: ADB_TRACE=1 ADB_MDNS_AUTO_CONNECT=1 adb server nodaemon | grep whitelist

Change-Id: Ie562ea24fea3d6d96e67b376a0523b09e2778eb7
2020-04-23 16:55:52 -07:00
Jeffrey Huang
6d99e68e74 Merge "Tag libstatspull and libstatssocket tests as MTS" into rvc-dev 2020-04-23 23:55:31 +00:00
Treehugger Robot
2722a3bef9 Merge "expected.h - fix bugprone-branch-clone warning" 2020-04-23 23:48:09 +00:00
Alex Buynytskyy
a59e9b4e70 Using ABB for install-multi.
ABB uses single shared CMD for all operations which improves
reliability.

Bug: b/153486595
Test: atest adb_test adbd_test fastdeploy_test
Change-Id: I1e3da63882c980811ed2e9f5556732b24a041ce5
2020-04-23 16:30:49 -07:00
Treehugger Robot
98000ba3ff Merge "Add AOSP preupload hook." am: e1b7d47c29 am: b9439136a8
Change-Id: Id146a3a1b277a983f3128a3825576e4d42316cc2
2020-04-23 23:22:40 +00:00
Treehugger Robot
b9439136a8 Merge "Add AOSP preupload hook." am: e1b7d47c29
Change-Id: I2c2e2ceb06b45da9018804dce93e8757415a4c7e
2020-04-23 23:04:00 +00:00
TreeHugger Robot
95e492d1c3 Merge "logcatd: unset pinning log files" into rvc-dev am: 04083e2ba8
Change-Id: Iddb98b8759970d2ab46655d36e7156267b05232e
2020-04-23 23:03:55 +00:00
Treehugger Robot
e1b7d47c29 Merge "Add AOSP preupload hook." 2020-04-23 22:53:08 +00:00
TreeHugger Robot
04083e2ba8 Merge "logcatd: unset pinning log files" into rvc-dev 2020-04-23 22:52:26 +00:00
Josh Gao
34ce77427f Merge changes I5fd3b25d,I6c039b32,I014d7ad2 am: a675727a81 am: 8b0a69f9ad
Change-Id: Iae88f73fb69cf3f19d8090a07ef2563966cd8fc8
2020-04-23 22:20:07 +00:00
Josh Gao
8b0a69f9ad Merge changes I5fd3b25d,I6c039b32,I014d7ad2 am: a675727a81
Change-Id: I210f5541de0ec1805d2b30781886ab55a84f2f96
2020-04-23 22:10:48 +00:00
Josh Gao
a675727a81 Merge changes I5fd3b25d,I6c039b32,I014d7ad2
* changes:
  adb: allow filtering by file in coverage/show.sh.
  adbd: don't use libc++_static.
  adb: split transport_local.cpp into client/daemon.
2020-04-23 21:53:08 +00:00
Tom Cherry
ac356f84e3 Merge "Remove thread safety from libbase logging / liblog" into rvc-dev am: c53c64c0ec
Change-Id: I65e45dd16bf4b1d2c59e46f9d2c954af99e00a04
2020-04-23 21:49:52 +00:00
Tom Cherry
c53c64c0ec Merge "Remove thread safety from libbase logging / liblog" into rvc-dev 2020-04-23 21:40:23 +00:00
Jaegeuk Kim
4f254f6492 Merge "logcatd: unset pinning log files" am: 928bdbf5ec am: b2beddd33b
Change-Id: I845325fb3a2dad1cc037970941f6f18e96c3d4d9
2020-04-23 21:22:59 +00:00
Jaegeuk Kim
b2beddd33b Merge "logcatd: unset pinning log files" am: 928bdbf5ec
Change-Id: Ifa7b55f2ba7d3ee3c97d3e817ecb6b439b6c2c2e
2020-04-23 21:06:19 +00:00
David Anderson
e51bd664eb Merge "liblp: Fix tests for linear extent overlap." into rvc-dev am: d029ccd0d6
Change-Id: Ifdc2f34ec05bedbdd4963ed532ee01cf08aca416
2020-04-23 21:05:36 +00:00
Jaegeuk Kim
63cdd7095b logcatd: unset pinning log files
commit 5327d931ac ("logcatd: fallocate and fadvise to logcat files")
introduced pinning log files in order to avoid f2fs fragmentation.

But, logcatd does not guarantee to write data within fallocated 2MB space.
So, we can see some bytes written beyond 2MB boundary which results in
pinning small chunks across the filesystem. This makes F2FS GC have to unset
the pinning blocks via GC loop. If this happens during checkpoint=disable
at booting time, we can see long delay to mount /data accordingly.

Bug: 136483670
Bug: 137180754
Bug: 149418646
Fixes: 5327d931ac ("logcatd: fallocate and fadvise to logcat files")
Signed-off-by: Jaegeuk Kim <jaegeuk@google.com>
Change-Id: I986221d6d1da9b8e46e63d1be98ddf0ce4cb099f
2020-04-23 13:53:37 -07:00
Jaegeuk Kim
928bdbf5ec Merge "logcatd: unset pinning log files" 2020-04-23 20:53:25 +00:00
Jaegeuk Kim
2e5b7c425f logcatd: unset pinning log files
commit 5327d931ac ("logcatd: fallocate and fadvise to logcat files")
introduced pinning log files in order to avoid f2fs fragmentation.

But, logcatd does not guarantee to write data within fallocated 2MB space.
So, we can see some bytes written beyond 2MB boundary which results in
pinning small chunks across the filesystem. This makes F2FS GC have to unset
the pinning blocks via GC loop. If this happens during checkpoint=disable
at booting time, we can see long delay to mount /data accordingly.

Bug: 136483670
Bug: 137180754
Bug: 149418646
Fixes: 5327d931ac ("logcatd: fallocate and fadvise to logcat files")
Signed-off-by: Jaegeuk Kim <jaegeuk@google.com>
Change-Id: I986221d6d1da9b8e46e63d1be98ddf0ce4cb099f
2020-04-23 20:52:11 +00:00