Sunday 13 August 2017

Adb Linux Download Binär Option


Android Debug Bridge ADB Dieses Tool ermöglicht es Ihnen, eine breite Palette von Terminal-Befehle zu senden, einschließlich, aber nicht beschränkt auf grundlegende Linux-Shell-Befehle plus einige Spezialität Entwickler-Befehle auf Ihr Telefon zu jeder Zeit, so lange wie Sie Debugging aktiviert auf Ihrem Handy können Sie Senden Sie Befehle, während das Telefon eingeschaltet und gebootet wird, oder sogar, wenn es im Wiederherstellungsmodus ist Während ADB häufig in Verbindung mit dem Wurzeln oder dem Ändern Ihres Telefons verwendet wird, können Sie ADB verwenden, um Terminalbefehle zu den nicht entwurzelten Geräten zu senden. Fastboot Wenn Sie Müssen Sie Ihr Handy s Firmware zu ändern, Fastboot ist das Werkzeug, das Sie benötigen Dies ermöglicht es Ihnen, Befehle an den Bootloader zu senden, was bedeutet, dass Sie blinken können, um Dinge wie benutzerdefinierte Wiederherstellungen zu ändern Sie können t Flash ganze ROMs mit ihm, aber es ist hilfreich für viele Dinge Dass ADB kann t tun Fastboot isn t für alle Handys aktiviert, so müssen Sie möglicherweise Ihre spezifische device. Both von diesen Tools kommen mit dem Android SDK, aber das ist ein extrem großer Download, dass ehrlich gesagt, die meisten Benutzer, die interessiert sind ADB und Fastboot don t brauchen Glücklicherweise hat Google vor kurzem es leicht gemacht, diese beiden ohne all junk. Step 1 Download der Plattform Tools Package. Google kollektiv bezieht sich auf ADB, Fastboot und ein paar andere Dienstprogramme als das Plattform-Tools-Paket können Sie Laden Sie das Plattform-Tools-Paket von der SDK-Website hier herunter Es gibt separate Pakete für Windows, Mac und Linux, laden Sie die entsprechende Version für Ihre Plattform herunter. Modifizieren Sie Ihr Android-Gerät erfordert in der Regel, dass Sie ADB-Tools installiert haben, ohne dass Sie nicht Zugriff haben Zu Entwickler-Befehle, die in den meisten unserer letzten Guides enthalten sind Diese Kurzanleitung zeigt Ihnen, wie Sie die Google S ADB-Tools-Software auf Ihrem Windows-, Mac - oder Linux-Computer in Minuten installieren und konfigurieren können. Was ADB verwendet wird. Das ADB Android Debug Bridge ist ein leistungsfähiges Kommandozeilen-Tool, das von Google für Android-Entwickler erstellt wurde. ADB ermöglicht es Entwicklern, ihre Anwendungen mit einer Auswahl an nützlichen Befehlen zu debuggen. Wenn zum Beispiel ein Entwickler den Zustand eines Geräts kennen wollte, bevor seine Anwendung abgestürzt war, konnten sie einfach adb eingeben Logcat in ihre Kommandozeile, um eine lange Liste von Nachrichten und Hinweisen aus ihrem Gerät zu erhalten Einige der ADB-Befehle können auch für andere Personen nützlich sein Die Adb-Seitenbuch-Befehle erlauben es den Menschen, OTA-Over-the-Air-Updates und andere Software auf ihre zu installieren Telefon anstatt auf das Update oder die App zu warten, um von Google aufgerollt zu werden. Wenn du ADB einrufst, bekommst du Fastboot-Befehle, zu Fastboot-Befehlen wie Fastboot-Flash ermöglicht es Ihnen, benutzerdefinierte Wiederherstellungen und Kernel zu installieren. Laden Sie das Android SDK oder das One-Click-ADB-Installationsprogramm. Head auf die Android-Entwickler-Seite zum Download der Android-SDK Platzieren Sie die SDK-Datei überall auf Ihrem System. Wenn Sie auf Windows, haben Sie die Möglichkeit, diese praktische One-Click-Installer stattdessen verwenden, wenn Sie sich entscheiden Verwenden Sie den Ein-Klick-Installer, können Sie hier aufhören zu lesen. Setzen Sie die PATH-Variable. Die ADB-Tools können nun über Ihre Kommandozeile zugegriffen werden, aber nur, wenn Sie in der Plattform-Tools-Verzeichnis im SDK-Ordner gefunden, um Dinge zu machen Bequemer, können Sie eine PATH-Variable auf ADB, so dass Sie die Werkzeuge von überall in Ihrer Kommandozeile. On Mac oder Linux, öffnen Sie Ihr Terminal und geben Sie nano. Drücken Sie die Eingabetaste Dieser Befehl öffnet einen Texteditor, so dass Sie die Datei ändern können, die Ihr System enthält. S PATH-Variablen Fügen Sie diese Zeile zu Ihrer Datei hinzu, mit dem notwendigen Information. export PATH PATH Benutzer Ihren Benutzernamen Pfad zu Plattform-Tools. I entschieden zu machen Eine Kopie der Plattform-Tools-Datei, so dass meine PATH-Variable sieht so aus. Nachdem Sie die Änderung vorgenommen haben, speichern Sie Ihre Änderungen durch gleichzeitiges Drücken der Option und X-Tasten Testen Sie die ADB-Tools mit dem Befehl adb devices Wenn Sie eine Liste der angeschlossenen Geräte, haben Sie ADB richtig eingerichtet Wenn Sie sehen, Adb-Befehl nicht gefunden, gehen Sie zurück und stellen Sie sicher, dass Sie Ihre PATH-Variable speziell das Teil, das den Pfad zu den Plattform-Tools ausgeschrieben korrekt enthält. Jetzt haben Sie ADB Auf Ihrem Computer können Sie Dinge wie Flash ein Fabrik-Bild oder installieren Sie eine OTA, ohne auf das Update warten von Google. Android Debug Bridge zu kommen. In diesem Dokument. Android Debug Bridge Adb ist ein vielseitiges Kommandozeilen-Tool, das lässt Sie kommunizieren mit einem Gerät einen Emulator oder ein angeschlossenes Android-Gerät Der Adb-Befehl erleichtert eine Vielzahl von Geräteaktionen, wie zum Beispiel das Installieren und Debuggen von Apps und bietet Zugriff auf eine Unix-Shell, mit der Sie eine Vielzahl von Befehlen auf einem Gerät ausführen können Es handelt sich um ein Client-Server-Programm, das drei Komponenten enthält. Ein Client, der Befehle sendet Der Client läuft auf Ihrem Entwicklungscomputer Sie können einen Client von einem Befehlszeilen-Terminal aus aufrufen, indem er einen adb-Befehl ausgibt. Daemon-Adbd, der Befehle auf einem Gerät ausführt Der Dämon läuft als Hintergrundprozess auf jedem Gerät. Ein Server, der die Kommunikation zwischen dem Client und dem Daemon verwaltet Der Server läuft als Hintergrundprozess auf Ihrer Entwicklungsmaschine. Adb ist im Android SDK Platform-Tools Paket enthalten. Sie können dieses Paket herunterladen Mit dem SDK-Manager, der es auf androidsdk Plattform-Tools installiert oder wenn du das Standalone Android SDK Platform-Tools Paket willst, kannst du es hier herunterladen. How adb works. Wenn Sie einen Adb-Client starten, prüft der Client zunächst, ob es einen gibt Adb-Server-Prozess läuft bereits Wenn es nicht t ist, startet es den Server-Prozess Wenn der Server startet, bindet er an den lokalen TCP-Port 5037 und hört auf Befehle, die von Adb-Clients gesendet werden. Alle Adb-Clients verwenden Port 5037, um mit dem Adb-Server zu kommunizieren. Der Server Dann stellt man Verbindungen zu allen laufenden Geräten her. Es lokalisiert Emulatoren durch Scannen ungeradzahliger Ports im Bereich von 5555 bis 5585, der Bereich, der von den ersten 16 Emulatoren verwendet wird. Wo der Server einen Adb-Daemon adbd findet, stellt er eine Verbindung zu diesem Port her. Hinweis Dass jeder Emulator ein Paar sequentieller Ports einen geradzahligen Port für Konsolenverbindungen und einen ungeradzahligen Port für Adb-Verbindungen verwendet. Zum Beispiel. Emulator 1, Konsole 5554 Emulator 1, adb 5555 Emulator 2, Konsole 5556 Emulator 2, adb 5557 und So on. As gezeigt, ist der Emulator, der mit adb auf Port 5555 verbunden ist, derselbe wie der Emulator, dessen Konsole auf Port 5554 hört. Wenn der Server Verbindungen zu allen Geräten eingerichtet hat, können Sie Adb-Befehle verwenden, um auf diese Geräte zuzugreifen. Weil der Server Verwaltet Verbindungen zu Geräten und behandelt Befehle von mehreren Adb-Clients, Sie können jedes Gerät von jedem Client oder von einem script. Enable adb Debugging auf Ihrem device. To verwenden Adb mit einem Gerät über USB verbunden, müssen Sie USB-Debugging im Gerät aktivieren System-Einstellungen unter Developer options. On Android 4 2 und höher, ist der Entwickler-Optionen-Bildschirm standardmäßig ausgeblendet Um es sichtbar zu machen, gehen Sie zu Einstellungen über Telefon und tippen Sie auf Build-Nummer sieben Mal Zurück zum vorherigen Bildschirm zu finden Entwickler-Optionen am unteren Rand . Bei einigen Geräten kann sich der Entwickleroptionsbildschirm befinden oder anders benannt haben. Sie können nun Ihr Gerät mit USB verbinden. Sie können überprüfen, ob Ihr Gerät durch das Ausführen von Adb-Geräten aus dem androidsdk-Plattform-Tools-Verzeichnis verbunden ist. Wenn Sie verbunden sind, sehen Sie die Gerätename, der als Gerät aufgeführt wird. Hinweis Wenn Sie ein Gerät mit Android 4 2 2 oder höher anschließen, zeigt das System einen Dialog an, in dem gefragt wird, ob ein RSA-Schlüssel akzeptiert werden soll, der das Debugging durch diesen Computer ermöglicht. Dieser Sicherheitsmechanismus schützt Benutzergeräte, da er sicherstellt, dass USB Debugging und andere Adb-Befehle können nicht ausgeführt werden, es sei denn, Sie können das Gerät entsperren und den Dialog quittieren. Wenn mehr Informationen über die Verbindung zu einem Gerät über USB, lesen Sie Run Apps auf einem Hardware Device. Connect auf ein Gerät über Wi-Fi. adb In der Regel kommuniziert mit dem Gerät über USB, aber Sie können auch Adb über Wi-Fi nach einigen ersten Setup über USB, wie unten beschrieben Wenn Sie sich für Android Wear, aber Sie sollten stattdessen sehen Sie die Anleitung zum Debuggen einer Android Wear App Die spezielle Anweisungen für die Verwendung von adb mit Wi-Fi und Bluetooth. Connect Ihr Android-Gerät und Adb-Host-Computer zu einem gemeinsamen Wi-Fi-Netzwerk zugänglich für beide Beware, dass nicht alle Access Points geeignet sind, müssen Sie einen Access Point verwenden, dessen Firewall Ist ordnungsgemäß konfiguriert, um adb. Wenn Sie eine Verbindung zu einem Android Wear Gerät herstellen, deaktivieren Sie Bluetooth auf dem Telefon, das mit dem Gerät gekoppelt ist. Schließen Sie das Gerät an den Host-Computer mit einem USB-Kabel an. Stellen Sie das Zielgerät ein, um zu hören TCP IP-Verbindung auf Port 5555.Disconnect das USB-Kabel vom Zielgerät. Finden Sie die IP-Adresse des Android-Geräts Zum Beispiel, auf einem Nexus-Gerät, finden Sie die IP-Adresse unter Einstellungen über Tablette oder über Telefon Status IP-Adresse Oder, Auf einem Android Wear Gerät finden Sie die IP-Adresse unter Einstellungen Wi-Fi Einstellungen Advanced IP address. Connect auf das Gerät durch seine IP-Adresse. Bestätigen, dass Ihr Host-Computer mit dem Zielgerät verbunden ist. Sie ​​sind jetzt gut zu gehen. Wenn die Adb-Verbindung jemals verloren geht. Stellen Sie sicher, dass Ihr Host immer noch mit dem gleichen Wi-Fi-Netzwerk verbunden ist Ihr Android-Gerät ist. Reconnect, indem Sie die Adb-Verbindung Schritt wieder. Or wenn das doesn t funktioniert, setzen Sie Ihre adb host. Then Starten Sie von Anfang an. Query für devices. Before Ausgabe von adb Befehle, ist es hilfreich zu wissen, welche Geräteinstanzen mit dem Adb-Server verbunden sind Sie können eine Liste der angeschlossenen Geräte mit dem Geräte-Befehl zu generieren. In Antwort, adb druckt diese Statusinformationen Für jedes Gerät. Serialnummer Ein String, der von adb erstellt wurde, um das Gerät durch seine Portnummer eindeutig zu identifizieren Hier ist ein Beispiel Seriennummer emulator-5554.State Der Verbindungszustand des Gerätes kann einer der folgenden sein. offline Das Gerät ist nicht verbunden Zu adb oder ist nicht antwort. device Das Gerät ist nun mit dem Adb-Server verbunden. Beachten Sie, dass dieser Zustand nicht impliziert, dass das Android-System vollständig gestartet und betriebsbereit ist, da das Gerät eine Verbindung zu adb herstellt, während das System noch bootet. Up, das ist der normale Betriebszustand eines Gerätes. nein Gerät Es ist kein Gerät angeschlossen. Description Wenn Sie die Option - l einfügen, sagt der Gerätebefehl Ihnen, was das Gerät ist Diese Information ist hilfreich, wenn Sie mehrere Geräte angeschlossen haben, so dass Sie können sie auseinander teilen. Das folgende Beispiel zeigt den Geräte-Befehl und seine Ausgabe Es gibt drei Geräte laufen Die ersten beiden Zeilen in der Liste sind Emulatoren, und die dritte Zeile ist ein physisches Gerät, das an den Computer angeschlossen ist. Emulator nicht aufgeführt. Der Befehl adb devices hat eine Eckkasten-Befehlsfolge, die dazu führt, dass der laufende Emulator nicht in der Ausgabe von Adb-Geräten angezeigt wird, obwohl der Emulator auf Ihrem Desktop sichtbar ist. Dies geschieht, wenn alle folgenden Bedingungen erfüllt sind. Der Adb-Server ist Nicht ausgeführt, und Sie verwenden den Emulator-Befehl mit der Option - port oder - ports mit einem ungeradzahligen Portwert zwischen 5554 und 5584 und der ungeradzahlige Port, den du gewählt hast, ist nicht beschäftigt, so dass die Port-Verbindung hergestellt werden kann Die angegebene Portnummer, oder wenn es besetzt ist, wechselt der Emulator zu einem anderen Port, der die Anforderungen in 2 erfüllt. Sie starten den Adb-Server, nachdem Sie den Emulator gestartet haben. Ein Weg, um diese Situation zu vermeiden, ist, dass der Emulator seine eigenen auswählen kann Ports und don t laufen mehr als 16 Emulatoren auf einmal Eine andere Möglichkeit ist, immer den Adb-Server starten, bevor Sie den Emulator-Befehl verwenden, wie in den folgenden Beispielen erklärt. Example 1 In der folgenden Befehlsfolge startet der Befehl adb devices die adb Server, aber die Liste der Geräte wird nicht angezeigt. Stoppen Sie den Adb-Server und geben Sie die folgenden Befehle in der angegebenen Reihenfolge ein. Für den avd-Namen geben Sie einen gültigen avd-Namen aus Ihrem System an. Um eine Liste von avd-Namen zu erhalten, geben Sie emulator - list - Avds Der Emulator-Befehl befindet sich im Verzeichnis androidsdk tools. Example 2 In der folgenden Befehlsfolge zeigt adb-Geräte die Liste der Geräte an, da der Adb-Server zuerst gestartet wurde. Um den Emulator in der Ausgabe von adb-Geräten zu sehen, stoppen Sie den Adb-Server und Dann starten Sie es erneut, nachdem Sie den Emulator-Befehl verwendet haben und bevor Sie den Befehl adb devices wie folgt verwenden. Weitere Informationen zu Emulator-Befehlszeilenoptionen finden Sie unter Verwenden von Befehlszeilenparametern. Senden Sie Befehle an ein bestimmtes Gerät. Wenn mehrere Geräte ausgeführt werden, können Sie Muss das Zielgerät bei der Ausgabe des adb-Befehls angeben Um das Ziel anzugeben, verwenden Sie den Befehl "Geräte", um die Seriennummer des Ziels zu erhalten. Sobald Sie die Seriennummer haben, verwenden Sie die Option - s mit den Anzeigen von adb, um die Seriennummer anzugeben Du wirst eine Menge von adb-Befehlen ausgeben, kannst du die Umgebungsvariable ANDROIDSERIAL so einstellen, dass sie die Seriennummer enthält. Wenn du beide-AND - UND ANDROIDSERIAL - s-Overrides ANDROIDSERIAL verwendet, wird im folgenden Beispiel die Liste der angeschlossenen Geräte erhalten, Und dann wird die Seriennummer eines der Geräte verwendet, um das auf diesem Gerät zu installieren. Hinweis Wenn Sie einen Befehl ausgeben, ohne ein Zielgerät anzugeben, wenn mehrere Geräte verfügbar sind, erzeugt adb einen Fehler. Wenn Sie mehrere Geräte verfügbar sind Hardware oder emuliert , Aber nur einer ist ein Emulator, verwenden Sie die Option - e, um Befehle an den Emulator zu senden. Ebenso, wenn es mehrere Geräte gibt, aber nur ein Hardwaregerät angeschlossen ist, verwenden Sie die Option - d, um Befehle an das Hardwaregerät zu senden. Installieren Sie eine App. Sie können adb verwenden, um eine APK auf einem Emulator oder einem angeschlossenen Gerät mit dem Installationsbefehl zu installieren. Stellen Sie die Portweiterleitung ein. Sie können den Vorwärtsbefehl verwenden, um eine beliebige Portweiterleitung einzurichten, die Anfragen an einen bestimmten Hostport an einen anderen Port weiterleitet Ein Gerät Im folgenden Beispiel wird die Weiterleitung des Host-Port 6100 an den Geräte-Port 7100 eingerichtet. Im folgenden Beispiel wird die Weiterleitung des Host-Port 6100 an die lokalen logd. Copy-Dateien von einem Gerät gesendet. Verwenden Sie die Pull - und Push-Befehle, um Dateien zu und von zu kopieren Ein Gerät Im Gegensatz zum Installationsbefehl, der nur eine APK-Datei an einen bestimmten Ort kopiert, können Sie mit den Pull - und Push-Befehlen beliebige Verzeichnisse und Dateien an einen beliebigen Speicherort in einem Gerät kopieren. Um eine Datei oder ein Verzeichnis und ihre Unterverzeichnisse aus dem Gerät, gehen Sie folgendermaßen vor. Um eine Datei oder ein Verzeichnis und ihre Unterverzeichnisse auf das Gerät zu kopieren, führen Sie die folgenden Schritte aus. Rufen Sie lokal und remote mit den Pfaden zum Zieldateienverzeichnis auf Ihrem Entwicklungscomputer lokal und auf der Gerätefernbedienung auf. Stoppen Sie den Adb-Server. In einigen Fällen müssen Sie möglicherweise den Adb-Server-Prozess beenden und dann neu starten, um das Problem zu beheben, zB wenn adb nicht auf einen Befehl antwortet. Um den Adb-Server zu stoppen, verwenden Sie den Befehl adb kill-server Kann dann den Server neu starten, indem er irgendwelche anderen adb command. adb-Befehle ausstellt. Sie ​​können adb-Befehle aus einer Befehlszeile auf deinem Entwicklungscomputer oder aus einem Skript ausgeben Die Verwendung ist. Wenn dort nur ein Emulator läuft oder nur ein Gerät angeschlossen ist, Der adb-Befehl wird standardmäßig an dieses Gerät gesendet Wenn mehrere Emulatoren ausgeführt werden und mehrere Geräte angeschlossen sind, müssen Sie die Option - d - e oder - s verwenden, um das Zielgerät anzugeben, auf das der Befehl gerichtet werden soll. Die Tabelle Unten listet alle unterstützten adb-Befehle auf und erklärt ihre Bedeutung und Verwendung. Tabelle 1 Verfügbare adb-Befehle und options. Connect zu einem Gerät über TCP IP Wenn Sie keinen Port angeben, wird der Standard-Port 5555 verwendet. disconnect Host-Host Port. Disconnect aus dem angegebenen TCP IP-Gerät, das auf dem angegebenen Port ausgeführt wird Wenn Sie keinen Host oder einen Port angeben, werden alle Geräte von allen TCP-IP-Ports getrennt Wenn Sie einen Host, aber keinen Port angeben, 5555 wird verwendet. Listen Sie alle weitergeleiteten Socket-Verbindungen. forward --no-rebind lokalen remote. Forward Socket-Verbindungen vom angegebenen lokalen Port zum angegebenen Remote-Port auf dem Gerät Sie können sowohl lokale als auch Remote-Ports auf die folgenden ways. tcp-Port angeben Um einen offenen Port zu wählen, mach den lokalen Wert tcp 0.localabstract unixdomainsocketname. localreserved unixdomainsocketname. localfilesystem unixdomainsocketname. dev characterdevicename. forward - remove local. Entfernen Sie die angegebene übergebene Socket-Verbindung. Listen Sie alle umgekehrten Socket-Verbindungen vom device. reverse --no - rebind remote local. Reverse eine Socket-Verbindung Die Option --no-rebind bedeutet, dass die Umkehrung fehlschlägt, wenn der angegebene Socket bereits durch einen vorherigen Reverse-Befehl gebunden ist. Sie können den Port für lokale und entfernte Argumente auf den folgenden ways. tcp-Port angeben Um einen beliebigen offenen Port zu wählen, mach den Remote-Wert tcp 0.localabstract unixdomainsocketname. localreserved unixdomainsocketname. localfilesystem unixdomainsocketname. reverse - remove remote. Entfernen Sie die angegebene Reverse-Socket-Verbindung vom Device. Remove alle Reverse-Socket-Verbindungen aus dem device. File Transfer Commands. Schieben Sie lokale remote. Copy-Dateien und Verzeichnisse vom lokalen Gerätecomputer zu einem entfernten Standort auf dem device. pull-a remote local. Copy Remote-Dateien und Verzeichnisse auf ein Gerät Verwenden Sie die Option - a, um die Datei Zeitstempel und mode. App zu bewahren Installation Commands. install Optionen Paket. Push Pakete auf das Gerät und installieren sie Mögliche Optionen sind die folgenden.-l Forward Lock Anwendung.-r Ersetzen Sie die vorhandene Anwendung.-t Testpakete zulassen.-s Installieren Sie die Anwendung auf der SD-Karte. - d Ermöglicht die Bereitstellung von Versionscode-Downgrade-Debugging-Pakete nur.-g Gewähren Sie alle Laufzeitberechtigungen. install-Mehrfachoptionenpakete. Same-Optionen als Installation mit dem Hinzufügen der folgenden.-p Teilanwendung install. uninstall - k package. Beenden Sie dieses App-Paket aus Das Gerät Fügen Sie die Option - k hinzu, um die Daten zu speichern und die Verzeichnisse zu verknüpfen. Backup und Restore Commands. backup - f file - apk - noapk - obb - noobb - shared - noshared - all-system - nosystem packagenames. Schreiben Sie ein Archiv des Gerätes S Daten in Datei Wenn Sie keinen Dateinamen angeben, ist die Standarddatei Die Paketliste ist optional, wenn Sie die Optionen - all und - share angeben. Im Folgenden werden die Verwendungen für die anderen Optionen beschrieben. - apk - noapk Sichern oder tun Nicht die Dateien sichern Der Standardwert ist - noapk.-obb - noobb Sichern oder Sichern von Dateien Der Standardwert ist - noobb.-shared - noshared Sichern oder Sichern des Shared Storage Der Standardwert ist - noshared. - all Sichern Sie alle installierten Anwendungen.-System - Nosystem Include oder nicht enthalten System-Anwendungen beim Sichern aller installierten Anwendungen - all Der Standardwert ist - system. Restore der Geräteinhalt aus file. Print ein Bugreport auf den angegebenen Pfad Wenn Pfad Ist ein Verzeichnis, dann wird der Fehlerbericht in diesem Verzeichnis unter Verwendung des Standarddateinamens gespeichert. Geräte, die keine gezippten Fehlerberichte verwenden, drucken auf stdout. Print eine Liste der verfügbaren JDWP-Prozesse auf einem bestimmten Gerät Verwenden Sie vorwärts jdwp pid, um eine Verbindung herzustellen Ein spezieller JDWP-Prozess Zum Beispiel adb forward tcp 8000 jdwp 472 jdb - attach localhost 8000.logcat - help option filter-spec. Print-Protokolldaten auf dem Bildschirm Informationen über den Befehl logcat und die Umgebungsvariable ANDROIDLOGTAGS finden Sie unter Filtering Output auf dem Logcat Seite. Die ADBTRACE Umgebungsvariable enthält eine durch Kommas getrennte Liste der Debug-Informationen zu protokollieren Werte können beliebige Kombination der folgenden alle Adb-Sockets Pakete RWX Usb Sync Sysdeps Transport und jdwp. Disable dm-Verity Überprüfung auf userdebug baut Die dm-verity Option stellt sicher, dass, wenn ein Benutzer ein Gerät bootet, dass es sich in demselben Zustand befindet, in dem es war, als es zuletzt verwendet wurde. Weitere Informationen finden Sie unter Verified Boot. Re-enable dm-verity-Überprüfung auf userdebug-Builds Die dm-verity-Option stellt sicher, dass Wenn ein Benutzer ein Gerät startet, dass es sich in demselben Zustand befindet, in dem es war, als es zuletzt verwendet wurde. Weitere Informationen finden Sie unter Verified Boot. Generate adb public und private Schlüsselverschlüsselung Der private Schlüssel wird in der Datei gespeichert Der öffentliche Schlüssel wird gespeichert Datei Die Umgebungsvariable ANDROIDVENDORKEYS enthält eine durch Doppelpunkt getrennte Liste von Schlüsseldateien oder Verzeichnissen. Wenn für - Transport - State. Wait für das Gerät in der angegebenen state. state Werte können Gerät Wiederherstellung sideload oder bootloader. transport Werte können sein Usb local oder any. Print der Adb-Status eines Gerätes Der Adb-Status kann offline offline bootloader oder device drucken Weitere Informationen finden Sie unter Abfragen für Emulator Device Instances. Print der adb device serial number string Weitere Informationen finden Sie unter Abfragen für Emulator Device Instances. Print the adb device path. Remount der System-Vendor und OEM-Partitionen in Read-Write-Modus. Reboot Bootloader Recovery sideload sideload-auto-reboot. Reboot das Gerät Dieser Befehl standardmäßig das Booten des System-Bild, sondern unterstützt auch Bootloader und Recovery Bootloader-Option startet in bootloader. Die Wiederherstellungsoption startet in die Wiederherstellung. Die Sideload-Option startet in die Wiederherstellung und startet den Sideload-Modus. Die Sideload-Auto-Reboot-Option ist die gleiche wie sideload, aber Neustarts nach dem Side-Laden abgeschlossen ist. Side load install in APK-Format die Spezifizierte volle OTA-Paket auf dem Gerät. Restart adbd mit Root-Berechtigungen. Restart adbd ohne Root-Berechtigungen. Restart der Adb-Server auf USB zu hören. Restart der Adb-Server auf TCP hören an der angegebenen Port. Internal Debugging-Befehle. Check, ob der Adb-Server-Prozess Läuft. Terminieren Sie den Adb-Server-Prozess. Force eine Wiederverbindung vom Host. Force eine Wiederverbindung vom Gerät, um eine Wiederverbindung zu erzwingen. Starten Sie eine Remote-interaktive Shell im Zielgerät Weitere Informationen finden Sie unter Ausgabe Shell-Befehle. Shell - e Escapechar - N - T - t - x-Befehl. Geben Sie einen Shell-Befehl im Zielgerät ein und beenden Sie dann die Remote-Shell. Verwenden Sie eine beliebige Kombination der folgenden Optionen.-E Geben Sie ein Escape-Zeichen oder den Wert none an, wenn Sie kein Escape verwenden möchten Zeichen Wenn Sie keinen Wert angeben, wird das Standard-Escape-Zeichen ein Bindestrich - verwendet. - n Lesen Sie nicht von stdin.-T Deaktivieren Sie die Pseudo-Terminal-Utility PTY-Zuweisung.-t Force PTY-Zuweisung.-x Deaktivieren Sie Remote-Exit-Codes Und Stdout Stderr Trennung. Run ein Emulator Konsole Befehl Weitere Informationen finden Sie unter Steuerung der Emulator aus der Befehlszeile. Essue Shell-Befehle. Sie können die Shell-Befehl, um Geräte-Befehle über Adb, mit oder ohne Eingabe der adb Remote-Shell auf der Gerät Um einen einzelnen Befehl ohne Eingabe einer entfernten Shell auszustellen, benutze den Shell-Befehl wie folgt. Bitte geben Sie eine Remote-Shell auf ein Gerät wie dieses. Wenn Sie bereit sind, die Remote-Shell zu beenden, drücken Sie Control D oder geben Sie exit. The Shell-Befehl Binärdateien werden im Dateisystem des Gerätes im System bin. Note Mit Android Platform-Tools 23 und höher gespeichert, behandelt adb Argumente auf die gleiche Weise wie der Befehl ssh 1 Diese Änderung hat eine Menge Probleme mit der Befehlseinspritzung behoben und macht es Möglich, um nun sicher Befehle auszuführen, die Shell-Metazeichen wie Adb-Installation enthalten. Aber diese Änderung bedeutet, dass die Interpretation eines beliebigen Befehls, der Shell-Metazeichen enthält, auch geändert hat. Zum Beispiel ist der Befehl adb shell setprop foo ab nun ein Fehler, weil die einzelnen Anführungszeichen Werden von der lokalen Schale verschluckt, und das Gerät sieht Adb Shell setprop foo ab Um die Befehlsarbeit zu machen, zitieren Sie zweimal einmal für die lokale Shell und einmal für die Remote Shell, das gleiche wie Sie mit ssh 1 Zum Beispiel, Adb Shell Setprop foo a b. Call Aktivitätsmanager am. Within einer Adb-Shell können Sie Befehle mit dem Aktivitätsmanager am Tool ausgeben, um verschiedene Systemaktionen auszuführen, z. B. eine Aktivität zu starten, einen Prozess zu stoppen, einen Vorgang zu senden, das Gerät zu modifizieren Bildschirm-Eigenschaften und vieles mehr In einer Shell ist die Syntax. Sie können auch einen Aktivitäts-Manager-Befehl direkt aus Adb ausgeben, ohne eine Remote-Shell einzugeben. Zum Beispiel. Table 2 Verfügbare Aktivitätsmanager-Befehle. Start-Optionen intent. Start eine Aktivität, die von Intent angegeben wird. Options are.-D Enable debugging.-W Warten auf den Start zu starten .-- Start-Profiler-Datei Starten Sie Profiler und senden Sie Ergebnisse in Datei.-P-Datei Wie - Start-Profiler aber Profiling stoppt, wenn die App geht idle.- R-Zählung Wiederholen Sie die Startzeit der Aktivität Start Vor jeder Wiederholung wird die obere Aktivität beendet. - S Force stoppt die Ziel-App vor dem Start der Aktivität .-- opengl-trace Aktivieren Sie die Ablaufverfolgung von OpenGL-Funktionen .-- user userid current Geben Sie an, welche Benutzer zu laufen, als ob nicht angegeben, dann laufen als die aktuellen user. startservice Optionen intent. Starten Sie den Service, der von intent. Options angegeben wird .-- user userid current Geben Sie an, welcher Benutzer ausgeführt werden soll, als ob nicht angegeben, und führen Sie dann den aktuellen Benutzer aus. Force stoppen alles im Zusammenhang mit Paket die App s Paket name. kill Optionen package. Kill alle Prozesse mit Paket verpackt die App s Paketname Dieser Befehl tötet nur Prozesse, die sicher zu töten sind und das wird nicht Auswirkungen auf die User experience. Options sind. - user userid alle aktuellen Geben Sie Benutzer an, dessen Prozesse alle Benutzer zu töten, wenn nicht angegeben. Kill alle Hintergrundprozesse. broadcast Optionen intent. Issue eine Broadcast Intent. Options sind. - user userid alle aktuell Geben Sie an, welcher Benutzer an senden soll, wenn nicht angegeben, dann senden Sie an alle users. instrument Optionen component. Start Überwachung mit einer Instrumentation Instanz Typisch ist die Zielkomponente die Form Testpaket runnerclass. Options are.-r Drucken Sie rohe Ergebnisse anders Decodieren reportkeystreamresult Verwenden Sie mit - e perf true, um Rohausgabe für Performance-Messungen zu generieren.-E Name Wert Set Argument Name zu Wert Für Test-Läufer ein gemeinsames Formular ist - e testrunnerflag Wert, value.-p Datei Schreiben Sie Profiling Daten in Datei.-w Warten Sie, bis die Instrumentierung abgeschlossen ist, bevor Sie zurückkehren Erforderlich für Test-Läufer. - No-Fenster-Animation Schalten Sie Fenster-Animationen während des Betriebs aus .-- user userid current Geben Sie an, welche Benutzer-Instrumentierung im aktuellen Benutzer läuft, wenn nicht angegeben. Profile Start Prozessdatei. Start profiler Auf Prozess schreibe Ergebnisse in file. profile stop process. Stop profiler auf process. dumpheap Optionen Prozessdatei. Dump der Haufen von Prozess schreiben in file. Options sind .-- user userid current Bei der Bereitstellung eines Prozessnamens, geben Sie Benutzer des Prozesses zu dump Verwendet den aktuellen Benutzer, wenn nicht angegeben.-n Dump native Heap statt verwalteten Heap. set-Debug-App-Optionen package. Set Application Package to debug. Options are.-w Warten auf Debugger, wenn die Anwendung startet .-- persistent Behalten Sie diesen Wert. Löschen Sie das Paket vorheriges Set für das Debugging mit set-debug-app. Start-Überwachung für Abstürze oder ANRs. Options sind .-- gdb Start gdbserv auf dem gegebenen Port beim Absturz ANR. display-size zurücksetzen width x height. Override device display size This Befehl ist hilfreich für das Testen Ihrer App über verschiedene Bildschirmgrößen durch imitieren eine kleine Bildschirmauflösung mit einem Gerät mit einem großen Bildschirm und umgekehrt. Example am Display-Größe 1280x800.Override Gerät Display-Dichte Dieser Befehl ist hilfreich für das Testen Ihrer App über verschiedene Bildschirmdichten auf High-Density-Bildschirm-Umgebung mit einem Bildschirm mit geringer Dichte und umgekehrt. Example am Display-Dichte 480.Die vorgegebene Absicht Spezifikation als URI. Print die gegebene Absicht Spezifikation als Absicht URI. Specification für Absicht Argumente. Für Aktivitäts-Manager-Befehle, die ein Absichts-Argument annehmen, können Sie die Absicht mit den folgenden Optionen festlegen. - eine Aktion Geben Sie die Absichtsaktion an, z. B. Sie können dies nur einmal erklären - d datauri Geben Sie die Absichtsdaten-URI an, z. B. Inhalt Kontakte Personen 1 Sie können dies nur einmal - t mimetype deklarieren Geben Sie den Intim-MIME-Typ an, z. B. image png Sie können dies nur einmal erklären. - Kategorie Geben Sie eine Absichtskategorie an, z. B. - n-Komponente Geben Sie den Komponentennamen mit dem Paketnamen-Präfix an, um ein explizites zu erstellen Absicht, wie z. B. - f-Flags Hinzufügen von Flags zur Absicht, wie von setFlags unterstützt --sn extrakey Add a null extra Diese Option wird nicht für URI-Intents unterstützt - eees extrakey extrastringvalue String-Daten als Schlüssel-Wert-Paar hinzufügen - - ez extrakey extrabooleanvalue Hinzufügen von booleschen Daten als Schlüsselwertpaar --ei extrakey extraintvalue Hinzufügen von ganzzahligen Daten als Schlüsselwertpaar --el extrakey extralongvalue Fügen Sie lange Daten als Schlüsselwertpaar hinzu --ef extrakey extrafloatvalue Fügen Sie float data als hinzu Ein Schlüsselwertpaar --eu extrakey extraurivalue URI-Daten als Schlüsselwertpaar hinzufügen - Zweiter extrakey extracomponentnamevalue Hinzufügen eines Komponentennamens, der konvertiert und als ComponentName-Objekt übergeben wird --eia extrakey extraintvalue, extraintvalue Fügen Sie ein Array von Ganzzahlen hinzu - extrapelatvalue, extralongvalue, extralongvalue, extralongvalue, addtrieren Sie eine Reihe von longs --efa extrakey extrafloatvalue, extrafloatvalue Fügen Sie ein Array von floats hinzu --grant-read-uri-permission Fügen Sie die Flagge ein FLAGGRANTREADURIPERMISSION --grant-write-uri-Erlaubnis Fügen Sie die Flagge FLAGGRANTWRITEURIPERMISSION hinzu --debug-log-Auflösung Fügen Sie die Flagge ein FLAGDEBUGLOGRESOLUTION --exclude-stoped-packages Fügen Sie die Flagge ein FLAGEXCLUDESTOPPEDPACKAGES --include-stoped-packages Fügen Sie die Flagge ein FLAGINCLUDESTOPPEDPACKAGES --activity-to-front Fügen Sie die Flagge ein FLAGACTIVITYBROUGHTTOFRONT --activity - Clear-top Fügen Sie die flagge ein FLAGACTIVITYEXCLUDEFROMRECENTS --activity-launched-from-history Fügen Sie die flagge ein FLAGACTIVITYLAUNCHEDFROMHISTORY - activity-short-top-up-up-Include the flag FLAGACTIVITYCADARWHENTASKRESET - Aktivität-Mehrfachaufgabe Fügen Sie die Flagge ein FLAGACTIVITYMULTIPLETASK --aktivität-no-animation Fügen Sie die Flagge ein FLAGACTIVITYNOANIMATION --activity-no-history Fügen Sie die Flagge ein FLAGACTIVITYNOHISTORY --aktivität-no-user-action Fügen Sie die Flagge ein FLAGACTIVITYNOUSERACTION - Is-top Fügen Sie die Flagge ein FLAGACTIVITYPREVIOUSISTOP --aktivität-nachbestellung-to-front Fügen Sie die Flagge ein FLAGACTIVITYREORDERTOFRONT --activity-reset-task-if-needed Fügen Sie die Flagge ein FLAGACTIVITYRESETTASKIFNEEDED --activity-single-top Fügen Sie die Flagge ein FLAGACTIVITYSINGLETOP - Clear-task Fügen Sie die Fahne ein FLAGACTIVITYCLEARTASK --activity-task-on-home Fügen Sie die Flagge ein FLAGACTIVITYTASKONHOME --receiver-registered-only Fügen Sie die Flagge ein FLAGRECEIVERREGISTEREDONLY --receiver-replace-pending Fügen Sie die Flagge ein FLAGRECEIVERREPLACEPENDING --selector Benötigt die Verwendung von - D und - t Optionen, um die Absichtsdaten festzulegen und URI-Komponentenpaket zu schreiben Sie können direkt einen URI, einen Paketnamen und einen Komponentennamen angeben, wenn er nicht durch eine der oben genannten Optionen qualifiziert ist. Wenn ein Argument unqualifiziert ist, nimmt das Tool das Argument an URI, wenn es einen Doppelpunkt enthält, nimmt er an, dass das Argument ein Komponentenname ist, wenn es einen Forward-Slash enthält, sonst nimmt er an, dass das Argument ein Paketname ist. Call-Paketmanager pm. Within einer Adb-Shell können Sie Befehle mit dem Paketmanager ausgeben Tool zum Ausführen von Aktionen und Abfragen auf Anwendungspaketen, die auf dem Gerät installiert sind Während in einer Shell die Syntax ist. Sie ​​können auch einen Paket-Manager-Befehl direkt aus Adb ausgeben, ohne eine Remote-Shell einzugeben. Zum Beispiel. Table 3 Verfügbare Paketmanager commands. list Pakete Optionen filter. Prints alle Pakete, wahlweise nur diejenigen, deren Paketname den Text in filter enthält.-f Siehe die zugehörige Datei.-d Filter, um nur deaktivierte Pakete anzuzeigen.-e Filter nur aktivierte Pakete anzeigen.-s Filter nur zu zeigen Systempakete.-3 Filtern, um nur Drittanbieterpakete anzuzeigen.-i Siehe das Installationsprogramm für die Pakete.-u Dazu auch die nicht installierten Pakete enthalten .-- user userid Der Benutzerbereich zum Abfragen. Prints alle bekannten Berechtigungsgruppen. Prints all known permissions, optionally only those in group.-g Organize by group.-f Print all information.-s Short summary.-d Only list dangerous permissions.-u List only the permissions users will see. list instrumentation options. List all test packages.-f List the APK file for the test package. targetpackage List test packages for only this app. Take a screenshot. The screencap command is a shell utility for taking a screenshot of a device display While in a shell, the syntax is. To use the screencap from the command line, type the following. Here s an example screenshot session, using the adb shell to capture the screenshot and the pull command to download the file from the device. Record a video. The screenrecord command is a shell utility for recording the display of devices running Android 4 4 API level 19 and higher The utility records screen activity to an MPEG-4 file. Note Audio is not recorded with the video file. A developer can use this file to create promotional or training videos While in a shell, the syntax is. To use screenrecord from the command line, type the following. Stop the screen recording by pressing Control C, otherwise the recording stops automatically at three minutes or the time limit set by --time - limit. To begin recording your device screen, run the screenrecord command to record the video Then, run the pull command to download the video from the device to the host computer Here s an example recording session. The screenrecord utility can record at any supported resolution and bit rate you request, while retaining the aspect ratio of the device display The utility records at the native display resolution and orientation by default, with a maximum length of three minutes. There are some known limitations of the screenrecord utility that you should be aware of when using it. Some devices might not be able to record at their native display resolution If you encounter problems with screen recording, try using a lower screen resolution. Rotation of the screen during recording is not supported If the screen does rotate during recording, some of the screen is cut off in the recording. Table 4 screenrecord options. Android ADB File Manager. A command line GUI GTK based Android ADB-based file manager. Recent Android releases Honeycomb 3 0 replace the older USB mount protocol with the use of MTP Massive Transfer Protocol Unfortunately this is still very buggy and doesn t work as it should in any machine I have tested and heard of system slowing down to a halt when transferring large number of files, files which are there but cannot be seen by the computer etc. So I decided to go ahead and build a little utility that would if not fix, at least alleviate the pain of using Honeycomb devices aafm uses ADB one of the command line tools provided with the official Android SDK for communicating with the Android device This is the same method that IDEs implement. Python with PyGTK bindings, GTK, git, and the Android SDK. Getting these should be fairly straightforward if you re running any decent Linux distribution If you re using Windows I believe there are next-next-next installers for everything This leaves us with the third option which is Mac OS Up until recently there wasn t an easy way to get any PyGTK software working in Mac OS, but turns out you can now download a binary build of PyGTK for Mac OS with which aafm works quite well. It can be downloaded from more info Simply run the installer once downloaded, and then follow the instructions below as if you were running a proper Linux system. One note though there are a few hiccups with the Mac version, but they are mostly cosmetic and won t prevent you from enjoying the software Feel free to help correcting them if you have the know-how. Clone this repository to a place you fancy For example, your Applications folder. Install the Android SDK. If it s not installed yet, download the SDK from its page and follow its instructions. Basically at least in Linux just download a zip file and unpack it to a known location In my case it s. Applications android-sdk-linux86 Once that is done, you need to make sure that the ADB tool is readily accessible from a shell which is what aafm uses internally. So to try that out, open a new terminal and type adb If it works, you should get a long help message that starts with something like Android Debug Bridge version 1 0 26 If it doesn t work, you ll get something akin to adb command not found. In case it doesn t work, you need to add the path to ADB to the environment PATH variable In Linux this is done by editing a file called in your home folder in Mac OS Locate a line that looks like PATH PATH and make it look like this. The line above appends ADB s path to whatever value PATH held before The path might be different, according to wherever you ve installed the Android SDK. Also, I haven t tried it myself, but it seems that it s possible to download and build a reduced subset of the Android SDK only, including ADB and a few more tools This doesn t require Java installed in the system This page describes how. Close terminal and open it again. So the changes to the PATH get current In Mac OS you might need to log in and out too. Configure udev rules if in Linux. You need to let the system know that when you connect your USB device i e the tablet it should allow you, as a non-root user, to access it If you don t do that, you ll get a Insufficient permissions for device error. This is done by adding a new file that contains so called udev rules. For example, in Ubuntu 10 10 you would add a file in with the following content. You can find out the idVendor value by running lsusb in a terminal That will output a list of the currently connected USB devices, such as for example this. Since I d like to add support for browsing my Nexus One phone because aafm works with every Android device that adb can connect to , I just need to look at the device with id 18d1 4e12 and add the following line to the udev rules file. Save it, and then change the file permissions. To make sure it worked, connect the device and try to run adb devices in a terminal If it s working properly, you should see a list more or less like this. The numbers aren t important, the important bit is that you see device instead of. If it isn t, you might need to either disconnect the device and try again, or reload udev so that the rules are actually loaded Try with this. If everything else fails, try to log in and out again, or maybe even restart the system. More information on udev rules and Android can be found on the official Android development guide. Enable Debug mode in the device. Go to Settings Applications Development and make sure the USB debugging checkbox is ticked You might get a scary warning saying debugging allows you to do nasty things--just ignore it. To execute it, cd to the place where it s been cloned. And simply execute it. If for some odd reason it has lost the executable permission, you can add it. Or simply execute it using Python. Once you re satisfied it s working, you can also make a launcher or add it to your Gnome menu, of course. If everything works and why shouldn t it you should get a window divided in two panels The left side represents your host computer, and initially should show the files of the aafm directory, since you launched it from there The right side represents your Android device s files --so it needs to be connected to the computer, and USB debugging must be enabled in the device You can navigate just as you would do with your favourite file explorer Files can be dragged from one to another panel, directories created, and files renamed hint right click and explore the options the contextual menu offers you You can also drag from Nautilus in GNOME into the device panel, to copy files to the device, or drag to Nautilus, for copying files from the device. Be warned that currently the progress reporting is a bit hackish and with large files it will appear as if the window has got frozen It hasn t--it s just waiting for the ADB transfer to finish In the future this should be fixed, but I haven t come up with the best solution yet. This software is licensed under a GPL V3 license Please read the accompanying file for more details, but basically, if you modify this software and distribute it, you must make your changes public too, so that everyone can benefit from your work--just as you re doing with mine. You can also make your changes public even if you don t plan on redistributing this application, okay Sharing is good. Several bug fixes and refactoring, plus a nice addition for those using desktop systems in Linux. New file and icon allows users to launch aafm from GNOME KDE etc menus shells launchers Huulivoide Fixes 35.New script for making aafm available system-wide Huulivoide Fixes 35.Fix refactor copying files between host and device sole xisberto Fixes 33 and 37.Gracefully handle unknown uids and gids sole and muflone Fixes 8 and 39.Many interesting bug fixes and new features thanks to the work of Norman Rasmussen and Micha Kowalczuk Thanks. Add BusyBox support by sammael Fixes 11.Handle device drops when there s no row present by normanr Fixes 9.Handle symlinks on the device correctly by normanr Fixes 12.Quote Unquote special characters in drag drop messages by normanr Fixes 10.Slightly improve the README Clarify how to find out the device Id, add link to PyGTK binary for Mac users. Move the TO DO list items that were on this README file over to the issue tracker in the project s page. Fix issue 4 use correct path separator in device when running under Windows. Fix issue 5 support for finding out ownership in Windows. Python 3 compatibility. Start using REVISION file. Fix issue 3 ls - la fails in some devices. First initial release basic functionality is here. I m by no means a GTK Python ADB Android expert I m just learning so this project will surely contain many things that can be improved or that are plain wrong, so feel free to clone the repository and submit pull requests. In order to make your life a bit easier I ll roughly show what each file does. - a class that communicates with an Android device, using ADB via shell commands Takes care of copying and reading files, listing and parsing directories, etc. - this is the GTK front-end Takes care of building the window with the host and device panels, and issuing instructions to Aafm when the user requests something to be done. - a utility class that encapsulates a GTKTreeView and some more things in order to show file listings. - an awesome class developed by the guys of Quod Libet, that allows more than one element of a TreeView to be selected and dragged around. As you can see, an GUI counterpart is missing There was one at the beginning but I didn t redo it when I rewrote most of the code from scratch Feel free to you know what, if you re interested in having a CLI version. This was initially developed in an Ubuntu Linux 10 10 system I thought it wouldn t work on other systems, but it seems people are using it in a lot of places though Some environments where it s known to work. I m now using Github s issue tracker to keep track of issues, bugs and wished-for features. If you d like to have a certain feature or think you ve found a bug that is not in the list, please add it to the issue tracker at. What Is ADB And How To Install It With Android SDK. When it comes to Android modding, most novice users are confused or left wondering by reference over reference to a certain adb This is specially true when you are looking up something on modding your device, or root it in particular ADB is the wonder toy of Android and everyone seems to love it, so lets have a look at understanding what it is and why you need it, and how you can get it. ADB stands for Android Debug Bridge It comes as a part of the standard Android SDK, which you can grab here Basically, it provides a terminal-based interface for interacting with your phone s file system Since Android platform is based on Linux, command-line is the only way to obtain and manipulate root access often required to perform certain advanced operations on your device using root access. While these things can be done directly on the device itself using some terminal emulator, it will be rather difficult to execute complex commands on such a small screen ADB provides the bridge between your machine and your computer. How To Install ADB. Step 1 Installing the Android SDK. Note At the time of updating this guide, the latest version of the Android SDK available is r8 and we shall be using it throughout the rest of the guide The tools will work the same way however, even if you get a later version In case of earlier versions though, the location of some of the tools was different and it is recommended that you get the latest available version. The first step is to download the SDK Use the link given at the end of this post and download the latest version of the Android SDK from there There are versions available for Microsoft Windows, Linux and Mac OS X In case of Windows, both an installer and a zip file are available but there isn t any need to use the installer as a formal installation is not required. Once you have downloaded the SDK, simply extract the compressed file to a location on your computer In our case, we have extracted it to the root of our C drive and that makes C android-sdk-windows the installation location of the SDK From here onwards, we shall be referring to this location as the SDK folder. Step 2 Downloading the SDK Platform Tools. Previously, ADB used to be included in the SDK by default in the tools sub-folder but now, it has been relocated to the platform-tools sub-folder which needs to be downloaded as an SDK package Fortunately, this is quite easy. Just browse to the SDK folder and launch SDK Manager When launching it for the first time, it will present you with a window to choose packages to install The first option begins with Android SDK Platform-tools Make sure it is checked, and uncheck all the other packages for now You can check uncheck a package by clicking on its name and then selecting the Accept Reject radio button Your window should look like this. View in gallery. Now simply click Install and wait till the platform tools are installed Once the process is done, you will have a platform-tools folder inside your SDK folder That folder will include ADB and all its dependencies. Step 3 Setting the Path variable. Now you have ADB installed but using it this way will require you to either use the complete path of the ADB command C android-sdk-windows platform-tools adb or to first change directory to the platform-tools subfolder of the SDK folder each time, and this can become quite a hassle To make ADB along with other Android SDK tools and platform tools easily accessible from anywhere at the command line, we shall add their paths to the PATH environment variable This method will apply to Windows users only If you are a Linux or Mac user, add the tools and platform-tools sub-folders of the Android SDK to your system s PATH variable using the standard method for your operating system. If you have no experience with editing system environment variables, make a System Restore point now so that you can revert back to it in case something goes wrong. If you are using Windows 7, right-click the Computer icon and click Properties Now click Advanced System Settings from the options in the left pane to bring up the System Properties window Windows XP users will directly get this window when they right-click My Computer and click Properties. In the System Properties window, click the Environment Variables button on the Advanced tab View in gallery. Find Path in the System variables section and double-click it to edit it. Make sure NOT to delete the existing entry in Variable value or it will mess up things on your computer Just add the following string to the end of it, including both the semi-colons. If you have extracted the SDK s contents to another directory, make sure to use that one for your PATH variable. After adding the string, this is what my Path variable looks like. Don t worry if yours does not include some of the other text what is important is the way the new entry should be added to the existign one, and the way the previous entries MUST be left unchanged Notice that the semi-colons are necessary to separate each path variable entry from the next and previous ones Once you have added the path, your machine may require a reboot. In case you messed up while editing the Path variable and ended up deleting the previously existing entries, just restore the System Restore point you made and retry, being more careful this time. Step 4 Installing the USB drivers. Finally, you need to install the USB drivers You may or may not need to perform this step, depending on your device If you are using a device that ships with stock Android operating system such as the Nexus One, this will be necessary In case of other devices that ship with their custom version of Android and some tools to sync the device with the PC, such as devices from HTC that ship with HTC Sync or devices by Samsung that ship with Samsung s own software, the suitable driver for your device will be automatically installed with that software package. The first step will be to download the USB drivers To do this, launch SDK Manager from the SDK folder and click on Available packages in the left pane. Expand Third party Add-ons followed by Google Inc add-ons and check Google Usb Driver package , as shown in this image. View in gallery. Click Install Selected and in the window that pops up, click the Accept all radio button followed by the Install button Wait patiently while the USB drivers are downloaded and installed in the Android SDK. The drivers for both 32 bit and 64 bit systems will now be present in the SDK folder under usbdriver x86 and usbdriver x64 sub-folders respectively. Now that the USB drivers have been downloaded, you can install them to your computer as follows. On the device, go to home screen, press Menu select Applications Development and enable USB Debugging. Now connect your phone to the PC via USB New hardware installation should kick in, and it will start looking for the drivers. Manually point the drivers to the folder suitable for your operating system and let them install. Once drivers have installed, you can verify successful installation by going to Device Manager Your phone should be showing under ADB Interface , like in this example. View in gallery. How to Use ADB. At this point, the setting is done Here on you can simply use adb to manipulate your phone in whatever way you like On Windows, the best way to do so is using command prompt To ensure that adb has been set up properly, run command prompt and type adb devices and hit enter Your connected device should show up with a serial number. View in gallery. This is it for this guide We would like to emphasize that playing with your phone at this level can be dangerous if you don t know what you are doing, and can even render the phone completely useless Please do it at your own risk. For a complete list of adb commands, check out the official adb guide here. Editor s Note ADB is for advanced users only If you need ADB with a Graphical User Interface, check out QtADB. I ve tried it, but. a Doesn t work with Samsung driver you said since I had Samsung drivers already installed, this didn t happen to me b Tried to uninstall all samsung programs drivers and then Windows 7 Ultimate 64b doesn t recognize the driver in the folder usbdriver inside amd64 there isn t any file it seems that the new driver version is a little different c I ve foreced Windows to use the android driver and, instead of ADB Interface Samsung Android Composite ADB Interface in the Device Manager, I get Android Phone Android Composite ADB Interface d adb devices command said List of devices attached , and nothing else. happened to me too. I ve tried with vmware XP Pro 32bits , but I can t even force to install android drivers. BTW can t make kies nor pcstudio connect to my phone in Win7 or VM WinXP. I was also looking for the platform-tools folder, but there was none So I looked around on the net There is no platform-tools in the latest version You need to download through the android SDK Manager. If you are developing in Eclipse with ADT, note that SDK Tools r8 is designed for use with ADT 8 0 0 and later After installing SDK Tools r8, we highly recommend updating your ADT Plugin to 8 0 0.Also note that SDK Tools r8 requires a new SDK component called Platform-tools The new Platform-tools component lets all SDK platforms Android 2 1, Android 2 2, and so on use the same latest version of build tools such as adb, aapt, aidl, and dx To download the Platform-tools component, use the Android SDK Manager, as described in Adding SDK Components Upgrading from SDK Tools r7.If you are upgrading to SDK Tools r8 from an earlier version, note that the the default installed location for the adb tool has changed from tools adb to platform-tools adb This means that you should add the new location to your PATH and modify any custom build scripts to reference the new location Copying the adb executable from the new location to the old is not recommended, since subsequent updates to the SDK Tools will delete the file. I updated and the platform-tools folder was added with the file that is needed Hope this helps you guys. Thanks, recently updated the guide to reflect the changes in the latest version. I got everthing installed and done until it says connect device and windows will install driver but mine woulnt install it It keeps saying it was unsuccessful If anybody knows what i can do to fix it plz help. From device manager, choose to update driver Do not select search automatically and instead go for browse my computer for driver software In the next step, do not choose to search for driver software in a location and choose Let me pick from a list of device drivers on my computer Then select Show all devices or something similar, click Have disk and browse to the google-usbdriver folder in the SDK location Select the file and click Open Finally, accept any prompts and or warnings that you might get and continue with the driver installation Works like a charm for me with all the devices that support the Google-provided drivers Doesn t work for Samsung Galaxy S series devices and may not work with some HTC devices you will need drivers by the manufacturers in those cases In case of Samsung, get Kies In case of HTC, get HTC Sync. When I go into the folder google-usbdriver and click on it says that the folder you specified doesn t contain a compatible software driver for your device If the folder contains a driver, make sure it is designed to work with Windows for 32-bit systems please help. Since Android platform is based on Linux, command-line is the only way to obtain and manipulate root access. Um what decade no, what MILLENNIUM are you in It surprises me to see this type of INCORRECT nonsense about Linux being spread in the 21st century. I don t know when you last used Linux, but it s all I use and the command line most definitely is NOT the only way to obtain manipulate root access Note that it is MY preferred method, but I date back to command line only UNIX in the 1980s, so, yeah, it s quicker for me than any of the GUI tools. Anyone who prefers using GUI-based apps such as file managers can do so and still have root access, while logged in as a normal user. Agreed it shouldn t be called the only way Editing the guide to correct this Thanks for bringing this to my attention. I was hoping this ADB will let me find a way out of a 3 weeks problem But I am stuck at Step 4 Am on W7 64 bits and connecting to a Wits A81G tablet I have installed Google USB driver package When I connect my tablet, nothing happens Windows does not detect Though, when I go to device manager, I see A81E under other devices , but with missing driver Whether I search automatically or manually, I cant find the driver Now what. I m kinda new at this I ve followed all the steps, and I know from other guides that I have ADB and the SDK installed correctly but I cannot get past the Variable section of this guide In my Enviromental Variables dialog box, I only have a TEMP and TMP to select from there is no PATH as pictured above I m not sure how to move forward Can anyone help, or refer me to another guide that could help I m not even sure what to try and GOOGLE for help on this one. You re looking at the User variables section Check the System variables section right below that one it ll have many more variables along with PATH. Here is how I got around the adb command not being recognized. The problem was that the PATH listed above was not the PATH that my computer had platform-tools and tools under The PATH above, c android-sdk-windows toolsc android-sdk-windows platform-tools, was to brief and it was causing my computer Windows 7 64 Bit OS to look in the wrong place. Thus, I clicked on the computer tab, then c drive, then Program Files x86 , then Android, then android-sdk, and then the files platform-tools and tools So, this is what my PATH looks like now, and it works when I type adb devices in command prompt after entering cd twice. C Program Files x86 Android android-sdk toolsC Program Files x86 Android android-sdk platform-tools. The last kite I ll fly is what the example above demonstrates be specific I noticed that my android-sdk folder had no - windows text in its name at all, so I axed it and added a one-step-after-the-other PATH Hope this helps any dudes gals that were struggling because it certainly took me over half a day to put the pieces together. THIS IS AN IMPORTANT STEP. Thanks KJR GENIUS. Is there a program for Windows 7 or for the Andriod to share the display of the device Andriod Optimus on to the computers monitor Dell Inspiron mini. Well been spending 3 days trying to get honeycomb 3 on Nook As in this thread no drivers found for nook I look in usb driver in SDK folder and they are not there So when I direct to folder nothing I have Windows 7 64, if that means anything-saw thread to change variables in path Would changing that do it Solution would be appreciated-this puzzle needs to be solved for my psychy Thanks. I have windows 7 64bit Maybe I do not have latest Java update Which Java do I download for my system I did search and too many out there Direction appreciated, thanks PS-could it be the Java download. Hate to be a pain, but invested time and money with this Nook and seem so close, but can not get there I think I installed the correct Java it is the developers Java 6 update 25-When I install the Google drivers and close out of SDK-there is an error box states that Java 64 not found and it says something about path amd user variables add It asks to add this C C Program to path I added it to the same place that you asked to add c android-sdk-windows toolsc android-sdk-windows platform-tools I did that added to the end of the android path and before it and that error still comes up I can not get past the error Could that be the problem why there are no drivers found and that there are no drivers in the folder Is there a work around this PLEASE could someone assist or direct me to a solution Much appreciated, thanks. Been trying to get Google apps on my Nook with Honeycomb I get connected and no drivers found Been reading these comments and not the only one Two solutions might be the problem and newbie here One is there file in the usb drivers file Where is it and how can I get it Two-reading about adb exe I have that in platform tools Do I need to run this for nook If so, I tried command prompt and put adb devices in and nothing do I run that. Just figured out and ran adb devices with nook plugged in and said list of devices and nothing was listed Helppppp. Looked in usb drivers and there is androidwinusb there but there is no at the end-it just says that Should it have the inf there to find driver Is that the problem If so-how can I fix it Seems to be close to answer Thanks. adding more detail I go through device manager and get to have disk-I see the android-winusb and it does not highlight where underneath that it does have there Does this help. Win 7 64 bit I ve followed instructions for installing ADB, but keep getting following message Android SDK Manager Output WARNING Java not found in your path Checking if it s installed in C Program Files Java instead 64-bit Java was found at C Program I have added this to Path entry in User variables , but message still displays Any ideas will be much appreciated. Thanks for such a nice article. i followed all the instruction above but the cmd said adb is not recognize as a external or internal command can you post a reply for help pls. THANK YOU FOR EXPLAINING WHAT ADB STANDS FOR And for showing me where it should show up in the Device Manager Now my Coby Kyros MID7015 is rooted and CWR is working as they should. anyone please help me. i connected the playbook to my PC WIN7 64bit and done all steps when opening the Command and type adb connect 169 254 0 1 5555 it says unable to connect any clue. Nice article, however it would been better if you had informed us that you need have java jdk installed prior to installing android sdk All these huge downloads are killing me. For those of you having issues with getting ADB to work, as someone else said, triple check your paths, mine was slightly different from the example posted and it took me hours to finally see I was typing it in wrong. I have ADB installed correctly, however, my computer is not recognizing the nook when its attached It shows as a removable drive under my computer but when I click on it, it says please insert a disk into drive X Also, when I use the command prompt and type adb devices, it correctly says list of devices but then doesnt show any devices The Nook is showing as an Android Phone under my device manager with Android Composite ADB Interface. Any suggestions on why the nook is not being recognized I am running Win Vista SP 2, 32 bit. I also followed everything on my Nook and it is also only showing up under Android Phone and Android Composite ADB Interface Would love any help anyone can give us Thanks. why it should be that complicated in connecting usb, just to apply application in the android why not make things easy. I have been trying to root my phone now for several hours I cant even begin because I can t seem to get the drivers for my Samsung Epic 4G to install on my PC It keeps failing when it gets to the last step Installing ADB Will the above-mentioned allow me to finally successfully install the drivers needed for my PC running Windows 7 to access recognize the phone. installed adb interface for my motorola defy all right. the problem is adb devices command is showing two devices one is like this.016B22 device and when runnig the adb forward tcp 4747 tcp 4747 it says error more than one device and emulator. even if i disconnect my motorola defy and run cmd adb devices it shows a device with offline tag as mentioned above how to remove this device. Hi, I m using windows 7 and am trying to use DroidCam, but can t seem to understand anything I eventually found my way here and followed all the steps to getting ADB as it is needed for the usb connection for DroidCam I followed all steps successfully until the very last one I type in adb devices as said but I get the message. adb is not recognized as an internal or external command, operable program or batch file. Yeah I m using Windows XP but I got the same problem. After i root my phone what all am i looking to have will i have to download some sort of txt messenger dialer im new to this rooting business and im not even 100 sure what exactly rooting does to my phone is my phone gonna look the same after im done or does rooting mean that you erase the OS and have to install a new one Im not a complete idiot i just dont have time to research 6 thousand forums to learn about it all and would like a quick explanation if anyone can help, id appreciate it. Rooting is the act of gaining administrator acsess on your phone For the most part nothing will change unless you want it to Rooting gives you super user access allowing you to do things like over clock or edit the root system folders Now you can install custom roms or new is versions from third party developers but that is completely different from rooting. Absolute brilliance Well done. I ve been at this for 16 hours now, and I m still clueless. I ve followed all the steps here, but in the Command Prompt section, I m getting adb server is out of I m not sure if this is a major issue, because after a couple seconds it then says daemon started successfully My real problem is in the Devices Manager bit I don t see ADB Interface , only Android USB Device My HTC I am assuming that s rather crucial for me to carry on with downgrading the firmware and rooting the phone. were i can find the sdk platform tool window as shown in your 1st screenshot and the android sdk and AVD manager as shown in your 3rd screenshot I downloaded the android sdk but i can t get into your step you help pls. I would like to to talk to you in private by a problem I have with a phone I bought from China. My email is It would be great if you have somewhere your email address to contact with the blogger. what do i have to do if usb debugging was disabled can someone teach me thanks.

No comments:

Post a Comment