1 Star 0 Fork 2

leiguangyu / adb

forked from Gitee 极速下载 / adb 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README

=== adb is a useful tool for debugging android devices, you can download the binary from google/android.com(mostly), but it only supports small amount devices. To support some specific android device, you need to add the VID, add udev rule, etc. If you want to support your devices natively of adb, you should change the usb_vendors.c code, then build the whole android source to get the adb tool. It cause too much to gain the benity.

This project is to build the adb source standalone out of the Android build script system. I merged the main adb source with some essential libraries (libcutils and libzipfile), and add Makefile for it.

  • This project has supported fastboot (from 0.1.0).

=== INSTRUCTIONS:

  1. After get the source, you can change the usb_vendor_ids.c to add your VID. use debian/gen_udev_rules.sh to generate udev rule for those VID.

  2. make build the adb and fastboot

  3. make install install the adb and fastboot into /usr/bin/ configure the udev

  4. copy 51-android.rules to /etc/udev/rules.d/

=== TO BUILD .DEB PACKAGE

  1. Check dpkg tools (dpkg-dev, dh-make, debhelper, fakeroot, etc.)

  2. run dpkg-buildpackage -rfakeroot -b to generate .deb package (To install the package, you could use sudo dpkg -i ../adb_x.x.x-1.xxx.deb)

=== OR DOWNLOAD the prebuilt package

https://github.com/downloads/karfield/adb/adb_0.1.0-1_amd64.deb

install the deb by graphic installer or command(sudo dpkg -i xxx.deb)

For Mac

Howto compile? git clone this repo. run ./autogen.sh make install

to support homebrew use

  1. brew create https://github.com/downloads/karfield/adb/adb-mac-1.0.1.tgz

Give a name: Adb4Mac

  1. brew edit Adb4Mac

Modify like this: require 'formula'

class Adb4Mac < Formula
    homepage 'https://git.hub/karfield/adb/'
    url 'https://github.com/downloads/karfield/adb/adb-1.0.1.tgz'
    md5 '308a5476fc096a8a525d07279a6f6aa3' ## dont mod this line, it's auto-gen
    
    def install
       system "./autogen.sh"
       system "./configure", "--prefix=#{prefix}"
       system 'make install'
    end
end
  1. brew install Adb4Mac

if you don't compile this on your mac, just download the excutable bin files, copy them (adb and fastboot) into wherever you wannt. OR run install-adb-for-mac.sh(download https://github.com/downloads/karfield/adb/install-adb-for-mac.tar.gz)

Enjoy it!

空文件

简介

adb 是一个独立第三方开发的 Android Debug Bridge( ADB ) 工具 展开 收起
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/leiguangyu/adb.git
git@gitee.com:leiguangyu/adb.git
leiguangyu
adb
adb
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891