Commit Graph

58450 Commits

Author SHA1 Message Date
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
Jeffrey Huang 0c0b774a64 Allow apexes to link against more libs
Bug: 145923087
Test: m -j
Change-Id: I45e002ffbd16f13b71f32c80e8a2f826bfa9ec2e
2020-02-14 10:41:15 -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
Jaegeuk Kim 78f040c6d6 fs_mgr: support metadata_csum for ext4 partition
The metadata_csum can enhance ext4 stability, so this patch adds a way to
enable it.

Requiring "metadata_csum" in fsmgr flag of fstab.

Bug: 149039306
Change-Id: I618a65d7afc63a617f5f2582c93002af7f8e7234
Signed-off-by: Jaegeuk Kim <jaegeuk@google.com>
2020-02-14 09:50:36 -08: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
Stephane Lee 1c108edc74 Consume design capacity in health HAL 2.1
Bug: 149121450
Test: lshal debug <health hal 2.1>
Change-Id: I005fa47bda7e58f6636fdc87293227622d74187a
2020-02-13 15:14:40 -08:00
Jeffrey Huang 66f58a3ecc Add apex available to liblog
Bug: 145923087
Test: m -j
Change-Id: I3ac890cbc71ad062ff095adfa2272f6f76db466b
2020-02-13 12:46:09 -08:00
Zim e48a55649c Revert "Explicitly disable FUSE"
This reverts commit a3209c5f57.

Should not have been merged into master

Test: m
Bug: 135341433
2020-02-13 19:38:06 +00:00
Jeffrey Huang 47a79db9c9 Merge "Add apex_available to libs" 2020-02-13 19:10:41 +00:00
Automerger Merge Worker 7eb2bf5fe6 Merge "build code_coverage.policy with Android.bp" am: 59de77e777 am: b8709d62fd am: 4efc0c8996
Change-Id: Ie64a2edcf365ce544fee73530c7751bdd614e888
2020-02-13 18:01:10 +00:00
Automerger Merge Worker 4efc0c8996 Merge "build code_coverage.policy with Android.bp" am: 59de77e777 am: b8709d62fd
Change-Id: Ib46315b58e0cdf7fe25b202db83f02f232396b1d
2020-02-13 17:45:30 +00:00
Automerger Merge Worker b8709d62fd Merge "build code_coverage.policy with Android.bp" am: 59de77e777
Change-Id: Idbd5b181486935f6a218fc3e8a3fc75f6ac04d0b
2020-02-13 17:25:30 +00:00
Ray Essick 59de77e777 Merge "build code_coverage.policy with Android.bp" 2020-02-13 17:13:23 +00:00
Bowgo Tsai 196cc58781 Preserving /avb/* keys to /metadata
Those keys will be used for key revocation check by DSU installation
service. Note that failing to copy those keys to /metadata is NOT fatal,
because it is auxiliary to perform public key matching prior to booting
into DSU images on next boot. The actual key matching will still be done
on next DSU boot.

Bug: 146910547
Test: boot device, checks the avb keys are copied to /metadata/gsi/dsu/avb/.
Change-Id: I25a4eba82e84288bac7a859205c920628a063651
2020-02-13 15:15:20 +08:00
Automerger Merge Worker fd0edb7ca6 Merge "Add apex available to libutils" am: ab19b995be am: 6a4a3e2604 am: 17211a43a6
Change-Id: Ice9b2cf403cbfacec30570b6cd990295a83f13e2
2020-02-13 06:48:22 +00:00
Automerger Merge Worker 17211a43a6 Merge "Add apex available to libutils" am: ab19b995be am: 6a4a3e2604
Change-Id: I2cc71b43e9940d6bcc0bae5f684857521027e796
2020-02-13 06:30:57 +00:00
Automerger Merge Worker 6a4a3e2604 Merge "Add apex available to libutils" am: ab19b995be
Change-Id: Id2021fed69bd6fa13b2328d496d8ab0ef720dec0
2020-02-13 06:20:55 +00:00
Jeffrey Huang ab19b995be Merge "Add apex available to libutils" 2020-02-13 06:06:02 +00:00
Jeffrey Huang b0a85dc46d Add apex_available to libs
Bug: 145922701
Test: m -j
Change-Id: If5cbe5651e47878520bdc5b943b17a4f72a2a2f3
2020-02-12 18:30:26 -08:00
Jeffrey Huang 18986cb220 Add apex available to libutils
Bug: 145922701
Test: m -j
Change-Id: I32a15359bc2f97675f8b5e7e112978667f43bf4f
2020-02-12 17:57:04 -08:00
Automerger Merge Worker 3403048507 Merge "build crash_dump.policy files using Android.bp" am: 1dbd649cf7 am: cb96f344f8 am: 9392862749
Change-Id: Idf7e612e4670959672e9cc1c40fd7d304f91dc9c
2020-02-12 23:37:33 +00:00
Automerger Merge Worker 9392862749 Merge "build crash_dump.policy files using Android.bp" am: 1dbd649cf7 am: cb96f344f8
Change-Id: I589ee4b93e9453b9f6acb2a99f8616c774b83338
2020-02-12 23:26:32 +00:00
Automerger Merge Worker cb96f344f8 Merge "build crash_dump.policy files using Android.bp" am: 1dbd649cf7
Change-Id: I3aa737cdf1a340715539f0bc7b3b26e869fcca53
2020-02-12 23:11:11 +00:00
Ray Essick 1dbd649cf7 Merge "build crash_dump.policy files using Android.bp" 2020-02-12 22:43:12 +00:00
Automerger Merge Worker 3f8ee8991d Merge "fs_mgr: fstab: Fix parse warning typo" am: 4ddb495354 am: 1b378271f4 am: e18e48b18a
Change-Id: I02f2924417a8627135c559113b868ea2e8e40ca4
2020-02-12 18:51:56 +00:00
Automerger Merge Worker c367388849 Merge changes from topic "snapshotctl_log" am: da8a404473 am: 6d3c0ef08c am: 9345bfb0b2
Change-Id: I0cb4d5a42e43cee95614cc9397faff9b9ad34a84
2020-02-12 18:51:48 +00:00
Automerger Merge Worker 09bbf6478a Merge "fs_mgr: overlayfs: CreateDynamicScratch for *partition_exists" am: 684122a264 am: 066cfa3726 am: 47afe8f609
Change-Id: I3d0567affeb31c92a3370585c9b0959a50392d3a
2020-02-12 18:51:38 +00:00