Command List
Command List
adb devices
adb shell
su
setprop sys.usb.config diag,adb
adb devices
adb shell
su
setprop sys.usb.config mtp,adb
This command updates the device by reflashing the device from zip file.
This command is a powerful command, you can flash a single partition, if your user
data is corrupted you can flash user data only. This command installs the file in
partition specified.
Major Partition is
userdata
system
boot
cache
4. The erase command
how to use: fastboot erase partition (major partition name are listed above)
how to use: fastboot format partition (major partition name are listed above)
how to use: fastboot boot partition (major partition name are listed above)
This a powerful command. You can boot into the different files without actually
flashing the phone. This command is used to test the custom-developed kernel
codes.
This command might require more or less command to work. It depends on the company.
For HTC phones you need more commands. like fastboot OEM get_identifier_token and
flashing the code back to the phone.
This command unlocks the OEM, which lets you install the custom ROMS.
There are more steps to unlock OEM, different brand phones have different steps to
unlock OEM. Please refer to company guide to unlock OEM.