Okay, if Your device is bricked, decryption failed or 'Force Close' pops-up every second, You are in right place.
Because I'm not active here, just add those underlined words to bit(dot)ly/
1. Resources:
Rescue Package:
P2RescueXDA
OpenGapps:
GappsXDA
Magisk:
MagskXDA
ADB and Fastboot:
ADB_Fastboot_XDA
ABD and Fastboot Drivers:
MinimalADBXDA
Before You try to unbrick - install ADB + Fastboot Package and Minimal Drivers
2. Unbrick and install Stock Firmware
Go to Bootloader:
if You have TWRP use [Power] + [Vol-] + [Vol+] (Recovery) > Advanced > Terminal > 'reboot bootloader'
Plug Phone to PC and open CMD or PowerShell
run 'flashall - twrp.bat' and wait few minutes
Your device is now unbricked
3. If You've tried to fix something on Your own or want to do Super-Clean Flash
USB Debugging is need! If not activated, do it now!
In CMD/PowerShell type 'adb reboot bootloader'
type 'fastboot oem unlock'
I know, You for sure have already done this, but trust me and do it again
now type 'fastboot flash recovery [recovery.img]' and 'fastboot boot [recovery.img]' where [recovery.img] is path to Your recovery file
Your phone should automatically reboot to recovery.
check 'never show this message again' box and swipe right
[!!!] You are going to reboot to recovery a lot, don't ask - just do it!
after swiping right go to [Reboot] > [Recovery]
[Wipe] > [Factory Reset]
[Wipe] > [Advanced Wipe] > select [Data] > change Filesystem > F2FS
[Reboot] > [Recovery]
[Wipe] > [Advanced Wipe] > select [Data] > change Filesystem > EXT4
[Reboot] > [Recovery]
[Wipe] > [Format Data] > type 'yes' and press Enter on Phone keyboard
[Reboot] > [Recovery]
[Wipe] > [Advanced Wipe] > select [Data] > change Filesystem > EXT4
[Reboot] > [Recovery]
press 3 lines (bottom right, on nav bar)
check if there's no errors (red lines)
[Wipe] > [Advanced Wipe] > select [System] > Wipe (swipe right)
[Reboot] > [Recovery]
4. How to flash everything
Method 1: Using TWRP Install
Method 2: Using ADB Sideload (faster, because You don't copy zips to SD)
To use sideload, in TWRP press [Advanced] > [Sideload] and swipe right
First install ROM.zip and GAPPS.zip
After that, REBOOT to system and set everything up (google account, fingerprint, blah blah blah)
Go back to TWRP
NOW flash Magisk and other stuff such as custom boot animations and other flashable zip's
Happy modding, wiping and flashing, friends


Because I'm not active here, just add those underlined words to bit(dot)ly/
1. Resources:
Rescue Package:
P2RescueXDA
OpenGapps:
GappsXDA
Magisk:
MagskXDA
ADB and Fastboot:
ADB_Fastboot_XDA
ABD and Fastboot Drivers:
MinimalADBXDA
Before You try to unbrick - install ADB + Fastboot Package and Minimal Drivers
2. Unbrick and install Stock Firmware
Go to Bootloader:
if You have TWRP use [Power] + [Vol-] + [Vol+] (Recovery) > Advanced > Terminal > 'reboot bootloader'
Plug Phone to PC and open CMD or PowerShell
run 'flashall - twrp.bat' and wait few minutes
Your device is now unbricked
3. If You've tried to fix something on Your own or want to do Super-Clean Flash
USB Debugging is need! If not activated, do it now!
In CMD/PowerShell type 'adb reboot bootloader'
type 'fastboot oem unlock'
I know, You for sure have already done this, but trust me and do it again
now type 'fastboot flash recovery [recovery.img]' and 'fastboot boot [recovery.img]' where [recovery.img] is path to Your recovery file
Your phone should automatically reboot to recovery.
check 'never show this message again' box and swipe right
[!!!] You are going to reboot to recovery a lot, don't ask - just do it!
after swiping right go to [Reboot] > [Recovery]
[Wipe] > [Factory Reset]
[Wipe] > [Advanced Wipe] > select [Data] > change Filesystem > F2FS
[Reboot] > [Recovery]
[Wipe] > [Advanced Wipe] > select [Data] > change Filesystem > EXT4
[Reboot] > [Recovery]
[Wipe] > [Format Data] > type 'yes' and press Enter on Phone keyboard
[Reboot] > [Recovery]
[Wipe] > [Advanced Wipe] > select [Data] > change Filesystem > EXT4
[Reboot] > [Recovery]
press 3 lines (bottom right, on nav bar)
check if there's no errors (red lines)
[Wipe] > [Advanced Wipe] > select [System] > Wipe (swipe right)
[Reboot] > [Recovery]
4. How to flash everything
Method 1: Using TWRP Install
Method 2: Using ADB Sideload (faster, because You don't copy zips to SD)
To use sideload, in TWRP press [Advanced] > [Sideload] and swipe right
First install ROM.zip and GAPPS.zip
After that, REBOOT to system and set everything up (google account, fingerprint, blah blah blah)
Go back to TWRP
NOW flash Magisk and other stuff such as custom boot animations and other flashable zip's
Happy modding, wiping and flashing, friends