Giter VIP home page Giter VIP logo

adb's Introduction

=== 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's People

Contributors

karfield avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.