Commit graph

69399 commits

Author SHA1 Message Date
Steven Moreland
f326be7cfb Merge "storaged: remove unused libsysutils dep" 2021-06-29 18:00:35 +00:00
Steven Moreland
eac62c1389 Merge "snapshotctl: remove unused libbinder dep" 2021-06-29 17:58:39 +00:00
Steven Moreland
435bae7acd Merge "usbd - remove unused libcutils dep" 2021-06-29 17:58:38 +00:00
David Anderson
da75aa7b6b Merge "init: fix to set sd device label correctly for FS" 2021-06-29 04:12:13 +00:00
Steven Moreland
5864a6211c snapshotctl: remove unused libbinder dep
not needed (may be needed by deps, but still).

Bug: N/A
Test: N/A
Change-Id: I3bc128717df50120c803d1d8bb5f9537f27cefd8
2021-06-29 00:24:02 +00:00
Steven Moreland
13e8fa6664 storaged: remove unused libsysutils dep
Unused.

Bug: N/A
Test: build only
Change-Id: I47e5e2c2c19e2e06b920bf36695f28af4db6095f
2021-06-29 00:10:39 +00:00
Nikita Ioffe
c037bdbc5a Merge "Add CreateEmptyDevice and WaitForDevice APIs" 2021-06-29 00:08:33 +00:00
Steven Moreland
9000a133cc usbd - remove unused libcutils dep
Well, the dependency of my dependency is still my dependency, so it'll
still be loaded, but there is no need for the declaration here.

Bug: N/A
Test: N/A
Change-Id: I27495eee1a76401dba316f425c2e43a692357543
2021-06-28 23:56:29 +00:00
Nikita Ioffe
15e0f5a98a Add CreateEmptyDevice and WaitForDevice APIs
These APIs support a flow in which dm devices can be created before they
are actually needed, hence minimizing the time a process will wait for
ueventd to create user space paths.

Bug: 190618831
Test: atest libdm_test
Change-Id: I4dfa14e5271a6a13de6da73ec3c7efb1ebc0f8b8
2021-06-28 18:54:12 +01:00
Treehugger Robot
5e2363e14d Merge "License boilerplate." 2021-06-26 00:33:20 +00:00
Treehugger Robot
8704d21c79 Merge "Correctly implement a stub for AddSequenceData" 2021-06-26 00:33:01 +00:00
Elliott Hughes
813fd6d1fd License boilerplate.
Bug: http://b/191499510
Test: treehugger
Change-Id: Ie0c34ec4713e04511a31ec033a097cb1c033fe79
2021-06-25 14:42:51 -07:00
Kelvin Zhang
a1e1727b61 Correctly implement a stub for AddSequenceData
AddSequenceData isn't supposed to be a "free function".
It belongs to ICowWriter class

Test: m update_engine
Change-Id: I2828651f26eefe5f9c76526608b9abdb6225dea0
2021-06-25 20:38:09 +00:00
Treehugger Robot
d669e6291c Merge "trusty: Increase maximum number of coverage counters" 2021-06-25 18:50:30 +00:00
Wei Wang
d6f64171fe Merge "init.rc: remove system cgroup migraion" 2021-06-25 17:06:11 +00:00
Guo Weichao
bcefbb1dfb init: fix to set sd device label correctly for FS
The sysfs node of sd blk_device is /sys/fs/f2fs/sd-<num>, we shouldn't
skip partition number at this time.

Bug: 189257443
Test: access sd-<num> sysfs correctly
Signed-off-by: Guo Weichao <guoweichao@oppo.com>
Signed-off-by: Huang Jianan <huangjianan@oppo.com>
Change-Id: Ibcd7bb265f8fca9cd26f8770403f1bafad433acb
2021-06-25 21:42:17 +08:00
Tri Vo
8ad386576f trusty: Increase maximum number of coverage counters
Confirmation UI TA has 52585 counters.

Bug: 171750250
Test: trusty_confirmationui_tipc_fuzzer
Change-Id: Iecb7c88c41c67ce4ab22c56b9e34ad5370b4018d
2021-06-24 22:23:21 -07:00
Wei Wang
7703d074cc init.rc: remove system cgroup migraion
We never use CONFIG_RT_GROUP_SCHED in GKI kernel, but that could be set
on legacy devices. Remove system cgroup migration and also RT settings
as we should not have any task under those groups.

Bug: 191925901
Test: Build
Signed-off-by: Wei Wang <wvw@google.com>
Merged-In: I492833975e28e9888e412711e80670ca0901010d
Change-Id: I492833975e28e9888e412711e80670ca0901010d
(cherry picked from commit b4e79853cd)
2021-06-24 18:00:08 -07:00
Christopher Ferris
bd5d08c135 Merge "Avoid using thread cache in unwinder." 2021-06-24 20:21:12 +00:00
Shawn Willden
9a62860e8b Merge "Add TrustyKeyMintDevice" 2021-06-24 18:35:42 +00:00
Suren Baghdasaryan
e6c77a0578 Merge "Replace writepid with task_profiles command for cgroup migration" 2021-06-24 17:26:51 +00:00
Suren Baghdasaryan
2079c5f0c9 Replace writepid with task_profiles command for cgroup migration
writepid command usage to join a cgroup has been deprecated in favor
of a more flexible approach using task_profiles. This way cgroup path
is not hardcoded and cgroup changes can be easily made. Replace
writepid with task_profiles command to migrate between cgroups.

Bug: 191283136
Test: build and boot
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
Change-Id: I945c634dfa7621437d8ea3981bce370d680b7371
2021-06-24 17:24:20 +00:00
yidong zhang
cbf7c466e6 Avoid using thread cache in unwinder.
Using  thread cache will cause SIGSEGV for 32bit+kernel4.9 device.

Bug: 190579082
Bug: 189803009

Test: run cts -m CtsSeccompHostTestCases
Change-Id: I47b13d02674aadbacd8dac36d8382eed0885413c
Signed-off-by: yidong zhang <yidong.zhang@amlogic.com>
2021-06-24 19:04:55 +08:00
Treehugger Robot
56a05e1fd8 Merge "fs_mgr: fix space instead of tab in code" 2021-06-24 06:07:00 +00:00
JeongHyeon Lee
c159edcdb7 fs_mgr: fix space instead of tab in code
Test: build and boot
Signed-off-by: JeongHyeon Lee <jhs2.lee@samsung.com>
Change-Id: I99fde3fe5c1c08954f152fb76daedf272f12cdee
2021-06-24 13:41:08 +09:00
David Anderson
be68d866f1 Merge "Perform a consistency check before deleting snapshots." 2021-06-23 23:51:53 +00:00
Treehugger Robot
a08d328864 Merge "debuggerd: unify licenses." 2021-06-23 01:27:44 +00:00
Elliott Hughes
d151a7c75c Merge "libkeyutils: add the missing NOTICE file." 2021-06-23 00:22:19 +00:00
Devin Moore
86cfa5802c Merge "reboot_utils: Check bootconfig for reboot parameters" 2021-06-22 22:17:27 +00:00
Elliott Hughes
4e36324751 Merge "crash_dump: avoid misleading error messages." 2021-06-21 23:10:47 +00:00
Elliott Hughes
a029d98ad0 crash_dump: avoid misleading error messages.
I'm guessing that the original

  F crash_dump64: crash_dump.cpp:460] failed to attach to thread 1671, already traced by 0 ()

was probably a race, where there _was_ a tracer but they disappeared?
Whatever, it doesn't seem helpful to show "already traced by nobody",
and we also don't want to clobber errno in the fallthrough case
(previously just where get_tracer() failed, but now also where
get_tracer() returns "nobody").

Bug: http://b/188668580
Test: treehugger
Change-Id: I3fa3b4f7e32531d48dfbb0ef946ff351ed5d9171
2021-06-21 12:39:40 -07:00
Devin Moore
2652fdb8aa reboot_utils: Check bootconfig for reboot parameters
Androidboot parameters have moved from /proc/cmdline to /proc/bootconfig
so we need to check both places in reboot_utils.
"ro.boot.*" properties can not be used because this is initialized
before the properties are set.

Test: boot Cuttlefish with init_fatal_panic and
init_fatal_reboot_target in bootconfig and in cmdline
Bug: 191494101

Change-Id: I6c230496ec1c3632470d20ff4a31f28db96ea71b
2021-06-21 09:43:27 -07:00
Elliott Hughes
b6f3da66f9 libkeyutils: add the missing NOTICE file.
Bug: http://b/191499510
Test: treehugger
Change-Id: Ia546ad44f15e4afe7321e9ab6267a0e1f35d0490
2021-06-18 15:55:40 -07:00
Elliott Hughes
b20a3aaa1c debuggerd: unify licenses.
All but three files are Apache-2.0 already.

Bug: http://b/191499510
Test: /google/src/files/head/depot/google3/wireless/android/busytown/ayeaye/analyzers/copyright/tools/scan_android_project.sh ~/aosp/system/core/debuggerd/ | grep -v APACHE
Change-Id: I430c3382dd160e398f02470d7053ecea39c98f41
2021-06-18 15:49:30 -07:00
Inseob Kim
65156052cc Merge "Completely migrate init first stage to Soong" 2021-06-18 17:12:23 +00:00
Shawn Willden
fed81d8e41 Add TrustyKeyMintDevice
Bug: 177729159
Test: Not testable until more CLs land
Merged-In: Iea4e70bb5b4ce051492f2e42d2e0d219d088388e
Change-Id: Iea4e70bb5b4ce051492f2e42d2e0d219d088388e
2021-06-18 07:11:36 -06:00
Xin Li
4824600c22 DO NOT MERGE - Mark RQ3A.210410.001 as merged
Bug: 190855093
Merged-In: I854c79820824b9911014cb068c256310e13fd251
Change-Id: Icca3e1c66dd9044f2e3add8add9b86207051ea66
2021-06-17 22:43:30 -07:00
Inseob Kim
2e20058069 Completely migrate init first stage to Soong
adb_debug.prop is migrated too. And ramdisk_available is added to all
dependencies.

Bug: 187196593
Test: boot
Change-Id: I59cd149e0021211b8fd59c44b93bbf18dc8637bf
2021-06-18 14:26:55 +09:00
Treehugger Robot
5f3ca77970 Merge "Add libbinder_rpc_unstable.so to linker.config.json" am: 1c998ded12
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1733852

Change-Id: I854c79820824b9911014cb068c256310e13fd251
2021-06-17 22:00:58 +00:00
Treehugger Robot
1c998ded12 Merge "Add libbinder_rpc_unstable.so to linker.config.json" 2021-06-17 21:43:55 +00:00
Treehugger Robot
ccd4826d4b Merge "inspect_cow: Dump more header data." am: bc95e98119
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1737080

Change-Id: I61c0e4e858e1661cf376a9e2b4cf1882cf2d66a6
2021-06-17 18:28:12 +00:00
Treehugger Robot
bc95e98119 Merge "inspect_cow: Dump more header data." 2021-06-17 18:06:12 +00:00
Treehugger Robot
aee01f2057 Merge "Remove --wipe-and-use-fbe option from fastboot" am: db14785382
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1736580

Change-Id: Ifd587698f361c62a30d0dc20026d342cc234f0f7
2021-06-16 18:14:39 +00:00
Treehugger Robot
db14785382 Merge "Remove --wipe-and-use-fbe option from fastboot" 2021-06-16 17:55:36 +00:00
Wei Wang
d1e6aaad43 Merge "task_profiles.json: add taskprofile for SurfaceFlinger" am: 97e1cb1edd
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1737718

Change-Id: I3e945388da9bfa2d05864173b26947dd9ffb6cff
2021-06-16 04:22:25 +00:00
Wei Wang
97e1cb1edd Merge "task_profiles.json: add taskprofile for SurfaceFlinger" 2021-06-16 04:09:42 +00:00
David Anderson
216f9bbc43 Perform a consistency check before deleting snapshots.
If for some reason the COW state is not fully synced to disk, but
dm-snapshot has flushed its pending merges, we do not want to delete
snapshots. Doing so could potentially leave blocks unmerged.

This situation is quite unexpected so we label it as a merge failure.
The device can recover by completely syncing the COW state, and then
rebooting, which will attempt to make forward progress on the merge.

Bug: 190582627
Test: vts_libsnapshot_test
      full OTA on bramble
      incremental OTA on bramble
Change-Id: Ib887f1d9e4397a712ed2f800cc1222cf9305a039
2021-06-15 17:16:52 -07:00
Paul Crowley
47770a1040 Remove --wipe-and-use-fbe option from fastboot
As per the bug, this option has been obsolete for years
and only causes confusion.

Bug: 167694738
Test: fastboot can still wipe
Change-Id: I24a21cb6110d61dec4af800a1fab0bcedc0a3d5c
2021-06-15 16:07:57 -07:00
Wei Wang
6c54679758 task_profiles.json: add taskprofile for SurfaceFlinger
In some platforms, setting a different cpuset (or remove it) and/or
uclamp setting is beneficial to both performance and power. Adding 2
separate profiles for vendor to override surfaceflinger scheduling
policies.

Bug: 170507315
Test: build and boot
Signed-off-by: Wei Wang <wvw@google.com>
Change-Id: Ib313fd67c6ccd701109c5683d8dbab9ecd1580d8
(cherry picked from commit 6d6b71e582)
2021-06-15 15:18:23 -07:00
Treehugger Robot
283798235e Merge "Add some README.md text for init triggers." am: 04d0f7d303
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1724076

Change-Id: I2d32af4b7fe3d249c0d53f87dbb7efac7a610447
2021-06-15 19:57:18 +00:00