yashsingh1/xdaforums huggingface dataset:
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] linckandrea:
/* *** Disclaimer
* Your Warranty is now Void!
* I am not responsible for bricked devices, dead SD cards, thermonuclear war,
* or you getting fired because the alarm app failed. Please do some research
* if you have any concerns about features included in this KERNEL
* before flashing it! YOU are choosing to make these modifications, and if
* you point the finger at me for messing up your device, I will laugh at you.
* BOOM goes the Dynamite
*/

Introduction

Hello everyone,

the goal of this kernel is to be stable but guarantee many tunable settings to all advanced users

Features

-Compiled With the latest Proton Clang

-Updated with the latest sources

-EAS patches from 4.9y

-I/O: Fiops, Zen, Maple,BFQ, all stocks

-Tcp congestion algorithms: westwood (tunable), all stocks

-Boeffla_wl_blocker (generic wakelock blocker driver)

-Sound control

-Wireguard support

-many patches to improve performance and battery

-Disable some unnecessary debugs

-More tweaks(check source)

Installation instructions

if you are on stock kernel and you have magisk installed

--Reboot in recovery

--Wipe dalvik cache,cache(recommended)

--flash pop kernel

if you are on an previous version (clean install method)

--Reboot in recovery

--Wipe dalvik cache,cache(recommended)

--flash the stock kernel of your rom

--boot

--Reboot in recovery

--Wipe dalvik cache,cache(recommended)

--flash magisk

--boot

--Reboot in recovery

--Wipe dalvik cache,cache(recommended)

--flash pop kernel

Note:

1. This kernel works with any rom that use a 4.4y kernel

2.this kernel work only on Q /R custom roms and it was reported work on stock rom(not supported & not verified)

3. Telegram group link: so here is it usually (i release test builds there)

Android 14

Download latest beta version

Android 12

Download latest stable version

Android 10/11

Download latest stable version

Thanks To

-LineageOS team
-Google
-hypertoolchains team
-franciscofranco
-flar2
-faux123
-much others.

[/SPOILER]

XDA:DevDB Information

Pop Kernel for poplar, Kernel for the Sony Xperia XZ1

Contributors

linckandrea

Source Code: Kernel

Kernel Special Features:

Version Information

Status: Testing

Created 2019-09-15

Last Updated 2020-06-26
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] Generic123.:
Is this kernel for stock-based ROMs, or is it for custom ROMs like CarbonRom or LineageOS?
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] Beetle84:
:rolleyes:
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] Generic123.:
Welp. I feel moderately embarassed. :good:
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] Matzeee:
Are you planning to include Wireguard?

Does it hide lost drm-keys?

In the sources, there is just a generic readme.md
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] linckandrea:
Yes i will include wireguard,

I don't think so,

So? What's wrong with the generic readme?
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] Matzeee:
Cool, I really love wireguard!

There is nothing wrong with it ?

But you write "More tweaks (check source)", and I hoped to find sth in the readme.md

Going through all your commits is a bit cumbersome…
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] hsheemi:
Can this kernel be used with existenz patch?
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] linckandrea:
Since existenz is based on stock, should be no problem
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] ΒΕΓΑ:
Does it support DP over Type-C which is supported by the hardware and DRM-Fix
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] hsheemi:
Well I tried this kernel on fw107 but the phone stuck on sony screen
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] sinkoo1979:
+1
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] linckandrea:
Try to flash first this :

https://xdaforums.com/xperia-xz1/development/rooted-kernel-hiding-bootloader-unlock-t3898833

Then the kernel

Anyway more detailes are appreciated:rolleyes:
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] sinkoo1979:
Still the same (stuck on sony screen).

Steps:

flashed magisk

flashed hidelock kernel

wiped dalvik and cache

flashed pop kernel
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] kojak1989:
[MENTION=5536696]linckandrea[/MENTION] Hi, do you added 120hz support ?
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] linckandrea:
Nope, i've no plan to add it(for now)
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] kojak1989:
[MENTION=5536696]linckandrea[/MENTION]

do you have dt2w ?
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] Alex590263:
Hello,

Not work with eXistenZ v9 (47.2.A.10.107) and Magisk already install

Maybe need to

reflash stock Sony ROM run it,

then wipe cache, dalvik and internal memory,

install Pop kernel,

start again,

flash eXistenZ,

flash Magisk,

wipe cache, dalvik and internal memory

And cross-finger when start the phone

And if you can implement the 90 or 120 Hz and/or undervolting-overclocking-etc it could be great

I know you don't necessarily have a lot of time but one day it will be really good
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] Tux111:
In fact, implement optionally those things, no sense to have more kernel with different things, better one that include everything.
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] N.Y.Gazz:
this kernel can not be ported on xzp?

Envoyé de mon G8141 en utilisant Tapatalk
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] JimKatsanos:
Any updates? Is the project still active?:)
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] Tux111:
I think its dead
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] linckandrea:
hey guys,

i'm working a new version for android 10

if anyone want give it a try here is the link
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] Tux111:
Seems interesting, but whats the real difference between the original cr kernel and this? i mean, the difference with the compiler changes a lot the performance or something like that?
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] linckandrea:
for now as you can see from source i add only ZEN and FIOPS i/o schedulers and disabled some debug, so for now the difference is very small.

about the compiler here you can see an example of how using different compilers can make difference

es1: https://www.xda-developers.com/xda-myth-busters-linaro-4-7-4-vs-gcc-4-7/

es2:https://www.youtube.com/watch?v=F_NR_goi6iA
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] Tux111:
you used linaro?
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] hsheemi:
Just flashed it over Cr8

Works well

I'll see if there's change
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] linckandrea:
no it was just an example of how compilers matter in terms of kernel performance

all feedbacks are appreciated

anyway first public release is ready

changelog:

added boeffla_wl_blocker

added blu_active cpu governor

disabled more debugs

download
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] hsheemi:
I think battery is better with first release on Cr8

I'll try second one
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] hsheemi:
Second update r1 made the rom NOT booting

Please update it like the first one which booted successfully
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] linckandrea:
are you sure, i had no problem... maybe it was mediafire fault...

a logcat would be very useful

anyway i uploaded a new version without some things, its work fine (for me),

http://www.mediafire.com/file/dfpwg9w5oh9uhvt/pop-kernel-poplar-Q-r1-p.zip/file

i created a telegram group for who want test new versions earlier
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] hsheemi:
I'm sure it didn't boot

Sorry I didn't take logcat

I'll try this new one and let you know

I'll join the group

---------- Post added at 03:59 AM ---------- Previous post was at 03:49 AM ----------

This last one works nice on cr8

I tried first one on Derpfest but wifi stopped working
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] linckandrea:
New stable version

i really put my all efforts on this kernel, and i think that what i made is incredibly good(IMHO)

now some informations about this update:

the kernel now support modules, so it should be compatible with any roms that have a 4.4y kernel

cpu and gpu underclock

sound control

added bfq and maple iosched

added westwood and is tunable

Nintendo Joy-Con and Pro Controller

many patches to improve both performance and battery life

more "under the hood" improvements

Download is on the first post

if anyone with a sony xz premium and xz1 compact read this message ,the kernel source is the same so i can easily port this kernel on your device, but since i don't own them i need testers, if you want a be a tester PM me
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] pleniceanu cristian:
Boot loop after flash, latest stock 47.2.A.11.228 (my latest stock) flashed with newflasher without any of the TAs.

I flashed the kernel with twrp 3.3.1 after I wiped cache and dalvik.
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] linckandrea:
Maybe you should check the first post another time:rolleyes::eek:

The recent versions of my kernel are NOT compatibile with stock rom but only with Los17, cr8, etc..
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] pleniceanu cristian:
Ups
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] pleniceanu cristian:
Well, I got boot loop on these roms too. I wiped everything, reboot to recovery, installed the rom, reboot to recovery, installed gapps (tried without gapps also), wiped dalvik and cache, reboot to recovery, installed popkernel and boot loop
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] linckandrea:
I'm assuming that you use magisk wright?
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] pleniceanu cristian:
I tried with and without magisk, latest Carbon rom, latest lineage 17 from this forum wich is in beta stage
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] linckandrea:
Re-download the zip from the main post and then follow the instructions to flash.

Probably your download was corrupted
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] bozinsky73:
Works fine for me and it also allow me to use Google Pay on rooted phone :victory:
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] linckandrea:
Q-r3-p is here!

Changelog:

Msm performance can now be disabled

Many commits that improve cpu-boost driver

Merged last derferlot kernel commits

Merged last version of wireguard

Enabled ulps on all pannel model (much better battery life when screen is off)

Force wlan module to load ( it fix some a wifi error in some older build of bliss and havoc)

Many more tweaks and fixes

Download :

http://www.mediafire.com/file/25ler74smknqc8y/pop-kernel-poplar-Q-r3-p.zip/file
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] bozinsky73:
Hi, I have troubles flashing it, cause it crashes at boot on . 228 stock rom, rooted with magisk 20.4: phone stucks on sony logo forever :( and I can't take logs
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] linckandrea:
Stock rom support is deprecated,

please read the first post not just download and flash
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] bozinsky73:
There's the how to for Stock in OP and deprecated version is indicated as . 107. But indeed. 228 is out of support :cool:

Anyway, thanks for this kernel for future uses :good:
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] linckandrea:
so guys after many of you ended up confused on stock compatibility i decided to delete all traces of stock version inside the first post

my recommendation is only one . Read all post and don't rush on download button

now some member of test group ask my to open the telegram group via link:

so here is it

https://t.me/joinchat/LCPUmBbo6UV3M2SM6YJnVw

IMPORTANT: is a test group so do not enter if you don't know what are you doing .
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] linckandrea:
Q-r4-p is here!

Changelog:

Rebased on 4.4.235 with August CAF tag

disabled more useless debugs

reverted placebo/useless commits

Many more tweaks and fixes

Download :

https://www.androidfilehost.com/?fid=8889791610682941144
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] ASR1998:
this kernel support dual version?
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] linckandrea:
Q-r5-p is here!

Changelog:

Merged 4.4.236/237 with latest CAF tag

1000hz timer rate

Many more tweaks and fixes

Download :

https://www.androidfilehost.com/?fid=8889791610682946856

yes
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] linckandrea:
Q-r6-p is here!

Changelog:

Merged 4.4.238

Download :

https://www.androidfilehost.com/?fid=10763459528675560172
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] edmone01:
This kernel support DT2W_MAGISK module
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] linckandrea:
nope DT2W is bugged and is currently disabled
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] caspian_swan:
best app to change kernel settings

thanks for the kernel.

what is the best app to change settings such as clock speed, governor etc...?

I tried some of them in the Google play and undervolting was not supported.
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] Al_Capwn:
how can i make this work on G8343 version of XZ1??

Also thanks for bringing my attention to linaro, my phones are running:

TWRP 3.4.0

LineageOS 17

Magisk 20.4

however kernel doesn't like canadian version of XZ1
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] jurkoman:
Hello, i have tried your kernel several times with some custom roms for G8341 (PE10, Havoc and iodé) and i must say, this is very good and stable kernel, better than stock kernel no problems with daily use until i set up things in kernel adiutor.

One thing which i noticed is 4 times more battery consumption in average after setup in kernel adiutor (from 60-100mA to 200-300mA, no apps running only test apps, i have tested it with AIDA64 and AccuBattery) - after setup min frequency to 230mA for little and big cluster and change CPU governors to Blu_active, before restart is lower consumption (around 50mA). After restart is more battery consumption even if i change governor back to interactive.

Please check this problem because it havent any logic if i underclock cpu and around 4 times more battery drain.

Also even if you present some functions and with this functions enabled is worse for ex. battery consumption or tell me if this is normal.

Thank you.
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] linckandrea:
CPU gov and CPU freqs should not been setted random

About your other question setting too low the cpu and using your phone normally make the gov do a ping pong effect where the gov jump from to the min freq to the more powe hungry max freq everytime un order to make the phone

Smoth
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] jurkoman:
Thank you for your answer and for your work.

I had tested several times this kernel on iode rom and sometimes i noticed similar battery drain issue even with untouched kernel.
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] Xda user11:
I tried ur kernel with Sony xzp( dowloaded it from sony xzp thread), but it's stuck at Google logo. Latest version of Pixel Experience. What could be the issue?
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] linckandrea:
From now on all future versions will be EAS

check first post for more details and to download the latest ver.
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] linckandrea:
new update

Pop_kernel-poplar-R-r3-p-EAS.zip

drive.google.com
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] linckandrea:
New update

changelog:

merged latest commits from https://github.com/whatawurst/android_kernel_sony_msm8998

download link has been alredy updated in 1th post
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] nathankaunang:
you are awesome,continuous update until android 12 :LOL:
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] JDC2389:
Xz1 compact user here, I'm sure this branch of users would love to test(I do). @Flamefire I think this would make a great addition to your rom! Happy Turkey day everyone!
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] nathankaunang:
work perfecty on A11 xz1
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] x751sa:
Sorry for my bad English.

This kernel does not work with .228 xz1 8341.

NFC doesn't work.
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] linckandrea:
Of course doesn't work, Is not compatible as Is written in 1° post
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] x751sa:
I know, but it also said:

that it works according to reports ..
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] nathankaunang:
any update for eas kernel on 2022 bro?
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] linckandrea:
New update

Changelog:

Merged latest commits from whatawhurst

Note:this Is the last release for android 11

I'll release the pop kernel once 12 will be ready & decently stable

download link has been alredy updated in 1th post
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] nathankaunang:
unsupported device..maple uploaded
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] SzH_P:
I flash the latest build on Blissrom android 10 and the cpu stay on max frequency. Is this normal?
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] linckandrea:
Yes, this kernel Is only for EAS roms,

Your Rom probably try to set the cpu governor to interactive which is not compiled in this kernel so It fallbacks to performance governor
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] Tux111:
Waiting for your A12 kernel :)
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] linckandrea:
Pop kernel for android 12 is out

changelog:

Merged latest commits from whatawhurst

Minor fix

Check the first post for the download link
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] Tux111:
Hope you can bring your kernel to A13 now that CIP patches are here :D
[Sony Xperia XZ1  ROMs, Kernels, Recoveries, & Othe] linckandrea:
Pop kernel for android 14 is out

changelog:

Merged latest commits from whatawhurst

Check the first post for the download link
[Samsung Galaxy Note 10+ Guides, News, & Discussion] minipac13:
Hi

can you please post screenshot of 5G logo when ur note 10+ is on data? ( next to clock and network signal).

SM-976B

SM-976N

SM-976U

SM-976Q

SM-976V

thanks every one
[Samsung Galaxy Note 10+ Guides, News, & Discussion] elliwigy:
i dunno wat ur asking but mine is a N976V and not on ur list anyways lol
[Samsung Galaxy Note 10+ Guides, News, & Discussion] minipac13:
like this, I am looking, just wondering if logo is different in every country

[IMG="5G"]https://i.postimg.cc/dtq77GCs/5g.jpg[/IMG]
[Samsung Galaxy Note 10+ Guides, News, & Discussion] Dolgogi:
Greets from Australia

SM-N976B
[Samsung Galaxy Note 10+ Guides, News, & Discussion] dave7802:
Still on 4G here in the UK (Only around London has proper coverage, But they are updating as they go along. You still get very high speeds on the 4G ranging from around 100Mbs

Faster than what i was getting on my Note 8
[Samsung Galaxy Note 10+ Guides, News, & Discussion] stuclark:
I get the rectangular logo posted above, with a white background and black "5G" text when the phone is active on 5G. When it is connected on 5G but not active on data, I get the same logo but with black background and white text.

That's on EE in London (and Vodafone, when their network can be arsed to work)
[Samsung Galaxy Note 10+ Guides, News, & Discussion] Dolgogi:
These icons?

I've seen them both as well.
[Samsung Galaxy Note 10+ Guides, News, & Discussion] stuclark:
Yep, that's the two I get. I didn't realise they actually meant something different

(and anyway, I thought that the Note 10 5G was only capable of 5G NSA (non-stand alone), which makes a bit of a mockery of having 2 different 5G icons allegedly meaning 2 different methods of connecting...)
[Tilt, TyTN II, MDA Vario III Windows Mobile ROM De] ra303:
just saw this on the Australian HTC website.

Here r the details:

ROM version: 3.29.861.0

ROM date: 05/15/08

Radio version: 1.65.16.25

Protocol version: 25.83.40.02H

File content：

1.TyTN II Windows Mobile 6.1 ROM code upgrade

2.Windows Mobile 6.1 New Features Guide

IMPORTANT! - please read these instructions carefully before updating your device

1. Download the .zip file and extract the .exe file within.

2. The ROM Code can only be updated on Hutch TyTN II User's Device

Link:

http://www.megaupload.com/?d=7J3L5LEE
[Tilt, TyTN II, MDA Vario III Windows Mobile ROM De] Laurentius26:
Thank you for sharing.

Can you provide another mirror please?
[Tilt, TyTN II, MDA Vario III Windows Mobile ROM De] stevenyu24:
I think this one is the same as the one in this post, I am downloading at the moment, will find out why it says only for Hutchison network (which I am)

http://xdaforums.com/showthread.php?t=396787
[Tilt, TyTN II, MDA Vario III Windows Mobile ROM De] ra303:
Here is another one

http://www.mediafire.com/?mel0n7jiuod
[Tilt, TyTN II, MDA Vario III Windows Mobile ROM De] Laurentius26:
Thanks again, downloading.... ;):)
[Tilt, TyTN II, MDA Vario III Windows Mobile ROM De] Andych:
Most likely reason is that 3 (or Hutchison) are about to re-release the TyTN II. As it will have WM6.1 they can push it a newer model when in reallity it isn't.
[Tilt, TyTN II, MDA Vario III Windows Mobile ROM De] stevenyu24:
Ok, installed. It have some customised background theme and shortcut, otherwise is the same as the other one.
[Tilt, TyTN II, MDA Vario III Windows Mobile ROM De] habibjamil:
Leo... nice to see you again.. aren't you supposed to be on vacation ;-) ?
[Tilt, TyTN II, MDA Vario III Windows Mobile ROM De] mattlewis77:
Cheers and thanks, nice to see the stock update.
[Tilt, TyTN II, MDA Vario III Windows Mobile ROM De] Laurentius26:
Haha... yes I'm on holiday but checking XDA-Dev so now and then. ;)
[Samsung Galaxy S7 Questions and Answers] Dantefesse:
Hey I've encountered this issue when my S7 Edge boots up it jumps to twrp but it's stuck on the teamwin logo screen and does not advance to menu.

It occurred when I tried to format the data partition to ext4 via twrp and it stuck there for hours so I rebooted it and now i'm stuck here!

I googled some solutions and few suggested flashing a stock via odin but when i try that it fails, flashing twrp also fails i'm sorta stuck right now.

this post https://xdaforums.com/s7-edge/help/stuck-loading-twrp-t3834144 which is the closest scenario suggested adb flash but i can't seem to uncompress boot.img.lz4 with 7zip zstandard

if you know how or if you guys have fixed this issue before please drop a solution thank you in advance !
[Samsung Galaxy S7 Questions and Answers] kpwnApps:
Boot to download mode and flash twrp again
[Samsung Galaxy S7 Questions and Answers] Dantefesse:
Thanks for your answer, I have tried this like i mentioned and it does flash with success but when it boots to twrp it's just stuck on the teamwin logo, I have even flashed a newer version and i did notice the version changing in the logo but nothing happens.

EDIT: I ended up flashing a stock rom via odin and somehow it worked this time (I updated the usb drivers & changed the cable)
[Samsung Galaxy S7 Questions and Answers] kpwnApps:
Okay then flash twrp again and in odin select nand erase. Dont worry this doesnt wipe your complete system only userdata
[Samsung Galaxy S7 Questions and Answers] Dantefesse:
doesn't Nand erase everything and you're left with download mode ? and why would I do it if i've managed to fix my previous issue ?
[Samsung Galaxy S7 Questions and Answers] kpwnApps:
Nand erase all doesnt wip everything. Its a big myth. It is actually erasing userdata partition and if ur issue is fixed never mind
[Samsung Galaxy S7 Questions and Answers] Youdoofus:
nah bro, if his issue is fixed, then he needs to reflash the stock firmware, reflash TWRP, boot into twrp, go into the file manager and delete EVERYTHING on the internal storage.

just to be clear, OP, do NOT do any of that