Debug and Security CMD For Android
Debug and Security CMD For Android
ADB Command
Debug commands
Print a bugreport to the specified path. If path is a directory, then the bug report is
saved to that directory using the default file name, bugreport.zip . Devices that do
not support zipped bug reports print to stdout .
adb bugreport path
Print a list of the available JDWP processes on a given device. Use forward
jdwp:pid to connect to a specific JDWP process. For example:
adb forward tcp:8000 jdwp:472
jdb -attach localhost:8000
adb jdwp
Security commands
Disable dm-verity checking on userdebug builds. The dm-verity option ensures
that when a user boots a device that it is in the same state that it was in when it was
last used.
adb disable-verity
Re-enable dm-verity checking on userdebug builds. The dm-verity option ensures
that when a user boots a device that it is in the same state that it was in when it was
last used.
adb enable-verity
Generate adb public and private RSA encrypted keys. The private key is stored in
file. The public key is stored in file.pub . An RSA key pair is needed when you use
adb to connect over USB for the first time. You must accept the host computer's RSA
key to explicitly grant adb access to the device.
Use the $ANDROID_VENDOR_KEYS environment variable to point to a file or directory
that contains 2048-bit RSA authentication key pairs that you generated with
the keygen command. These key pairs are in addition to the RSA key pairs
generated by the adb server.
When the adb server needs a key, it first searches the adb server key store
directory. If no keys are found, it then checks
the $ANDROID_VENDOR_KEYS environment variable for a location. If still no keys are
found, the local adb server generates and saves a new key pair in the adb server
key store directory. For this reason, only an OEM creating a new Android device
should need to run 'adb keygen' themselves.
By default key pairs generated by the adb server are stored in the following key store
directories as adbkey (private key) and adbkey.pub (public key):
Linux and Mac: $HOME/.android .
Windows: %USERPOFILE%\.android .
adb keygen file