Commit graph

74877 commits

Author SHA1 Message Date
Shikha Malhotra
acadd9bfa0 Merge "Adding project_id ranges for internal app and cache folders." am: 927d9d1c68
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1934961

Change-Id: I7a820b4d88f9ef2a45b2bdbef5923731d7240d27
2022-03-10 22:22:29 +00:00
Shikha Malhotra
927d9d1c68 Merge "Adding project_id ranges for internal app and cache folders." 2022-03-10 21:58:40 +00:00
David Anderson
59cc435727 Merge "fs_mgr: Add force_super_partition bootconfig option to avoid slot suffixing alternate super partition names." am: b738b7d23a
Original change: https://android-review.googlesource.com/c/platform/system/core/+/2003650

Change-Id: Ic47f79da15acfda4b4f7dac2d49ea249d758bce1
2022-03-10 05:12:24 +00:00
David Anderson
b738b7d23a Merge "fs_mgr: Add force_super_partition bootconfig option to avoid slot suffixing alternate super partition names." 2022-03-10 04:42:20 +00:00
Treehugger Robot
bb9525cb67 Merge "Adding libutils owner smoreland@ as fuzz targets owner for alerts" am: 5520cb3309
Original change: https://android-review.googlesource.com/c/platform/system/core/+/2016715

Change-Id: Ic0f33fd972006ffee068da9949809e120c92b239
2022-03-08 22:01:56 +00:00
Treehugger Robot
5520cb3309 Merge "Adding libutils owner smoreland@ as fuzz targets owner for alerts" 2022-03-08 21:33:05 +00:00
Anis Assi
e75dd9a1c1 Adding libutils owner smoreland@ as fuzz targets owner for alerts
Bug: 221891733
Change-Id: I85ff5c754fb2eb85331e84b3dbacd24844d54efc
2022-03-08 19:48:21 +00:00
Akilesh Kailash
1c32ca7874 Merge "If there an error, cqe field is not allocated by io_uring_wait_cqe(); return the error immediately." am: ca0c5c5b10
Original change: https://android-review.googlesource.com/c/platform/system/core/+/2012250

Change-Id: I1d132548ea1d10bfc0cf7244784906472b214f93
2022-03-08 10:36:37 +00:00
David Anderson
a0cc2ee6b1 Merge "init: Add diagnostics for signalfd epoll failures." am: 5c007a51dd
Original change: https://android-review.googlesource.com/c/platform/system/core/+/2012248

Change-Id: Ieafba24862783231546f22741a4ffffa2bb5f588
2022-03-08 10:36:08 +00:00
Akilesh Kailash
ca0c5c5b10 Merge "If there an error, cqe field is not allocated by io_uring_wait_cqe(); return the error immediately." 2022-03-08 08:07:14 +00:00
David Anderson
5c007a51dd Merge "init: Add diagnostics for signalfd epoll failures." 2022-03-08 08:02:39 +00:00
Treehugger Robot
db1d9c1c2a Merge "Set '%c' in LLVM_PROFILE_FILE for continuous mode" am: d2a27913a9
Original change: https://android-review.googlesource.com/c/platform/system/core/+/2009257

Change-Id: Id27f40ea98ec8ba4232059b17fb88dec5b257b84
2022-03-08 06:57:49 +00:00
Treehugger Robot
d2a27913a9 Merge "Set '%c' in LLVM_PROFILE_FILE for continuous mode" 2022-03-08 06:37:02 +00:00
Akilesh Kailash
c08037b2c2 If there an error, cqe field is not allocated by io_uring_wait_cqe(); return
the error immediately.

Bug: 223308671
Test: OTA
Signed-off-by: Akilesh Kailash <akailash@google.com>
Change-Id: Ib485bb767ad58e6a0849fb2431b563e6e7f04cfd
2022-03-08 06:14:22 +00:00
David Anderson
0fa7c40c4c init: Add diagnostics for signalfd epoll failures.
Bug: 222441619
Test: inject failure with close, check for log messages
Change-Id: Ia18b88841779e230d00a6c47aaed4952b1444f85
2022-03-07 21:10:40 -08:00
Treehugger Robot
45bed3a271 Merge "Add libvndksupport-tests to TEST_MAPPING" am: b74e5af4bd
Original change: https://android-review.googlesource.com/c/platform/system/core/+/2014375

Change-Id: I8741bbb06cffb696e5c5bb5374c6419555611422
2022-03-08 04:08:39 +00:00
Treehugger Robot
b74e5af4bd Merge "Add libvndksupport-tests to TEST_MAPPING" 2022-03-08 03:44:46 +00:00
David Anderson
d20ed1dfc8 Merge "init: Skip interface duplicates if service is an override" am: 8c7cbf01a9
Original change: https://android-review.googlesource.com/c/platform/system/core/+/2009975

Change-Id: I3c32b073ce86e4f98593a7e27181fd9df83009c5
2022-03-08 03:01:29 +00:00
Treehugger Robot
9d098cad90 Merge "Remove dead non-proto tombstone reporting code." am: f718707191
Original change: https://android-review.googlesource.com/c/platform/system/core/+/2013484

Change-Id: I05496b02f2b16ae00dcd3bf603f9abb63ac4d269
2022-03-08 03:01:09 +00:00
David Anderson
8c7cbf01a9 Merge "init: Skip interface duplicates if service is an override" 2022-03-08 02:56:09 +00:00
Treehugger Robot
f718707191 Merge "Remove dead non-proto tombstone reporting code." 2022-03-08 02:37:46 +00:00
Peter Collingbourne
a6fac881b2 Remove dead non-proto tombstone reporting code.
Bug: 197981919
Change-Id: I58a98070198ef0b686229bd54f87b9073df12d66
2022-03-07 17:03:18 -08:00
Jiyong Park
94bddf13e8 Add libvndksupport-tests to TEST_MAPPING
Bug: 208849199
Test: atest libvndksupport-tests, watch TH
Change-Id: I9617601d642b9f45f142c6bb483d6edf720566b6
2022-03-08 09:53:55 +09:00
Alexander Koskovich
e5f05202c7
init: Skip interface duplicates if service is an override
These aren't actually duplicate interfaces because we
are overriding the service so interfaces in the original
definition will never be used.

Test: Verify 'm dist' works without complaining about
      duplicate interfaces.

Change-Id: Iab5e1d8bb4cb7d5b2608028c3cee73af94c47424
2022-03-07 17:07:05 -07:00
Treehugger Robot
5acf7ceb93 Merge "Update shell_and_utilities docs for T." am: 28f4f37161
Original change: https://android-review.googlesource.com/c/platform/system/core/+/2008539

Change-Id: I9cac8b6d8ddb7400e8e3ea9328b722c905c78aff
2022-03-05 21:53:49 +00:00
Treehugger Robot
28f4f37161 Merge "Update shell_and_utilities docs for T." 2022-03-05 21:29:52 +00:00
Elliott Hughes
fe3af716e4 Update shell_and_utilities docs for T.
Change-Id: I5a1aedebe558ad8deafb13933df437b6bb9eb2f2
2022-03-05 08:12:29 -08:00
Pirama Arumuga Nainar
9868487540 Set '%c' in LLVM_PROFILE_FILE for continuous mode
Bug: http://b/194128476

If CLANG_COVERAGE_CONTINUOUS_MODE is set, enable continuous mode by
adding '%c' to LLVM_PROFILE_FILE.

Test: CLANG_COVERAGE_CONTINUOUS_MODE m and verify continuous mode works.
Change-Id: I8ace01f2aeaef62857e73308b04a535739171b53
2022-03-04 12:47:55 -08:00
Treehugger Robot
b5cb068945 Merge "Reserve a UID for AID_SDK_SANDBOX" am: 1821237a1e
Original change: https://android-review.googlesource.com/c/platform/system/core/+/2006072

Change-Id: Ibca7c4b1f035f1c5ea9dd8c93310860b0edba3a1
2022-03-04 20:01:01 +00:00
Treehugger Robot
1821237a1e Merge "Reserve a UID for AID_SDK_SANDBOX" 2022-03-04 19:39:58 +00:00
Hanna Nizhnikava
b4c15f5db8 Merge "Create utility method for converting sdk_sandbox_uid to app_uid" am: 4dc57edc1d
Original change: https://android-review.googlesource.com/c/platform/system/core/+/2007910

Change-Id: Icc922fe2cac66a1a2ff1cf3e33eaf39b02a40ae0
2022-03-04 11:56:26 +00:00
Hanna Nizhnikava
4dc57edc1d Merge "Create utility method for converting sdk_sandbox_uid to app_uid" 2022-03-04 11:27:40 +00:00
Elliott Hughes
d349650f07 Merge "Define AIDs for Weaver, Keymint and IdentityCredential applets." am: d07d694175
Original change: https://android-review.googlesource.com/c/platform/system/core/+/2002211

Change-Id: I9a250ea7e084a9b87807ce75e2590446c3188e35
2022-03-04 02:05:29 +00:00
Dmitri Plotnikov
8303dd695f Reserve a UID for AID_SDK_SANDBOX
Bug: 219080829
Bug: 219077358
Test: N/A
Change-Id: Iddc4e29668e7d6f2490b5d6acb9b4e5f0082d064
2022-03-03 18:03:30 -08:00
Elliott Hughes
d07d694175 Merge "Define AIDs for Weaver, Keymint and IdentityCredential applets." 2022-03-04 01:40:37 +00:00
Bart Van Assche
b055fb1b38 Merge changes I4b9b76c9,I6f329491,I9c783193,I0798cc94 am: 40080208c1
Original change: https://android-review.googlesource.com/c/platform/system/core/+/2004800

Change-Id: If7eb1e10bdd07a33f6ae37f70d520d15618ff32f
2022-03-03 22:15:06 +00:00
Hanna Nizhnikava
fb78816593 Create utility method for converting sdk_sandbox_uid to app_uid
Method is needed for further use in statsd mapping process.

Bug: 217695033
Test: atest installd_service_test
Change-Id: I508a58da5f8d2e32264002db515425134d18aece
2022-03-03 21:49:43 +00:00
Bart Van Assche
40080208c1 Merge changes I4b9b76c9,I6f329491,I9c783193,I0798cc94
* changes:
  healthd: Convert multiple private methods into static nonmember functions
  healthd: Fix readFromFile()
  healthd: Make initHealthInfo() easier to read
  healthd: Improve readability of BatteryMonitor::init()
2022-03-03 21:18:17 +00:00
Bart Van Assche
095c944b48 healthd: Convert multiple private methods into static nonmember functions
The private methods in class BatteryMonitor do not use the 'this'
pointer. Hence convert these into static nonmember functions.

Test: Compile-tested only.
Change-Id: I4b9b76c9697f1db894ba9fb939ce096ee6b7ff3b
Signed-off-by: Bart Van Assche <bvanassche@google.com>
2022-03-03 18:46:12 +00:00
Bart Van Assche
5a7e5083e6 healthd: Fix readFromFile()
Not all readFromFile() callers pass an empty string. Make sure that
readFromFile() returns 0 (failure) if the *buf argument is not empty and
if reading fails.

Fixes: 3217c5c7d9 ("batterymonitor: simplify readFromFile and use std::string buffers")
Test: Compile-tested only.
Change-Id: I6f329491f8aa4a6d378eb7c3cbc17038eb6aa64d
Signed-off-by: Bart Van Assche <bvanassche@google.com>
2022-03-03 18:46:12 +00:00
Bart Van Assche
024e18f060 healthd: Make initHealthInfo() easier to read
Use aggregate initialization instead of memberwise initialization. This
patch does not change any functionality.

Test: Compile-tested only.
Change-Id: I9c7831936e449aec8a48336b1ee76d26638e4f72
Signed-off-by: Bart Van Assche <bvanassche@google.com>
2022-03-03 18:46:12 +00:00
Bart Van Assche
25b2a8de53 healthd: Improve readability of BatteryMonitor::init()
Declare and assign in a single statement instead of in two separate
statements. This patch does not change any functionality.

Test: Compile-tested only.
Change-Id: I0798cc940f5f2ca329548568ab68e96891521dd8
Signed-off-by: Bart Van Assche <bvanassche@google.com>
2022-03-03 18:46:12 +00:00
Samiul Islam
82f6d2dcc7 Merge changes I310feb08,I2b6d6b08 am: 242ed1bb20
Original change: https://android-review.googlesource.com/c/platform/system/core/+/2004994

Change-Id: I7a2739b22d9e25cb4352832c6bcb47eab5bcf7a9
2022-03-03 10:08:02 +00:00
Samiul Islam
ecefb5a0ed Create utility method for calculating supplemental_uid from app_uid am: b18fea1abb
Original change: https://android-review.googlesource.com/c/platform/system/core/+/2004993

Change-Id: I91ab5fd0e4789fd21b69911bcc448a23434b0521
2022-03-03 10:08:00 +00:00
Samiul Islam
242ed1bb20 Merge changes I310feb08,I2b6d6b08
* changes:
  Rename SupplementalProcess to SdkSandbox
  Create utility method for calculating supplemental_uid from app_uid
2022-03-03 09:06:28 +00:00
Yi-yo Chiang
01f95d2ea5 Merge "fs_mgr: Fix misleading comment text regarding __ANDROID_RECOVERY__" am: fb81cf765a
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1996611

Change-Id: If382a3c6ef01c5f5ab6cbdaf78b67ae003fd00e1
2022-03-03 06:40:07 +00:00
Yi-yo Chiang
fb81cf765a Merge "fs_mgr: Fix misleading comment text regarding __ANDROID_RECOVERY__" 2022-03-03 06:23:14 +00:00
Thiébaud Weksteen
d16229a571 Merge "Document firmware_class.path" am: 1f2ea5504f
Original change: https://android-review.googlesource.com/c/platform/system/core/+/2005452

Change-Id: I8a1ba2b6d502de8e8a4fece5de0e910195699edd
2022-03-03 05:36:03 +00:00
David Anderson
95cfb66ac1 Merge "fs_mgr: Restrict dt fstabs to < Q devices." am: 390851dd29
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1991382

Change-Id: If5dcf065749c5406f05c4f419a3617512989f7fb
2022-03-03 05:35:53 +00:00
Thiébaud Weksteen
1f2ea5504f Merge "Document firmware_class.path" 2022-03-03 05:17:21 +00:00