Commit Graph

50022 Commits

Author SHA1 Message Date
Orion Hodson 6ea9b8b580 Add cpu-set properties to serializer test
Bug: 141446571
Bug: 149395059
Test: atest propertyinfoserializer_tests
Change-Id: I1232fec5f1d0be7e5fb6aa5c46f6c2c5529bfc6c
Merged-In: I1232fec5f1d0be7e5fb6aa5c46f6c2c5529bfc6c
(cherry picked from commit 8e77b789f8)
2020-03-04 10:37:00 +00:00
Bowgo Tsai 99651b012b Allowing R and S developer GSI for DSU
Adding new keys to allow a device boot a R-Deverloper-GSI and
S-Developer-GSI, respectively.

Also removing previous keys for R-Compliance-GSI and
S-Compliance-GSI, respectively. We will be allowing CTS-on-GSI
to run on unlocked state in R and later releases.

  https://android-review.googlesource.com/c/platform/test/suite_harness/+/1228453

Bug: 149805495
Test: boot a device
Change-Id: I000365d0b407605b426c4695c6ac614150ee9b13
Merged-In: I6bc1e068368e64cb0bbf6ef63805444b35a1fdfb
2020-02-20 16:32:26 +08:00
Bowgo Tsai 14b8c451c4 Adding new GSI public keys
Adding two new public keys for R-Developer-GSI and S-Developer-GSI,
respectively.

Bug: 149805495
Test: m r-developer-gsi.avbpubkey
Test: m s-developer-gsi.avbpubkey

Change-Id: Iaa7521ef40b94f13fe3c9c61d276678f47c60b98
Merged-In: Iaa7521ef40b94f13fe3c9c61d276678f47c60b98
(cherry picked from commit b697d47eb3)
2020-02-19 17:42:25 +08: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
Automerger Merge Worker 8956645528 configs for jailed procs to dump code coverage data am: 75b3266e22
Change-Id: If12cd080355dd1f7b1e52d26e762c144434de2a5
2020-02-06 05:42:45 +00:00
Ray Essick 75b3266e22 configs for jailed procs to dump code coverage data
list system calls used for dumping code coverage information; empty on
non code coverage builds. Mini-jail configurations can include this file
instead of trying to manage the list themselves.

Bug: 139313557
Bug: 148178774
Bug: 148177815
Test: arm32/arm64/x86 media svcs w/native coverage on, kill -37 to dump stats.
Change-Id: I7323a9739803756a76f54e4a98e995522cab71ef
(cherry picked from commit c6512a4bf8)
2020-02-04 18:58:31 +00:00
Automerger Merge Worker 101e437515 Move gcov output to /data/misc/trace am: e6fa0a6af2
Change-Id: I8294c4704ae3f3eaaa997aa1e2c4504b811cca03
2020-02-03 19:16:54 +00:00
Jaegeuk Kim be9114f220 Merge "rootdir: init.rc to limit discard size to 128MB" into qt-qpr1-dev 2020-02-01 01:49:24 +00:00
Oliver Nguyen e6fa0a6af2 Move gcov output to /data/misc/trace
Gcov output location has world write on debuggable builds.

Test: N/A
Bug: 128524141
Bug: 148178774
Change-Id: Ia6b94e26352dd66f5c6819f6157b4b73dd777a90
Merged-In: Ia6b94e26352dd66f5c6819f6157b4b73dd777a90
(cherry picked from commit 360eb055e0)
2020-01-29 18:59:28 +00:00
Jaegeuk Kim 9e09cbceb0 rootdir: init.rc to limit discard size to 128MB
In any case, UFS storage suffers from long discard latency.

Bug: 148209614
Change-Id: Iaa8ef6eb862934af43254bd10873a12c3d34e926
Merged-In: Iaa8ef6eb862934af43254bd10873a12c3d34e926
Signed-off-by: Jaegeuk Kim <jaegeuk@google.com>
2020-01-23 19:39:52 +00:00
Gavin Corkery 96d6745fe4 Store crashing process name in sysprop
As part of Watchdog-triggered rollback logging, it would
be useful to know the service which has caused
updatable_crashing to be set. Store this in a new property
ro.init.updatable_crashing_process_name.

Test: manual
Bug: 146415463
Change-Id: Iffa38b2b746abbb5d823a8d69b7b8d2456836f4e
Merged-In: Iffa38b2b746abbb5d823a8d69b7b8d2456836f4e
(cherry picked from commit 5d0deb563d)
2019-12-19 19:28:08 +00:00
Bowgo Tsai a8a3e4ccf9 Allowing /avb/q-developer-gsi.avbpubkey for DSU
Adding the key to allow a device boot a Q-Deverloper-GSI.

Bug: 144399552
Test: boots a developer Q-GSI on a Pixel device
Change-Id: If79149689afd4b662c4cae3a8b48e3a5dc57d00c
Merged-In: I6bc1e068368e64cb0bbf6ef63805444b35a1fdfb
2019-12-16 14:51:22 +08:00
Bowgo Tsai d1bdcba625 Adding the AVB public key for Q-Developer-GSI
Bug: 144399552
Test: m q-developer-gsi.avbpubkey

Change-Id: If140c429c8b8324c0c2364aa67e72e41748b42b4
Merged-In: If140c429c8b8324c0c2364aa67e72e41748b42b4
(cherry picked from commit bd0853602b)
2019-12-16 14:45:43 +08:00
Steven Moreland 81303e4c8f FlattenableUtils::align memsets am: e62a9d7669 am: 59e7d4e8ea am: 3f273f49f1 am: f7724dfcfb am: 4392bca7f7
am: 80965d4ee9

Change-Id: Ic58551fdd717a31b71831dfe1c39a970700edf7c
2019-11-06 16:32:08 -08:00
Steven Moreland 80965d4ee9 FlattenableUtils::align memsets am: e62a9d7669 am: 59e7d4e8ea am: 3f273f49f1 am: f7724dfcfb
am: 4392bca7f7

Change-Id: I0d51ef04b0641889117054cc36499acdbac83220
2019-11-06 16:26:06 -08:00
Steven Moreland 4392bca7f7 FlattenableUtils::align memsets am: e62a9d7669 am: 59e7d4e8ea am: 3f273f49f1
am: f7724dfcfb

Change-Id: I0ecdb9a58418d0c65629c70fc6df2a4aad7a1784
2019-11-06 16:19:08 -08:00
Steven Moreland f7724dfcfb FlattenableUtils::align memsets am: e62a9d7669 am: 59e7d4e8ea
am: 3f273f49f1

Change-Id: I91a8ef78619709fcdcb48cdad8e0e7a6b699b631
2019-11-06 16:13:06 -08:00
Steven Moreland 3f273f49f1 FlattenableUtils::align memsets am: e62a9d7669
am: 59e7d4e8ea

Change-Id: I1105027b52c3621e2031bdb747de61ce54d3ec74
2019-11-06 16:06:57 -08:00
Steven Moreland 59e7d4e8ea FlattenableUtils::align memsets
am: e62a9d7669

Change-Id: I51a5528d8544f374ff3ceb632e75a1d3ae97d963
2019-11-06 15:55:08 -08:00
Steven Moreland e62a9d7669 FlattenableUtils::align memsets
Bug: 141890807
Test: boot, check data is zero'd
Change-Id: I45aaeac369f4c5cf3eb44f61c233e00f870a5c79
(cherry picked from commit bf824f8fa5)
2019-10-15 19:26:22 +00:00
Sahitya Tummala aebebeb923 fs_mgr: run fsck.f2fs with -f option when full mount fails
There are cases where fsck.f2fs -f helps to recover from
corruption and thus helps to mount f2fs successfully.

Bug: 141693451
Bug: 141601405
CRs-Fixed: 2458080
Merged-In: I8d91835e464ef86e6ad4f96b7ac83f9f3d57c14f
Change-Id: I8d91835e464ef86e6ad4f96b7ac83f9f3d57c14f
2019-09-27 21:08:42 +00:00
Paul Crowley 04908a85f0 Create /data/per_boot
Bug: 140882488
Test: Booted twice, checked logs to ensure encryption
    is different each time, adb created files in directory.
Cherry-Picked-From: 570d20d2ac
Merged-In: I44f746acd1040f7baa9123d4824ba39b194f287b
Change-Id: I44f746acd1040f7baa9123d4824ba39b194f287b
2019-09-17 18:44:16 +00:00
Wei Wang 271014e832 init: boot into thermal shutdown target on supported devices
Bug: 137982557
Test: thermal shutdown
Change-Id: I4c7c4647e340be6be7a37a3dde6324b4d7903007
2019-08-28 21:49:47 +00:00
Kiyoung Kim 1d85de658c Replace xargs with other shell command
Recently Android build team changed environment to use prebuilt toybox
binaries for common tools (aosp/852849). However, as toybox xargs does
not support -I option, update_and_install_ld_config.mk started to fail
filtering out private vndk libraries from the list. To resolve this,
xargs usages are replaced with other shell command (read).

Bug: 137832162
Test: m -j && tested on Cuttlefish
Change-Id: I218ce6272c781f826b87c8efc0d3c77bf6bc3af5
Merged-In: I218ce6272c781f826b87c8efc0d3c77bf6bc3af5
(cherry picked from commit 95d55818a4)
2019-08-02 11:15:28 +09:00
Tri Vo d941ba256f Merge "VtsKernelMemInfoTest: only enforce on Q+ launching devices" into qt-dev am: 184e9461c5
am: 92fa5730de

Change-Id: I250988c152001140db969c2a3cd8e87bdbf45e0f
2019-07-29 18:57:41 -07:00
Tri Vo 92fa5730de Merge "VtsKernelMemInfoTest: only enforce on Q+ launching devices" into qt-dev
am: 184e9461c5

Change-Id: I9fc6de0a4f5608ae718e52b0806727bc44fbb688
2019-07-29 18:48:20 -07:00
TreeHugger Robot 184e9461c5 Merge "VtsKernelMemInfoTest: only enforce on Q+ launching devices" into qt-dev 2019-07-30 01:07:45 +00:00
Tri Vo 48515dcfcb VtsKernelMemInfoTest: only enforce on Q+ launching devices
Bug: 135553509
Test: VtsKernelMemInfoTest
Change-Id: I299d24623c363238e46229f8d09865e3afd6f9c0
Merged-In: I299d24623c363238e46229f8d09865e3afd6f9c0
(cherry picked from commit ad986341a4)
2019-07-25 15:06:48 -07:00
TreeHugger Robot 1674790b4c Merge "usbd: Exit in case of charger mode." into qt-r1-dev 2019-07-16 23:04:47 +00:00
TreeHugger Robot afaa2a9016 Merge "fs_mgr: overlay: do not allow sub-mounts to be overridden" into qt-r1-dev 2019-07-16 20:15:14 +00:00
Badhri Jagan Sridharan c2cd790643 usbd: Exit in case of charger mode.
UsbGadget hal is not expected run in charger mode.
This should fix the following errors in charger mode:

[   86.609578] c4    612 init: Received control message 'interface_start' for 'android.hardware.usb.gadget@1.0::IUsbGadget/default' from pid: 565 (/system/bin/hwservicemanager)
[   86.618236] c7      1 init: Could not find 'android.hardware.usb.gadget@1.0::IUsbGadget/default' for ctl.interface_start

Bug: 135566354
Test: Manually verified that usbd exits early in charger mode.
Change-Id: I3ba5be883c49e5ca3e4dad4443528e4eee8b25b9
Merged-In: I3ba5be883c49e5ca3e4dad4443528e4eee8b25b9
2019-07-16 11:45:48 -07:00
Daniel Rosenberg 0d9c4080f4 Merge "Reland "Revert "rootdir / sdcard : Stop creating /data/media/obb.""" into qt-dev
am: 11bf3545ab

Change-Id: I9c7af0807d12ef60636d407fbba64ec664a7d31a
2019-07-15 13:22:03 -07:00
Daniel Rosenberg 11bf3545ab Merge "Reland "Revert "rootdir / sdcard : Stop creating /data/media/obb.""" into qt-dev 2019-07-15 19:56:35 +00:00
Mark Salyzyn f0dd09c889 fs_mgr: overlay: do not allow sub-mounts to be overridden
Prevent sub-mounts from being candidates for overlayfs overrides.
We move them temporarily to hold the references, then move them back
after overlayfs mount.

There is a race condition that can not be solved where the content
of the sub-mount is temporarily unavailable.  This operation occurs
in first stage init (no problem) and during the first adb remount or
adb disable-verity that causes the backing storage to be setup.
Workaround will be to time the adb remount/disable-verity so that the
device-specific problems do not surface.

Test: adb-remount-test.sh and manual device configs
Bug: 130131892
Bug: 135647457
Merged-In: I8782d09b7b389d899aed07b3e6c528280af2d6c8
Change-Id: I8782d09b7b389d899aed07b3e6c528280af2d6c8
2019-07-15 07:37:56 -07:00
Daniel Rosenberg 35708b9d7b Reland "Revert "rootdir / sdcard : Stop creating /data/media/obb.""
This reverts commit 997a2d93d7.

Reason for revert: This revert is needed, just also need some selinux rules for changes to the script that runs if this folder is present.

Bug: 136199978
Change-Id: Ie0544954965e3c90abc2f833c41949976c3bea65
2019-07-12 23:43:56 +00:00
Suren Baghdasaryan e818cccd58 Merge "lmkd: Prevent non-main threads being registered or killed by lmkd" into qt-r1-dev 2019-07-12 20:13:17 +00:00
Gerry Fan c9aff9869d Merge "Revert "Revert "rootdir / sdcard : Stop creating /data/media/obb.""" into qt-dev
am: ff7da227db

Change-Id: I42b5fdcdb6b87afe44353d830f6b1b5c0c645fc0
2019-07-12 10:24:00 -07:00
Gerry Fan ff7da227db Merge "Revert "Revert "rootdir / sdcard : Stop creating /data/media/obb.""" into qt-dev 2019-07-12 17:11:23 +00:00
Gerry Fan 997a2d93d7 Revert "Revert "rootdir / sdcard : Stop creating /data/media/obb.""
This reverts commit 891a011394.

Reason for revert: Some Test failed, need more investigation

Bug: 136199978
Change-Id: Ibad0dad02a6701447c39ddcc805d44c9e68bdcce
2019-07-12 15:23:12 +00:00
Christopher Ferris d2e75075e9 Merge changes Ie0e6e716,I8adc169b into qt-r1-dev
* changes:
  Fix error printing code.
  Cache only a small portion of page map data.
2019-07-12 15:15:57 +00:00
Suren Baghdasaryan c68cf6fe65 lmkd: Prevent non-main threads being registered or killed by lmkd
Only thread group leaders should be registered with lmkd. Add a check to
ignore any non-leader TIDs and generate an error if such condition is
detected. Run the same check before killing a process to detect cases of
non-leader TIDs being used to kill a process. This might happen if PIDs
overflow and previously registered PID gets reused for a non-leader
thread in the following scenario:

1. pid X is a thread group leader and is registered with lmkd
2. pid X dies without lmkd knowing it and pid gets recycled
3. process Y creates a thread with tid X
4. lmkd kills pid X which results in process Y being killed

Bug: 136408020
Test: lmkd_unit_test
Change-Id: I46c5a0b273f2b72cefc20ec59b80b4393f2a1a37
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
2019-07-12 15:12:16 +00:00
Hung-ying Tyan b8aaa13a5f Merge "Revert "rootdir / sdcard : Stop creating /data/media/obb."" into qt-dev
am: 346c17bbc9

Change-Id: I501695115c2c84345db0c78e8694fd31686b7ee7
2019-07-12 02:49:37 -07:00
Hung-ying Tyan 346c17bbc9 Merge "Revert "rootdir / sdcard : Stop creating /data/media/obb."" into qt-dev 2019-07-12 09:27:01 +00:00
Gerry Fan 891a011394 Revert "rootdir / sdcard : Stop creating /data/media/obb."
This reverts commit c6ca823710.
Reason for revert: Q-GSI on Pie devices would crash kernel.

Bug: 136199978

Change-Id: I16a2cb81a1f21627db0cb00324679a322ba42fe0
2019-07-12 00:16:06 +00:00
Christopher Ferris 7d40ac80d5 Fix error printing code.
Bug: 135694447

Test: Induced error and verified the errors print properly in logcat.
Change-Id: Ie0e6e71671a8a3e26b4632f93bb2af089a20e2e0
Merged-in: Ie0e6e71671a8a3e26b4632f93bb2af089a20e2e0
(cherry picked from commit d943301990)
2019-07-11 12:52:09 -07:00
Christopher Ferris 89207939d8 Cache only a small portion of page map data.
The scudo memory allocator will allocate a large virtual memory address
that causes procrank to allocate a huge amount of data. Modify so it
caches the data a bit at a time.

Remove some allocations that are not necessary since the data is only used
in the first loop.

Fix a few pread64 checks against the actual bytes read, rather than the
read is < 0.

Fix sort by rss in procrank.

Bug: 135694447

Test: Ran unit tests (only one unit test actually runs the modified code).
Test: Ran the old version of procrank using a static libmeminfo and verified
Test: that the same data is found as the new version.

Change-Id: I8adc169b5607ec994ff13a9e161a479350d84c4d
Merged-In: I8adc169b5607ec994ff13a9e161a479350d84c4d
(cherry picked from commit 7f8915c76e)
2019-07-11 12:51:35 -07:00
Jaegeuk Kim bb0838b511 rootdir: init.rc: use gc_urgent_sleep_time for f2fs
This accelerates f2fs GC when IdleMaint.

Bug: 128594671
Bug: 137190790
Change-Id: I1cea7c99ffd5963711c66460f1c8368b43aeaee2
Signed-off-by: Jaegeuk Kim <jaegeuk@google.com>
2019-07-10 17:02:12 +00:00
Xu YiPing 8ba0b82605 Avoid get same timestamps in log testcase
am: ac9e2af1b6

Change-Id: I1ec3face1c149dccedc59ef45fad2e7b73987cb7
2019-07-08 17:12:56 -07:00