[Xperia Z5 Premium General] cglegion:
If you are looking to flash stock firmware, custom kernel, custom recovery, root via supersu, and remove bloatware for E6883 model only, you came to the right thread, otherwise, go away. Make sure you have at least 50% battery before proceeding. I'm assuming you are running Microsoft Windows 10 Home x64 and have installed all required Google USB Drivers, Android SDK (for fastboot), and an unlocked bootloader. If you have not done this yet, install them first so that your device will be recognized. Don't forget to enable "USB debugging" and "OEM unlocking" from the "Developer options" menu on your device. Come on, you can't be that noob. If you don't even know what that means, you don't belong here and chances are, you will end up with a bricked phone.

/* YOUR WARRANTY IS NOW VOID */

Download all necessary files, preferably the latest version.

Xperia Firmware Downloader

Sony Mobile Flasher by Androxyde

Custom Kernel - Rename the file as boot.img and move it to "C:\Android\SDK\platform-tools\boot.img"

Custom Recovery - Rename the file as recovery.img and move it to "C:\Android\SDK\platform-tools\recovery.img"

SuperSU Stable - Rename the file as supersu.zip and move it to your external SD card.

[STEP 1] Using the Xperia Firmware Downloader.

1. Run "XperiFirm.exe" as Administrator.

2. Select "Xperia Z5 Premium Satsiki" > "E6883 dual" from the list.

3. Select your preferred firmware and download.

4. DONE.

[STEP 2] Using the Sony Mobile Flasher by Androxyde.

// How to prepare a flashable .ftf file?

1. Run "Sony Mobile Flasher by Androxyde.exe" as Administrator.

2. Select "Tools" > "Bundles" > "Create" from the menu.

3. "Select source folder" where your firmware folder is located.

4. Double-click "Device" editbox and select "E68XX Sony Xperia Z5 Premium" > "E6883".

5. Fill in the "Branding" editbox.

6. Fill in the "Version" editbox.

7. Select everything from the "folder list" and move them to "Firmware Content".

8. Click on the "Create" button.

9. DONE.

// How to start flashing a .ftf file?

1. Run "Sony Mobile Flasher by Androxyde.exe" as Administrator.

2. Click on the "Thunder toolbar button" and choose "Flashmode".

3. Select your "Firmware".

4. Click on the checkboxes to wipe everything and don't exclude anything except SIMLOCK (you can't touch this).

5. Click on the "Flash" button.

6. DONE.

[STEP 3] Flashing the custom kernel.

1. Run "Command Prompt" as Administrator.

2. Go to "cd C:\Android\SDK\platform-tools"

3. Turn off your device.

4. Plug in your USB cable while holding on to the "volume-up rocker" until you see a blue LED indicator on the top left of your device. You are now ready to use the fastboot function.

5. Type "fastboot flash boot boot.img"

6. DONE.

[STEP 4] Flashing the custom recovery. - Actually, there is no need for this step. The custom kernel provided above already included TWRP 3, so this is just to show you how to flash a custom recovery. Thanks, [MENTION=5613633]YasuHamed[/MENTION]

1. Run "Command Prompt" as Administrator.

2. Go to "cd C:\Android\SDK\platform-tools"

3. Turn off your device.

4. Plug in your USB cable while holding on to the "volume-up rocker" until you see a blue LED indicator on the top left of your device. You are now ready to use the fastboot function.

5. Type "fastboot flash recovery recovery.img"

6. DONE.

[STEP 5] Flashing the SuperSU, hence rooting your device.

1. Turn off your device.

2. Turn on your device.

3. As soon as your device is powering on, press on the "volume-up rocker" continuously until you load TWRP.

4. Flash SuperSU from your SD card.

5. Reboot system.

6. DONE.

Congrats! :laugh: