{"id":20099656,"url":"https://github.com/tananaev/adblib","last_synced_at":"2025-04-05T21:10:35.804Z","repository":{"id":56175912,"uuid":"62273863","full_name":"tananaev/adblib","owner":"tananaev","description":"Java ADB library","archived":false,"fork":false,"pushed_at":"2021-01-03T18:48:12.000Z","size":180,"stargazers_count":290,"open_issues_count":12,"forks_count":51,"subscribers_count":13,"default_branch":"master","last_synced_at":"2025-03-29T20:09:49.426Z","etag":null,"topics":["adb","java"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tananaev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-06-30T02:45:12.000Z","updated_at":"2025-03-27T07:48:22.000Z","dependencies_parsed_at":"2022-08-15T14:10:13.065Z","dependency_job_id":null,"html_url":"https://github.com/tananaev/adblib","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tananaev%2Fadblib","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tananaev%2Fadblib/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tananaev%2Fadblib/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tananaev%2Fadblib/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tananaev","download_url":"https://codeload.github.com/tananaev/adblib/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247399885,"owners_count":20932880,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["adb","java"],"created_at":"2024-11-13T17:11:50.692Z","updated_at":"2025-04-05T21:10:35.786Z","avatar_url":"https://github.com/tananaev.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ADB Library - adblib\n\n## Overview\n\nA Java library implementation of [the ADB (Android Debug Bridge) network protocol](https://android.googlesource.com/platform/system/core/+/master/adb/protocol.txt).\n\nThis project is a fork of the [original library](https://github.com/cgutman/AdbLib) developed by Cameron Gutman.\n\n## Usage\n\nInclude dependency via Gradle:\n```groovy\ncompile 'com.tananaev:adblib:1.3'\n```\nor Maven:\n```xml\n\u003cdependency\u003e\n  \u003cgroupId\u003ecom.tananaev\u003c/groupId\u003e\n  \u003cartifactId\u003eadblib\u003c/artifactId\u003e\n  \u003cversion\u003e1.3\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\nTo be able to connect to the ADB daemon on Android phone, you need to enable it to listen to TCP connections. To do that, connect your phone via USB cable and run following adb command:\n```\nadb tcpip 5555\n```\n\nDisconnect USB cable before trying to connect using the library. Some phones have problems handling TCP connection when they are connected via USB as well.\n\nMore info about Android remote debugging can be found on the official [Android developer website](https://developer.android.com/studio/command-line/adb.html#wireless).\n\nSample library usage example:\n```java\nSocket socket = new Socket(\"192.168.1.42\", 5555); // put phone IP address here\n\nAdbCrypto crypto = AdbCrypto.generateAdbKeyPair(new AdbBase64() {\n    @Override\n    public String encodeToString(byte[] data) {\n        return DatatypeConverter.printBase64Binary(data);\n    }\n});\n\nAdbConnection connection = AdbConnection.create(socket, crypto);\nconnection.connect();\n\nAdbStream stream = connection.open(\"shell:logcat\");\n\n...\n```\n\n## License\n\n    Copyright (c) 2013, Cameron Gutman\n    All rights reserved.\n\n    Redistribution and use in source and binary forms, with or without modification,\n    are permitted provided that the following conditions are met:\n\n      Redistributions of source code must retain the above copyright notice, this\n      list of conditions and the following disclaimer.\n\n      Redistributions in binary form must reproduce the above copyright notice, this\n      list of conditions and the following disclaimer in the documentation and/or\n      other materials provided with the distribution.\n\n      Neither the name of the {organization} nor the names of its\n      contributors may be used to endorse or promote products derived from\n      this software without specific prior written permission.\n\n    THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND\n    ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED\n    WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\n    DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR\n    ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES\n    (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;\n    LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON\n    ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n    (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\n    SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftananaev%2Fadblib","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftananaev%2Fadblib","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftananaev%2Fadblib/lists"}