android - 64 位版本的 adb 和 fastboot?

标签 android linux adb fastboot

我在 Debian 7.3、x64(已完全修补)上发现以下错误。

enter image description here

我很确定这是因为 adb 即使在其 SDK 工具的 64 位发行版中也是 32 位的

$ which adb 
/opt/android-sdk/platform-tools/adb
$ /opt/android-sdk/platform-tools/adb
bash: /opt/android-sdk/platform-tools/adb: No such file or directory
$ file /opt/android-sdk/platform-tools/adb
/opt/android-sdk/platform-tools/adb: ELF 32-bit LSB executable, Intel 80386, 
version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.8,
not stripped

我不想安装数百兆字节的 32 位二进制文​​件来支持 adbfastboot。 (例如,参见 Ubuntu 64 with Android 64 Bundle cannot find adb executable)。

我知道 2012 年在 Please port SDK tools to 64-bit on Linux (adb, aapt, etc) 有一个未完成的功能请求, 但没有采取任何行动(甚至没有确认)。

有谁知道 Google 是否制作了 64 位版本的 adb?如果没有,Google 是否有提供它们的计划?

最佳答案

好消息。它现在由 Debian 的优秀人员正式维护。

只需从主要的 debian 存储库安装 android-tools-adb(您还有 fastboot 和其他一些)(不需要添加存储库,因为它默认存在)

它是原生的 amd64 架构!

$ sudo aptitude install android-tools-adb
...
$ file /usr/bin/adb
/usr/bin/adb: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.32, BuildID[sha1]=b36a05975f3d903a4f0ee3e02b581cc71ddedf26, stripped

关于android - 64 位版本的 adb 和 fastboot?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21717178/

相关文章:

android - MasterDetailPage Xamarin Android 中的 native View

python - 如何在 python 中获得单调持续时间?

android - 在不改变方向的情况下旋转 Android 显示器

android-studio - 无法手动杀死 adb.exe

Android 手机停止通知与 PC 的 USB 连接

android - Dart - 如何设置 DateTime 对象的小时和分钟

android - 通过命令行(Makefile)手动创建android apk

Android 熄灯模式不起作用

linux - 无法在 Amazon Linux 实例上运行后台进程,但在 MAC OS X 上运行

linux - 如何在 Debian Wheezy 中编辑 GNOME3 配置