Vilas Bhat
89482bd443
Merge "ashmem: Remove hardcoded PAGE_SIZE usage in ashmem_test" into main am: 89fa277dcb
...
Original change: https://android-review.googlesource.com/c/platform/system/core/+/2954211
Change-Id: I5bbb4901353724821d7a1c06bf1df37986f804b4
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-02-14 01:11:32 +00:00
Treehugger Robot
e233ba1d0e
Merge "Change debuggerd client param from pid to tid" into main am: 222ba3e8bd
...
Original change: https://android-review.googlesource.com/c/platform/system/core/+/2941065
Change-Id: I1fcad6a0a9fa5299a09e8acd1dd19cab9c525ba4
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-02-14 01:10:24 +00:00
Vilas Bhat
89fa277dcb
Merge "ashmem: Remove hardcoded PAGE_SIZE usage in ashmem_test" into main
2024-02-14 00:51:11 +00:00
Treehugger Robot
222ba3e8bd
Merge "Change debuggerd client param from pid to tid" into main
2024-02-14 00:13:33 +00:00
Vilas Bhat
f791b99628
ashmem: Remove hardcoded PAGE_SIZE usage in ashmem_test
...
Bug: 323061793
Test: atest libcutils_test
Change-Id: I8defd5225859b52a1b96a638d418188b328a23bc
2024-02-13 20:50:00 +00:00
Ryan Prichard
2499c6d958
Merge "libsnapshot: replace non-character basic_string[_view]<T>" into main am: 18744c17c1
...
Original change: https://android-review.googlesource.com/c/platform/system/core/+/2956695
Change-Id: I2f5f9e60cc8f0421e25764d7652be05e54dc2f49
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-02-09 20:00:33 +00:00
Ryan Prichard
18744c17c1
Merge "libsnapshot: replace non-character basic_string[_view]<T>" into main
2024-02-09 20:00:06 +00:00
Treehugger Robot
94a060ada0
Merge "Remove obsolete __STDC_LIMIT_MACROS references." into main am: 0bd010d9ae
...
Original change: https://android-review.googlesource.com/c/platform/system/core/+/2955864
Change-Id: Ie8ab57eb4c3bd82a433e2bccef46e53e003a7f01
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-02-09 19:58:53 +00:00
Treehugger Robot
0bd010d9ae
Merge "Remove obsolete __STDC_LIMIT_MACROS references." into main
2024-02-09 19:11:47 +00:00
Elliott Hughes
29cd07132d
Remove obsolete __STDC_LIMIT_MACROS references.
...
None of our libcs need this any more.
Test: treehugger
Change-Id: I8a942ad6b3860633a6d722bd237a7c75482499eb
2024-02-09 16:40:02 +00:00
Treehugger Robot
de0c8b2425
Merge "Replace lazy_static with once_cell" into main am: 22e1c5dcb0
...
Original change: https://android-review.googlesource.com/c/platform/system/core/+/2922005
Change-Id: I5b7108347a452034a3c4a4b4fb35ce7091fd508b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-02-09 16:29:37 +00:00
Treehugger Robot
22e1c5dcb0
Merge "Replace lazy_static with once_cell" into main
2024-02-09 15:41:46 +00:00
Ryan Prichard
abb472c238
libsnapshot: replace non-character basic_string[_view]<T>
...
In newer versions of libc++, std::char_traits<T> is no longer defined
for non-character types, and a result, std::basic_string<T> and
std::basic_string_view<T> are also no longer defined for non-character
types. See
https://discourse.llvm.org/t/deprecating-std-string-t-for-non-character-t/66779 .
Replace them with std::vector<T> and std::span<const T>.
Bug: 175635923
Test: m MODULES-IN-system-core-fs_mgr
Test: /data/nativetest64/cow_api_test/cow_api_test
Change-Id: Ife2e87833ced43ff24e5765998cb6993e4f9b4c0
2024-02-08 23:20:10 -08:00
Treehugger Robot
6f549f998f
Merge "Add test mapping" into main am: ff239bb0fc
...
Original change: https://android-review.googlesource.com/c/platform/system/core/+/2955182
Change-Id: I3583320efd2158358ccfbecbc293de6a13b27870
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-02-08 19:06:09 +00:00
Treehugger Robot
ff239bb0fc
Merge "Add test mapping" into main
2024-02-08 18:30:25 +00:00
T.J. Mercier
c902df07b0
Add test mapping
...
Bug: 315371696
Change-Id: If8448e703cc5accde11bcdccf7585ef6779f59b0
2024-02-08 16:57:43 +00:00
Treehugger Robot
6bbae41eae
Merge "fastboot: Use clock_gettime(CLOCK_MONOTONIC) in now()" into main am: 2d686d7b71
...
Original change: https://android-review.googlesource.com/c/platform/system/core/+/2955185
Change-Id: Ie3c5ca7f532f92c77ebc7df8eedf3748a3f478cf
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-02-08 16:47:34 +00:00
Treehugger Robot
a7953f7415
Merge "Remove unused addKernelPanicSubReason() return value." into main am: 4e4d918689
...
Original change: https://android-review.googlesource.com/c/platform/system/core/+/2953919
Change-Id: Idd4866e8316657b19995a138c70412e380648760
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-02-08 16:45:49 +00:00
Treehugger Robot
2d686d7b71
Merge "fastboot: Use clock_gettime(CLOCK_MONOTONIC) in now()" into main
2024-02-08 16:09:44 +00:00
Treehugger Robot
4e4d918689
Merge "Remove unused addKernelPanicSubReason() return value." into main
2024-02-08 16:09:04 +00:00
Neill Kapron
79fffdb0c5
Merge "healthd: BatteryMonitor: doLogValues: reduce log level to debug" into main am: 2b2fcaea46
...
Original change: https://android-review.googlesource.com/c/platform/system/core/+/2953924
Change-Id: I74fc84205ec64a9e037397ee0f3093b3d48b5142
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-02-08 03:43:53 +00:00
Treehugger Robot
bb2fc5a0b5
Merge "fastboot: Remove '\n' from interface name on linux" into main am: 241046adaa
...
Original change: https://android-review.googlesource.com/c/platform/system/core/+/2955272
Change-Id: I772dfb2fbfadfe48b76f05951e03e648ab2a71fb
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-02-08 03:43:30 +00:00
Neill Kapron
2b2fcaea46
Merge "healthd: BatteryMonitor: doLogValues: reduce log level to debug" into main
2024-02-08 03:24:16 +00:00
Treehugger Robot
241046adaa
Merge "fastboot: Remove '\n' from interface name on linux" into main
2024-02-08 03:11:53 +00:00
Peter Collingbourne
cc1bf34ba6
fastboot: Use clock_gettime(CLOCK_MONOTONIC) in now()
...
If the system time changes during the execution of fastboot we might
see some strange output such as:
Sending sparse 'super' 4/20 (254972 KB) OKAY [-516.263s]
Fix it by changing now() to use clock_gettime(CLOCK_MONOTONIC).
I confirmed that all callers of now() are using it for relative time
and not time since the epoch.
Change-Id: Ic3e9442c2ab21dfb076bfed88915085a183754b0
2024-02-07 16:55:49 -08:00
Matt Schulte
28f4807dd3
fastboot: Remove '\n' from interface name on linux
...
If the device provides an interface string, we should remove the newline
from the read file that is added from by the linux kernel.
Bug: 324320178
Test: Ran the same command with my local changes vs not
```
bash$ ./fastboot devices -l
5f42ad5ad259c90cf14ea222791b6aaa fastboot usb:7-3
bash$ fastboot devices -l
5f42ad5ad259c90cf14ea222791b6aaa fastboot
usb:7-3
```
Change-Id: Ida3316fdba8e35f0c66784f83455a4d82e90ba1c
2024-02-07 16:24:26 -08:00
Neill Kapron
aeccbb8f3a
healthd: BatteryMonitor: doLogValues: reduce log level to debug
...
This is log spam and fills the kernel log. Reduce log level from warning
to debug.
Test: manual
Bug: 36785118
Change-Id: I70fc3a0d796cb1a984705236fe7527e266a69a03
Signed-off-by: Neill Kapron <nkapron@google.com>
2024-02-07 23:37:50 +00:00
Elliott Hughes
68fc74372b
Merge "We don't need __STDC_FORMAT_MACROS any more." into main am: c72c9a6d3c
...
Original change: https://android-review.googlesource.com/c/platform/system/core/+/2953915
Change-Id: Iefd849d7c4d1b8ccd9661bee12bab06feed4be54
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-02-07 22:25:50 +00:00
Elliott Hughes
1c5911fade
Remove unused addKernelPanicSubReason() return value.
...
The only caller that was looking at the return value just stopped.
Test: treehugger
Change-Id: Icf2508e8e1ee4969918eadeb580f70236ba53496
2024-02-07 22:22:13 +00:00
Elliott Hughes
c72c9a6d3c
Merge "We don't need __STDC_FORMAT_MACROS any more." into main
2024-02-07 21:56:38 +00:00
Treehugger Robot
24f4df0bb2
Merge "bootstat: Remove long key press check" into main am: 0c78cf96a1
...
Original change: https://android-review.googlesource.com/c/platform/system/core/+/2938819
Change-Id: Iad1cf5e839fc9c7009676aa516c0550bd3c788d9
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-02-07 18:54:50 +00:00
Elliott Hughes
6225d6f3eb
We don't need __STDC_FORMAT_MACROS any more.
...
Test: treehugger
Change-Id: Iada8b959f61bfa55b61d2ed4b345801ed9cea0c6
2024-02-07 18:27:47 +00:00
Treehugger Robot
0c78cf96a1
Merge "bootstat: Remove long key press check" into main
2024-02-07 18:23:30 +00:00
Treehugger Robot
c0e2cc30d2
Merge "fastboot: Use asynchronous operations to send data" into main am: 277533b7a3
...
Original change: https://android-review.googlesource.com/c/platform/system/core/+/2953831
Change-Id: Ic9a6d6dbd92ba9ff827cdf63283c7d6ef25f8d56
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-02-07 04:13:08 +00:00
Treehugger Robot
277533b7a3
Merge "fastboot: Use asynchronous operations to send data" into main
2024-02-07 03:42:00 +00:00
Zheng Pan
fa544b551b
bootstat: Remove long key press check
...
Current check is kind of device specfic and causes false positive.
Bug: 320829712
Test: Trigger long key press and check boot reason
Change-Id: I5b2b8307f16eecd05513bfa51494da174fc839bd
2024-02-06 17:39:27 -08:00
Peter Collingbourne
8635c016db
fastboot: Use asynchronous operations to send data
...
The fastboot command currently uses USBDEVFS_BULK to transfer data
(including image data) to the target. On the kernel side it looks
like this:
1. Allocate a contiguous memory region and copy the user data into
the memory region (which may involve accessing storage).
2. Instruct the driver to start a DMA operation.
3. Wait for the DMA to finish.
This is suboptimal because it misses out on a pipelining
opportunity. We could be doing 3 for the current operation in parallel
with 1 for the next operation, so that the next DMA is ready to go
as soon as the current DMA finishes.
The kernel supports asynchronous operations on usbdevfs file
descriptors (USBDEVFS_SUBMITURB and USBDEVFS_REAPURB), so we can
implement this like so:
1. Submit URB 0
2. Submit URB 1
3. Wait for URB 0
4. Submit URB 2
5. Wait for URB 1
and so on.
That is what this CL implements. On my machine it increases transfer
speed from 125 MB/s to 160 MB/s using a USB 3.0 connection to the
target (Pixel 8).
Bug: 324107907
Change-Id: I20db7ea14af85db48f6494091c8279ef7a21033d
2024-02-06 13:10:27 -08:00
Jeffrey Vander Stoep
7f66218e1d
Merge "Replace use of deprecated logging functions" into main am: 40b6a8f0c6
...
Original change: https://android-review.googlesource.com/c/platform/system/core/+/2952670
Change-Id: I215c94fd01b4d814598f9f4f75851e32c9188a6f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-02-06 16:39:21 +00:00
Jeffrey Vander Stoep
40b6a8f0c6
Merge "Replace use of deprecated logging functions" into main
2024-02-06 16:09:30 +00:00
Jeff Vander Stoep
56aedd5551
Replace use of deprecated logging functions
...
This is needed to upgrade the android_logger crate from 0.12.0
to 0.13.3.
with_max_level provides the same functionality as with_min_level.
The renaming is admittedly confusing, but the new name is accurate
and it makes sense that they deprecated and then removed the
previously poorly named with_min_level.
See crate documentation [1] and code [2].
[1]: https://docs.rs/android_logger/0.12.0/android_logger/struct.Config.html#method.with_min_level
[2]: https://docs.rs/android_logger/0.12.0/src/android_logger/lib.rs.html#227
Bug: 322718401
Test: build and run CF with the change.
Test: m aosp_cf_x86_64_phone
Change-Id: Ib4fbd486267d30e74e886139846950b066848d43
2024-02-06 12:32:36 +01:00
David Dai
f3337f69df
Merge "Add AID for Virtual Machines" into main am: 161b80bd02
...
Original change: https://android-review.googlesource.com/c/platform/system/core/+/2945529
Change-Id: I92a8f7a1c8d8fc5e0fe2c0ae39ac0b018e4cb462
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-02-06 01:59:21 +00:00
David Dai
161b80bd02
Merge "Add AID for Virtual Machines" into main
2024-02-06 01:21:39 +00:00
Treehugger Robot
6901675313
Merge "remount: Auto remount option (-R) also tries to gain root" into main am: eadf6b4bda
...
Original change: https://android-review.googlesource.com/c/platform/system/core/+/2926792
Change-Id: I346ffe88bc6dfc299140a545164c551410e3082b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-02-06 00:34:00 +00:00
Treehugger Robot
eadf6b4bda
Merge "remount: Auto remount option (-R) also tries to gain root" into main
2024-02-05 23:47:54 +00:00
David Dai
851c9c825f
Add AID for Virtual Machines
...
Add a new AID for Virtual Machines so we can grant
capabilities such as CAP_SYS_NICE.
Bug: 322197421
Test: Build and boots, and verified capabilities
Change-Id: Ie893ba8ed6956a554bccfbd00e4e6fe9212ea77d
Signed-off-by: David Dai <davidai@google.com>
2024-02-05 23:38:44 +00:00
Kenn Frankel
548fffe3bd
Merge "Update libstatssocket_lazy to support StringArray" into main am: 7833f27c25
...
Original change: https://android-review.googlesource.com/c/platform/system/core/+/2945025
Change-Id: I4f80a927a3b500fb22c119f6b6a79c1bb61f2e55
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-02-05 19:59:44 +00:00
Kenn Frankel
7833f27c25
Merge "Update libstatssocket_lazy to support StringArray" into main
2024-02-05 19:16:33 +00:00
Treehugger Robot
1015d263e9
Merge "Restore I/O priority support" into main am: 749e2e8e2d
...
Original change: https://android-review.googlesource.com/c/platform/system/core/+/2944826
Change-Id: I0ae7e0f1ef9a6ccf484e33ed82f7c1fa8b522c06
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-02-02 01:57:41 +00:00
Treehugger Robot
749e2e8e2d
Merge "Restore I/O priority support" into main
2024-02-02 01:13:16 +00:00
Kenn Frankel
374c43e9b7
Update libstatssocket_lazy to support StringArray
...
Bug: 281162849
Test: LibstatssocketLazyTest
Change-Id: I917589e92db045f96daa9b191fadac50b01704c8
2024-02-01 11:49:51 -08:00