yashsingh1/xdaforums huggingface dataset:
[Galaxy Tab S2 Android Development] Nightfrequency:
CWM Root with Samsung Galxaxy Tab 2 9.7 LTE -SM-T819 ?

I am looking for Root with TWRP with Samsung Galxaxy Tab 2 9.7 LTE -SM-T819, Android 6.0.1.

Has anyone ideas ?:confused:

Greetings

Ralf
[Galaxy Tab S2 Android Development] ashyx:
Why are you looking for CWM in a TWRP thread? Does anyone even use CWM anymore? [emoji53]
[Galaxy Tab S2 Android Development] minnaing:
Same Issue with my Tab T819, NO WIFI.:(

I need boot.img for SM-T819.
[Galaxy Tab S2 Android Development] ashyx:
Which firmware build are you running?
[Galaxy Tab S2 Android Development] minnaing:
mmb29m.t819xxu1apd5
[Galaxy Tab S2 Android Development] ikonline:
yellow triangle with exclamation point

Hi there,

When I connect mij sm-T813 to my pc and flash with ODIN downloaden from the link in the OP I can send the twrp to mij Tab.

I use the instructions from http://techbeasts.com/root-and-install-twrp-recovery-on-galaxy-tab-s2-97-2016-t813n-t819n/

When I went to the step to enter the recovery I see an update message and then the YELLOW TRIANGLE WITH THE EXCLAMATION POINT and a "falling" android.

The recovery is NOT the TWRP.

What can I give a try to get it working?

:confused:

EDIT: I have TWRP now and waiting to boot the S2 Tab ....

waiting.... over 20 minutes now :(
[Galaxy Tab S2 Android Development] winomat:
Same here. No WIfi on my T819 after rooting :(
[Galaxy Tab S2 Android Development] minnaing:
Solved the issue.

1)Download and flashed stock firmware from Sammobile Via Odin.

2)Flash TWRP from OP Via Odin (Doesn't Flash Boot.img from OP).

3)Flash SuperSU 2.71 Via TWRP (Don't care about red error)

4)Reboot and Enjoy with rooted T819.:fingers-crossed:
[Galaxy Tab S2 Android Development] winomat:
ashyx might need boot.img form latest fw to build new T819XXU1Axxx_no_encryptable_boot.

I am downloading atm DBT-T819XXU1APF6-20160628103033.zip

I will share boot.img as soon i got it down, which will be a while since its slow :(

[MENTION=4637179]minnaing[/MENTION] cant you extract boot.img from the fw and share it here? Then ashyx could provide a new T819XXU1Axxx_no_encryptable_boot.
[Galaxy Tab S2 Android Development] ikonline:
After reflashing everything again it all works!!

Thanks for it, all

---------- Post added at 04:24 PM ---------- Previous post was at 03:27 PM ----------

a question about exposed.

Is it now working for those that using it or are you still have the playstore issues?

And if it's working wich version can I use the best? xposed-v86-sdk23-arm64.zip ??
[Galaxy Tab S2 Android Development] benny2k:
I've downloaded T819XXU1APF6 DBT (T819XXU1APF6_T819OXA1APF6_T819XXU1APF6) from SamFirmware, but the date on the zip differs from the zip above (SM-T819_1_20160615131527)...I don't know if this makes the firmware older or something. If you need the boot.img I could put it somewhere for you (I don't think I can post links or files with my total of 1 or 2 posts or so :)). I think you can also download the firmware with good speeds via updato if you need the complete tar.
[Galaxy Tab S2 Android Development] ashyx:
You need to update you're well behind.
[Galaxy Tab S2 Android Development] ashyx:
Upload it here: http://www.tinyupload.com/
[Galaxy Tab S2 Android Development] benny2k:
Done and link sent via PM. Thanks.
[Galaxy Tab S2 Android Development] DionWhite33:
TWRP is is said to work better with the Samsung stuff lately so it has kinda killed off CWM in this arena.
[Galaxy Tab S2 Android Development] Ghostrider:
Ok here is my Feedback, After many trys to Download the New APF6 Firmware for my T719 i got it :) . And all is Working allright. Without Problems. :)
[Galaxy Tab S2 Android Development] ashyx:
T819XXU1APF6_no_encryptable_boot

.
[Galaxy Tab S2 Android Development] Lupin The Third:
[MENTION=4899305]ashyx[/MENTION]

Bought my Tab s2 t813, flashed twrp and root. All good so far.

I have that mouse cursor too on twrp, center of the screen. Not a big deal though.

Great job with this thread! :victory:
[Galaxy Tab S2 Android Development] winomat:
thx alot. I will try it when im back home from work.

Edit: just flashed everything. Works like it should. Really appreciated.
[Galaxy Tab S2 Android Development] ikonline:
After trying to install xposed via TWRP my t813 stopt after showing the glowing SAMSUNG logo.

Does anyone has xposed working one this device?
[Galaxy Tab S2 Android Development] Lupin The Third:
Which version of xposed you flashed? The standard doesn't work. Flash wanam's xposed for Samsung devices.
[Galaxy Tab S2 Android Development] ikonline:
I used the standard xposed. I try then the Wanam version.

Thanks for your reply!!
[Galaxy Tab S2 Android Development] ikonline:
Ik works!!! Thanks Varben
[Galaxy Tab S2 Android Development] Lupin The Third:
Enjoy!

Rooting this tablet unleashes it's full power. Dpi 270 is sick!!! Coupled With wanams xposed module you can enable multiwindow on all apps and use the screen at its full potential. :)
[Galaxy Tab S2 Android Development] Flavio:
Which of these Xposed versions should I best use:

xposed-v86.0-sdk23-arm-custom-build-by-wanam-20160709.zip

xposed-v86.0-sdk23-arm64-custom-build-by-wanam-20160709.zip

xposed-v86.0-alt-sdk23-arm-custom-build-by-wanam-20160710.zip
[Galaxy Tab S2 Android Development] Lupin The Third:
Arm64
[Galaxy Tab S2 Android Development] Lightn1ng:
We had a good laugh on Google+ about this. Lol. Good work though :svetius:
[Galaxy Tab S2 Android Development] ikonline:
300 does do the trick for me. I think my eyes are not so good I can use 270 dpi ;)
[Galaxy Tab S2 Android Development] Lightn1ng:
Ok I just finally got myself a few hours freetime uninterrupted. Now, I will void my Knox flag and get Lightning ROM ready. Anybody with a Snapdragon-powered S2 will be getting a ROM from me within the next week or so. I plan to support the T713, T813, T719, and T819. Stock firmware for all 4 is downloading now, and I'm getting a Linux VM ready. [MENTION=4899305]ashyx[/MENTION], would this be a good place to post updates?
[Galaxy Tab S2 Android Development] ashyx:
I'd prefer not, don't want the thread flooded with feature requests, issues, timescales etc.
[Galaxy Tab S2 Android Development] CKH:
MY Device is SM-T719C

I falsh "twrp_3.0.2-1_sm-t713" and "T719XXU1APF6_no_encryptable_boot" on Odin ,but it can't work for me.

and boot loop now...

Anybady can help me ?

I need original firmware T719CZSU1APF1 for Taiwan version

Could support me fix this issue ?

Millions of thanks for taking the time to fix my issue.

ThankS!!
[Galaxy Tab S2 Android Development] Lightn1ng:
Understood. I was just going to post updates on the progress of development, then make a new thread for the ROM itself. I fully understand though.

---------- Post added at 06:03 PM ---------- Previous post was at 06:01 PM ----------

This website seems to have it: http://forum.a2phone.ir/download-ce...apf1_taiwan-android-6-0-1_4file-firmware.html

Up to you whether you trust this website.
[Galaxy Tab S2 Android Development] CKH:
Thank you for your suggest

Have any best way ? ThankS

:crying::crying::crying:
[Galaxy Tab S2 Android Development] Lightn1ng:
What do you mean "best way?"
[Galaxy Tab S2 Android Development] ashyx:
Did you root before flashing the boot image?
[Galaxy Tab S2 Android Development] DionWhite33:
Heres the working Xposed and Arya Mod-Viper,Beats,Dolby. Also an Sd Card reader... you will have to make Titanium Backup a system app to work proper.

---------- Post added at 02:46 PM ---------- Previous post was at 02:46 PM ----------

https://mega.nz/#F!PNpjURaC!MGYWw65SSVO1q8fqzwJF7w

---------- Post added at 02:48 PM ---------- Previous post was at 02:46 PM ----------

Also included is a working S7 Game Menu
[Galaxy Tab S2 Android Development] Lightn1ng:
Thanks for this! :D
[Galaxy Tab S2 Android Development] MJFox78:
I'm not sure if it's because of root or because of xposed, but private mode and secret mode (in samsung browser) doesn't work anymore since I rooted and installed xposed

when I try to activate private mode I get a toast telling me that it could not be activated and selecting secret mode in samsung browser doesn't do anything

anybody else?

greetings

MJFox
[Galaxy Tab S2 Android Development] cyclopslaw:
Hi guys, I'm a complete and utter noob, so please forgive me a stupid question.

I have the SM-T819 , United Arab Emirates version.

As i live in China and move between different countries I'm interested in rooting, and then following other tutorials regarding phones/tablets with Qualcomm, to unlock the TDD-LTE bands which are needed to use 4G here. The SM-T819C sold in China, HK and Taiwan has the appropriate bands.

Does the modem in this device (SM-T819) contain the capability to connect to these TDD-LTE bands, and it has been restricted by Samsung for other reasons, or is the modem different and wholly incapable of connecting to these bands?

Don't want to go on a wild goose chase and brick my device.

Thanks
[Galaxy Tab S2 Android Development] ashyx:
Rooting trips knox which disables some security options.

However Xposed is also known to cause this itself.

A custom rom is usually needed to overcome this. There is also an Xposed module called XsecureStorage that may re-enable it.

If you can't access your files with TWRP then going back to complete stock and factory resetting may do.
[Galaxy Tab S2 Android Development] MJFox78:
thanks for your reply!

I don't really care for private mode but secret mode might come in handy sometimes

also I like when everything just works, no matter if I use it or not

I already tried XsecureStorage but it didn't fix the problem

I guess I have to wait for a custom ROM to arrive for the T813

greetings

MJFox
[Galaxy Tab S2 Android Development] ashyx:
Can't you use incognito mode in Chrome?
[Galaxy Tab S2 Android Development] MJFox78:
yeah, I can, it's not a big deal, it's just nice when everything just works as it should ;)
[Galaxy Tab S2 Android Development] ThePublisher:
Has anyone taken the most recent update on a T813 and then still been able to root?

I'm currently on ADP7 and not letting it update. If I can still root on the update then of course I'll take it :)

I see 3 other builds after ADP7 on this guide, but want to make sure.
[Galaxy Tab S2 Android Development] Lightn1ng:
You shouldn't have any issues rooting the newer build.

However: You can't take OTA updates while rooted. You need to flash the newer firmware via Odin.

If it ain't broke, why fix it?
[Galaxy Tab S2 Android Development] Lightn1ng:
[MENTION=4899305]ashyx[/MENTION]

Ok I'm lost here. I realized that the primary method for flashing a ROM - using the .img file - fails EVERY TIME under TWRP on my T713. I tried, in TWRP:

dd if=/sdcard/system.img of=/dev/block/bootdevice/system

and the dd command simply hangs. Upon reboot, the system partition was completely unmodified.

Also:

package_extract_file("system.img", "/dev/block/bootdevice/system");

hangs as well, and upon reboot, the system partition is, once again, unmodified.

I've tried my luck with simply copying over the system files and symlinking/applying permissions manually. It boots, but SDcard does not work. Now, neither does raw image flashing using TWRP :(

Is there any hope you could compile an older version of TWRP for the T713, or maybe I'm doing something wrong? Thanks for all the hard work.
[Galaxy Tab S2 Android Development] Supersanborn:
Wrong thread.
[Galaxy Tab S2 Android Development] ashyx:
This is not the thread for your device.
[Galaxy Tab S2 Android Development] ashyx:
Does the stock system.img flash with twrp using the system image flashing options?
[Galaxy Tab S2 Android Development] Lightn1ng:
The stock file is a system.img.ext4. Should I flash it the same way? (Using dd)
[Galaxy Tab S2 Android Development] ashyx:
Yep, you should see the system image flashing option after selecting image under install.
[Galaxy Tab S2 Android Development] Lightn1ng:
It only allows me to flash img files to the boot or recovery partitions.
[Galaxy Tab S2 Android Development] ashyx:
Try this: https://www.androidfilehost.com/?fid=24591000424948304
[Galaxy Tab S2 Android Development] Lightn1ng:
On it now

---------- Post added at 04:37 PM ---------- Previous post was at 04:25 PM ----------

Using "Install Image" flashes fine and works well. The "dd" command still hangs.
[Galaxy Tab S2 Android Development] ashyx:
Maybe try flashing to the block device instead of the partition name?

/dev/block/mmcblk0p36
[Galaxy Tab S2 Android Development] Lightn1ng:
You're 100% sure that that's the system partition location? (I'm paranoid about blk0pXX flashing)
[Galaxy Tab S2 Android Development] ashyx:
Post #33
[Galaxy Tab S2 Android Development] Lightn1ng:
On it now. Thanks.

---------- Post added at 04:54 PM ---------- Previous post was at 04:51 PM ----------

I did the command and now there is a bunch of random strings of text on my terminal screen.

Should I be scared to reboot when it's done?

(e.g., selinux:object_r:system)file:s0[[[]I]]])
[Galaxy Tab S2 Android Development] ashyx:
Looks like selinux file contexts.

You have your twrp backup right? Nothing to worry about.
[Galaxy Tab S2 Android Development] Lightn1ng:
It's still going. Or at least it seems to be

---------- Post added at 05:05 PM ---------- Previous post was at 05:04 PM ----------

Ok i cancelled it and rebooted and... again... the system partition is unmodified.
[Galaxy Tab S2 Android Development] ashyx:
Are you doing this in terminal or adb?

Either way you need a root shell.
[Galaxy Tab S2 Android Development] Lightn1ng:
I'm just going in TWRP Advanced > Terminal. I didn't type "su," but I was under the impression that I didn't need to in TWRP's terminal.

Remember, ADB is broken.
[Galaxy Tab S2 Android Development] ashyx:
Shouldn't do, but who knows it's mm and the kernel isn't permissive.

SElinux file contexts flashing up on screen seem like avc denials.

Strange, but who knows.

Edit: scratch that, daft idea.
[Galaxy Tab S2 Android Development] Lightn1ng:
Yeah reflashing the system partition seems like a bad idea while booted.

I'm going to try typing "su" from the TWRP terminal and trying once more.

Any other ideas?

---------- Post added at 05:26 PM ---------- Previous post was at 05:25 PM ----------

~ # su
sh: su: not found
~ #

Yeah, it didn't work.

Other ideas? thanks for the help by the way.
[Galaxy Tab S2 Android Development] ashyx:
Twrp read only option is definitely disabled?
[Galaxy Tab S2 Android Development] Lightn1ng:
Well how would I know for sure? I do remember swiping at first.
[Galaxy Tab S2 Android Development] ashyx:
Under MOUNT it should be unchecked.

Is the raw image the correct size?

Might be worth converting the stock system.img to raw and try to DD that and see what happens?
[Galaxy Tab S2 Android Development] Lightn1ng:
I tried that earlier today with simg2img, same issue.

"Mount system partition read-only" is unchecked.

I don't know what's going on here.

Maybe Samsung designed this thing to not be ROM-able?
[Galaxy Tab S2 Android Development] ashyx:
Does seem strange, you could always convert it to sparse and flash with odin?
[Galaxy Tab S2 Android Development] Lightn1ng:
Signed and unsigned images flash fine with Odin.
[Galaxy Tab S2 Android Development] ashyx:
Have you tried the format option under Advanced wipe in TWRP to format the system partition as ext4 first?
[Galaxy Tab S2 Android Development] Windsor1959:
I see another thread where pvsgh has a flashable rooted ROM for the T813. Shouldn't the 813 be similar to the 713, or is that too logical for Samsung? Maybe you don't have to reinvent the wheel if someone else has solved the problem
[Galaxy Tab S2 Android Development] Lightn1ng:
I asked him about it. He hasn't responded yet.

Tried it:

dd: writing /dev/block/bootdevice/system: No space left on device
...1.4GB copied,

And the system partition is empty.

By the way, the system img was gotten using:

dd if=/dev/block/bootdevice/system of=/sdcard/system.img
[Galaxy Tab S2 Android Development] ashyx:
Both images identical in byte size?

1.4gb is too small for the system partition isn't it?

What's it's actual size?

Edit: 4036mb
[Galaxy Tab S2 Android Development] Lightn1ng:
[MENTION=4899305]ashyx[/MENTION]

I got it working now. Thanks! :D
[Galaxy Tab S2 Android Development] ashyx:
Solution?
[Galaxy Tab S2 Android Development] Lightn1ng:
I just extracted the /system dir in the ROM directly. I was having issues doing this before, but I used an older version of SuperR kitchen and it works now. Thanks :highfive:
[Galaxy Tab S2 Android Development] Lightn1ng:
[MENTION=4899305]ashyx[/MENTION]

I know I may be asking you too many questions, but would you possibly be interested in helping find out why ADB is broken?

It shows under devices as unauthorized, and never asks for authorization.
[Galaxy Tab S2 Android Development] ashyx:
I need to compile the kernel with root support.
[Galaxy Tab S2 Android Development] Lightn1ng:
Ok I'm going to try to do this one myself. I've compiled CM before but never a kernel. Where should I start? Thanks.
[Galaxy Tab S2 Android Development] ashyx:
You'll need the sources from Samsung.

No different to compiling any other source.

Set up your environment and paths in Linux, modify the source code and compile.
[Galaxy Tab S2 Android Development] Lightn1ng:
Will try thanks. :D
[Galaxy Tab S2 Android Development] magda623:
Having a little trouble with this version of TWRP. Rooted with an earlier version of TWRP in a different post in development just fine. Tried this version and after I install it, I try and reboot directly to TWRP. It just stays at the samsung logo screen. Nothing happens. But I can reboot back to bootloader mode, or I can press down at that screen and reboot just fine. The version of TWRP will not stick. I've read the OP stating how to boot directly back into recovery, but it appears to not work, or I have cleared my recovery all together. I can't reboot to recovery via titanium backup or twrp manager. It just reboots and skips going into recovery. I've downloaded the t813 version for my 819t as instructed. I'm running stock rooted rom. Any help would be greatly appreciated. I've tried several different versions of ODIN as well thinking that it might be the software. Also redownloaded the twrp file from different locations. no luck
[Galaxy Tab S2 Android Development] ashyx:
There hasn't been an earlier version of this recovery?
[Galaxy Tab S2 Android Development] magda623:
I rooted with twrp 2.8. I managed to get 3.0.0 to flash. I'm updating twrp cuz the rom I'm Erinn to install requires the newest version.
[Galaxy Tab S2 Android Development] Lightn1ng:
[MENTION=4899305]ashyx[/MENTION]

Am I safe to assume that /dev/block/bootdevice/by-name is the same on all the Qualcomm S2s?
[Galaxy Tab S2 Android Development] ashyx:
Yes as far as I'm aware.
[Galaxy Tab S2 Android Development] Lightn1ng:
Thanks. :)
[Galaxy Tab S2 Android Development] taichichuan:
Rebuild Kernel for SM-T713

Greetings!

Because I need to add support for a couple of devices, I need to rebuild the kernel and package it up for installation. I know how to rebuild normal ARM Linux kernels and have been doing that for over a decade, but the Android build system and packaging the resulting kernel for installation seems a bit confusing over doing a normal Debian build. Are there any instructions or links for how to rebuild the SM-T713 kernel? I see 3 build scripts in the directory. I believe the SM-T713 is the msm8976. So, that would lead me to believe that the build_msm8976_kernel.sh should be the correct build script, yes? However, as I look in this script, I see that the $BUILD_COMMAND environment variable seems to rebuild Chinese and European flavors, but not one for the US. Am I missing something here?

Additionally, I'd love to set SELinux to permissive mode and hopefully address the missing ADB support from the lightning T713 ROM. Assuming I can get all of that accomplished, I'll hand the image back over for inclusion in the next lightning ROM release.

TIA
[Galaxy Tab S2 Android Development] ashyx:
It's build_kernel.sh

However it seems to have issues with the latest sources.

Another half assed release by Samsung. For one some of the script is missing and wont even begin to build until that is fixed.

When it does begin to build its not long before the compile crashes due to an error in the source code.
[Galaxy Tab S2 Android Development] taichichuan:
Does this kernel use device trees? I don't see the DTB being built. Can you post the .config you used to generate the original kernel?

TIA
[Galaxy Tab S2 Android Development] Lightn1ng:
This happened in the Tab 3 kernel sources as well.

somebody at samsung should read this
[Galaxy Tab S2 Android Development] ashyx:
It will make no difference. Samsung regularly breaks the GPL and often releases broken source code which needs to be fixed.
[Galaxy Tab S2 Android Development] ashyx:
The DTB doesn't always get built with kernel.

It can be with the right script.

Ordinarily I just repack it with the stock DTB.
[Galaxy Tab S2 Android Development] taichichuan:
OK, so the stock DTB is out on the same flash partition as the kernel? How is that partition formatted on the Samsung? EXT4? Also, do you still have the .config from the kernel build or is it squirreled away someplace on the target flash?

TIA
[Galaxy Tab S2 Android Development] ashyx:
The DTB is part of the boot.img. It gets built into the boot.img along with the ramdisk and kernel.

The config is in the Arch>arm64>configs folder.
[Galaxy Tab S2 Android Development] taichichuan:
Is there a link someplace that explains how Android wants these things packaged? I've seen them packaged as a .zip, but there's some metadata in the zip as well. Is there a script that does this, or are each one of them handcrafted?

And, I know about the configs directory under the arch hierarchy. But, there are 30 configs in that directory. Which one(s) needs to be used for the T713?
[Galaxy Tab S2 Android Development] ashyx:
The config info is in the build script.

You need mkbootimg to unpack and repack the boot.img.

Research on XDA will teach you how.

http://xdaforums.com/android/software-hacking/development-mkbootimg-tools-t2895954
[Galaxy Tab S2 Android Development] taichichuan:
Thanks!
[Galaxy Tab S2 Android Development] ashyx:
There are also Linux and Windows versions too, use whichever is suitable for you.
[Galaxy Tab S2 Android Development] dxxvi:
Off-topic: libc.so not found

I'm using Arch Linux with android-tools, lib32-glibc installed. I can adb shell to my T713 when it's running Marshmallow, but cannot when it's running TWRP 3.0.2-1 (adb devices still shows the device in recovery). The error message is "CANNOT LINK EXECUTABLE DEPENDENCIES: library "libc.so" not found". Does anybody know what the problem is?

PS: adb push works fine.
[Galaxy Tab S2 Android Development] ashyx:
Can you test this build see if it fixes the ADB issue: https://www.androidfilehost.com/?fid=24591000424949357

]
[Galaxy Tab S2 Android Development] cengiz.87:
Wifi problems

Hi, I have a T713 and rooted the device liked described in de OP. I have full root access, but I have now a wifi problem.

If i want to turn on my wifi it automatically turns off. So i stick up with no internet connection, is there any fix for this issue?

Thnx
[Galaxy Tab S2 Android Development] ashyx:
You need to flash the correct boot image for your build, which firmware build do you have.?
[Galaxy Tab S2 Android Development] cengiz.87:
I have installed the Lightning ROM T713 V1.0 but i didnt helped.

I will instal the stock firmware: T713XAR1APD9 and try again
[Galaxy Tab S2 Android Development] peacepipe:
Is it possible to build a kernel with encryption support? I need it to use my SD card as internal storage and encrypt the device. Now i can only encrypt my SD card and not my device. Thats annoying.
[Galaxy Tab S2 Android Development] ashyx:
Just install the stock kernel.
[Galaxy Tab S2 Android Development] staakman:
Once you succeed in rooting (SM-T713), could you please share the steps that you took?

I've the same problem that when I root my tablet my wifi stops working :(

Thanks :)
[Galaxy Tab S2 Android Development] ashyx:
No one with a T713 is prepared to test this and report back? [emoji53]