-
Notifications
You must be signed in to change notification settings - Fork 712
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is adbd supposed to work with normal linux kernel? I tried and failed. #147
Comments
this should be a bug, please post any stack traces or debug information that you can collect |
@kraj I want to know: is it supposed to work on a normal linux build? I know there are multiple partitions on android's system partition, but there are only two ( boot and rootfs ) partitions on normal linux build. Is this the reason adbd cannot work? But if adbd is supposed to work on a normal linux, I would like to pay more time on finding the reason. Thanks |
@shr-project might have more to add on adb usage on OE, but I think the fact that its crashing is a bug that should be fixed |
It's not supposed to work on a normal linux build. We (LuneOS) are using android-tools-native to create fastboot images and target android-tools together with Halium which provides necessary support in kernel and rootfs, see meta-android layer for example how to use it. |
@shr-project does it make sense then to limit the recipe to built native and nativesdk alone and not for target |
We're using target version as well as mentioned above, limiting it to native(sdk) would force us to add bbappend re-enabling it for target. |
I am now able to run adb daemon with systemd on a linux device (rpi zero w) with the following in IMAGE_INSTALL_append = " android-tools-adbd"
PREFERRED_PROVIDER_android-tools-conf = "android-tools-conf-configfs" You'll need to I am connecting the rpi zero w to host using USB OTG port, and meta-raspberrypi BSP layer requires the following in ENABLE_DWC2_PERIPHERAL = "1" |
Cool! |
This can be converted into a patch for adb. Are you up for it ?
|
Sorry - can't look into this at the moment. |
Was your comment regarding the patch due to this?
If so, this may not be an issue but a feature - we might want to leave control of whether usb debugging (adbd) is enabled, or not, to the device. |
Agreed, users should enable it only when needed or it could be enabled only for some images (like debug-tweaks IMAGE_FEATURE can be enabled only in some images), we're using ROOTFS_POSTPROCESS_COMMAND to enable it only in "devel" images: |
I am unable to get adbd to work with |
I've posted the log at https://github.com/tewarid/berry/issues/3#issue-894672636. |
Added: core: implement Device.__eq__() (#147) Changed: libusb0: implement is_kernel_driver_active() for FreeBSD and DragonFly BSD (#365) libusb0: implement is_kernel_driver_active() for Mac OS (#374) Fixed: setup: prevent installation on unsupported Python versions (PR #364) control: fix undefined USBError (#372) tests: fix legacy/hardware tests for Python 3.9 (#373) Add runtime dependency to resolve errors that occurred when import usb. Signed-off-by: Zang Ruochen <[email protected]> Signed-off-by: Khem Raj <[email protected]>
Added: core: implement Device.__eq__() (openembedded#147) Changed: libusb0: implement is_kernel_driver_active() for FreeBSD and DragonFly BSD (openembedded#365) libusb0: implement is_kernel_driver_active() for Mac OS (openembedded#374) Fixed: setup: prevent installation on unsupported Python versions (PR openembedded#364) control: fix undefined USBError (openembedded#372) tests: fix legacy/hardware tests for Python 3.9 (openembedded#373) Add runtime dependency to resolve errors that occurred when import usb. Signed-off-by: Zang Ruochen <[email protected]> Signed-off-by: Khem Raj <[email protected]>
Added: core: implement Device.__eq__() (openembedded#147) Changed: libusb0: implement is_kernel_driver_active() for FreeBSD and DragonFly BSD (openembedded#365) libusb0: implement is_kernel_driver_active() for Mac OS (openembedded#374) Fixed: setup: prevent installation on unsupported Python versions (PR openembedded#364) control: fix undefined USBError (openembedded#372) tests: fix legacy/hardware tests for Python 3.9 (openembedded#373) Add runtime dependency to resolve errors that occurred when import usb. Signed-off-by: Zang Ruochen <[email protected]> Signed-off-by: Khem Raj <[email protected]>
Added: core: implement Device.__eq__() (openembedded#147) Changed: libusb0: implement is_kernel_driver_active() for FreeBSD and DragonFly BSD (openembedded#365) libusb0: implement is_kernel_driver_active() for Mac OS (openembedded#374) Fixed: setup: prevent installation on unsupported Python versions (PR openembedded#364) control: fix undefined USBError (openembedded#372) tests: fix legacy/hardware tests for Python 3.9 (openembedded#373) Add runtime dependency to resolve errors that occurred when import usb. Signed-off-by: Zang Ruochen <[email protected]> Signed-off-by: Khem Raj <[email protected]>
Added: core: implement Device.__eq__() (#147) Changed: libusb0: implement is_kernel_driver_active() for FreeBSD and DragonFly BSD (#365) libusb0: implement is_kernel_driver_active() for Mac OS (#374) Fixed: setup: prevent installation on unsupported Python versions (PR #364) control: fix undefined USBError (#372) tests: fix legacy/hardware tests for Python 3.9 (#373) Add runtime dependency to resolve errors that occurred when import usb. Signed-off-by: Zang Ruochen <[email protected]> Signed-off-by: Khem Raj <[email protected]> Signed-off-by: Trevor Gamblin <[email protected]>
android-tools-adbd service can be enabled in the image using USB_DEBUGGING_ENABLED = "1" in local.conf. Signed-off-by: Devendra Tewari <[email protected]>
Stray newline character causes issues in configfs scripts used in android-tools-adbd.service. Signed-off-by: Devendra Tewari <[email protected]>
Stray newline character causes issues in functionfs setup scripts used by android-tools-adbd.service. Signed-off-by: Devendra Tewari <[email protected]>
Stray newline character causes errors in functionfs setup scripts used by android-tools-adbd.service, when using musl libc and/or toybox. Signed-off-by: Devendra Tewari <[email protected]>
Stray newline character causes errors in functionfs setup scripts used by android-tools-adbd.service, when using musl libc and/or toybox. Signed-off-by: Devendra Tewari <[email protected]> Signed-off-by: Khem Raj <[email protected]>
Stray newline character causes errors in functionfs setup scripts used by android-tools-adbd.service, when using musl libc and/or toybox. Signed-off-by: Devendra Tewari <[email protected]> Signed-off-by: Khem Raj <[email protected]>
android-tools-adbd service can be enabled in the image using USB_DEBUGGING_ENABLED = "1" in local.conf. Signed-off-by: Devendra Tewari <[email protected]>
android-tools-adbd service can be enabled in the image using USB_DEBUGGING_ENABLED = "1" in local.conf. Signed-off-by: Devendra Tewari <[email protected]>
Stray newline character causes errors in functionfs setup scripts used by android-tools-adbd.service, when using musl libc and/or toybox. Signed-off-by: Devendra Tewari <[email protected]>
android-tools-adbd service can be enabled in the image using USB_DEBUGGING_ENABLED = "1" in local.conf. Signed-off-by: Devendra Tewari <[email protected]>
Stray newline character causes errors in functionfs setup scripts used by android-tools-adbd.service, when using musl libc and/or toybox. Signed-off-by: Devendra Tewari <[email protected]>
Stray newline character causes errors in functionfs setup scripts used by android-tools-adbd.service, when using musl libc and/or toybox. Signed-off-by: Devendra Tewari <[email protected]>
android-tools-adbd service can be enabled in the image using USB_DEBUGGING_ENABLED = "1" in local.conf. Signed-off-by: Devendra Tewari <[email protected]>
android-tools-adbd service can be enabled in the image using USB_DEBUGGING_ENABLED = "1" in local.conf. Signed-off-by: Devendra Tewari <[email protected]>
android-tools-adbd service can be enabled in the image using USB_DEBUGGING_ENABLED = "1" in local.conf. Signed-off-by: Devendra Tewari <[email protected]> Signed-off-by: Khem Raj <[email protected]>
android-tools-adbd service can be enabled in the image using USB_DEBUGGING_ENABLED = "1" in local.conf. Signed-off-by: Devendra Tewari <[email protected]> Signed-off-by: Khem Raj <[email protected]>
Stray newline character causes errors in functionfs setup scripts used by android-tools-adbd.service, when using musl libc and/or toybox. Signed-off-by: Devendra Tewari <[email protected]> Signed-off-by: Khem Raj <[email protected]> (cherry picked from commit db5f487) Signed-off-by: Armin Kuster <[email protected]>
android-tools-adbd service can be enabled in the image using USB_DEBUGGING_ENABLED = "1" in local.conf. Signed-off-by: Devendra Tewari <[email protected]>
android-tools-adbd service can be enabled in the image using USB_DEBUGGING_ENABLED = "1" in local.conf. Signed-off-by: Devendra Tewari <[email protected]>
- Change branch name master -> main according to upstream repository. - Update 2.0.15 -> 2.0.16. Changelog: 1df82b9 Add param traits for CL_DEVICE_SUPPORTED_REGISTER_ALLOCATIONS_ARM (openembedded#165) 814e7b2 update the C++ bindings code example (openembedded#151) 6d833a5 Update opencl.hpp: Add CL_DEVICE_BOARD_NAME_AMD (openembedded#160) 25ad589 Added missing definitions for deprecated prefixes and suffixes for version 2.2 (openembedded#159) 21a34b0 Test two additional defines and update descriptions in header (openembedded#147) ff7318c Fix cl::enqueueMapSVM for cl::vector and cl::pointer (openembedded#145) 30d4219 Test most of the possible defines (openembedded#140) 63d9e41 Fix unreasonable error handling in opencl.hpp (openembedded#139) 0198c41 Add support for cl_khr_integer_dot_product v2 (openembedded#141) 8df6c8f Transition CI to Github Actions (openembedded#142) Signed-off-by: Daniel Gomez <[email protected]> Signed-off-by: Khem Raj <[email protected]>
- Change branch name master -> main according to upstream repository. - Update 2.0.15 -> 2.0.16. Changelog: 1df82b9 Add param traits for CL_DEVICE_SUPPORTED_REGISTER_ALLOCATIONS_ARM (openembedded#165) 814e7b2 update the C++ bindings code example (openembedded#151) 6d833a5 Update opencl.hpp: Add CL_DEVICE_BOARD_NAME_AMD (openembedded#160) 25ad589 Added missing definitions for deprecated prefixes and suffixes for version 2.2 (openembedded#159) 21a34b0 Test two additional defines and update descriptions in header (openembedded#147) ff7318c Fix cl::enqueueMapSVM for cl::vector and cl::pointer (openembedded#145) 30d4219 Test most of the possible defines (openembedded#140) 63d9e41 Fix unreasonable error handling in opencl.hpp (openembedded#139) 0198c41 Add support for cl_khr_integer_dot_product v2 (openembedded#141) 8df6c8f Transition CI to Github Actions (openembedded#142) Signed-off-by: Daniel Gomez <[email protected]> Signed-off-by: Khem Raj <[email protected]>
- Change branch name master -> main according to upstream repository. - Update 2.0.15 -> 2.0.16. Changelog: 1df82b9 Add param traits for CL_DEVICE_SUPPORTED_REGISTER_ALLOCATIONS_ARM (openembedded#165) 814e7b2 update the C++ bindings code example (openembedded#151) 6d833a5 Update opencl.hpp: Add CL_DEVICE_BOARD_NAME_AMD (openembedded#160) 25ad589 Added missing definitions for deprecated prefixes and suffixes for version 2.2 (openembedded#159) 21a34b0 Test two additional defines and update descriptions in header (openembedded#147) ff7318c Fix cl::enqueueMapSVM for cl::vector and cl::pointer (openembedded#145) 30d4219 Test most of the possible defines (openembedded#140) 63d9e41 Fix unreasonable error handling in opencl.hpp (openembedded#139) 0198c41 Add support for cl_khr_integer_dot_product v2 (openembedded#141) 8df6c8f Transition CI to Github Actions (openembedded#142) Signed-off-by: Daniel Gomez <[email protected]> Signed-off-by: Khem Raj <[email protected]>
Changelog: =========== * bugfix openembedded#147: Allow for tabs in whitespace before quoted rdata fields. * bugfix openembedded#149: Add some missing [out] annotations to doxygen parameters. * Fix build error on Solaris 10 with inet_ntop redeclaration error. * Fix -U flag with ldns-signzone. * Enable compile of SVCB and HTTPS support by default. * bugfix openembedded#179: Free line memory even if zone file parsing fails * bugfix openembedded#166: Grow buffer when writing chars and fixed size strings when converting to presentation format, preventing potential assersion errors. * bugfix openembedded#46: Print network errors when secure tracing. * EDNS0 Option handling and conversion into presentation format. * bugfix openembedded#145: ldns-verify-zone should not call occluded records glue. Signed-off-by: Wang Mingyu <[email protected]> Signed-off-by: Khem Raj <[email protected]>
Changelog: =========== * bugfix openembedded#147: Allow for tabs in whitespace before quoted rdata fields. * bugfix openembedded#149: Add some missing [out] annotations to doxygen parameters. * Fix build error on Solaris 10 with inet_ntop redeclaration error. * Fix -U flag with ldns-signzone. * Enable compile of SVCB and HTTPS support by default. * bugfix openembedded#179: Free line memory even if zone file parsing fails * bugfix openembedded#166: Grow buffer when writing chars and fixed size strings when converting to presentation format, preventing potential assersion errors. * bugfix openembedded#46: Print network errors when secure tracing. * EDNS0 Option handling and conversion into presentation format. * bugfix openembedded#145: ldns-verify-zone should not call occluded records glue. Signed-off-by: Wang Mingyu <[email protected]> Signed-off-by: Khem Raj <[email protected]>
This reverts commit db5f487. Signed-off-by: Devendra Tewari <[email protected]>
This reverts commit db5f487. Signed-off-by: Devendra Tewari <[email protected]> Signed-off-by: Khem Raj <[email protected]>
This reverts commit db5f487. Signed-off-by: Devendra Tewari <[email protected]> Signed-off-by: Khem Raj <[email protected]>
This reverts commit db5f487. Increase sleep to 10 seconds otherwise interface is not ready on rpi0w. Signed-off-by: Devendra Tewari <[email protected]>
Changelog: =========== - openembedded#147 fix test which failed due to behavior changes in OpenSSL 3.2 - update PublicSuffix - add examples for TLS JA3/JA4 fingerprinting to tls_fingerprint/ Signed-off-by: Wang Mingyu <[email protected]> Signed-off-by: Khem Raj <[email protected]>
Changelog: =========== - openembedded#147 fix test which failed due to behavior changes in OpenSSL 3.2 - update PublicSuffix - add examples for TLS JA3/JA4 fingerprinting to tls_fingerprint/ Signed-off-by: Wang Mingyu <[email protected]> Signed-off-by: Khem Raj <[email protected]>
I'm using warrior branch ( 2.7.1 ), built with Qualcomm snapdragon 845c board (manifests, linux kernel: linux-linaro-qcomlt/5.2-r0) , and put
to install adb daemon, but it doesn't start up, and I see /usr/bin/android-setup-gadget, there is no
/system/build.prop
,/sys/class/android_usb/*
files to operate onadbd --help
will return segmentation faultThe text was updated successfully, but these errors were encountered: