yashsingh1/xdaforums huggingface dataset:
[AT&T Samsung Galaxy S7 Guides, News, & Discussion] Ae3NerdGod:
OR

OR, and bare with me here, you could just download this new root i made with the su binary from supersu2.76 and a working performance script. see attachments

literally extract anywhere and double click root.bat

but for anyone who wants to do it manually:

script:

#!/system/bin/sh
echo 91 >/sys/module/msm_core/parameters/throttling_temp

echo 0 >/sys/module/msm_thermal/vdd_restriction/enabled

echo N >/sys/module/msm_thermal/parameters/enabled

echo interactive >/sys/devices/system/cpu/cpu0/cpufreq/scaling_governor

echo ondemand >/sys/devices/system/cpu/cpu2/cpufreq/scaling_governor

echo 1593600 >/sys/devices/system/cpu/cpufreq/cpufreq_limit/little_max_freq

echo 307200 >/sys/devices/system/cpu/cpufreq/cpufreq_limit/little_min_freq

echo 2150400 >/sys/devices/system/cpu/cpufreq/cpufreq_limit/big_max_freq

echo 307200 >/sys/devices/system/cpu/cpufreq/cpufreq_limit/big_min_freq

exit

and to get it to work, make a folder in /data

put it in that folder /data/folderyoumade/<script>

find init.sec.boot.sh in /system/etc

add "/data/folderyoumade/script.sh" to the end of init.sec.boot.sh

then run

chmod 0755 /data/folderyoumade/script.sh

chcon u:object_r:app_data_file:s0:c512,c768 /data/folderyoumade/script.sh

press that thanks button yo
[AT&T Samsung Galaxy S7 Guides, News, & Discussion] thekojac:
Does this script set the performance governor and frequencies immediately on boot? As in it will never be in performance mode, therefore no heat or lag?

And there's no reason to believe this wouldn't work on a S7E as well, right?
[AT&T Samsung Galaxy S7 Guides, News, & Discussion] Ae3NerdGod:
if you install it correctly, yes. the only lag i see is when it first boots for less than a minute. runs fine afterwards. that being said, it does seem to get a tad hotter than stock, and i dont know if theres anything i can do for that. but it has not gotten hot enough to throttle for me, and im testing outside in 90+ farenheit

i recommend re rooting as it updates su also

and i dont see any reason it wouldnt work on the edge unless it has a different processor, which it does not.
[AT&T Samsung Galaxy S7 Guides, News, & Discussion] Tikerz:
So we can update the SU binary and APK even though Chainfire told us not to?

---------- Post added at 10:27 AM ---------- Previous post was at 10:22 AM ----------

The correct syntax for /sys/module/msm_thermal/parameters/enabled is N or Y, not 0 or 1.

Am I understanding correctly , we want to turn thermal management OFF?
[AT&T Samsung Galaxy S7 Guides, News, & Discussion] Ae3NerdGod:
thanks, heres an updated zip with the correction (see attachment)

and the updated script here

#!/system/bin/sh
echo 91 >/sys/module/msm_core/parameters/throttling_temp

echo 0 >/sys/module/msm_thermal/vdd_restriction/enabled

echo N >/sys/module/msm_thermal/parameters/enabled

echo interactive >/sys/devices/system/cpu/cpu0/cpufreq/scaling_governor

echo ondemand >/sys/devices/system/cpu/cpu2/cpufreq/scaling_governor

echo 1593600 >/sys/devices/system/cpu/cpufreq/cpufreq_limit/little_max_freq

echo 307200 >/sys/devices/system/cpu/cpufreq/cpufreq_limit/little_min_freq

echo 2150400 >/sys/devices/system/cpu/cpufreq/cpufreq_limit/big_max_freq

echo 307200 >/sys/devices/system/cpu/cpufreq/cpufreq_limit/big_min_freq

exit

and yea, one of them actually stays on no matter what. (not msm-thermal, that one is default to N) and ive adjusted the level on that one to go to 91 celsius rather than 80

i think this kernel is missing certain optimizations that allow it to run cooler, which is why the default values dont work correctly

and as for the chainfire telling us not to:

all i did was update /system/xbin/su and /su/bin/su to the latest binary found in 2.76.

i made NO CHANGES to supolicy which i believe is custom made for our sgs7/e at the moment

its working for me. all i can tell you is make backups like you should be doing anyway.

if i did not make backups my phone would not be booting until someone finds the 930a or u firmware lol :)
[AT&T Samsung Galaxy S7 Guides, News, & Discussion] Ae3NerdGod:
oops

forgot to attach new zip

to reiterate, new new root zip, corrected script, updated su binary. use at your own risk. (im having great results)

also i updated the attachment on the previous post with corrected script syntax :) :)
[AT&T Samsung Galaxy S7 Guides, News, & Discussion] Norden32:
Never rooted a phone before. New Android user here.

I have the S7 Edge with Verizon. Could you explain how I use your zip file to root my phone? Do I simply follow the instructions on page 1 of this topic but replace one of the files there with your zip file? If so, which?

Or am I better off simply following the instructions on page 1 and using all the links there?
[AT&T Samsung Galaxy S7 Guides, News, & Discussion] lhanley:
I have ATT S7 and rooted it through this method. However now all my Google apps are crashing and I can't get online, also bluetooth won't turn on. I have tried factory reset and reflashing rom through special odin, but still same issue. In recovery, I see a dm-verity verification failed error and not sure why that is there. Any and all help would be appreciated, I don't know what else to do or try.

Thanks,

Leo
[AT&T Samsung Galaxy S7 Guides, News, & Discussion] NotSoSuper-:
Yeah man, I got all the same problems as you bit on reboot on first boot I got.into a boot loop, second try after factory reset got me stuck in decrypting on boot up even though I didn't enable it.

I just went to the G935U firmware/custom ROM and I'm waiting for the new root method to come out without engboot in the next few days, you should wait too.
[AT&T Samsung Galaxy S7 Guides, News, & Discussion] Ae3NerdGod:
I don't have Verizon, but I believe the correct process is:

grab the kernel and the specific odin made for us

grab my zip

flash the kernel, clear cache, double click, root.bat

bam

rooted.

again, I can't confirm this works on Verizon, but I've read that it does. and this is the process to do it. let us know if you're brave enough
[AT&T Samsung Galaxy S7 Guides, News, & Discussion] psouza4:
Well the default throttle temp is 80°C and you've cranked it to 90°C, but there are also a bunch of settings throughout /sys/module and such that get changed when we flash the engboot image. For example, /sys/module/lpm_levels/parameters/sleep_disabled gets set to 'Y' and should be 'N'.

I'm working on reversing this for the Verizon model, and I would guess that the settings are the same for other US carriers, but someone else may have to diff the /sys and /system paths before/after like I did to verify.
[AT&T Samsung Galaxy S7 Guides, News, & Discussion] JAYNO20:
Interesting... This sounds like it could have the negative effect on the battery we've been seeing, too.
[AT&T Samsung Galaxy S7 Guides, News, & Discussion] esjames:
I can confirm this also works on the July security patch for T-Mobile, PG1 firmware.
[AT&T Samsung Galaxy S7 Guides, News, & Discussion] guaneet:
Thanks for confirming

You are one brave soul lol
[AT&T Samsung Galaxy S7 Guides, News, & Discussion] Carlos Terán:
How do you recommend me to configure Kernel Adiutor not hot and not have lag?

Enviado desde mi SAMSUNG-SM-G930A mediante Tapatalk
[AT&T Samsung Galaxy S7 Guides, News, & Discussion] Tikerz:
Looking forward to your list of changes! THanks!
[AT&T Samsung Galaxy S7 Guides, News, & Discussion] melona380:
Works fine on Verizon[emoji1]
[AT&T Samsung Galaxy S7 Guides, News, & Discussion] psouza4:
I'm up to 70 total changes made to various config files, largely related to CPU though there's a few oddballs like changes to /sys/kernel/ipv4 values too that I'm reverting. Craziness, I tell you... absolute craziness! Pardon me, I require more saturated fats to continue...
[AT&T Samsung Galaxy S7 Guides, News, & Discussion] JAYNO20:
Nice. I'm looking forward to this.
[AT&T Samsung Galaxy S7 Guides, News, & Discussion] Norden32:
Where do I get the specific Odin made for Verizon?
[AT&T Samsung Galaxy S7 Guides, News, & Discussion] Ae3NerdGod:
feel free to expand upon my script. I've got things to take care of and then I'll be getting back to work.

I wasn't smart enough to take a backup of the original kernel, if I even could have unrooted
[AT&T Samsung Galaxy S7 Guides, News, & Discussion] psouza4:
Want to test a bash script for me and see how it treats you? PM me.

There isn't one, use the one everyone else is using. Also, I have a Verizon-specific guide you should be following.
[AT&T Samsung Galaxy S7 Guides, News, & Discussion] Ae3NerdGod:
it's the odin in the first post. it's not specific to Verizon, it's specific to the needs of the g93xa models

---------- Post added at 10:09 PM ---------- Previous post was at 10:07 PM ----------

same. one of us should probably make a new thread for this script, and if someone can figure out how to make it work in init.d, that would be awesome too, because I could not for some reason
[AT&T Samsung Galaxy S7 Guides, News, & Discussion] psouza4:
I used your notes and got it working on startup here (made a flashable .zip to chmod/chcon). Same process didn't work for you?
[AT&T Samsung Galaxy S7 Guides, News, & Discussion] Leneson:
Thanks so much! This was my issue, it works well now. I recommend trying this for anyone who did everything sucessfully but didn't get root working.
[AT&T Samsung Galaxy S7 Guides, News, & Discussion] JAYNO20:
Go ahead and make one, I am testing it out for him right now and so far it seems pretty good. Post the link here if you create a thread.
[AT&T Samsung Galaxy S7 Guides, News, & Discussion] M2490311:
Sorry if this has been asked, it's a really long thread, but I managed to attain root on my AT&T gs7 edge and I have a few issues and am asking if anyone can point me in the right direction. Here are my biggest questions:

How can I make my device get rid of the custom part on the boot screen?

What root apps are currently compatible, especially on the wanam front? The important apps, such as selinux changer and how to do cosmetic mods like removing custom status.

The phone seems much more sluggish than before root, is there a way to address this?

Is there a working wanam kit where modules can be flashed via xposed installer? Is there a compatible xposed installer?

How do I get rid of the recurring Knox notification that tries to tell me that unauthorized actions are trying to be made?

Is there a way to remove all custom statuses on the phone, and bootscreen?

What apps need to be avoided?

Can we flash custom roms, if not, is there a way to alter things like the battery bar, etc.

What apps cannot be frozen?

Sorry for the list- last night, I flashed the tar file through Odin, but didn't have any adb drivers installed and didn't have USB debugging enabled (I wasn't able to find a step by step tutorial and so I did it wrong on the first try, and after an hour long bootloop, I got into recovery and did a reset and had a half rooted phone). Today, I tried again and I got root, but I have a few problems outlined above, and the phone is very slow.

Can someone please help me with the questions I have or direct me to a thread that covers all of this? My pc got infected from the download links and is hard to use at the moment. I have root but it's been awhile since I've had a rooted device and it seems like everything is different.

I do have a replacement coming in the mail so if I can't get root working properly, I'm sending this one back but if there is a way to use root on this device properly, I'd love to know. Please and thank you.
[AT&T Samsung Galaxy S7 Guides, News, & Discussion] highaltitude:
I've been running SetCPU with setting "on-demand" for a few days now since that was the initial recommended fix. It had seemed laggy, but of course I am happy to have root so overlooked it. Just now decided to set it back to "performance" . Thing is running awesome. Not sure if the initial lag from rooting will return, but phone so far is running way better/faster than the "on-demand" setting. Just figured I'd pass it on. No guarantees it'll work for you. But I'm liking it.
[AT&T Samsung Galaxy S7 Guides, News, & Discussion] Ae3NerdGod:
not with init d, i was having numerous problems. permision denied errors everywhere.
[AT&T Samsung Galaxy S7 Guides, News, & Discussion] Skizzy034:
The leaked img is an AT&T one. 935A.
[AT&T Samsung Galaxy S7 Guides, News, & Discussion] melona380:
The att one works fine
[AT&T Samsung Galaxy S7 Guides, News, & Discussion] drift08:
I had to modified that root.bat file with "adb -s device name shell" due to error: more than one device and emulator when i run the original root.bat file. works at end after my mod :)
[AT&T Samsung Galaxy S7 Guides, News, & Discussion] cuezaireekaa:
Performance keeps your cores maxed out. Always. Big battery hit with this, but if you're happy with it and battery isn't important enjoy :D
[AT&T Samsung Galaxy S7 Guides, News, & Discussion] najoor:
If you look inside the kernel you will find that it is T Mobile:

#

# BOOTIMAGE_BUILD_PROPERTIES

#

ro.bootimage.build.date=Fri Apr 22 16:23:27 KST 2016

ro.bootimage.build.date.utc=1461309807

ro.bootimage.build.fingerprint=samsung/hero2qltetmo/hero2qltetmo:6.0.1/MMB29M/G935TUVE2APD7:eng/test-keys
[AT&T Samsung Galaxy S7 Guides, News, & Discussion] scott14719:
You are in luck. Every one of the questions you asked are in this very thread or one of the threads posted below. Many of them have been answered multiple times. There was another root thread before this one that was locked, so you may want to check it out as well. Again, luckily, it is in the same section as this thread. The only question you asked that I'm not sure has been discussed is the "custom" question (and I seem to remember it being here somewhere). I can tell you that while you are rooted, the custom status and lock will not go away. I'm not sure if it changes back if you restore (I think it depends on which version S7 you have and if you can restore it completely to stock or not.)...and information on restoring to stock is conveniently in one or more of these threads as well. ..

http://xdaforums.com/att-galaxy-s7/how-to/firmware-stock-sm-g930a-pb5-odin-files-t3411468

http://xdaforums.com/att-galaxy-s7/how-to/root-s7-att-g930a-g935a-t3410538

http://xdaforums.com/att-galaxy-s7/how-to/bounty-att-s7-root-exploit-t3341274

I also recommend reading any threads that might be linked in those threads as well.

The root thread we are in clearly states that:

"Warning this is engboot, meaning its not made to be used on day to day basis you may run into some issues. Hopefully we can fix them as we go!"

I'm not sure why you would have flashed this if you wanted a stable root with a warning like that on the front page in large, red letters. However, this root method has just come out and already there have been several advancements made by the talented people here at XDA. I'm fairly certain more advancements will be made shortly. These advancements are clearly laid out within the thread itself and I encourage you to give thanks to all of those that are devoting their time and effort towards making this a reliable and stable root.

Good luck.
[AT&T Samsung Galaxy S7 Guides, News, & Discussion] M2490311:
Thank you very much. I don't know much about the tech aspects, but if I can't get the answers in the direction you very kindly pointed me to, I'm just going to send this one back and keep my replacement stock. I didn't realize that the root is unstable and feel like I may have jumped the gun because this is uncharted territory. If they say anything, this device came to me in the mail like this.

It probably at the worst needs to be reflashed which is a likely outcome when I send this one back. Too much too soon and too fast. I'm going to look at those threads and see if I can work with what I have. I got the annoying Knox notice to go away by freezing it in titanium backup which appears to be working just fine.

---------- Post added at 03:48 AM ---------- Previous post was at 03:47 AM ----------

Thank you again.
[AT&T Samsung Galaxy S7 Guides, News, & Discussion] najoor:
As [MENTION=4398886]scott14719[/MENTION] put it very eloquently many of your questions are already answered in this existing thread. Just do a keyword search in the thread (like "lag" or "laggy") and find the answers. If you do the keyword search and still cannot find the answers I will be happy to help.

The one question that has not been asked here is the custom logo. Here is your answer: When a samsung phone boots up a process called syscope analyzes the key system areas to see if any modifications have been done such as rooting. If it finds a modification it sets the system state as custom. So the next time you reboot your phone this flag is displayed as the custom boot splash logo. There used to be ways of removing this logo but in recent phones there isn't. The only way is to flash a stock ROM which removes root.
[AT&T Samsung Galaxy S7 Guides, News, & Discussion] scott14719:
Someone else mentioned taking their device to Bestbuys and having them reflash the stock image onto it. You might want to think about trying that before sending it back to Samsung. I promise you, Samsung will know why it is the way it is and probably (not for certain) deny any warranty claim. If Bestbuy will reflash it, and you have a Bestbuy with a Samsung Kiosk close by, I think that will definitely be your best bet.
[AT&T Samsung Galaxy S7 Guides, News, & Discussion] stew1411:
The reason everyone is telling you to search is because there is a certain xposed module to use. We would also have to search for it to find the exact answer, so it's easier to just have you search for your answer. Download a kernel tweaking app, such as kernel aduitor and change cpu govenor to on demand. Boot into recovery and clear cache and your lag should go away, mine has. As has been stated, reflash stock firmware before sending back or samsung will almost certainly not accept your warranty return and charge you full price for the new one.

---------- Post added at 08:02 PM ---------- Previous post was at 08:00 PM ----------

Another thing to try is to clear cache. I always clear cache anytime I do a kernel flash or root. I set to on demand, cleared cache, now my phone runs like it did before root. As stated, setting it to performance will set the cpu to max at all times, even with the screen off. So your battery will take a huge hit due to running at max at all times.
[AT&T Samsung Galaxy S7 Guides, News, & Discussion] shadowslayer1:
Forgive me if this has been asked a million times. Im about to try installing xposed again.

Whats the best way to do a backup? Not for personal files, but for not bricking. When I last installed xposed (improperly) a factory reset didn't fix the problem.
[AT&T Samsung Galaxy S7 Guides, News, & Discussion] canynballa:
I use flashfire because I can't use TWRP.
[AT&T Samsung Galaxy S7 Guides, News, & Discussion] najoor:
Flashfire.
[AT&T Samsung Galaxy S7 Guides, News, & Discussion] M2490311:
Thank you for the reply. I got this as a replacement in the mail and it's going back to the carrier. I don't know if that makes a difference. I'm scared that if I reflash, the phone will brick. That's my big fear which is why I'm sending this one back. I was on the phone with tech support for an hour and blah blah blah.

If I take it for a reflash, is there a chance to brick?
[AT&T Samsung Galaxy S7 Guides, News, & Discussion] dk6640:
Hello,

I am in process of rooting, I've read almost all of the thread and searched for my issue, with no solution. The Odin flash seems to be okay. My issue happens when I run a cmd on my C:\android-sdk folder. I run that, I then cd super (one I created), and when I type root.bat, I get the following error:

'adb' is not recognized as an internal or external command,

operable program or batch file.

Any help would be appreciated.
[AT&T Samsung Galaxy S7 Guides, News, & Discussion] stew1411:
You need to copy everything from the super folder into the adb folder. Then open a command windows, cd to the adb folder, then run root.bat
[AT&T Samsung Galaxy S7 Guides, News, & Discussion] dk6640:
I did just that, and I still get the error. do I type in anything else than "root.bat"?
[AT&T Samsung Galaxy S7 Guides, News, & Discussion] scott14719:
Bestbuy (Samsung Kiosks) is usually pretty good at what they do. Of course there is never a 100% guarantee. Just make sure whichever Bestbuy you bring it to has aSamsung Kiosk and explicitly tells you that they can completely reflash it. Either way I think you should try them before dealing with Samsung or your carrier (your carrier is just going to send it back to Samsung anyway).
[AT&T Samsung Galaxy S7 Guides, News, & Discussion] stew1411:
If you send a rooted unit back to the carrier, they will almost certainly charge you. I got a replacement note 5 for my wife from att. They said once they get the old one back, if it's in a condition that they don't accept, they will send the old one back to me and charge the full price of the new one to my bill.

Download the stock firmware, it's on here somewhere. Put your phone in download mode and flash it. There is almost no chance of bricking it. Odin will either pass or fail.

---------- Post added at 08:51 PM ---------- Previous post was at 08:48 PM ----------

So everything is in one folder? All the contents of the super folder and your adb folder need to be one. The only reason it would say adb not recognized is because the adb files are not in the folder that the root files are in.
[AT&T Samsung Galaxy S7 Guides, News, & Discussion] M2490311:
Oh hells bells...reflash it is. There's an att service center nearby and a couple of best buys. I guess I'll hit up best buy and hope that a reflash doesn't end in brick...if the reflash at AT&T takes, it undoes the voided warranty. I'm just worried about brick on reflash.
[AT&T Samsung Galaxy S7 Guides, News, & Discussion] dk6640:
[IMG="folder"]https://s31.postimg.org/6t23rcil7/Capture.png[/IMG]

Yes. All in one. Here it is.
[AT&T Samsung Galaxy S7 Guides, News, & Discussion] stew1411:
The actual adb files are not in that folder. There should be an actual file called adb.exe and a few .dll files.
[AT&T Samsung Galaxy S7 Guides, News, & Discussion] dk6640:
Okay i think i fixed it. However, i cant see the OP's images for what the cmd should show. Is this right?:

C:\adb\platform-tools>root.bat

C:\adb\platform-tools>adb wait-for-device

C:\adb\platform-tools>adb shell mount -o rw,remount /system

C:\adb\platform-tools>adb shell mount -o rw,remount rootfs /

C:\adb\platform-tools>adb push SuperSU-v2.74-2.img /data/su.img

EDIT: Wait I think it just took forever to run. Rebooted. Am I rooted now...?

EDIT 2: Now, do I need to update the binaries? I ran supersu and it asked me to, but i hit no. I saw he advised against updating thru play store. Should I update elsewhere?
[AT&T Samsung Galaxy S7 Guides, News, & Discussion] highaltitude:
This is what installed for ADB. http://xdaforums.com/showthread.php?p=48915118

Worked great
[AT&T Samsung Galaxy S7 Guides, News, & Discussion] stew1411:
No do not update yet. Just download an app called root checker. It will tell you if you're rooted.
[AT&T Samsung Galaxy S7 Guides, News, & Discussion] dk6640:
Well hell...Play store updated it automatically...What do i do now? Reflash and start over?
[AT&T Samsung Galaxy S7 Guides, News, & Discussion] stew1411:
Umm I'm not actually sure. You should wait for someone with more knowledge than me to help. Next time open up play store, find supersu and click the three dots on the right, and uncheck automatic updates.
[AT&T Samsung Galaxy S7 Guides, News, & Discussion] cuezaireekaa:
No you're fine. Gtg
[AT&T Samsung Galaxy S7 Guides, News, & Discussion] dk6640:
Well root checker says I don't have root though. I thought it was due to supersu auto updating.

EDIT: I used a different checker and it says i'm rooted with SU found but BusyBox not installed

---------- Post added at 06:01 AM ---------- Previous post was at 05:50 AM ----------

One app says I have root access but busybox not installed. When I open supersu, the apps tab is blank...
[AT&T Samsung Galaxy S7 Guides, News, & Discussion] cuezaireekaa:
Get busy box on rails and run it. It will install busy box