How to use adb commands in Appium? I am using java language for appium?
If you want to use adb directly you’ll need to make a system call.
I recently discovered that a lot of the functionality that we use adb for can be found in the official Android Java library that adb’s functions are built on. You can specify com.android.tools.ddms:ddmlib:24.5.0 as a jar dependency for your project. Javadocs have to be downloaded (just download straight from the Maven repository page).
Demo project demonstrating the library: https://github.com/Ladicek/ddmlib-demo/blob/master/src/main/java/cz/ladicek/android/ddmlib/Demo.java
Hope this helps with some basic commands needed