Shell - How to list only files in Android ADB ? - Stack

Adb ls command options

Adb ls command options


The  adb start-server  command is used to check the current state of ADB server. When you start ADB or execute an ADB command for the first time, it automatically executes the “adb start-server” command (you might not see the execution, because it happens in the background.) So if there is an ADB server which is already live you might have to stop the current ADB server process by using the  adb kill-server  command. You shall use the start-server command to start ADB server after killing it.

Most Complete ADB Cheat Sheet - Automate The Planet

This command can be used to pull any files from your device and save it on your computer. To download or pull a file from your Android device to the SDK platform-tools directory, use

Top 20 ADB Commands Every Android User Should Know (PDF

I might be wrong but "find -name __" works fine for me. (Maybe it's just my phone.) If you just want to list all files, you can try

On Android devices running Android KitKat and above, you can even record your phone or tablet’s screen and download the recorded video to your computer using the ADB shell commands. Besides, you can also set conditions like video duration, resolution in pixels and video bitrate, etc. You need to press Ctrl+C to stop recording manually.

People who are used to rooting their Android devices or customizing it will be well aware of ADB and fastboot. These are system utilities that provide access to the backend of Android when it is connected to a PC. These are also one of the constants in the Android ecosystem. Same commands will produce the same results regardless of the device you have, in most cases. ADB or Android Debug Bridge can be used when the Android device is turned on while Fastboot can be used while the device is in the Bootloader or Fastboot mode. Today we’ll take a look at some useful ADB and Fastboot commands.

This command can be used to uninstall an installed app, which is pretty clear from the command itself.

Unlocks the bootloader on some Android devices such as Pixel or OnePlus. Most other Android devices require you to get an unlock key from the OEM.

As you can tell from the name itself, this command can be used to know the device state. When the command is executed, it shows whether your device state is in offline, bootloader or in device mode. For a normal Android device, you will see your Android state as “device”, just like in the below image.

adb shell permissions groups (list permission groups definitions)
adb shell list permissions -g -r (list permissions details)

object := { link | addr | addrlabel | route | rule | neigh | ntable |tunnel | tuntap | maddr | mroute | mrule | monitor | xfrm |netns | l7tp }

Adb reverse command is basically the opposite of  adb forward. It allows you to forward ports from your device to the host. In this syntax, first parameter is the port on device which is remotely connected and second is the port on host you want to forward it to.


Leave a comment