yashsingh1/xdaforums huggingface dataset:
[T-Mobile Samsung Galaxy S6 Edge] Master&Slave™:
BL ODIN flash the 5.1.1 Bootloader: G920T-UVU2COF6 even if you've already flashed the engineering sboot.bin by [MENTION=6760215]wonderingabout[/MENTION]. Let the phone reboot then boot back into download mode again.

AP Odin flash the UniKernel, let the phone boot up and then boot back into recovery.

AP Odin flash TWRP 2.8.7.1 for the G920T and then as the phone is rebooting, use the Volume up + Home + Power buttons to boot into recovery.

Flash the ROM you'd like and then flash the 5.1.1 Flashable Call Audio Fix for T/W8 devices on Int' ROMS

Done :good:
[T-Mobile Samsung Galaxy S6 Edge] ScottBroker:
This will trip knox? What is your favorite rom right now?
[T-Mobile Samsung Galaxy S6 Edge] Aou:
I have a finished kernel image for 920T, I just need a boot.img to drop it into.
[T-Mobile Samsung Galaxy S6 Edge] Aou:
I'd be curious to know as well - I'm assuming only via leaks/insider.
[T-Mobile Samsung Galaxy S6 Edge] Aou:
I just noticed that this is not 5.1.1 - did you guys not get a 5.1.1 release yet? :(

And I don't know if the same customizations need to be made for the 5.0 kernels. The changes I made in the OP to the 925T kernel were specifically to circumvent the System verification and to force SEAndroid to permissive.

Just to have a better understanding, what would be the purpose of a custom kernel for the 925V's OC3 (5.0.2) firmware?
[T-Mobile Samsung Galaxy S6 Edge] elliwigy:
there is a later build but root does not work and to my knowledge its not 5.1.1 either as well as OC3 is the only source available currently for vzw.

Those two reasons alone would be reason enough to me.. to bypass system verification as well as to get permissive.

Are there any other doors possible? I dont think it could lead to custom recoveries such as twrp or custom kernels due to a locked BL?
[T-Mobile Samsung Galaxy S6 Edge] Aou:
Ouch, sounds like you guys are up a creek. :(

Well, if it helps any, I've created a custom OC3 kernel using your boot.img and source from Samsung that you linked. I made the same modifications to the source as outlined in the OP.

Here's the link: https://mega.co.nz/#!sYti2IRa!LBAJoRlsFJw4nVdInfhzTpwGQYrs-bVsyLlLzURnGr8

For everyone else reading this post:

This kernel is intended only for the G925V with SYSMAGIC001. Flashing this kernel on any other device or revision may cause unexpected results and may [at least] soft-brick your device. You've been warned.

Flashing ANY custom firmware to a Samsung device will trip your Knox counter. You've been warned.

Flashing custom firmware to any device may cause unexpected results and always has a chance of causing problems for your device. Flash-at-own-risk.
[T-Mobile Samsung Galaxy S6 Edge] wonderingabout:
you can flash back to the stock bootloader but NEVER have anything left on the phone that is custom when you do so otherwise you will trip knox. You can flash back to stock with full odin file and you will be fine. But again if you flash anything custom make sure that engineering sboot is still on phone.
[T-Mobile Samsung Galaxy S6 Edge] elliwigy:
how would you go about getting an engineering bootloader? i imagine you first have to have an unlocked bootloader?
[T-Mobile Samsung Galaxy S6 Edge] bigbiff:
I updated the link. please try again.
[T-Mobile Samsung Galaxy S6 Edge] Aou:
Error is gone, backup/restore working as expected again.

Reboot still not working right. Choosing any option from the Reboot menu only causes TWRP to re-load itself.
[T-Mobile Samsung Galaxy S6 Edge] bigbiff:
Does your repack/compile work with the reboot options? I have the powerctrl statement on property in init.rc which twrp sets to tell init how to reboot/poweroff etc.
[T-Mobile Samsung Galaxy S6 Edge] tylerholbrook:
Spent all day setting up a build environment. Going to finally learn a thing or two
[T-Mobile Samsung Galaxy S6 Edge] mjdavis871:
Is there any way out of the reboot issue other than odin back?
[T-Mobile Samsung Galaxy S6 Edge] Master&Slave™:
I flashed this ony G920T when it was originally posted by [MENTION=2638973]bigbiff[/MENTION] to see what would happen and I ran into this issuse as well as my touch being inverted :D.

In order to get out, I have to select power off like 20 times and try to boot into download mode. When I got into download mode, I flashed a compatible(Working) recovery.
[T-Mobile Samsung Galaxy S6 Edge] Kaczman:
So are there basically no roms being actively supported for the tmobile s6 edge now?
[T-Mobile Samsung Galaxy S6 Edge] Aou:
I'm confused. The reboot options have been working on every version up until this last version where you switched to "twrp-2.8.7.1-zeroltetmo.img.tar". The v12 I build from source is working fine, too (and, as far as I can tell, the source on Github hasn't chanced since v12). What part(s) would you like me to repack/recompile to test?

The reboot issue in this test version is mostly just an inconvenience. The "three-finger salute" using buttons to reset will still work. Or you could run a command "reboot" (via advanced menu, or via ADB) to get out.

Edit: Never mind, I just realized that: 1) using "reboot" from the terminal command does not work, and 2) ADB does NOT work in this test version of TWRP, [MENTION=2638973]bigbiff[/MENTION]. Unfortunately, I ended up using "reboot recovery" to enter recovery, and even the 3-finger salute will take you back into recovery from this (weird, known behavior on S5 and S6). So yeah, my only option really was to flash v12 again.

Not really. The few devs we did have here have left - selling their devices and all. Well, one of them just completely quit XDA... Unless you count me. But I don't count me. I'm just a guy that can interpret and follow instructions, and then troubleshoot when something doesn't work right.

But I'm told that with a custom kernel, you should be able to run most of the ROMs from the international variants, at the potential sacrifice of losing some T-Mobile-specific things (e.g. VoLTE). Even still, you might be able to pull some very clever backup/restores with Titanium Backup, and actually migrate those carrier-specific things with you.
[T-Mobile Samsung Galaxy S6 Edge] bigbiff:
So none of the versions of TWRP have a working reboot menu? Sorry I am not sure I understand. I am using the same init.rc and kernel/dtb between the device trees. I just updated the build.prop in the last test.
[T-Mobile Samsung Galaxy S6 Edge] mjdavis871:
Version 12 and and the test build before the last one rebooted fine.
[T-Mobile Samsung Galaxy S6 Edge] Master&Slave™:
The latest one [MENTION=2638973]bigbiff[/MENTION] posted for the G920T.
[T-Mobile Samsung Galaxy S6 Edge] Master&Slave™:
If your touch is inversed, boot into your ROM, enter your dialer and dial *#2663# and update your general touch firmware.
[T-Mobile Samsung Galaxy S6 Edge] Aou:
On the contrary, all the versions (up until these last two) have been working. It was only the last build or two where ADB and reboot have stopped working.
[T-Mobile Samsung Galaxy S6 Edge] Aou:
Glad to hear the g920t kernel I built is working to fix some of the issues. I'll go ahead and add it to the OP, just for anyone else out there that might need it. Sounds like you g920t guys have been left high-and-dry like us g925t people. Disappointing.

Edit: 700th post. Woo.
[T-Mobile Samsung Galaxy S6 Edge] tylerholbrook:
Haha right. I'm working on deodexing a rom right now. Was able to build a stock debloated rom with your kernel, now I'm working on deodexing. Haha set up a Linux environment on my mac now to deodex art 64bit looks like I need a pc. Go figure, installing windows on my external
[T-Mobile Samsung Galaxy S6 Edge] bigbiff:
Thanks guys for your feedback in testing TWRP. I have made some more changes I didn't realize were not made to the old tree I was using from eusophoros. Please test http://build.twrp.me/twrp/twrp-2.8.7.1-zeroltetmo.img.tar and let me know if the reboot issues persist.
[T-Mobile Samsung Galaxy S6 Edge] mikeyinid:
I flashed the sboot.bin you posted for 920T, and while I can now run 5.0.2 ROM's again, I can't Odin 5.0.2, which is confusing since the sboot.bin appears to be from 5.0.2. Is there a trick to it? Or is it just not possible? I get a hw revision check fail.
[T-Mobile Samsung Galaxy S6 Edge] jaxenroth:
Yes. I have regular S6 with twrp and root with knox not tripped.

---------- Post added at 09:54 AM ---------- Previous post was at 09:46 AM ----------

I was stock 5.1.1 (Regular tmo S6, not edge) I flashed the bootloader, than kernel from [MENTION=6760215]wonderingabout[/MENTION]. I had root w/ knox not tripped, from there I flashed via Odin TWRP. Had root, recovery and did not occur any touch or audio issues. flashed 2 different roms all working fine, right now Im using http://xdaforums.com/galaxy-s6/development/rom-xtrestolite-pure-edition-1-0-beta-1-t3082467.
[T-Mobile Samsung Galaxy S6 Edge] mikeyinid:
Yes, you can flash whatever you want in TWRP 2.8.7.1 with the eng sboot installed. I was trying to go back to 5.0.2 stock to grab the OF6 OTA zip for 920T to modify it, but I am unable to Odin OCG.
[T-Mobile Samsung Galaxy S6 Edge] Jdom58:
Just odined and tested, won't allow to boot into recovery, screen stays on the Sam Galaxy s6 edge with red writing on top and just stays there. Going back to v12
[T-Mobile Samsung Galaxy S6 Edge] chastity:
Nice and smooth.

I have one problem: I can't get it to connect to anything but on WiFi. It says it's on 4G but no voice or data comes through. I'm sure I'm missing something but what?
[T-Mobile Samsung Galaxy S6 Edge] Aou:
At this time, not possible to flash the 5.0.2 bootloaders. Reason is because of e-fuses, similar to the Knox e-fuse. The stock 5.0.2 Odin tarballs include an sboot.bin and cm.bin (bootloader pieces), so trying to flash the whole package will try to flash SYSMAGIC001 bootloaders onto a SYSMAGIC002 device. Won't allow it.

So, if you want to truly return to 5.0.2, your closest bet is to flash the SYSMAGIC002 Engineering Bootloader, and then separately flash the 5.0.2 ROM & Kernel. Even still, I'm not sure that I'd recommend it. 5.1.1 is better in every way.

But at this time, if you've tripped the fuses to "2", then you'll "never" be able to FULLY return to 5.0.2 stock. Period.
[T-Mobile Samsung Galaxy S6 Edge] Aou:
Which model do you have? And which files are you flashing?
[T-Mobile Samsung Galaxy S6 Edge] Aou:
Stuck at boot logo. Grabbed my last_kmsg, but doesn't look like it'll be particularly useful: http://pastebin.com/dPfgHn9W

(it apparently fails as soon as it tries starting the recovery kernel)
[T-Mobile Samsung Galaxy S6 Edge] bigbiff:
Yeah I bet I know what I did. I will hopefully fix it tonight. This is why device maintainers and testers are needed. :D
[T-Mobile Samsung Galaxy S6 Edge] chastity:
S6 Edge TMO SM-G925T

First I flashed stock G925TUVU2COF6_G925TTMB2COF6_G925TUVU2COF6_HOME.tar.md5

Then I flashed your TWRP v 12

Then your kernel OF6 v4

And did the SuperSU thing.

All seems to work fine except for me not getting phone calls or data connection although it says 4G.

I have done it several times now. I can however get it all to work apart from TWRP if I don't flash that one. So the issue might be with TWRP v12 somehow. At least for me ;o)

Thanks for all your work
[T-Mobile Samsung Galaxy S6 Edge] Se7eN43:
Check your IMEI. Hopefully it didn't currupt the efs data. If it did, I hope you have it backed up.
[T-Mobile Samsung Galaxy S6 Edge] Aou:
[MENTION=2755194]chastity[/MENTION] - That's really weird. Really, really weird. Are you sure it's not the SuperSU part that's breaking it? I would expect that would be the part that breaks it, but... I don't know what to say.

Unless something with an existing TWRP configuration is breaking TWRP... You might try to delete your /sdcard/TWRP/.twrps file (notice the dot - it'll make it a hidden file to some file explorers). If you have a /sdcard/TWRP/BACKUPS folder, you should probably keep that.

Another suggestion is to try doing it all over again, including TWRP, but after flashing the SuperSU file, go flash the recovery back to stock (provided in the OP). If TWRP is indeed the culprit, that should theoretically fix it.

Ultimately, it sounds like your modem.bin is somehow getting overwritten with something incompatible. I wonder if there's an update.zip stuck somewhere that's continuously re-flashing something on your device?
[T-Mobile Samsung Galaxy S6 Edge] bigbiff:
Guess I broke the kernel, but here it is fixed hopefully: http://build.twrp.me/twrp/twrp-2.8.7.1-zeroltetmo.img.tar
[T-Mobile Samsung Galaxy S6 Edge] chastity:
I am sure SuperSU is not the culprit. As I said everything works until I flash the TWRP. Then it SEEMS to work but it's not. Now I want to know why so I tried the things you suggested above. Same result. I have nothing pending to update or anything. I tried to install the modem separately after the install. Still no luck.

I think I've flashed the phone over and over at least 30 times the last two days. In many different configurations and order of items. Now it's working fine but without TWRP. However, battery seems better ;o)
[T-Mobile Samsung Galaxy S6 Edge] elliwigy:
Finally got around to testing this and unfortunately yours and others thoughts are correct.. it does not flash at all most likely due to the locked BL.

It was worth a shot but I guess vzw/att folks are not that lucky lol
[T-Mobile Samsung Galaxy S6 Edge] jaxenroth:
Vzw and ATT lock down their bootloaders, Tmo are all just about unlocked, minus Sony devices.
[T-Mobile Samsung Galaxy S6 Edge] elliwigy:
I already know this.. anyone on xda should know this lol. Just thought why not try it since its technically a source built kernel but of course it did not work so didnt want any others on vzw or att to waist there time trying

---------- Post added at 08:48 AM ---------- Previous post was at 08:46 AM ----------

also crazy xda is having to remove the engineering BL due to Samsung/DMCA if you guys arent aware lol
[T-Mobile Samsung Galaxy S6 Edge] jabreu203:
I've been reading through all the threads trying to find instructions on how to flash my stock S6 SM-GT920T on 5.11 that will give me root, TWRP and working call audio and Data that will not trip Knox and can't seem to find a straight answer. Would you be willing to write up something real quick to help out us not so bright people? Thanks in advance
[T-Mobile Samsung Galaxy S6 Edge] elliwigy:
the BL was removed to my knowledge lol
[T-Mobile Samsung Galaxy S6 Edge] mjdavis871:
Is OTG working in the latest build? It doesn't work in aou's v12
[T-Mobile Samsung Galaxy S6 Edge] jabreu203:
I have a copy of the engineering BL that I downloaded a few days ago

---------- Post added at 11:11 PM ---------- Previous post was at 11:10 PM ----------

I have a copy of the engineering BL that I downloaded a few days ago
[T-Mobile Samsung Galaxy S6 Edge] bigbiff:
Has anyone had a chance to verify the test build boots and worked successfully I posted a while back for official release on twrp.me?
[T-Mobile Samsung Galaxy S6 Edge] gdmlaz:
Do you have a link I'll try it out now
[T-Mobile Samsung Galaxy S6 Edge] bigbiff:
http://build.twrp.me/twrp/twrp-2.8.7.1-zeroltetmo.img.tar
[T-Mobile Samsung Galaxy S6 Edge] gdmlaz:
booted up just fine
[T-Mobile Samsung Galaxy S6 Edge] wonderingabout:
Samsung is pounding their chest and threatening to sue us for posting those bootloaders LOL Someone should tell Samsung I do not work for them and do not have a non disclosure agreement with them LOL They think its a copyright infringement to put their own software on their own phones. My attorney had a good laugh at that one. This isn't the first time they have threatened to sue us along with AT&T, T-Mobile and Google. But it is always just them banging their chest. Legally they have no leg to stand on.
[T-Mobile Samsung Galaxy S6 Edge] ktetreault14:
Good thing I have a copy of that bootloader. Thought I would need it
[T-Mobile Samsung Galaxy S6 Edge] Aou:
Yup!

- Boots fine

- Reboot menu working as expected

- Backup/Restore System R/W is working (but may have side-effects... device took a bit longer to boot afterwards)

- Backup/Restore System R/O is working as expected

- Restore System R/W prevention is working while Read-Only is marked

- Fonts are working, no errors

- MTP is working properly

- ADB is working properly

- Flashing various .zips works

- Settings (such as the Read-Only checkbox or MD5 checksum settings) are being saved

- Did not test any wipes, but they were working in previous versions (and I don't feel like testing them right now)

I'd say we have a winner. Is the source available? I wouldn't mind building a v13 to see if I get the same results from this end (and using Omni).
[T-Mobile Samsung Galaxy S6 Edge] Aou:
I haven't even looked into that... I don't think that's included in the fstab's, so I don't think there's any attempt to mount OTG. Something we can look into, thanks!

Well, thank you for providing them. It appears that several people benefited from them. By the way, sorry to doubt your original post on it - I'm just very, very, very hesitant to flash bootloaders that are "different"... let alone I had previously never heard of that server they were linked from. >_<
[T-Mobile Samsung Galaxy S6 Edge] mjdavis871:
Thanks...I can't mount OTG manually either. I'm willing to test once it gets enabled.
[T-Mobile Samsung Galaxy S6 Edge] wonderingabout:
I have engineering bootloaders for g925f and g920f for no trip knox root but samsung contacted me as well as xda and said we cant post them. I could care less what samsung says but its not my forum.
[T-Mobile Samsung Galaxy S6 Edge] bigbiff:
I will push it tonight. Thanks for testing. I will also make an official page on dl.twrp.me.
[T-Mobile Samsung Galaxy S6 Edge] tylerholbrook:
Going to try the new version. Having a go at building a rom and I'm having a hell of a time getting it to boot past the tmobile screen. Who knows maybe a newer twrp will help. I'm still on one of the first ones Aou through up. Lol
[T-Mobile Samsung Galaxy S6 Edge] Jdom58:
Hi Guys, sorry I'm intruding but I posted this here last night hoping for answer since my problem is beyond my knowledge. My posting was moved because it is not related to the OP thread but since flashing a kernel caused it I was hoping someone had run into the same problem here and had some advise on a remedy besides a replacement phone. Link to post:

http://xdaforums.com/tmobile-galaxy-s6-edge/help/help-tmobile-locked-phone-t3153306
[T-Mobile Samsung Galaxy S6 Edge] elliwigy:
lol so you pote elsewhere and it was moved so now your posting it elsewhere
[T-Mobile Samsung Galaxy S6 Edge] Jdom58:
Yeah I know I know, I've been around here long enough to know the rules (just look at my sig to see how far back I go) but I'm on my last leg here before I give up and bite the bullet and dish out the bucks for a replacement. I have never faced a problem like this one and have been able to recover from most anything I've tried, either by myself or with a little help from members here with Odin or adb. Any help would be greatly appreciated.
[T-Mobile Samsung Galaxy S6 Edge] elliwigy:
I assume you flashed a custom kernel to the device in odin.. more info would be helpful.

1) Did you unlock the BL first?

2) What kernel did you odin?

3) What BL did you use if it wasnt the stock original one?

4) What setup were you on prior?

5) I assume Knox is also tripped?

6) Do you have a custom recovery?

7) Have you tried a custom recovery and flashing a custom kernel/ROM (not stock)?
[T-Mobile Samsung Galaxy S6 Edge] jaxenroth:
[MENTION=1124755]Aou[/MENTION], would flashing your kernel (G920T) fix the broken call audio on 5.1.1 ROMs? Im currently using [MENTION=6760215]wonderingabout[/MENTION]'s bootloader. Thx.
[T-Mobile Samsung Galaxy S6 Edge] jrock79:
It will.
[T-Mobile Samsung Galaxy S6 Edge] jaxenroth:
Tried flashing kernel after strolite rom but wouldn't even boot. Might have to switch from the engineering BL to stock. [MENTION=6760215]wonderingabout[/MENTION], any idea why call audio breaks on 5.1.1? Thx.
[T-Mobile Samsung Galaxy S6 Edge] serio22:
You sure you flashed the correct kernel? I have engineering BL with Aou's kernel and sound work perfect with my 920T
[T-Mobile Samsung Galaxy S6 Edge] Aou:
twrp.me page looking good so far. No Odin flashable yet, I see, but I assume that's coming. ;)

I noticed a couple things. On the GitHub source, there's no

vendorsetup.sh

. This is needed for Omni builds.

Is the kernel source for zerolte unchanged, or does that still need updating?

I won't be able to work on this tonight - maybe tomorrow evening. Travel & training tomorrow, but I'll be in a hotel room with nothing better to do tomorrow night. :P
[T-Mobile Samsung Galaxy S6 Edge] hawkstwelve:
Big thanks to OP. Works perfect for TMO S6E 5.1.1.
[T-Mobile Samsung Galaxy S6 Edge] jaxenroth:
Aou's kernel on int 5.1.1 roms don't boot using eng bl, but on tmo based 5.1.1 roms your fine.
[T-Mobile Samsung Galaxy S6 Edge] pmichaelro:
Is there a version of Aou's Kernel that could work on G925F 5.1.1?
[T-Mobile Samsung Galaxy S6 Edge] bigbiff:
Building odin tar now, always forget to add the option to my jenkins job after I create it...

The kernel source is unchanged and we don't need vendorsetup.sh. This only adds the combo to the lunch menu. When you have 200 devices, who cares about the lunch menu. :D
[T-Mobile Samsung Galaxy S6 Edge] Jdom58:
Hi just wanted to follow up with you and let you know that once you get that msg it's all over, phone internet/data connection is toast (on wifi everything works fine). The way it was explained to me is the security software in the system detects unauthorized software or root and the IEMI number is blocked and connection is disabled with T-Mobile, no connection=useless phone, again unless you remain on wifi and the no warranty I can confirm, they want nothing to do with the phone. Everyone I talked to there from bottom to top said the same thing their policy has become very strict on altered/rooted phones they have the software to check them and they are not to be accepted as returns, and if they receive one that is detected as rooted or altered, the same phone is to be returned in the same condition and customer will be charged the shipping.

So be careful, I've been rooted and running ROMS and TWRP with this phone since early May with 5.0.2 and then 5.1.1 with no problems (except tripped knox) one mistake and $175 toast for breakfast :eek:
[T-Mobile Samsung Galaxy S6 Edge] jaxenroth:
[MENTION=1992844]Jdom58[/MENTION], why not just have Samsung service it? Should be cheaper than the tmo route.
[T-Mobile Samsung Galaxy S6 Edge] Master&Slave™:
Just flash the engineering sboot.bin, a unifying kernel and a 5.1.1 T ROM and you're good.
[T-Mobile Samsung Galaxy S6 Edge] Jdom58:
I talked to a Samsung rep at BB and showed him the phone and on screen msg (got one close by) and he at least sounded like he was pretty knowledgeable about rooting and even XDA. According to him I could send it to them but repairs would be definitely not under warranty and would be expensive, how much he didn't know. Even showed the phone to the tech guys there and they had no idea how to begin to fix. Even went to some VERY tech savvy people and the phone is so new they could not really guarantee any results.
[T-Mobile Samsung Galaxy S6 Edge] elliwigy:
it just doesnt make sense to me how youre the only one who had this occur lol. If that is the case then everyone on xda has rooted/modified there phone and a lot of you guys have even tripped knox and unlocked the BL and didnt have that issue.

You did use the Engineering BL prior to these issues?
[T-Mobile Samsung Galaxy S6 Edge] lilmikey201:
im on tmobile s6 edge with an international rom on 5.1.1

im not getting call audio and dont know why

ive read something about sboot.bin ?idk wat that is
[T-Mobile Samsung Galaxy S6 Edge] jaxenroth:
Lilmike, masterandslave posted a few pages back call audio patch. Also you should try either Aou's or Uni kernel if that doesn't fix audio, than you'll have to flash the stock sboot and trip Knox.
[T-Mobile Samsung Galaxy S6 Edge] Jdom58:
Nope doesn't look like I was the first victim, and I could still see my IEMI was still there, oh well just be careful guys