Skip to content

Terminal transcript #57

@JoseM12341

Description

@JoseM12341

Welcome to Termux!

Community forum: https://termux.com/community
Gitter chat: https://gitter.im/termux/termux
IRC channel: #termux on libera.chat

Working with packages:

  • Search packages: pkg search
  • Install a package: pkg install
  • Upgrade packages: pkg upgrade

Subscribing to additional repositories:

  • Root: pkg install root-repo
  • X11: pkg install x11-repo

Report issues at https://termux.com/issues

~/downloads $ ~adb open shell cmd exec pkg install android_sdk/platform-tools
No command ~adb found, did you mean:
Command adb in package android-tools
~/downloads $ adb i stal
adb: unknown command i
~/downloads $ adb install pkg android-tools

  • daemon not running; starting now at tcp:5037
    ADB server didn't ACK
    Full server startup log: /data/data/com.termux/files/usr/tmp/adb.10371.log
    Server had pid: 16315
    --- adb starting (pid 16315) ---
    adb I 12-12 03:58:14 16315 16315 main.cpp:63] Android Debug Bridge version 1.0.41
    adb I 12-12 03:58:14 16315 16315 main.cpp:63] Version 31.0.3p1-android-tools
    adb I 12-12 03:58:14 16315 16315 main.cpp:63] Installed as /data/data/com.termux/files/usr/bin/adb
    adb I 12-12 03:58:14 16315 16315 main.cpp:63]
    adb F 12-12 03:58:14 16315 16315 main.cpp:155] could not install smartsocket listener: Address already in use

  • failed to start daemon
    Performing Push Install
    adb: need APK file on command line
    ~/downloads $ adb install pkg android-tools
    NOTICE.txt
    Scan 27 Oct 22 · 05·51·28.pdf
    Terminal transcript.txt
    adb
    android-studio-2021.3.1.17-cros.deb
    ~/downloads $ adb install pkg android-tools Welcome to Termux!

Community forum: https://termux.com/community
Gitter chat: https://gitter.im/termux/termux
IRC channel: #termux on libera.chat

Working with packages:

  • Search packages: pkg search
  • Install a package: pkg install
  • Upgrade packages: pkg upgrade

Subscribing to additional repositories:

  • Root: pkg install root-repo
  • X11: pkg install x11-repo

Report issues at https://termux.com/issues

~/downloads $ ~adb open shell cmd exec pkg install android_sdk/platform-tools
No command ~adb found, did you mean:
Command adb in package android-tools
~/downloads $ adb i stal
adb: unknown command i
~/downloads $ adb install pkg android-tools

  • daemon not running; starting now at tcp:5037
    ADB server didn't ACK
    Full server startup log: /data/data/com.termux/files/usr/tmp/adb.10371.log
    Server had pid: 16315
    --- adb starting (pid 16315) ---
    adb I 12-12 03:58:14 16315 16315 main.cpp:63] Android~/downloads $ adb install pkg android-tools already i

  • daemon not running; starting now at tcp:5037
    ADB server didn't ACK
    Full server startup log: /data/data/com.termux/files/usr/tmp/adb.10371.log
    Server had pid: 16463
    --- adb starting (pid 16463) ---
    adb I 12-12 03:59:51 16463 16463 main.cpp:63] Android Debug Bridge version 1.0.41
    adb I 12-12 03:59:51 16463 16463 main.cpp:63] Version 31.0.3p1-android-tools
    adb I 12-12 03:59:51 16463 16463 main.cpp:63] Installed as /data/data/com.termux/files/usr/bin/adb
    adb I 12-12 03:59:51 16463 16463 main.cpp:63]
    adb F 12-12 03:59:52 16463 16463 main.cpp:155] could not install smartsocket listener: Address already in use

  • failed to start daemon
    Performing Push Install
    adb: need APK file on command line
    Community: command not found
    No command Gitter found, did you mean:
    Command attr in package attr
    Command gitea in package gitea
    Command lexter in package lexter
    Command sorter in package sleuthkit
    Command bibtex in package texlive-bin
    Command setterm in package util-linux
    No command IRC found, did you mean:
    Command ack in package ack-grep
    Command acr in package acr
    Command age in package age
    Command adb in package android-tools
    Command ant in package ant
    Command ab in package apache2
    Command apt in package apt
    Command arj in package arj
    Command a2x in package asciidoc
    Command at in package at
    Command bat in package bat
    Command bc in package bc
    Command bsh in package beanshell
    Command ar in package binutils
    Command bk in package bk
    Command bvi in package bvi
    Command c++ in package clang
    Command ccr in package codecrypt
    Command ctr in package containerd from the root-repo repository
    Command [ in package coreutils
    Command ocs in package cscope
    Command lp in package cups
    Command cvs in package cvs
    Command d8 in package d8
    Command dar in package dar
    Command pub in package dart
    Command sh in package dash
    Command dlv in package delve
    Command cmp in package diffutils
    Command bzz in package djvulibre
    Command dig in package dnsutils
    Command dog in package dog
    Command scp in package dropbear
    Command dtc in package dtc
    Command dte in package dte
    Command duc in package duc
    Command duf in package duf
    Command duk in package duktape
    Command dwm in package dwm from the x11-repo repository
    Command dx in package dx
    Command ecj in package ecj
    Command ecl in package ecl
    Command ed in package ed
    Command eja in package eja
    Command ef in package electric-fence
    Command iex in package elixir
    Command erl in package erlang
    Command et in package et
    Command exa in package exa
    Command fd in package fd
    Command feh in package feh from the x11-repo repository
    Command fzf in package fzf
    Command fzy in package fzy
    Command gac in package gap
    Command dl in package gatling
    Command awk in package gawk
    Command gbt in package gbt
    Command gdb in package gdb
    Command evm in package geth-utils
    Command gh in package gh
    Command gs in package ghostscript
    Command git in package git
    Command gio in package glib-bin
    Command gn in package gn
    Command gpg in package gnupg
    Command go in package golang
    Command gm in package graphicsmagick
    Command dot in package graphviz
    Command eqn in package groff
    Command hx in package helix
    Command hcd in package hfsutils
    Command hub in package hub
    Command i3 in package i3 from the x11-repo repository
    Command ftp in package inetutils
    Command ip in package iproute2
    Command vvp in package iverilog
    Command iw in package iw from the root-repo repository
    Command jo in package jo
    Command joe in package joe
    Command jq in package jq
    Command joe in package jupp
    Command k9s in package k9s
    Command kak in package kakoune
    Command k in package kona
    Command ksu in package krb5
    Command dub in package ldc
    Command lf in package lf
    Command lha in package lhasa
    Command pl in package libgnustep-base
    Command arc in package libpoco
    Command psl in package libpsl
    Command lld in package lld
    Command llc in package llvm
    Command lnd in package lnd
    Command ksh in package loksh
    Command lr in package lr
    Command lrb in package lrzsz
    Command lsd in package lsd
    Command lua in package lua
    Command lyx in package lyx from the x11-repo repository
    Command lz4 in package lz4
    Command m4 in package m4
    Command ali in package mailutils
    Command man in package man
    Command mvn in package maven
    Command mc in package mc
    Command mdp in package mdp
    Command mg in package mg
    Command pee in package moreutils
    Command mpc in package mpc
    Command mpd in package mpd
    Command mpv in package mpv
    Command mpv in package mpv-x from the x11-repo repository
    Command lz in package mtools
    Command mtr in package mtr from the root-repo repository
    Command mu in package mu
    Command mr in package myrepos
    Command tic in package ncurses-utils
    Command ne in package ne
    Command arp in package net-tools
    Command nc in package netcat
    Command nc in package netcat-openbsd
    Command nim in package nim
    Command ali in package nmh
    Command nnn in package nnn
    Command nms in package no-more-secrets
    Command npm in package nodejs
    Command npm in package nodejs-lts
    Command nu in package nushell
    Command nx in package nxengine from the x11-repo repository
    Command o in package o-editor
    Command jar in package openjdk-17
    Command scp in package openssh
    Command 7z in package p7zip
    Command sem in package parallel
    Command gp in package pari
    Command fpp in package pathpicker
    Command php in package php
    Command php in package php7
    Command pil in package picolisp
    Command ode in package plotutils from the x11-repo repository
    Command ps in package procps
    Command cct in package proj
    Command pup in package pup
    Command pv in package pv
    Command qml in package qt5-declarative-dev from the x11-repo repository
    Command moc in package qt5-qtbase from the x11-repo repository
    Command qml in package qt5-qtdeclarative from the x11-repo repository
    Command qev in package qt5-qttools from the x11-repo repository
    Command qjs in package quickjs
    Command r2 in package radare2
    Command ci in package rcs
    Command rc in package rcshell
    Command rem in package remind
    Command icp in package renameutils
    Command rg in package ripgrep
    Command rga in package ripgrep-all
    Command rq in package rq
    Command erb in package ruby
    Command ri in package ruby-ri
    Command sv in package runit
    Command rls in package rust
    Command net in package samba
    Command psc in package sc
    Command srm in package secure-delete
    Command sed in package sed
    Command shc in package shc
    Command ag in package silversearcher-ag
    Command sl in package sl
    Command fls in package sleuthkit
    Command gst in package smalltalk
    Command rec in package sox
    Command st in package st from the x11-repo repository
    Command svn in package subversion
    Command sun in package sun
    Command sr in package surfraw
    Command tar in package tar
    Command ts in package task-spooler
    Command tsh in package teleport-tsh
    Command am in package termux-am
    Command cmd in package termux-tools
    Command ebb in package texlive-bin
    Command tig in package tig
    Command sn in package tin-summer
    Command tf in package tinyfugue
    Command tor in package tor
    Command tsu in package tsu
    Command cal in package util-linux
    Command cu in package uucp
    Command vim in package vim
    Command ex in package vim-gtk from the x11-repo repository
    Command vim in package vim-python
    Command vt in package virustotal-cli
    Command vis in package vis
    Command vtm in package vtm
    Command w3m in package w3m
    Command wg in package wireguard-tools
    Command wol in package wol
    Command wrk in package wrk
    Command x2x in package x2x from the x11-repo repository
    Command xml in package xmlstarlet
    Command X in package xorg-server from the x11-repo repository
    Command twm in package xorg-twm from the x11-repo repository
    Command xev in package xorg-xev from the x11-repo repository
    Command xz in package xz-utils
    Command z3 in package z3
    Command zip in package zip
    Command zsh in package zsh
    Working: command not found
    bash: syntax error near unexpected token newline' bash: syntax error near unexpected token newline'
    NOTICE.txt: command not found
    Subscribing: command not found
    NOTICE.txt: command not found
    NOTICE.txt: command not found
    No command Report found, did you mean:
    Command import in package imagemagick
    bash: /data/data/com.termux/files/home/downloads: Is a directory
    No command No found, did you mean:
    Command go in package golang
    Command jo in package jo
    Command o in package o-editor
    Command co in package rcs
    No command Command found, did you mean:
    Command comsatd in package mailutils
    Command common in package scala
    Command w3mman in package w3m
    bash: /data/data/com.termux/files/home/downloads: Is a directory
    No command adb: found, did you mean:
    Command adb in package android-tools
    bash: /data/data/com.termux/files/home/downloads: Is a directory
    NOTICE.txt: command not found
    No command starting found, did you mean:
    Command strings in package binutils

ADB -H shell install pkg gpg
ADB server didn't ACK
Full server startup log: /data/data/com.termux/files/usr/tmp/adb.10371.log
Server had pid: 16315
--- adb starting (pid 16315) ---
adb I 12-12 03:58:14 16315 16315 main.cpp:63] Android Debug Bridge version 1.0.41
adb I 12-12 03:58:14 16315 16315 main.cpp:63] Version 31.0.3p1-android-tools
adb I 12-12 03:58:14 16315 16315 main.cpp:63] Installed as /data/data/com.termux/files/usr/bin/adb
adb I 12-12 03:58:14 16315 16315 main.cpp:63]
adb F 12-12 03:58:14 16315 16315 main.cpp:155] could not install smartsocket listener: Address already in use

  • failed to start daemon
    Performing Push Install
    adb: need APK file on command line
    ~/downloads $ adb install pkg android-tools
    NOTICE.txt
    Scan 27 Oct 22 · 05·51·28.pdf
    Terminal transcript.txt
    adb
    android-studio-2021.3.1.17-cros.deb
    ~/downloads $ adb install pkg android-tools
    ADB -H shell install pkg gpg gpngx
    No command ADB found, did you mean:
    Command ack in package ack-grep
    Command acr in package acr
    Command age in package age
    Command adb in package android-tools
    Command ant in package ant
    Command ab in package apache2
    Command apt in package apt
    Command arj in package arj
    Command a2x in package asciidoc
    Command at in package at
    Command bat in package bat
    Command bc in package bc
    Command bsh in package beanshell
    Command ar in package binutils
    Command bk in package bk
    Command bvi in package bvi
    Command c++ in package clang
    Command ccr in package codecrypt
    Command ctr in package containerd from the root-repo repository
    Command [ in package coreutils
    Command ocs in package cscope
    Command lp in package cups
    Command cvs in package cvs
    Command d8 in package d8
    Command dar in package dar
    Command pub in package dart
    Command sh in package dash
    Command dlv in package delve
    Command cmp in package diffutils
    Command bzz in package djvulibre
    Command dig in package dnsutils
    Command dog in package dog
    Command scp in package dropbear
    Command dtc in package dtc
    Command dte in package dte
    Command duc in package duc
    Command duf in package duf
    Command duk in package duktape
    Command dwm in package dwm from the x11-repo repository
    Command dx in package dx
    Command ecj in package ecj
    Command ecl in package ecl
    Command ed in package ed
    Command eja in package eja
    Command ef in package electric-fence
    Command iex in package elixir
    Command erl in package erlang
    Command et in package et
    Command exa in package exa
    Command fd in package fd
    Command feh in package feh from the x11-repo repository
    Command fzf in package fzf
    Command fzy in package fzy
    Command gac in package gap
    Command dl in package gatling
    Command awk in package gawk
    Command gbt in package gbt
    Command gdb in package gdb
    Command evm in package geth-utils
    Command gh in package gh
    Command gs in package ghostscript
    Command git in package git
    Command gio in package glib-bin
    Command gn in package gn
    Command gpg in package gnupg
    Command go in package golang
    Command gm in package graphicsmagick
    Command dot in package graphviz
    Command eqn in package groff
    Command hx in package helix
    Command hcd in package hfsutils
    Command hub in package hub
    Command i3 in package i3 from the x11-repo repository
    Command ftp in package inetutils
    Command ip in package iproute2
    Command vvp in package iverilog
    Command iw in package iw from the root-repo repository
    Command jo in package jo
    Command joe in package joe
    Command jq in package jq
    Command joe in package jupp
    Command k9s in package k9s
    Command kak in package kakoune
    Command k in package kona
    Command ksu in package krb5
    Command dub in package ldc
    Command lf in package lf
    Command lha in package lhasa
    Command pl in package libgnustep-base
    Command arc in package libpoco
    Command psl in package libpsl
    Command lld in package lld
    Command llc in package llvm
    Command lnd in package lnd
    Command ksh in package loksh
    Command lr in package lr
    Command lrb in package lrzsz
    Command lsd in package lsd
    Command lua in package lua
    Command lyx in package lyx from the x11-repo repository
    Command lz4 in package lz4
    Command m4 in package m4
    Command ali in package mailutils
    Command man in package man
    Command mvn in package maven
    Command mc in package mc
    Command mdp in package mdp
    Command mg in package mg
    Command pee in package moreutils
    Command mpc in package mpc
    Command mpd in package mpd
    Command mpv in package mpv
    Command mpv in package mpv-x from the x11-repo repository
    Command lz in package mtools
    Command mtr in package mtr from the root-repo repository
    Command mu in package mu
    Command mr in package myrepos
    Command tic in package ncurses-utils
    Command ne in package ne
    Command arp in package net-tools
    Command nc in package netcat
    Command nc in package netcat-openbsd
    Command nim in package nim
    Command ali in package nmh
    Command nnn in package nnn
    Command nms in package no-more-secrets
    Command npm in package nodejs
    Command npm in package nodejs-lts
    Command nu in package nushell
    Command nx in package nxengine from the x11-repo repository
    Command o in package o-editor
    Command jar in package openjdk-17
    Command scp in package openssh
    Command 7z in package p7zip
    Command sem in package parallel
    Command gp in package pari
    Command fpp in package pathpicker
    Command php in package php
    Command php in package php7
    Command pil in package picolisp
    Command ode in package plotutils from the x11-repo repository
    Command ps in package procps
    Command cct in package proj
    Command pup in package pup
    Command pv in package pv
    Command qml in package qt5-declarative-dev from the x11-repo repository
    Command moc in package qt5-qtbase from the x11-repo repository
    Command qml in package qt5-qtdeclarative from the x11-repo repository
    Command qev in package qt5-qttools from the x11-repo repository
    Command qjs in package quickjs
    Command r2 in package radare2
    Command ci in package rcs
    Command rc in package rcshell
    Command rem in package remind
    Command icp in package renameutils
    Command rg in package ripgrep
    Command rga in package ripgrep-all
    Command rq in package rq
    Command erb in package ruby
    Command ri in package ruby-ri
    Command sv in package runit
    Command rls in package rust
    Command net in package samba
    Command psc in package sc
    Command srm in package secure-delete
    Command sed in package sed
    Command shc in package shc
    Command ag in package silversearcher-ag
    Command sl in package sl
    Command fls in package sleuthkit
    Command gst in package smalltalk
    Command rec in package sox
    Command st in package st from the x11-repo repository
    Command svn in package subversion
    Command sun in package sun
    Command sr in package surfraw
    Command tar in package tar
    Command ts in package task-spooler
    Command tsh in package teleport-tsh
    Command am in package termux-am
    Command cmd in package termux-tools
    Command ebb in package texlive-bin
    Command tig in package tig
    Command sn in package tin-summer
    Command tf in package tinyfugue
    Command tor in package tor
    Command tsu in package tsu
    Command cal in package util-linux
    Command cu in package uucp
    Command vim in package vim
    Command ex in package vim-gtk from the x11-repo repository
    Command vim in package vim-python
    Command vt in package virustotal-cli
    Command vis in package vis
    Command vtm in package vtm
    Command w3m in package w3m
    Command wg in package wireguard-tools
    Command wol in package wol
    Command wrk in package wrk
    Command x2x in package x2x from the x11-repo repository
    Command xml in package xmlstarlet
    Command X in package xorg-server from the x11-repo repository
    Command twm in package xorg-twm from the x11-repo repository
    Command xev in package xorg-xev from the x11-repo repository
    Command xz in package xz-utils
    Command z3 in package z3
    Command zip in package zip
    Command zsh in package zsh
    No command Full found, did you mean:
    Command kill in package coreutils
    Command curl in package curl
    Command ul in package util-linux
    No command Server found, did you mean:
    Command sserver in package krb5
    bash: syntax error near unexpected token `('
    adb: unknown command I
    adb: unknown command I
    adb: unknown command I
    adb: unknown command I
    adb: unknown command F
    NOTICE.txt: command not found
    Performing: command not found
    No command adb: found, did you mean:
    Command adb in package android-tools
    bash: /data/data/com.termux/files/home/downloads: Is a directory
    NOTICE.txt: command not found
    No command Scan found, did you mean:
    Command scan in package mailutils
    Command scan in package nmh
    xNo command Terminal found, did you mean:
    Command qterminal in package qterminal from the x11-repo repository
    Android Debug Bridge version 1.0.41
    Version 31.0.3p1-android-tools
    Installed as /data/data/com.termux/files/usr/bin/adb

global options:
-a listen on all network interfaces, not just localhost
-d use USB device (error if multiple devices connected)
-e use TCP/IP device (error if multiple TCP/IP devices available)
-s SERIAL use device with given serial (overrides $ANDROID_SERIAL)
-t ID use device with given transport id
-H name of adb server host [default=localhost]
-P port of adb server [default=5037]
-L SOCKET listen on given socket for adb server [default=tcp:localhost:5037]

general commands:
devices [-l] list connected devices (-l for long output)
help show this help message
version show version num

networking:
connect HOST[:PORT] connect to a device via TCP/IP [default port=5555]
disconnect [HOST[:PORT]]
disconnect from given TCP/IP device [default port=5555], or all
pair HOST[:PORT] [PAIRING CODE]
pair with a device for secure TCP/IP communication
forward --list list all forward socket connections
forward [--no-rebind] LOCAL REMOTE
forward socket connection using:
tcp: ( may be "tcp:0" to pick any open port)
localabstract:
localreserved:
localfilesystem:
dev:
jdwp: (remote only)
vsock:: (remote only)
acceptfd: (listen only)
forward --remove LOCAL remove specific forward socket connection
forward --remove-all remove all forward socket connections
ppp TTY [PARAMETER...] run PPP over USB
reverse --list list all reverse socket connections from device
reverse [--no-rebind] REMOTE LOCAL
reverse socket connection using:
tcp: ( may be "tcp:0" to pick any open port)
localabstract:
localreserved:
localfilesystem:
reverse --remove REMOTE remove specific reverse socket connection
reverse --remove-all remove all reverse socket connections from device
mdns check check if mdns discovery is available
mdns services list all discovered services

file transfer:
push [--sync] [-z ALGORITHM] [-Z] LOCAL... REMOTE
copy local files/directories to device
--sync: only push files that are newer on the host than the device
-n: dry run: push files to device without storing to the filesystem
-z: enable compression with a specified algorithm (any, none, brotli)
-Z: disable compression
pull [-a] [-z ALGORITHM] [-Z] REMOTE... LOCAL
copy files/dirs from device
-a: preserve file timestamp and mode
-z: enable compression with a specified algorithm (any, none, brotli)
-Z: disable compression
sync [-l] [-z ALGORITHM] [-Z] [all|data|odm|oem|product|system|system_ext|vendor]
sync a local build from $ANDROID_PRODUCT_OUT to the device (default all)
-n: dry run: push files to device without storing to the filesystem
-l: list files that would be copied, but don't copy them
-z: enable compression with a specified algorithm (any, none, brotli)
-Z: disable compression

shell:
shell [-e ESCAPE] [-n] [-Tt] [-x] [COMMAND...]
run remote shell command (interactive shell if no command given)
-e: choose escape character, or "none"; default '~'
-n: don't read from stdin
-T: disable pty allocation
-t: allocate a pty if on a tty (-tt: force pty allocation)
-x: disable remote exit codes and stdout/stderr separation
emu COMMAND run emulator console command

app installation (see also adb shell cmd package help):
install [-lrtsdg] [--instant] PACKAGE
push a single package to the device and install it
install-multiple [-lrtsdpg] [--instant] PACKAGE...
push multiple APKs to the device for a single package and install them
install-multi-package [-lrtsdpg] [--instant] PACKAGE...
push one or more packages to the device and install them atomically
-r: replace existing application
-t: allow test packages
-d: allow version code downgrade (debuggable packages only)
-p: partial application install (install-multiple only)
-g: grant all runtime permissions
--abi ABI: override platform's default ABI
--instant: cause the app to be installed as an ephemeral install app
--no-streaming: always push APK to device and invoke Package Manager as separate steps
--streaming: force streaming APK directly into Package Manager
--fastdeploy: use fast deploy
--no-fastdeploy: prevent use of fast deploy
--force-agent: force update of deployment agent when using fast deploy
--date-check-agent: update deployment agent when local version is newer and using fast deploy
--version-check-agent: update deployment agent when local version has different version code and using fast deploy
--local-agent: locate agent files from local source build (instead of SDK location)
(See also adb shell pm help for more options.)
uninstall [-k] PACKAGE
remove this app package from the device
'-k': keep the data and cache directories

debugging:
bugreport [PATH]
write bugreport to given PATH [default=bugreport.zip];
if PATH is a directory, the bug report is saved in that directory.
devices that don't support zipped bug reports output to stdout.
jdwp list pids of processes hosting a JDWP transport
logcat show device log (logcat --help for more)

security:
disable-verity disable dm-verity checking on userdebug builds
enable-verity re-enable dm-verity checking on userdebug builds
keygen FILE
generate adb public/private key; private key stored in FILE,

scripting:
wait-for[-TRANSPORT]-STATE...
wait for device to be in a given state
STATE: device, recovery, rescue, sideload, bootloader, or disconnect
TRANSPORT: usb, local, or any [default=any]
get-state print offline | bootloader | device
get-serialno print
get-devpath print
remount [-R]
remount partitions read-write. if a reboot is required, -R will
will automatically reboot the device.
reboot [bootloader|recovery|sideload|sideload-auto-reboot]
reboot the device; defaults to booting system image but
supports bootloader and recovery too. sideload reboots
into recovery and automatically starts sideload mode,
sideload-auto-reboot is the same but reboots after sideloading.
sideload OTAPACKAGE sideload the given full OTA package
root restart adbd with root permissions
unroot restart adbd without root permissions
usb restart adbd listening on USB
tcpip PORT restart adbd listening on TCP on PORT

internal debugging:
start-server ensure that there is a server running
kill-server kill the server if it is running
reconnect kick connection from host side to force reconnect
reconnect device kick connection from device side to force reconnect
reconnect offline reset offline/unauthorized devices to force reconnect

usb:
attach attach a detached USB device
detach detach from a USB device to allow use by other processes
environment variables:
$ADB_TRACE
comma-separated list of debug info to log:
all,adb,sockets,packets,rwx,usb,sync,sysdeps,transport,jdwp
$ADB_VENDOR_KEYS colon-separated list of keys (files or directories)
$ANDROID_SERIAL serial number to connect to (see -s)
$ANDROID_LOG_TAGS tags to be used by logcat (see logcat --help)
$ADB_LOCAL_TRANSPORT_MAX_PORT max emulator scan port (default 5585, 16 emus)
$ADB_MDNS_AUTO_CONNECT comma-separated list of mdns services to allow auto-connect (default adb-tls-connect)
android-studio-2021.3.1.17-cros.deb: command not found
bash: /data/data/com.termux/files/home/downloads: Is a directory
No command ADB found, did you mean:
Command ack in package ack-grep
Command acr in package acr
Command age in package age
Command adb in package android-tools
Command ant in package ant
Command ab in package apache2
Command apt in package apt
Command arj in package arj
Command a2x in package asciidoc
Command at in package at
Command bat in package bat
Command bc in package bc
Command bsh in package beanshell
Command ar in package binutils
Command bk in package bk
Command bvi in package bvi
Command c++ in package clang
Command ccr in package codecrypt
Command ctr in package containerd from the root-repo repository
Command [ in package coreutils
Command ocs in package cscope
Command lp in package cups
Command cvs in package cvs
Command d8 in package d8
Command dar in package dar
Command pub in package dart
Command sh in package dash
Command dlv in package delve
Command cmp in package diffutils
Command bzz in package djvulibre
Command dig in package dnsutils
Command dog in package dog
Command scp in package dropbear
Command dtc in package dtc
Command dte in package dte
Command duc in package duc
Command duf in package duf
Command duk in package duktape
Command dwm in package dwm from the x11-repo repository
Command dx in package dx
Command ecj in package ecj
Command ecl in package ecl
Command ed in package ed
Command eja in package eja
Command ef in package electric-fence
Command iex in package elixir
Command erl in package erlang
Command et in package et
Command exa in package exa
Command fd in package fd
Command feh in package feh from the x11-repo repository
Command fzf in package fzf
Command fzy in package fzy
Command gac in package gap
Command dl in package gatling
Command awk in package gawk
Command gbt in package gbt
Command gdb in package gdb
Command evm in package geth-utils
Command gh in package gh
Command gs in package ghostscript
Command git in package git
Command gio in package glib-bin
Command gn in package gn
Command gpg in package gnupg
Command go in package golang
Command gm in package graphicsmagick
Command dot in package graphviz
Command eqn in package groff
Command hx in package helix
Command hcd in package hfsutils
Command hub in package hub
Command i3 in package i3 from the x11-repo repository
Command ftp in package inetutils
Command ip in package iproute2
Command vvp in package iverilog
Command iw in package iw from the root-repo repository
Command jo in package jo
Command joe in package joe
Command jq in package jq
Command joe in package jupp
Command k9s in package k9s
Command kak in package kakoune
Command k in package kona
Command ksu in package krb5
Command dub in package ldc
Command lf in package lf
Command lha in package lhasa
Command pl in package libgnustep-base
Command arc in package libpoco
Command psl in package libpsl
Command lld in package lld
Command llc in package llvm
Command lnd in package lnd
Command ksh in package loksh
Command lr in package lr
Command lrb in package lrzsz
Command lsd in package lsd
Command lua in package lua
Command lyx in package lyx from the x11-repo repository
Command lz4 in package lz4
Command m4 in package m4
Command ali in package mailutils
Command man in package man
Command mvn in package maven
Command mc in package mc
Command mdp in package mdp
Command mg in package mg
Command pee in package moreutils
Command mpc in package mpc
Command mpd in package mpd
Command mpv in package mpv
Command mpv in package mpv-x from the x11-repo repository
Command lz in package mtools
Command mtr in package mtr from the root-repo repository
Command mu in package mu
Command mr in package myrepos
Command tic in package ncurses-utils
Command ne in package ne
Command arp in package net-tools
Command nc in package netcat
Command nc in package netcat-openbsd
Command nim in package nim
Command ali in package nmh
Command nnn in package nnn
Command nms in package no-more-secrets
Command npm in package nodejs
Command npm in package nodejs-lts
Command nu in package nushell
Command nx in package nxengine from the x11-repo repository
Command o in package o-editor
Command jar in package openjdk-17
Command scp in package openssh
Command 7z in package p7zip
Command sem in package parallel
Command gp in package pari
Command fpp in package pathpicker
Command php in package php
Command php in package php7
Command pil in package picolisp
Command ode in package plotutils from the x11-repo repository
Command ps in package procps
Command cct in package proj
Command pup in package pup
Command pv in package pv
Command qml in package qt5-declarative-dev from the x11-repo repository
Command moc in package qt5-qtbase from the x11-repo repository
Command qml in package qt5-qtdeclarative from the x11-repo repository
Command qev in package qt5-qttools from the x11-repo repository
Command qjs in package quickjs
Command r2 in package radare2
Command ci in package rcs
Command rc in package rcshell
Command rem in package remind
Command icp in package renameutils
Command rg in package ripgrep
Command rga in package ripgrep-all
Command rq in package rq
Command erb in package ruby
Command ri in package ruby-ri
Command sv in package runit
Command rls in package rust
Command net in package samba
Command psc in package sc
Command srm in package secure-delete
Command sed in package sed
Command shc in package shc
Command ag in package silversearcher-ag
Command sl in package sl
Command fls in package sleuthkit
Command gst in package smalltalk
Command rec in package sox
Command st in package st from the x11-repo repository
Command svn in package subversion
Command sun in package sun
Command sr in package surfraw
Command tar in package tar
Command ts in package task-spooler
Command tsh in package teleport-tsh
Command am in package termux-am
Command cmd in package termux-tools
Command ebb in package texlive-bin
Command tig in package tig
Command sn in package tin-summer
Command tf in package tinyfugue
Command tor in package tor
Command tsu in package tsu
Command cal in package util-linux
Command cu in package uucp
Command vim in package vim
Command ex in package vim-gtk from the x11-repo repository
Command vim in package vim-python
Command vt in package virustotal-cli
Command vis in package vis
Command vtm in package vtm
Command w3m in package w3m
Command wg in package wireguard-tools
Command wol in package wol
Command wrk in package wrk
Command x2x in package x2x from the x11-repo repository
Command xml in package xmlstarlet
Command X in package xorg-server from the x11-repo repository
Command twm in package xorg-twm from the x11-repo repository
Command xev in package xorg-xev from the x11-repo repository
Command xz in package xz-utils
Command z3 in package z3
Command zip in package zip
Command zsh in package zsh
~/downloads $ bugreport
bugreport: command not found
~/downloads $ adb list device
adb: unknown command list
~/downloads $ adb config
adb: unknown command config
~/downloads $ adb cmd
adb: unknown command cmd
~/downloads $ adb help
Android Debug Bridge version 1.0.41
Version 31.0.3p1-android-tools
Installed as /data/data/com.termux/files/usr/bin/adb

global options:
-a listen on all network interfaces, not just localhost
-d use USB device (error if multiple devices connected)
-e use TCP/IP device (error if multiple TCP/IP devices available)
-s SERIAL use device with given serial (overrides $ANDROID_SERIAL)
-t ID use device with given transport id
-H name of adb server host [default=localhost]
-P port of adb server [default=5037]
-L SOCKET listen on given socket for adb server [default=tcp:localhost:5037]

general commands:
devices [-l] list connected devices (-l for long output)
help show this help message
version show version num

networking:
connect HOST[:PORT] connect to a device via TCP/IP [default port=5555]
disconnect [HOST[:PORT]]
disconnect from given TCP/IP device [default port=5555], or all
pair HOST[:PORT] [PAIRING CODE]
pair with a device for secure TCP/IP communication
forward --list list all forward socket connections
forward [--no-rebind] LOCAL REMOTE
forward socket connection using:
tcp: ( may be "tcp:0" to pick any open port)
localabstract:
localreserved:
localfilesystem:
dev:
jdwp: (remote only)
vsock:: (remote only)
acceptfd: (listen only)
forward --remove LOCAL remove specific forward socket connection
forward --remove-all remove all forward socket connections
ppp TTY [PARAMETER...] run PPP over USB
reverse --list list all reverse socket connections from device
reverse [--no-rebind] REMOTE LOCAL
reverse socket connection using:
tcp: ( may be "tcp:0" to pick any open port)
localabstract:
localreserved:
localfilesystem:
reverse --remove REMOTE remove specific reverse socket connection
reverse --remove-all remove all reverse socket connections from device
mdns check check if mdns discovery is available
mdns services list all discovered services

file transfer:
push [--sync] [-z ALGORITHM] [-Z] LOCAL... REMOTE
copy local files/directories to device
--sync: only push files that are newer on the host than the device
-n: dry run: push files to device without storing to the filesystem
-z: enable compression with a specified algorithm (any, none, brotli)
-Z: disable compression
pull [-a] [-z ALGORITHM] [-Z] REMOTE... LOCAL
copy files/dirs from device
-a: preserve file timestamp and mode
-z: enable compression with a specified algorithm (any, none, brotli)
-Z: disable compression
sync [-l] [-z ALGORITHM] [-Z] [all|data|odm|oem|product|system|system_ext|vendor]
sync a local build from $ANDROID_PRODUCT_OUT to the device (default all)
-n: dry run: push files to device without storing to the filesystem
-l: list files that would be copied, but don't copy them
-z: enable compression with a specified algorithm (any, none, brotli)
-Z: disable compression

shell:
shell [-e ESCAPE] [-n] [-Tt] [-x] [COMMAND...]
run remote shell command (interactive shell if no command given)
-e: choose escape character, or "none"; default '~'
-n: don't read from stdin
-T: disable pty allocation
-t: allocate a pty if on a tty (-tt: force pty allocation)
-x: disable remote exit codes and stdout/stderr separation
emu COMMAND run emulator console command

app installation (see also adb shell cmd package help):
install [-lrtsdg] [--instant] PACKAGE
push a single package to the device and install it
install-multiple [-lrtsdpg] [--instant] PACKAGE...
push multiple APKs to the device for a single package and install them
install-multi-package [-lrtsdpg] [--instant] PACKAGE...
push one or more packages to the device and install them atomically
-r: replace existing application
-t: allow test packages
-d: allow version code downgrade (debuggable packages only)
-p: partial application install (install-multiple only)
-g: grant all runtime permissions
--abi ABI: override platform's default ABI
--instant: cause the app to be installed as an ephemeral install app
--no-streaming: always push APK to device and invoke Package Manager as separate steps
--streaming: force streaming APK directly into Package Manager
--fastdeploy: use fast deploy
--no-fastdeploy: prevent use of fast deploy
--force-agent: force update of deployment agent when using fast deploy
--date-check-agent: update deployment agent when local version is newer and using fast deploy
--version-check-agent: update deployment agent when local version has different version code and using fast deploy
--local-agent: locate agent files from local source build (instead of SDK location)
(See also adb shell pm help for more options.)
uninstall [-k] PACKAGE
remove this app package from the device
'-k': keep the data and cache directories

debugging:
bugreport [PATH]
write bugreport to given PATH [default=bugreport.zip];
if PATH is a directory, the bug report is saved in that directory.
devices that don't support zipped bug reports output to stdout.
jdwp list pids of processes hosting a JDWP transport
logcat show device log (logcat --help for more)

security:
disable-verity disable dm-verity checking on userdebug builds
enable-verity re-enable dm-verity checking on userdebug builds
keygen FILE
generate adb public/private key; private key stored in FILE,

scripting:
wait-for[-TRANSPORT]-STATE...
wait for device to be in a given state
STATE: device, recovery, rescue, sideload, bootloader, or disconnect
TRANSPORT: usb, local, or any [default=any]
get-state print offline | bootloader | device
get-serialno print
get-devpath print
remount [-R]
remount partitions read-write. if a reboot is required, -R will
will automatically reboot the device.
reboot [bootloader|recovery|sideload|sideload-auto-reboot]
reboot the device; defaults to booting system image but
supports bootloader and recovery too. sideload reboots
into recovery and automatically starts sideload mode,
sideload-auto-reboot is the same but reboots after sideloading.
sideload OTAPACKAGE sideload the given full OTA package
root restart adbd with root permissions
unroot restart adbd without root permissions
usb restart adbd listening on USB
tcpip PORT restart adbd listening on TCP on PORT

internal debugging:
start-server ensure that there is a server running
kill-server kill the server if it is running
reconnect kick connection from host side to force reconnect
reconnect device kick connection from device side to force reconnect
reconnect offline reset offline/unauthorized devices to force reconnect

usb:
attach attach a detached USB device
detach detach from a USB device to allow use by other processes
environment variables:
$ADB_TRACE
comma-separated list of debug info to log:
all,adb,sockets,packets,rwx,usb,sync,sysdeps,transport,jdwp
$ADB_VENDOR_KEYS colon-separated list of keys (files or directories)
$ANDROID_SERIAL serial number to connect to (see -s)
$ANDROID_LOG_TAGS tags to be used by logcat (see logcat --help)
$ADB_LOCAL_TRANSPORT_MAX_PORT max emulator scan port (default 5585, 16 emus)
$ADB_MDNS_AUTO_CONNECT comma-separated list of mdns services to allow auto-connect (default adb-tls-connect)
~/downloads $ adb nsport
adb: unknown command nsport
~/downloads $ adb -jdwp
adb: unknown command -jdwp
~/downloads $ adb -h usb trace
adb: unknown command -h
~/downloads $ ADB EXEC SHELL AD
No command ADB found, did you mean:
Command ack in package ack-grep
Command acr in package acr
Command age in package age
Command adb in package android-tools
Command ant in package ant
Command ab in package apache2
Command apt in package apt
Command arj in package arj
Command a2x in package asciidoc
Command at in package at
Command bat in package bat
Command bc in package bc
Command bsh in package beanshell
Command ar in package binutils
Command bk in package bk
Command bvi in package bvi
Command c++ in package clang
Command ccr in package codecrypt
Command ctr in package containerd from the root-repo repository
Command [ in package coreutils
Command ocs in package cscope
Command lp in package cups
Command cvs in package cvs
Command d8 in package d8
Command dar in package dar
Command pub in package dart
Command sh in package dash
Command dlv in package delve
Command cmp in package diffutils
Command bzz in package djvulibre
Command dig in package dnsutils
Command dog in package dog
Command scp in package dropbear
Command dtc in package dtc
Command dte in package dte
Command duc in package duc
Command duf in package duf
Command duk in package duktape
Command dwm in package dwm from the x11-repo repository
Command dx in package dx
Command ecj in package ecj
Command ecl in package ecl
Command ed in package ed
Command eja in package eja
Command ef in package electric-fence
Command iex in package elixir
Command erl in package erlang
Command et in package et
Command exa in package exa
Command fd in package fd
Command feh in package feh from the x11-repo repository
Command fzf in package fzf
Command fzy in package fzy
Command gac in package gap
Command dl in package gatling
Command awk in package gawk
Command gbt in package gbt
Command gdb in package gdb
Command evm in package geth-utils
Command gh in package gh
Command gs in package ghostscript
Command git in package git
Command gio in package glib-bin
Command gn in package gn
Command gpg in package gnupg
Command go in package golang
Command gm in package graphicsmagick
Command dot in package graphviz
Command eqn in package groff
Command hx in package helix
Command hcd in package hfsutils
Command hub in package hub
Command i3 in package i3 from the x11-repo repository
Command ftp in package inetutils
Command ip in package iproute2
Command vvp in package iverilog
Command iw in package iw from the root-repo repository
Command jo in package jo
Command joe in package joe
Command jq in package jq
Command joe in package jupp
Command k9s in package k9s
Command kak in package kakoune
Command k in package kona
Command ksu in package krb5
Command dub in package ldc
Command lf in package lf
Command lha in package lhasa
Command pl in package libgnustep-base
Command arc in package libpoco
Command psl in package libpsl
Command lld in package lld
Command llc in package llvm
Command lnd in package lnd
Command ksh in package loksh
Command lr in package lr
Command lrb in package lrzsz
Command lsd in package lsd
Command lua in package lua
Command lyx in package lyx from the x11-repo repository
Command lz4 in package lz4
Command m4 in package m4
Command ali in package mailutils
Command man in package man
Command mvn in package maven
Command mc in package mc
Command mdp in package mdp
Command mg in package mg
Command pee in package moreutils
Command mpc in package mpc
Command mpd in package mpd
Command mpv in package mpv
Command mpv in package mpv-x from the x11-repo repository
Command lz in package mtools
Command mtr in package mtr from the root-repo repository
Command mu in package mu
Command mr in package myrepos
Command tic in package ncurses-utils
Command ne in package ne
Command arp in package net-tools
Command nc in package netcat
Command nc in package netcat-openbsd
Command nim in package nim
Command ali in package nmh
Command nnn in package nnn
Command nms in package no-more-secrets
Command npm in package nodejs
Command npm in package nodejs-lts
Command nu in package nushell
Command nx in package nxengine from the x11-repo repository
Command o in package o-editor
Command jar in package openjdk-17
Command scp in package openssh
Command 7z in package p7zip
Command sem in package parallel
Command gp in package pari
Command fpp in package pathpicker
Command php in package php
Command php in package php7
Command pil in package picolisp
Command ode in package plotutils from the x11-repo repository
Command ps in package procps
Command cct in package proj
Command pup in package pup
Command pv in package pv
Command qml in package qt5-declarative-dev from the x11-repo repository
Command moc in package qt5-qtbase from the x11-repo repository
Command qml in package qt5-qtdeclarative from the x11-repo repository
Command qev in package qt5-qttools from the x11-repo repository
Command qjs in package quickjs
Command r2 in package radare2
Command ci in package rcs
Command rc in package rcshell
Command rem in package remind
Command icp in package renameutils
Command rg in package ripgrep
Command rga in package ripgrep-all
Command rq in package rq
Command erb in package ruby
Command ri in package ruby-ri
Command sv in package runit
Command rls in package rust
Command net in package samba
Command psc in package sc
Command srm in package secure-delete
Command sed in package sed
Command shc in package shc
Command ag in package silversearcher-ag
Command sl in package sl
Command fls in package sleuthkit
Command gst in package smalltalk
Command rec in package sox
Command st in package st from the x11-repo repository
Command svn in package subversion
Command sun in package sun
Command sr in package surfraw
Command tar in package tar
Command ts in package task-spooler
Command tsh in package teleport-tsh
Command am in package termux-am
Command cmd in package termux-tools
Command ebb in package texlive-bin
Command tig in package tig
Command sn in package tin-summer
Command tf in package tinyfugue
Command tor in package tor
Command tsu in package tsu
Command cal in package util-linux
Command cu in package uucp
Command vim in package vim
Command ex in package vim-gtk from the x11-repo repository
Command vim in package vim-python
Command vt in package virustotal-cli
Command vis in package vis
Command vtm in package vtm
Command w3m in package w3m
Command wg in package wireguard-tools
Command wol in package wol
Command wrk in package wrk
Command x2x in package x2x from the x11-repo repository
Command xml in package xmlstarlet
Command X in package xorg-server from the x11-repo repository
Command twm in package xorg-twm from the x11-repo repository
Command xev in package xorg-xev from the x11-repo repository
Command xz in package xz-utils
Command z3 in package z3
Command zip in package zip
Command zsh in package zsh
~/downloads $
~/downloads $

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions