Commit graph

58272 commits

Author SHA1 Message Date
Suren Baghdasaryan
355db04b78 Merge "Set lowmemorykiller kernel driver parameters before lmkd is started" am: 36ef05cbde am: b3553f8963
Change-Id: Ie0805dc4957df0a82080fda8bdb8d8748d8b67d5
2020-02-15 01:36:46 +00:00
Ruchir Rastogi
d430c85c52 Merge "Delete stats_event_list from libstatssocket" 2020-02-15 01:34:34 +00:00
Suren Baghdasaryan
b3553f8963 Merge "Set lowmemorykiller kernel driver parameters before lmkd is started" am: 36ef05cbde
Change-Id: I5531b99dd32326f72ba1a06643ac286f05b71ddd
2020-02-15 01:20:14 +00:00
Suren Baghdasaryan
36ef05cbde Merge "Set lowmemorykiller kernel driver parameters before lmkd is started" 2020-02-15 01:02:08 +00:00
Christopher Ferris
3cd6902733 Increase timeouts.
There is still some flakiness, so increase the timeout values.
Also remove the TEMP_FAILURE_RETRY macro usage in TIMEOUT calls.
That macro disables the ability of the alarm code to interrupt
the system call.

Bug: 141045754
Bug: 149562320

Test: Unit tests pass.
Change-Id: Ia3c95dccc3076a3fd5ef6432097a57e4ccee4df3
Merged-In: Ia3c95dccc3076a3fd5ef6432097a57e4ccee4df3
(cherry picked from commit 11555f0961)
2020-02-14 16:08:24 -08:00
Christopher Ferris
7d79742f05 Add TEMP_FAILURE_RETRY where appropriate.
Bug: 141045754
Bug: 149562320

Test: Ran unit tests in a loop on walleye and cuttlefish.
Change-Id: I87b912e76889ed207ab17b862e4786ee44a382ba
Merged-In: I87b912e76889ed207ab17b862e4786ee44a382ba
(cherry picked from commit 172b0a0834)
2020-02-14 16:08:16 -08:00
Christopher Ferris
4cba155da9 Increase timeout to avoid flaky tests.
Also, print extra information when an error occurs.

Bug: 149562320

Test: Ran unit tests.
Change-Id: I3404549db0ac18a4a82a99b2620556db96376bca
Merged-In: I3404549db0ac18a4a82a99b2620556db96376bca
(cherry picked from commit afc0ff7fe0)
2020-02-14 16:08:04 -08:00
Treehugger Robot
c0210f1d0e Merge "bootstat: enhance last reboot reason property with file backing" am: 7550e6f882 am: ffd276388f
Change-Id: Ib88d1f04b039d613d1bfe536383036a64b3ab9a7
2020-02-14 23:58:12 +00:00
Treehugger Robot
ffd276388f Merge "bootstat: enhance last reboot reason property with file backing" am: 7550e6f882
Change-Id: I34032211f2e49b8e5a105afe0540cbce543c8fd9
2020-02-14 23:46:09 +00:00
Treehugger Robot
7550e6f882 Merge "bootstat: enhance last reboot reason property with file backing" 2020-02-14 23:36:49 +00:00
Wei Wang
02e89ecdb5 fsmgr: print unabbreviated log when exec child commands
logs need to be printed at time when it is generated by the child
process which is very useful to understand the boottime impact of
those blocking commands.

Bug: 149418646
Test: boot
Change-Id: Ibee343af6088d57b2976bceb812abb58f3b3f610
2020-02-14 23:34:39 +00:00
TreeHugger Robot
ea37af2c62 Merge "AStatsEvent_overwriteTimestamp" 2020-02-14 23:11:48 +00:00
TreeHugger Robot
346e73b00a Merge "Revert "Explicitly disable FUSE"" 2020-02-14 22:01:23 +00:00
Ruchir Rastogi
e1cff24259 Delete stats_event_list from libstatssocket
This change is done in internal master because the flag has not been
switched in AOSP, so stats_event_list is still being used there.

Test: m -j
Bug: 145573568
Change-Id: Ica525d0fd731b8d3e9d273ce2220a3d3179d93d9
2020-02-14 13:34:10 -08:00
Mark Salyzyn
ee016ce0b3 bootstat: enhance last reboot reason property with file backing
Helps with support of recovery and rollback boot reason history, by
also using /metadata/bootstat/persist.sys.boot.reason to file the
reboot reason.

Test: manual
Bug: 129007837
Change-Id: Id1d21c404067414847bef14a0c43f70cafe1a3e2
2020-02-14 13:24:16 -08:00
Suren Baghdasaryan
8136531529 Merge "libprocessgroup: Prevent SetProcessProfiles from using cached fd" am: e6f2b7d884 am: 9b2ef5c7db am: 178a102a4f
Change-Id: Ic119b8d02695f9bcb1a1fae2cccb689c8fe6dc5d
2020-02-14 21:07:12 +00:00
Alessio Balsini
be0e44d0f1 snapshot: helper to get access snapshot_state path
/metadata/ota/snapshot_state is a temporary file that keeps track of
snapshot merge operations across reboots.

Bug: 138817833
Test: m
Change-Id: I9785db3f73e1575b8ac8a522d938d09f8948e1b0
Signed-off-by: Alessio Balsini <balsini@google.com>
2020-02-14 20:49:08 +00:00
Suren Baghdasaryan
178a102a4f Merge "libprocessgroup: Prevent SetProcessProfiles from using cached fd" am: e6f2b7d884 am: 9b2ef5c7db
Change-Id: I8864137ea3ff86597a54cec31c8cc17d6dc2474b
2020-02-14 20:47:40 +00:00
Tom Cherry
d5f9d87da2 base: remove Errorf/ErrnoErrorf work around
This is no longer needed

Test: build
Change-Id: Ied9b26ff517906d662f90a31c98829843c1e9a9f
2020-02-14 12:43:11 -08:00
Suren Baghdasaryan
9b2ef5c7db Merge "libprocessgroup: Prevent SetProcessProfiles from using cached fd" am: e6f2b7d884
Change-Id: If0c41894534a2b5b42ba2febac0c6d0bfb517c64
2020-02-14 20:34:28 +00:00
Suren Baghdasaryan
e6f2b7d884 Merge "libprocessgroup: Prevent SetProcessProfiles from using cached fd" 2020-02-14 20:17:39 +00:00
Mark Salyzyn
cc7cf4fa5a Merge changes I5b4a87d6,I131315d4 am: 48c0de4907 am: 0bfe8df121 am: cf044e0f1c
Change-Id: Id86b51c063544d6f65eb1c2a88d5646f4f2ab856
2020-02-14 20:12:28 +00:00
Mark Salyzyn
cf044e0f1c Merge changes I5b4a87d6,I131315d4 am: 48c0de4907 am: 0bfe8df121
Change-Id: Id05a84d2584926d60ab5e5248348b835788a63e4
2020-02-14 19:54:56 +00:00
Howard Ro
f8e70a5bf8 Merge "Expose AStatsSocket_close() from the statsd apex" 2020-02-14 19:43:21 +00:00
Mark Salyzyn
0bfe8df121 Merge changes I5b4a87d6,I131315d4 am: 48c0de4907
Change-Id: I83a35efa9a1b5115a6203a4ab1d4bf177097b657
2020-02-14 19:35:17 +00:00
Mark Salyzyn
48c0de4907 Merge changes I5b4a87d6,I131315d4
* changes:
  fs_mgr: overlayfs: test: if wait_for_screen times out, skip later
  fs_mgr: remount: add -v option
2020-02-14 19:20:23 +00:00
Mark Salyzyn
f7aa5403c5 fs_mgr: overlayfs: test: if wait_for_screen times out, skip later
To improve the test period for adb-remount-test.sh, if the device
fails to get to the launcher on the first try when wait_for_screen,
then print a warning to skip all later wait_for_screen conditions.

The wait_for_screen testing is really there to deal with first
confirming that the device is capable of getting to the launcher,
and that later tests that influence corners of adb remount behavior
do not result in a failure to get to the launcher screen.  The
developer should look into ways to fix the failure to get to the
launcher on the first try, but failure to do so should have no
bearing on the remaining tests, so dropping the wait_for_screen
functionality is not an issue.

Signed-off-by: Mark Salyzyn <salyzyn@google.com>
Test: adb-remount-test.sh
Bug: 148881519
Change-Id: I5b4a87d6e1f545a304eb74f2114aadd1128f25b3
2020-02-14 11:19:35 -08:00
Mark Salyzyn
ba2449b6ca fs_mgr: remount: add -v option
By default print only ERROR message, or messages without a source
(eg: [fs_mgr]) library.  Print all messages to stderr if the -v
option is added.  Always log all messages to the Android logger.

Signed-off-by: Mark Salyzyn <salyzyn@google.com>
Test: adb-remount-test.sh
Change-Id: I131315d4bae6ed29991043033811cf22e6032f8b
2020-02-14 11:19:35 -08:00
Ruchir Rastogi
e41a6c621c AStatsEvent_overwriteTimestamp
Create a function to overwrite timestamp for LogEvent tests. This
function is not exposed outside of the APEX.

Test: bit libstatssocket_test:*
Change-Id: Id0eac485af60e952cc700f7d1231b1b971400982
2020-02-14 10:56:49 -08:00
Joshua Duong
450d6e42b0 Merge changes from topic "adbwifi-syscore-base" am: fd8b4ea996 am: 2f7c2255fa am: 59fd702f01
Change-Id: Idd6ef31368cf99986b040c113b980c914b339211
2020-02-14 18:20:20 +00:00
Tom Cherry
26d712eef1 logcat: add 'device shut down' to error message upon EOF
Turns out this is the actual most likely cause of EOF.

Test: n/a
Change-Id: I00b89fea9e7069493e7143be443c520ea3cb3c89
2020-02-14 10:10:44 -08:00
Joshua Duong
59fd702f01 Merge changes from topic "adbwifi-syscore-base" am: fd8b4ea996 am: 2f7c2255fa
Change-Id: I4b2469bd24c51f718fd15b842a311926a82925f5
2020-02-14 18:10:23 +00:00
Joshua Duong
2f7c2255fa Merge changes from topic "adbwifi-syscore-base" am: fd8b4ea996
Change-Id: I73acdd19a9cad040c0e63606f480e9c101ec1544
2020-02-14 17:57:02 +00:00
Joshua Duong
fd8b4ea996 Merge changes from topic "adbwifi-syscore-base"
* changes:
  [adbwifi] Add tls_connection library.
  Move adb RSA utilities into its own library.
  [adbwifi] Add adb protos.
2020-02-14 17:42:40 +00:00
Joshua Duong
4293e322f2 [adbwifi] Add tls_connection library.
Bug: 111434128, 119494503, 119493510

Test: atest adb_tls_connection_test
Exempt-From-Owner-Approval: yolo?
Change-Id: Ie9b629e4cb955702cec890bbb89a6a762e4b71b3
2020-02-14 17:41:36 +00:00
Treehugger Robot
a4fd4cb903 Merge "Consume design capacity in health HAL 2.1" am: c7b92ea120 am: d6e4da1fec am: 7379e27d9b
Change-Id: Ia03cf26cda6069b3969a2d2a2c65cda7e8f1400a
2020-02-14 06:23:04 +00:00
Treehugger Robot
7379e27d9b Merge "Consume design capacity in health HAL 2.1" am: c7b92ea120 am: d6e4da1fec
Change-Id: Ib035de068579c679e191fbfa0a24668f4425f36b
2020-02-14 02:09:11 +00:00
Treehugger Robot
d6e4da1fec Merge "Consume design capacity in health HAL 2.1" am: c7b92ea120
Change-Id: Iedba862c1ca0a001b2262bf07ddc58beef2a5d37
2020-02-14 01:55:50 +00:00
Suren Baghdasaryan
911109c414 libprocessgroup: Prevent SetProcessProfiles from using cached fd
Because we cache file descriptors associated with cgroup "tasks" file it
should not be used with SetProcessProfiles API which operates on entire
processes rather than tasks. Change SetProcessProfiles API to prevent
cache fd usage, modify ExecuteForProcess to not attempt to use cached
fd. Also fix unconditional calls to EnableResourceCaching from
ExecuteForTask which should be called only when SetTaskProfiles is used
with use_fd_cache set to true.

Bug: 149524788
Change-Id: I880efaf8217a4dd7ccfbb4fb167b2295cefc057a
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
2020-02-14 01:42:11 +00:00
Suren Baghdasaryan
6898682275 Set lowmemorykiller kernel driver parameters before lmkd is started
When kernel lowmemorykiller driver is enabled lmkd detects it by
checking write access to /sys/module/lowmemorykiller/parameters/minfree
parameter. By default this file does not have write access and init
process changes that from "on boot" section of init.rc. However
"on boot" is never executed in the charger mode, therefore lmkd fails
to detect the kernel driver. Fix this by setting lowmemorykiller kernel
driver parameters before lmkd is started.

Bug: 148572711
Test: boot into charger mode with kernel lmk driver enabled
Change-Id: Ifc3ef725b95bdb5f7d801031429dc26bae014d1f
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
2020-02-14 01:40:29 +00:00
Treehugger Robot
c7b92ea120 Merge "Consume design capacity in health HAL 2.1" 2020-02-14 01:35:16 +00:00
Jeffrey Huang
762e941e25 Merge "Add apex available to liblog" am: fd73daa049 am: 97b4d62ed4 am: 573364d31e
Change-Id: I75927884aa5fd7c6e2a3ef2705c56805df7b8260
2020-02-14 01:30:41 +00:00
Jeffrey Huang
573364d31e Merge "Add apex available to liblog" am: fd73daa049 am: 97b4d62ed4
Change-Id: Ie80b46dfe95ded83ab3796822f23a06b99ff9e44
2020-02-14 01:14:13 +00:00
Jeffrey Huang
97b4d62ed4 Merge "Add apex available to liblog" am: fd73daa049
Change-Id: Ieeef95dbe8339d3d343c9bf21724cfaa1859be1f
2020-02-14 00:57:49 +00:00
Treehugger Robot
6f21f8212d Merge "Preserving /avb/* keys to /metadata" am: 05aff5b211 am: 1632564c64 am: 008b55fbad
Change-Id: I2a316bdf29a3c77ef4112ed16feeca7af40db615
2020-02-14 00:45:46 +00:00
Jeffrey Huang
fd73daa049 Merge "Add apex available to liblog" 2020-02-14 00:45:22 +00:00
Treehugger Robot
008b55fbad Merge "Preserving /avb/* keys to /metadata" am: 05aff5b211 am: 1632564c64
Change-Id: Id75f0e2ded83361abde5ca17bb1e074c6720c988
2020-02-14 00:26:32 +00:00
Muhammad Qureshi
2ebc2e3d8f Expose AStatsSocket_close() from the statsd apex
As part of statsd becoming a Mainline module in R, we need to formalize
the statsd APIs called from outside the statsd apex.

Bug: 145923416
Test: m
Change-Id: I296a018cc93d95bda77d95f8161acbbe983a5d51
2020-02-13 16:16:48 -08:00
Treehugger Robot
1632564c64 Merge "Preserving /avb/* keys to /metadata" am: 05aff5b211
Change-Id: Ibf1c8b6cf4d692ca6b87532d8b5bb83f9c6d7f18
2020-02-14 00:15:09 +00:00
Treehugger Robot
05aff5b211 Merge "Preserving /avb/* keys to /metadata" 2020-02-13 23:52:40 +00:00