how to take complete backup of my android device using adb I'm trying to take full backup using adb backup -all -f &lt;path&gt; and it took backup and stored in my PC.

When I try to restore it using adb restore &lt;path&gt; then it restores onto the target device.

ADB backup command is not taking backup of messages, contacts and pictures. Kindly guide me if I'm missing something.

I could see that I have to use adb root to take backup using pull command. Will the device warranty be there if I use adb root command?
For photos you can either copy them to the pc or use a third party app that will backup them,  like Google photos. 

For contacts and sms there are plenty of third party apps.  You can alao backup the contacts to google server using the contacts app itself