yashsingh1/xdaforums huggingface dataset:
[Galaxy Tab Pro 12.2, 10.1, 8.4 Android Development] stealthee:
ok you have to wipe everything except storage and flash the 5.1.1 update tar 2 times some times to get it to work. Then once you have that you have a stock 5.1.1 then flash the twrp tar. THEN flash my root kernel test. I need to know since i dont have my tablet here right now if the se android status under setting general about this device says "Permisive" or what it says" if it does then great i need to fix the librarys so sayeth the ShinySide. Or i need to update superuser in my ramdisk if it does cause i have the wrong one. thats why im asking abou tthe SE Status. If someone could answer this I'll know if i need to recompile the kernel again with a different passive fix. Just flashing 1 time the 5.1.1 TW rom will not work if you have not wiped everything. Took me 2 odins to get it running. and i was stock 4.4.2 rooted. if your on CM you will need to wipe and then flash. The tar does not seem to wipe data it just overlays it seems.
[Galaxy Tab Pro 12.2, 10.1, 8.4 Android Development] ShinySide:
K. But Is it set to permissive in settings?
[Galaxy Tab Pro 12.2, 10.1, 8.4 Android Development] Planet X:
I really know how to flash. And for me flash stock rom has worked the first time. But how do you flash the recovery without first flashing [MENTION=4657950]andrewnelson23[/MENTION] kernel ? Your kernel is not tar.md5 but zip. If you try to flash TWRP after you have flashed stock rom the recovery doesn't get flashed. I have read the post about boot to recovery while pressing start in Odin but that didn't work for me. May be you can make a tar.md5 package with your kernel?

B.t.w. I have tried flashing with Flashfire but that results in Bootloop too.
[Galaxy Tab Pro 12.2, 10.1, 8.4 Android Development] ShinySide:
I'm confused on why you think a recovery gets flashed when flashing a kernel. Or are you saying twrp isn't sticking after you reboot?
[Galaxy Tab Pro 12.2, 10.1, 8.4 Android Development] Planet X:
Indeed, the recovery doesn't stick than.
[Galaxy Tab Pro 12.2, 10.1, 8.4 Android Development] ShinySide:
Simple fix. Flash recovery boot directly to recovery before going to the os
[Galaxy Tab Pro 12.2, 10.1, 8.4 Android Development] Planet X:
Do you mean i should be booted into twrp when starting flash with Odin?

Edit: I see. But that is what I did. Flash recovery and after flash your kernel. But then it boots right into twrp. Also wiped dalvik cache but that makes no difference.
[Galaxy Tab Pro 12.2, 10.1, 8.4 Android Development] ShinySide:
No. If you have flashed twrp while in download mode and rebooted to android and then tried to go to twrp and it took you to stock recovery IE. twrp didn't stick, you need to flash twrp while in download mode and when it goes to reboot do your key combo to go to recovery before booting to android. Or Uncheck auto reboot, flash twrp, disconnect cable, hold power button til it shuts off then go directly to recovery before booting to android.

Your post didn't make much sense to me so assuming you meant you flashed twrp, let it reboot and when you tried rebooting to twrp it wasn't there.
[Galaxy Tab Pro 12.2, 10.1, 8.4 Android Development] Planet X:
By that's exactly what i did. I unchecked reboot in Odin and flashed twrp and tried to boot into twrp but all i get was stock recovery.

B.t.w. if you uncheck auto reboot in Odin you will have to flash the rom twice. That's right. But if leave auto reboot checked you will only have to flash one time ;)
[Galaxy Tab Pro 12.2, 10.1, 8.4 Android Development] ShinySide:
I'm beyond confused now after reading your previous posts edit and this one.
[Galaxy Tab Pro 12.2, 10.1, 8.4 Android Development] Planet X:
I have re-edited my post again. May be it's more clear now.
[Galaxy Tab Pro 12.2, 10.1, 8.4 Android Development] ShinySide:
Okay one minute you have twrp, next minute twrp isn't sticking..... also talking about recovery not flashing an entire firmware with unchecked auto reboot
[Galaxy Tab Pro 12.2, 10.1, 8.4 Android Development] stealthee:
ok after you flash twrp and uncheck reboot after it flashes. hold down ONLY volume down and power untill you see the selinux msg on top. let it go. it should goto a black screen and then into twrp. do not hold HOME. you only get 1 chance if you boot into stock recovery you have to start all over and get back into download mode and flash twrp tar again. But once you do it 1 time it sticks and stock recovery is replaced by twrp.
[Galaxy Tab Pro 12.2, 10.1, 8.4 Android Development] Planet X:
Boot into twrp

Wipe advanced system, data, caches

Reboot to download mode

Flash stock rom with odin 3.10

Go through setup

Switch off

Boot into download mode

Start odin and uncheck auto reboot

Flash twrp 3.8.7.0

Switch tablet off

Start tablet with volume up and home pressed to enter twrp

All i have is stock recovery

So i power off tablet

Power + volume down + home pressed to enter download mode

Start Odin and uncheck auto reboot

Flash [MENTION=4657950]andrewnelson23[/MENTION] kernel

Power off tablet

Start download mode again with power + volume down + home button pressed

Start odin switch off auto reboot

Flash twrp again

Power off tablet

Enter twrp with power + volume up + home pressed

Flash SuperSu and your kernel in one time

Power off tablket

Power on tablet but only enter recovery

That's all. Is that clear to you?

---------- Post added at 07:04 PM ---------- Previous post was at 07:00 PM ----------

Okay. I will try that once again. And immediately flash this kernel than if that works.
[Galaxy Tab Pro 12.2, 10.1, 8.4 Android Development] stealthee:
Start tablet with volume up and home pressed to enter twrp

All i have is stock recovery

Wrong i said power and volume down. i explicitly said NO HOME BUTTON. you hold them after twrp flash. when you see unenforcing msg let go.
[Galaxy Tab Pro 12.2, 10.1, 8.4 Android Development] lewmur:
I flashed your kernel but did not install SuperSU. Under Settings/General/About Device the SE for Android status, it says "Enforcing". And the tablet is not rooted.
[Galaxy Tab Pro 12.2, 10.1, 8.4 Android Development] stealthee:
Ok thank you. Let me make a change to the kernel and recompile. Give me a few minutes
[Galaxy Tab Pro 12.2, 10.1, 8.4 Android Development] Planet X:
Okay, thank you. I did that now and recovery has sticked the first time. But after flashing SuperSu and your kernel I have Bootloop again right after Bootsound.

I hope I have helped you a bit.
[Galaxy Tab Pro 12.2, 10.1, 8.4 Android Development] lewmur:
No matter that you unchecked auto reboot. The ONLY way to get TWRP to stick is to press vol up and power buttom IMMEDIATELY after clicking "start" in Odin. Don't need to press the HOME button.
[Galaxy Tab Pro 12.2, 10.1, 8.4 Android Development] stealthee:
What tablet are you flashing this on? Have to ask sorry because the P900 kerenels would bootloop my T900.
[Galaxy Tab Pro 12.2, 10.1, 8.4 Android Development] Planet X:
My tablet is a SM-T900 European version.
[Galaxy Tab Pro 12.2, 10.1, 8.4 Android Development] andrewnelson23:
Bro. Don't flash my kernel. Its broken..!!! I'm still working on it.

Odin the stock image. Boot and setup. Go to download mode. Odin twrp. Check to auto reboot. As soon as it starts autorebooting, hold down power and volume down. This will boot you straight to twrp. Don't just shut off after odin'ing twrp. Let it reboot but don't let it get to system. You do this by long pressing power and vol. Down right after the screen goes black. After it boots to twrp, I always like to reboot back into recovery (twrp) again. Then flash this test kernel (the one in the op of this thread) and see what happens.

If you try to flash my kernel it'll probably mess things up for you. So DONT FLASH IT.
[Galaxy Tab Pro 12.2, 10.1, 8.4 Android Development] Planet X:
Thank you for your help. I will wait for the new kernel of [MENTION=738049]stealthee[/MENTION]. You have helped me a lot with understanding how to boot into TWRP after flash with Odin.
[Galaxy Tab Pro 12.2, 10.1, 8.4 Android Development] stealthee:
Beta 2 is now up. Ill be out this afternoon for a while let me know if it works. or at least we get se linux permisive now.
[Galaxy Tab Pro 12.2, 10.1, 8.4 Android Development] lewmur:
Still says Enforcing.
[Galaxy Tab Pro 12.2, 10.1, 8.4 Android Development] Planet X:
Also for me. Still Enforced. Also kernel version is from 17th of august. dpi@SWHD8919 #1 . It looks like it is still is the stock kernel?
[Galaxy Tab Pro 12.2, 10.1, 8.4 Android Development] lingarajug:
Flashed 5.1.1, installed twrp, booted back to twrp with button combo, got red message stating ' seandroid not enforcing', backed up, installed the kernel, wiped cache and dalvik, rebooted back to recovery through recovery, got message that supersu not installed, clicked dont install and booted back to system, supersu was found installed, opened it and got message su binary not installed, rebooted back to twrp recovery with button combo and reflashed kernel again and the same again ' su not installed', went to play store and installed superuser by chainssd (not sure if this would root) but no luck, it seems we need su binary, idk. Thank u though.
[Galaxy Tab Pro 12.2, 10.1, 8.4 Android Development] andrewnelson23:
This kernel's intent is to allow flashing of supersu. Did you try flashing supersu? With the stock kernel, when you attempt flashing supersu, it bootloops the device. I think the idea behind this kernel is to allow flashing of supersu by setting selinux to permissive, and possibly removing root restrictions. That what I was attempting with my kernel but I keep running into problems. Can't figure out how to set umkbootimg to my PATH, and I think I'm using the wrong toolchain. Don't use the twrp supersu installation, download supersu from chainfire's website and flash it as a .zip.

OP, what toolchain are you using?
[Galaxy Tab Pro 12.2, 10.1, 8.4 Android Development] lingarajug:
I have no idea about toolchains, supersu was installed but binary was not installed after the kernel flash, so tried cfautorrot and tab bootlooped, going back to kk stock for now.
[Galaxy Tab Pro 12.2, 10.1, 8.4 Android Development] andrewnelson23:
Yeah I attempted supersu after flashing the kernel and got bootloop.
[Galaxy Tab Pro 12.2, 10.1, 8.4 Android Development] ShinySide:
Okay really quick, su binaries are installed. There's no need to flash supersu. It's already in the ramdisk. Until we, well more he, I'm just helping him do what I did to the S5 that I ported from Unikernel on the s6, get it to boot as permissive root is not going to be possible. I sent him another commit we did to the S5 and s6 to get it to permissive that'll he'll make once he gets the time.

Yall can flash supersu, cfauto root or whatever else you want all day long but it's not going to work till it gets set to permissive and unfortunately with 5.1.1 it's not as easy as before as just putting setenforce 0 in the init.rc

Intent of the kernel, allow root and root you all in one shot

Tldr;

Su binaries already installed just not being started

Doesn't matter anyway until set to permissive it ain't gonna boot
[Galaxy Tab Pro 12.2, 10.1, 8.4 Android Development] lingarajug:
Thank u, thats what i thought too, i was also thinking where i can find su binaries and if i change permissions of them to see if it works, i have no clue what i am talking about.
[Galaxy Tab Pro 12.2, 10.1, 8.4 Android Development] stealthee:
After much cursing when things did not compile. Beta 3 is up :)

If it flashed correctly your kernel should change to Stealthee_Kernel

Check your Kernel Name for me and SE Status please.
[Galaxy Tab Pro 12.2, 10.1, 8.4 Android Development] lewmur:
Still says enforcing and kernel name didn't change.
[Galaxy Tab Pro 12.2, 10.1, 8.4 Android Development] stealthee:
3.2 is up now. It seems i was using the wrong Super User Binary's. & corrected the boot.img mount block in .zip Cross your fingers.
[Galaxy Tab Pro 12.2, 10.1, 8.4 Android Development] toolhas4degrees:
I have achieved root with latest kernel, your updater script is bad so the kernel would not update though. give me 10 min and i will inbox you a link to the working zip

btw permissive active also

has anyone made an xposed that works on samsung 5.1.1 devices or a work around yet?
[Galaxy Tab Pro 12.2, 10.1, 8.4 Android Development] andrewnelson23:
I think I saw a workaround for samsung devices but the stock ROMs have to be deodexed. PS how did you achieve root if the kernel wouldn't update? Did you manually modify the updater script?
[Galaxy Tab Pro 12.2, 10.1, 8.4 Android Development] toolhas4degrees:
yep, used 7zip pulled it out then used notepad++ then threw it back in the zip

this is what it is with my edits(mine are in bold)

i_print("");

ui_print("");

ui_print("");

run_program("/sbin/mount", "-t", "auto", "/system");

ui_print("");

package_extract_dir("system", "/system");

ui_print("Flashing Trap Kernel");

package_extract_file("boot.img", "/dev/block/mmcblk0p9");

#kill security log agent

run_program("/sbin/rm", "-rf", "/system/app/SecurityLogAgent");

#delete synapse stuff

delete("/data/dalvik-cache/data@app@com.af.synapse-1.apk@classes.dex");

delete("/data/dalvik-cache/data@app@com.af.synapse-2.apk@classes.dex");

delete("/data/dalvik-cache/data@app@com.af.synapse-3.apk@classes.dex");

delete_recursive("/data/data/com.af.synapse");

delete_recursive("/res");

delete_recursive("/data/.simplkernel");

delete_recursive("/data/simpltest.log");

ui_print("Done");

unmount("/system");

show_progress(0.100000, 0);
[Galaxy Tab Pro 12.2, 10.1, 8.4 Android Development] stealthee:
I updated mine it should work now to install everything. its on the main page.
[Galaxy Tab Pro 12.2, 10.1, 8.4 Android Development] andrewnelson23:
Nice!

I'll try it when I get home. PS here is a description on how to deodex your stock rom: http://xdaforums.com/sprint-galaxy-s5/general/how-to-deodex-lollipop-rom-t3065596

Try that and then you might be able to use xposed. Just search Samsung xposed 5.1 and arter97 has a thread about it.

---------- Post added at 07:08 AM ---------- Previous post was at 06:44 AM ----------

I have root. Thank you [MENTION=738049]stealthee[/MENTION] for the kernel and [MENTION=3429298]toolhas4degrees[/MENTION] for the updaterscript edit.

[MENTION=738049]stealthee[/MENTION], what edits to the kernel source did you make in order to make selinux permissive?

now, how the heck do we get knox off?
[Galaxy Tab Pro 12.2, 10.1, 8.4 Android Development] toolhas4degrees:
I'm zipping system in root explorer and I will try at deodexing. then look at edits and what to delete to remove knox from old 4.4.2 rom. will let you know if all goes well, but I am no dev so it might take me a day or two and some reading since I work 55+ hrs a week
[Galaxy Tab Pro 12.2, 10.1, 8.4 Android Development] lewmur:
IT WORKED!!!!! i'M NOW ROOTED!!!!
[Galaxy Tab Pro 12.2, 10.1, 8.4 Android Development] stealthee:
Did you get root with my zip or a modded one? I updated my script on the main page so it should of worked. But if it is still not working well then I need to fix it.

As far as edit. A WHOLE LOT! Ill be putting up my github soon as I get a chance. And a whole lot of deleting lines of code that kept trying to turn back on enforce in SE linux.
[Galaxy Tab Pro 12.2, 10.1, 8.4 Android Development] ShinySide:
He's uploading them to github I believe but in a nutshell these

https://github.com/ShinySide/HispAsian_Lolli/commit/32f24b7f7994f7d5b894ec7a4e5b840ae6f6a11c

https://github.com/ShinySide/HispAsian_Lolli/commit/5cb61c2ec37532ed8f1619e61f2c1c8f600670ef
[Galaxy Tab Pro 12.2, 10.1, 8.4 Android Development] Planet X:
Thank you so much. I have root again. You guys are magic. Ads, what do they look like?

It has been a nightmare using the tablet without root.
[Galaxy Tab Pro 12.2, 10.1, 8.4 Android Development] toolhas4degrees:
[MENTION=4657950]andrewnelson23[/MENTION]

found this knox remover, havn't tested it currently making a deodexed rom

http://xdaforums.com/attachment.php?attachmentid=2352990&d=1382869026

---------- Post added at 12:10 PM ---------- Previous post was at 11:36 AM ----------

I had root before I linked you the fixed updater, I'm deodexing and removing knox(making a custom rom or trying to now)
[Galaxy Tab Pro 12.2, 10.1, 8.4 Android Development] andrewnelson23:
Enable 5 GHz Wifi

Hmm, I don't know about that, it looks a couple of years old. Also, I was looking at the samsung deodex xposed functionality, I think Wanam's version would be a better use case for our devices and firmware.

On another note, I've enabled 5 Ghz wifi via root. Here are the steps:

1: Download Romtoolbox Lite.

2. Download this. This is a modified sqlite3 package that has been compiled to work as PIE(Position Independent executable)...You need to move this to /system/xbin and give it executable rights. I use esfile explorer with root permissions, but you can use any file explorer or terminal, or whatever.

3. Create a text file (name it whatever you like) and type:

sqlite3 /data/data/com.android.providers.settings/databases/settings.db "INSERT INTO global (name, value) VALUES ('wifi_country_code', 'US');"

and save.

4. Go into Rom toolbox lite and select scripter. Click +ADD in the top right and navigate to the text file that you just created.

5. Click on the script and go ahead and run script.

6. You will have to restart you wifi (not your entire phone) for the change to take place.

7. In rom toolbox lite, click on the script again and select the option to set at boot. So far as I can tell, you still have to do a wifi toggle right after boot but then the 5ghz networks are discovered.

8. Edit the build prop. Find the line that says ro.securestorage.support=true and change to false. This will make your tablet remember your networks. Second go to data/misc/wifi/wpa_supplicant.conf. edit that file and add your 5g network just as it appears (the same entry in the same file) on your phone. Now it'll auto connect and you're good to go!
[Galaxy Tab Pro 12.2, 10.1, 8.4 Android Development] lingarajug:
Tried it again, still no root. Flashed 5.1.1 then flashed twrp recovery 2.8.7.0, flashed the zip but no root, what am i doing wrong.

Edit: nevermind, it says supersu not installed when u exit out of recovery, but after rebooting everything was fine and i now have root, thank you.
[Galaxy Tab Pro 12.2, 10.1, 8.4 Android Development] Tquarter:
I just flashed it, & I'm rooted! Thanks everyone! Here is what I did...

flashed new rom, went through setup, wifi, google, etc.

opened oden, UNCHECKED AUTO REBOOT, flashed TWRP.

when it said pass, hold power and volume up, until t-900 tab pro screen came up, then let go of power button, but KEEP HOLDING VOLUME UP

until TWRP comes up.

Then flashed stelthee kernel, and clear cache and dalvic cache, decline the offer to install super user when rebooting.

It is installed and in the app drawer. Took 7 minutes to reboot, but that is no big deal.

I have deleted all the bloatware from my device, and feel like it's my tablet again! This is KILLER!

---------- Post added at 12:21 PM ---------- Previous post was at 12:15 PM ----------

I changed my router 5ghz channel to 36 and it showed up in the connections list. This was before we had root tho. Glad there is a way to fix it right, since we have root. Thanks!
[Galaxy Tab Pro 12.2, 10.1, 8.4 Android Development] stealthee:
Updated first post with github
[Galaxy Tab Pro 12.2, 10.1, 8.4 Android Development] andrewnelson23:
So I had done that before as well. The issue with that is that it you have to alter your modem in order to do that. Not only that, but in my case, when I switched from automatic band to 36, I went from ~60 Mbps to ~5Mbps instantly.

My process allows you to permit 5ghz networks on your phone, to the full extentn. So I'm now getting my ~60 Mbps.

[MENTION=738049]stealthee[/MENTION], because of your kernel edits, WiFi passwords do not automatically save. You have to go into the build prop and edit that ro.securestorage.support=true to false. Perhaps just including that at the end of your kernel script can fix that?
[Galaxy Tab Pro 12.2, 10.1, 8.4 Android Development] Tquarter:
Hey, my router has been acting a little flakey since I changed it, now that I think of it. I just didn't associate it with the channel change. Thanks for the fix!
[Galaxy Tab Pro 12.2, 10.1, 8.4 Android Development] otisdog:
After doing all successfully the wifi will not save passwords. Have to re-sign-in every time the tablet restarts.

How to fix?

Thanks Jim
[Galaxy Tab Pro 12.2, 10.1, 8.4 Android Development] andrewnelson23:
Did you edit the build prop and set ro.securestorage.support=true to false?
[Galaxy Tab Pro 12.2, 10.1, 8.4 Android Development] otisdog:
Sorry I'm fairly new to this and have no idea how to do that.

Jim
[Galaxy Tab Pro 12.2, 10.1, 8.4 Android Development] andrewnelson23:
Oh, no worries, I'll help you. Download es file explorer from play store. Open. Press the top left menu icon. Scroll down and enable root explorer. Click on root explorer and select mount r/ww. Enable all. Navigate to your root folder (/) and select system folder. Then click on build.prop. Then select es note editor. Go down to that part that I said and edit it to say false. Then press back and confirm to save. Then reboot and it should fix the issue.
[Galaxy Tab Pro 12.2, 10.1, 8.4 Android Development] lingarajug:
Can u share a pic or screenshot on what to do for 5ghz wireless, i am confused, thank u.
[Galaxy Tab Pro 12.2, 10.1, 8.4 Android Development] andrewnelson23:
First, you need to do what I just told otisdog. This will allow your networks to save.

Then, go to /data/misc/wifi/wpa_supplicant.conf with root access and edit it to match a working configuration.

The first picture shows the file path and name.

The second picture shows my wifi configuration. I enter the wifi ssid xxxx-5G, and enter the password below that. The rest I think you can just use what I did(except for security type which is obviously whatever type your network has). ALTERNATIVELY, you can get your phone, and navigate to this same file and copy the little section that describes your 5G network onto your tablet.
[Galaxy Tab Pro 12.2, 10.1, 8.4 Android Development] lingarajug:
Ok, did the 1st step and my tab remembers my 2.4ghz wireless now, then did 2nd step (just like how it appears for 2.4ghz except did not know what to enter for frequency so omitted that line but all other are the same with 5ghz ssid), now tab shows my 5ghz ssid but also says out of range, what did i do wrong?
[Galaxy Tab Pro 12.2, 10.1, 8.4 Android Development] andrewnelson23:
Is your phone connected to the same network?
[Galaxy Tab Pro 12.2, 10.1, 8.4 Android Development] lingarajug:
Yes i have lg g2 and it is connected to 5ghz and i looked at the .conf file and the way it saved info is entirely different than how tab saves them, dont know what to do and wasn't sure if copy paste that info to tab would work. By the way whats the frequency value for 5ghz.
[Galaxy Tab Pro 12.2, 10.1, 8.4 Android Development] otisdog:
OK looks like that did the trick. Thanks

Jim
[Galaxy Tab Pro 12.2, 10.1, 8.4 Android Development] stealthee:
I believe someone asked me what did i do to the kernel to get into permissive mode.

https://github.com/ShinySide/SM-T900_Kernel/compare/master...Stealthee:master
[Galaxy Tab Pro 12.2, 10.1, 8.4 Android Development] Tquarter:
Same here, i changed my 5ghz channel on the router, back to 36 and all is well again. Mine still doesn't see US channels. (153)
[Galaxy Tab Pro 12.2, 10.1, 8.4 Android Development] stealthee:
After I get my kiddo's to sleep tonight Ill see if i can put some of those changes you been posting here in the zip.
[Galaxy Tab Pro 12.2, 10.1, 8.4 Android Development] pdaddy:
I appreciate the efforts put forth on this project! Normally I am tweaking my Note 4. Hardly ever anything new with our Tab Pro. Any chance of making this kernel compatible with Synapse?
[Galaxy Tab Pro 12.2, 10.1, 8.4 Android Development] andrewnelson23:
So sorry guys, I guess I spoke too soon about the first part of the procedure. That is, you still have to do all the sqlite stuff with rom toolbox lite, but it really isn't hard, and is completely free. Use this post and do all the steps.