Currently, there are two types of rooting methods available for devices with locked bootloaders and those with unlocked bootloaders. Additionally, there are slight variations depending on the firmware version you're using.
Most devices purchased directly from the manufacturer come with firmware version 69. You can check your firmware by navigating to Settings / About phone, where the last line typically displays as 17.1.A.2.69/55. For imported devices, such as model 6503, it may be 55.
Step 1: Install the necessary drivers and flash tools on your computer.
Step 2: Download the Z2-Community_Rootkiet-v01.zip to your computer and proceed to extract it, any directory will suffice.
Step 3: On your Z2, navigate to Settings / About phone and tap on the build number seven times until the version number, typically 17.1.A.2.69, is displayed.
Step 4
Step 5: Check the box for USB debugging as shown in the image below.
Step 6: Connect your Z2 to your computer.
Step 7: Open the folder Z2-Community_RootKit-v01 that you extracted in step 2. Run the file runme.bat. You'll see the message 'Installing exploit app' as shown below.
And you'll receive a notification to copy the BIG file as shown below.
Step 8: Your Z2 screen will display the following screen --> Select Service info.
Step 9: The following screen will appear --> Select Configuration.
Step 10: Return to your computer and press any key to continue.
Step 11: If successful, repeat steps 8 - 9 - 10 once again.
Step 12: If successful, you'll see the message 'Removing exploit app' as shown below.
Step 13: Disconnect the cable and restart your Z2. Check if the Superuser app is present to confirm success. If not, repeat the process once more.
https://Mytour.vn/root-sony-xperia-z2-841n.aspx
With the above instructions, we've guided you through rooting your Sony Xperia Z2 device with FW 69/55. You can apply this to your device with the mentioned firmware.