kirilamenski / adb_device_info_parser

Library for receiving information about an android device connected via USB

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

About

Adb Device Infp Parser - library for receiving information about the android device via USB using adb.

Usage

  1. Add following code into build.gradle of your project:
apply plugin: 'maven'


repositories {
    maven { url 'https://jitpack.io' }
}

dependencies {
    implementation 'com.github.kirilamenski:adb_device_info_parser:0.1.0'
}
  1. Connect android via USB
  2. Make sure you install adb on your computer
  3. Add java code:
    public static void main(String[] args) {
        AdbDeviceInfo deviceInfo = new AdbDeviceInfo();
        List<Device> devices = deviceInfo.getDevices();
        if (devices.size() > 0) {
            Device device = devices.get(0);
            System.out.println(device.toString());
        }
    }

About

Library for receiving information about an android device connected via USB


Languages

Language:Java 100.0%