summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
4 daysMerge "Handle BR_FROZEN_REPLY in libhwbinder" into mainHEADmastermainTreehugger Robot
4 daysMerge changes from topic "hwbinder_logs" into mainDevin Moore
* changes: Log when threadpool is being used/configured and HIDL is disabled Move isHidlSupported to libhwbinder
4 daysLog when threadpool is being used/configured and HIDL is disabledDevin Moore
When HIDL is disabled these threads will do nothing. Add logs so we can see if/when services are trying to use or start the hwbinder threadpools on those devices. Test: launch_cvd Bug: 324326491 Change-Id: Idbd0e3c4c80eb87a35664708cd87921dd8586c6b
4 daysMove isHidlSupported to libhwbinderDevin Moore
The public API `isHidlSupported` is still in libhidlbase, but now we can use the underlying logic in libhwbinder. Test: launch_cvd Bug: 324326491 Change-Id: I06a59571542e63c7f9526615304b38f61c27e942
6 daysMerge "Migrate Test Targets to New Android Ownership Model" into mainTreehugger Robot
11 daysPromote CtsOsTestCases to presubmitsDevin Moore
Now that they have soaked in postsubmits we can promote the tests to run in presubmits. Test: none Bug: 333079136 Change-Id: Ice2632ee8d3f42fa6783d169b2d8ae3431910510
2024-04-10Handle BR_FROZEN_REPLY in libhwbinderDevin Moore
This means the app is frozen and will not get the transaction. This is handled in libbinder already in the same way. Test: m Bug: 313369251 Change-Id: I3e6511a971398d8d9feea214f8fa16c66c44a769
2024-04-09Merge "Add //visibility:any_system_partition" into mainJeongik Cha
2024-04-03Add CtsOsTestCases:android.os.cts.HwBinderTest to postsubmitsDevin Moore
This recently failed after a change to HIDL service management. Will promote to presubmits when the SLO checker is happy. Test: atest CtsOsTestCases:android.os.cts.HwBinderTest Bug: 332395670 Change-Id: I9468b14679872dbb55bc8f5544dd914349a27841
2024-03-23Add //visibility:any_system_partitionJeongik Cha
system image which is declared in Android.bp should include the module. Bug: 321000103 Test: m nothing Change-Id: Ia7ae7959e92aea787c0309769855b5b28398997a
2024-03-21Revert "Disable thinLTO for libhwbinder for riscv"Yi Kong
This reverts commit 0747671564e71304240aa7f2f2512466abe0695f. The build no longer fails with ThinLTO, the workaround can be removed. Test: presubmit Bug: 254713216 Change-Id: I6144ecb5f5e8f465d4709bf0f90114ddc624fca8
2024-03-06Merge Android 14 QPR2 to AOSP mainXin Li
Bug: 319669529 Merged-In: I25cd5e365ea72d190c846c72cfe49dcb2944d06b Change-Id: Ifa5e7fa1cc923656eb315d734df1a8af6a517d97
2024-02-05Merge "Add the BR_TRANSACTION_PENDING_FROZEN string to libbinder" into main ↵temp_319669529Treehugger Robot
am: 71df1c9461 Original change: https://android-review.googlesource.com/c/platform/system/libhwbinder/+/2948764 Change-Id: I25cd5e365ea72d190c846c72cfe49dcb2944d06b Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-02-05Support BR_TRANSACTION_PENDING_FROZEN am: 5006d0b4fdLi Li
Original change: https://android-review.googlesource.com/c/platform/system/libhwbinder/+/2948763 Change-Id: Iafb61fb1ef0881090a6a333ca25b75e55e90312a Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-02-05Revert "Log a warning when libhwbinder gets BR_TRANSACTION_PENDING_FROZEN" ↵Carlos Llamas
am: ecdacd1e9a Original change: https://android-review.googlesource.com/c/platform/system/libhwbinder/+/2948762 Change-Id: I9935218795f00d94ee3c2454f244f9bc864e4e13 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-02-05Merge "Add the BR_TRANSACTION_PENDING_FROZEN string to libbinder" into mainTreehugger Robot
2024-02-03Add the BR_TRANSACTION_PENDING_FROZEN string to libbinderDevin Moore
Test: m Bug: 313369251 Change-Id: Iabddad2cb3fc3090517178be3b62ee08e501e24e [cmllamas: picked from libbinder, dropped formatting changes] Signed-off-by: Carlos Llamas <cmllamas@google.com>
2024-02-03Support BR_TRANSACTION_PENDING_FROZENLi Li
When an async binder transaction is sent to a frozen process, the kernel binder driver returns BR_TRANSACTION_PENDING_FROZEN. This tells the user space app that pending async binder transaction won't be processed until the target process is unfrozen at an unspecified time in the future. Generally all binder transactions to frozen processes should be avoided to prevent the kernel async binder buffer from running out. Bug: 253913841 Test: freeze process and check logcat Change-Id: Ie0191b0b3b6b0a4a8481f27f3b0e64e4c1279cb5 [cmllamas: picked from libbinder, fixed merge conflicts] Signed-off-by: Carlos Llamas <cmllamas@google.com>
2024-02-03Revert "Log a warning when libhwbinder gets BR_TRANSACTION_PENDING_FROZEN"Carlos Llamas
This reverts commit 034e8fe57c33c5f7f6d5b228e96641f2733b06ae. Handling BR_TRANSACTION_PENDING_FROZEN in executeCommand() can lead to oneway calls getting stuck. A temporary solution to handle this response in waitForResponse() is implemented in a subsequent commit. Bug: 319168480 Change-Id: I35d2f45f2dbd71c0f6ea9584cce866f1061264dd Signed-off-by: Carlos Llamas <cmllamas@google.com>
2024-02-02Migrate Test Targets to New Android Ownership ModelAditya Choudhary
This CL is created as a best effort to migrate test targets to the new Android ownership model. It is based on historical data from repository history and insights from git blame. Given the nature of this effort, there may be instances of incorrect attribution. If you find incorrect or unnecessary attribution in this CL, please create a new CL to fix that. For detailed guidelines and further information on the migration please refer to the link below, go/new-android-ownership-model Bug: 304529413 Test: N/A Change-Id: If9603ec7c69bad0ccca9974d9a2f282fc1d763b0
2024-01-17Merge Android 24Q1 Release (ab/11220357)Xin Li
Bug: 319669529 Merged-In: Ica8454b22574c21f03c2667435a57a1214d4152f Change-Id: I3779c90c6a935b546ecc8a1fba7d46f507e70c86
2023-12-18Merge changes Ia3b535aa,I171a37af into main am: 7aa48af991Devin Moore
Original change: https://android-review.googlesource.com/c/platform/system/libhwbinder/+/2876983 Change-Id: Ia9f04f10ef776d5d3d2992b0ab96015ae3bc1fe8 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-12-18Merge changes Ia3b535aa,I171a37af into mainDevin Moore
* changes: Move the BR_TRANSACTION_SEC_CTX debug string Log a warning when libhwbinder gets BR_TRANSACTION_PENDING_FROZEN
2023-12-15Move the BR_TRANSACTION_SEC_CTX debug stringDevin Moore
It will end up in the same index as BR_TRANSACTION because they are both defined as reply 2 with the only difference being the size of the structs which is stored in the lower 14 bits of the top 16 bits of the 32-bit structure. When we index into this array, we use only the bottom 8 bits with _IOC_NRBITS. See the definition in bionic/libc/kernel/uapi/linux/android/binder.h Test: m Bug: none Change-Id: Ia3b535aa5609c6dcf318b3561af65f0c94c41348
2023-12-15Log a warning when libhwbinder gets BR_TRANSACTION_PENDING_FROZENDevin Moore
Test: m Bug: 313369251 Change-Id: I171a37af3a75f015cc75a456f8560b446d280424
2023-10-16[automerger skipped] Merge "libhwbinder: Make it available for nfc apex" ↵Roshan Pius
into main am: de0e2a44b5 am: de28216bb9 am: 4eba970a8e am: fb42639b41 am: 590e9463f6 -s ours am skip reason: Merged-In Ica8454b22574c21f03c2667435a57a1214d4152f with SHA-1 c09faf0114 is already in history Original change: https://android-review.googlesource.com/c/platform/system/libhwbinder/+/2773124 Change-Id: Ie2eb52911ef66ca2c1de5d0ba4445f13a0986091 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-10-16Merge "libhwbinder: Make it available for nfc apex" into main am: de0e2a44b5 ↵Roshan Pius
am: de28216bb9 am: 4eba970a8e am: fb42639b41 Original change: https://android-review.googlesource.com/c/platform/system/libhwbinder/+/2773124 Change-Id: I897c5df29b0c06f65ddec23b80199c29e25508ff Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-10-16Merge "libhwbinder: Make it available for nfc apex" into main am: de0e2a44b5 ↵Roshan Pius
am: de28216bb9 am: 4eba970a8e Original change: https://android-review.googlesource.com/c/platform/system/libhwbinder/+/2773124 Change-Id: I4b4c62448afb2996cd8054cabd715abb14b5f680 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-10-16Merge "libhwbinder: Make it available for nfc apex" into main am: de0e2a44b5 ↵Roshan Pius
am: de28216bb9 Original change: https://android-review.googlesource.com/c/platform/system/libhwbinder/+/2773124 Change-Id: I3be177ac54324b0849eb62ee01be7a660ac53ada Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-10-16Merge "libhwbinder: Make it available for nfc apex" into main am: de0e2a44b5Roshan Pius
Original change: https://android-review.googlesource.com/c/platform/system/libhwbinder/+/2773124 Change-Id: I235df01d28c7de6f25cb37328ecfc3d93981c790 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-10-16Merge "libhwbinder: Make it available for nfc apex" into mainRoshan Pius
2023-10-13libhwbinder: Make it available for nfc apexRoshan Pius
Bug: 303286040 Test: Compiles Merged-In: Ica8454b22574c21f03c2667435a57a1214d4152f Change-Id: Ica8454b22574c21f03c2667435a57a1214d4152f
2023-10-09libhwbinder: Make it available for nfc apexRoshan Pius
Bug: 303286040 Test: Compiles (cherry picked from https://android-review.googlesource.com/q/commit:c19cff6a7d80a8827e00b1fa9b05c81c893c087f) Merged-In: Ica8454b22574c21f03c2667435a57a1214d4152f Change-Id: Ica8454b22574c21f03c2667435a57a1214d4152f
2023-09-14Add missing std header am: 707a554cef am: f5935ad98b am: 769e7a1197 am: ↵Benjamin Lerman
917c011606 am: e8829b3cb0 Original change: https://android-review.googlesource.com/c/platform/system/libhwbinder/+/2750105 Change-Id: I7ffaff0da832e8c004579bd33656518842bb46c0 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-14Add missing std header am: 707a554cef am: f5935ad98b am: 769e7a1197 am: ↵Benjamin Lerman
917c011606 Original change: https://android-review.googlesource.com/c/platform/system/libhwbinder/+/2750105 Change-Id: I3260e8489a7fde1617edc64ffe70a15da8250717 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-14Add missing std header am: 707a554cef am: f5935ad98b am: 769e7a1197Benjamin Lerman
Original change: https://android-review.googlesource.com/c/platform/system/libhwbinder/+/2750105 Change-Id: I1f98adaa4cb3a42158b18dafbae6c2185c25717e Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-14Add missing std header am: 707a554cef am: f5935ad98bBenjamin Lerman
Original change: https://android-review.googlesource.com/c/platform/system/libhwbinder/+/2750105 Change-Id: Icf7e9750cf07c9dfeb60480fe43050e4471e500d Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-13Add missing std header am: 707a554cefBenjamin Lerman
Original change: https://android-review.googlesource.com/c/platform/system/libhwbinder/+/2750105 Change-Id: Ia256062467812e97fa8b5058a50f5952a59ccc9a Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-13Add missing std headerBenjamin Lerman
Change-Id: Ie0865c8fcf91d02cd12c7762a1bbf4d72e99924d
2023-08-16Use String8/16 c_str am: e97a1ec320 am: d295199fdb am: 51460f607c am: ↵Tomasz Wasilczyk
1beedfe9e1 am: 11c9b4f0c9 Original change: https://android-review.googlesource.com/c/platform/system/libhwbinder/+/2704655 Change-Id: I38715f002ba0e6575a3b827a5817dcfd425b414b Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-16Use String8/16 c_str am: e97a1ec320 am: d295199fdb am: 51460f607c am: 1beedfe9e1Tomasz Wasilczyk
Original change: https://android-review.googlesource.com/c/platform/system/libhwbinder/+/2704655 Change-Id: Ie028c2f57e13a1186a9e01232249fa1c95fa9e3a Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-16Use String8/16 c_str am: e97a1ec320 am: d295199fdb am: 51460f607cTomasz Wasilczyk
Original change: https://android-review.googlesource.com/c/platform/system/libhwbinder/+/2704655 Change-Id: I3c605ce1d96fadb4d8ed5ede9eacddb356504379 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-16Use String8/16 c_str am: e97a1ec320 am: d295199fdbTomasz Wasilczyk
Original change: https://android-review.googlesource.com/c/platform/system/libhwbinder/+/2704655 Change-Id: I23775800f46780ef7123717424394491c824cd89 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-16Use String8/16 c_str am: e97a1ec320Tomasz Wasilczyk
Original change: https://android-review.googlesource.com/c/platform/system/libhwbinder/+/2704655 Change-Id: I1f55329409ad223d2f0494c70135029f1d5e20be Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-14more buffer validationSteven Moreland
Bug: 294464949 Test: hidl_test Test: libHidlBase_parcel_fuzzer with test case Change-Id: I1f27c6d1d8a3fb189d510443c17f44aaff0488f2
2023-08-11Use String8/16 c_strTomasz Wasilczyk
Bug: 295394788 Test: make checkbuild Change-Id: Ia40faa8c2a974c43bcecf66566b6ed756b955a1f
2023-03-03Fix the missing std am: b858732354 am: da332d46c2 am: 63327e988e am: ↵zijunzhao
8defdbb4ef am: d81dc329e6 Original change: https://android-review.googlesource.com/c/platform/system/libhwbinder/+/2467700 Change-Id: I6d25defc9ae4317a14c9dc45f281c888a7f6e030 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-03Fix the missing std am: b858732354 am: da332d46c2 am: 63327e988e am: ↵zijunzhao
8defdbb4ef am: 1b6ff55c18 Original change: https://android-review.googlesource.com/c/platform/system/libhwbinder/+/2467700 Change-Id: Ic8d7f50948b9cf86f5be90853efc1099794d63bf Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-03Fix the missing std am: b858732354 am: da332d46c2 am: 63327e988e am: 8defdbb4efzijunzhao
Original change: https://android-review.googlesource.com/c/platform/system/libhwbinder/+/2467700 Change-Id: Ib70cc45da17f16a7b427678f687287c03a7d2bae Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-03Fix the missing std am: b858732354 am: da332d46c2 am: 63327e988e am: 8defdbb4efandroid-14.0.0_r27android-14.0.0_r26android-14.0.0_r25android-14.0.0_r24android-14.0.0_r23android-14.0.0_r22android-14.0.0_r21android-14.0.0_r20android-14.0.0_r19android-14.0.0_r18android-14.0.0_r17android-14.0.0_r16android14-qpr1-s2-releaseandroid14-qpr1-releasezijunzhao
Original change: https://android-review.googlesource.com/c/platform/system/libhwbinder/+/2467700 Change-Id: I608f578ac28b47957c9a04a05b83abe025a1d402 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>