forked from pool/android-tools
- Update to version 35.0.2
* adb
- Fix openscreen mDNS backend bug bringing down server on
truncated query issue #294120933.
- Make openscreen mDNS backend work on macOS.
- Make openscreen mDNS backend default on all platforms.
- Support to detect USB SuperSpeed+ (current and negotiated
speeds) for diagnostic purposes.
- Graceful shutdown: Release all USB interfaces on shutdown
(all OSes).
* CMake: Add option to link libusb with libudev
* patches/adb: Combine similar patch to workaround nullability
specifier
* CMake: Add option to use bundled libusb library
* CMake: Add option to use system fmt library
* vendor: Don't use absolute dir for mkbootimg symlink
* vendor: mkbootimg: Use builtin ${CMAKE_INSTALL_BINDIR} instead
of relative bin
* vendor: Remove unused native submodule
* vendor: Remove unused incremental_delivery submodule
* CMake: Remove leftovers after base submodule removal
* Remove unused patch for libandroidfw
* Remove libandroidfw: it was never used
* CMake: Install adb man page
* boringssl: Workaround compiler error with gcc-14 and _Generic
- Remove man-pages.tar.gz, use upstream man pages
OBS-URL: https://build.opensuse.org/request/show/1197517
OBS-URL: https://build.opensuse.org/package/show/hardware/android-tools?expand=0&rev=68
93 lines
2.8 KiB
Diff
93 lines
2.8 KiB
Diff
diff -ruN a/CMakeLists.txt b/CMakeLists.txt
|
|
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -14,8 +14,7 @@
|
|
option(ANDROID_TOOLS_LIBUSB_ENABLE_UDEV "Enable udev for device enumeration and hotplug support" OFF)
|
|
|
|
# Install bash/zsh completion files.
|
|
-set(COMPLETION_COMMON_DIR "${CMAKE_INSTALL_FULL_DATADIR}/android-tools/completions")
|
|
-add_subdirectory(completions)
|
|
+set(COMPLETION_COMMON_DIR "${CMAKE_INSTALL_FULL_DATADIR}/bash-completion/completions")
|
|
|
|
# Android provides it's own version of mke2fs which is incompatible with
|
|
# the version shipped by e2fsprogs. To prevent a name clash we install
|
|
diff -ruN a/vendor/adb/adb.bash b/vendor/adb/adb.bash
|
|
--- a/vendor/adb/adb.bash
|
|
+++ b/vendor/adb/adb.bash
|
|
@@ -16,11 +16,11 @@
|
|
#
|
|
|
|
_adb() {
|
|
- if ! check_type "$1" >/dev/null; then
|
|
+ if ! type -t "$1" >/dev/null; then
|
|
return
|
|
fi
|
|
|
|
- if check_type _init_completion >/dev/null; then
|
|
+ if type -t _init_completion >/dev/null; then
|
|
_init_completion || return
|
|
fi
|
|
|
|
@@ -455,7 +455,7 @@
|
|
fi
|
|
|
|
# Since we're probably doing file completion here, don't add a space after.
|
|
- if [[ $(check_type compopt) == "builtin" ]]; then
|
|
+ if [[ $(type -t compopt) == "builtin" ]]; then
|
|
compopt -o nospace
|
|
fi
|
|
|
|
@@ -471,7 +471,7 @@
|
|
xspec=$2
|
|
|
|
# Since we're probably doing file completion here, don't add a space after.
|
|
- if [[ $(check_type compopt) == "builtin" ]]; then
|
|
+ if [[ $(type -t compopt) == "builtin" ]]; then
|
|
compopt -o plusdirs
|
|
if [[ "${xspec}" == "" ]]; then
|
|
COMPREPLY=( ${COMPREPLY[@]:-} $(compgen -f -- "${cur}") )
|
|
@@ -512,7 +512,7 @@
|
|
}
|
|
|
|
|
|
-if [[ $(check_type compopt) == "builtin" ]]; then
|
|
+if [[ $(type -t compopt) == "builtin" ]]; then
|
|
complete -F _adb adb
|
|
else
|
|
complete -o nospace -F _adb adb
|
|
diff -ruN a/vendor/core/fastboot/fastboot.bash b/vendor/core/fastboot/fastboot.bash
|
|
--- a/vendor/core/fastboot/fastboot.bash
|
|
+++ b/vendor/core/fastboot/fastboot.bash
|
|
@@ -16,11 +16,11 @@
|
|
#
|
|
|
|
_fastboot() {
|
|
- if ! check_type "$1" >/dev/null; then
|
|
+ if ! type -t "$1" >/dev/null; then
|
|
return
|
|
fi
|
|
|
|
- if check_type _init_completion >/dev/null; then
|
|
+ if type -t _init_completion >/dev/null; then
|
|
_init_completion || return
|
|
fi
|
|
|
|
@@ -135,7 +135,7 @@
|
|
xspec=$2
|
|
|
|
# Since we're probably doing file completion here, don't add a space after.
|
|
- if [[ $(check_type compopt) == "builtin" ]]; then
|
|
+ if [[ $(type -t compopt) == "builtin" ]]; then
|
|
compopt -o plusdirs
|
|
if [[ "${xspec}" == "" ]]; then
|
|
COMPREPLY=( ${COMPREPLY[@]:-} $(compgen -f -- "${cur}") )
|
|
@@ -175,7 +175,7 @@
|
|
fi
|
|
}
|
|
|
|
-if [[ $(check_type compopt) == "builtin" ]]; then
|
|
+if [[ $(type -t compopt) == "builtin" ]]; then
|
|
complete -F _fastboot fastboot
|
|
else
|
|
complete -o nospace -F _fastboot fastboot
|