yashsingh1/xdaforums huggingface dataset:
[Galaxy Tab S2 Original Android Development] itsamess:
So.... Did nobody helped you?

I am stuck, too.

I always worked with adb and do not know heimdall or odin. I have no idea what to do with my problem.

I posted what went wrong on the lineage 14.1 thread.
[Galaxy Tab S2 Original Android Development] Bastlwastl2010:
Do you use Linux?

I always have problem with heimdall from the offical repository and build heimdall from source myself intructions see:

https://github.com/Benjamin-Dobell/Heimdall/wiki/Build-instructions-(Linux)
[Galaxy Tab S2 Original Android Development] preference:
Can I flash from my current TWRP or do u have to fastboot?
[Galaxy Tab S2 Original Android Development] EVEDork:
Is there a mirror anywhere? The TWRP link in OP is down.
[Galaxy Tab S2 Original Android Development] Takinato:
Its back up as of me replying to this, i just grabbed the files and put them in my google drive in case. TWRP website goes up and down a lot.
[Galaxy Tab S2 Original Android Development] dfkt_:
On my T813/gts210vewifi I ran TWRP 3.1.0-0 for ages without any issues.

Now I upgraded to 3.2.1-0 and the system won't boot anymore, it always reboots into recovery. The initial startup screen shows "Recovery rebooting / Set warranty bit: recovery" instead of the usual "Set warranty bit: kernel".

I re-flashed the old TWRP 3.1.0-0 with Odin, to get the system booting again. But I really like to have the newest TWRP, to try out new ROMs and such... Anyone knows how to fix that recovery boot loop I got with 3.2.1-0?

(I googled the issue, of course, but found no real fix. Just people saying to flash the stock recovery and similar unhelpful comments.)
[Galaxy Tab S2 Original Android Development] tweeny80:
You figure anything out yet? I'm in similar situation as you
[Galaxy Tab S2 Original Android Development] dfkt_:
Yeah. TWRP 3.1.0 only works with 6.x ROMs, and TWRP 3.2.1 only works with 7.x/8.x ROMs, basically. Would have saved me a lot of time if I had known that earlier.

First I flashed a stock Samsung 7.0 ROM with ODIN (make sure to back up your /sdcard and everything else). Then I installed TWRP 3.2.1, also with ODIN. After that I could flash any AOSP 7.x or 8.x ROM without any issues.
[Galaxy Tab S2 Original Android Development] ripee:
TWRP 3.2.3-0

I hope you don't mind, [MENTION=5075128]LuK1337[/MENTION], but I went ahead and cooked version 3.2.3-0 from your official device tree's android-7.1 branch:

twrp-3.2.3-0-gts210vewifi.img

twrp-3.2.3-0-gts210vewifi.tar

I'll remove my build once it appears on twrp.me.
[Galaxy Tab S2 Original Android Development] scanno:
Hmm weird. Cant decrypt my data partition in TWRP anymore since i went back to stock. At least after flashing T813XXU2BRF4_T813PHN2BRG1_PHN

recovery.log
[Galaxy Tab S2 Original Android Development] LuK1337:
We never supported samsung encryption.
[Galaxy Tab S2 Original Android Development] scanno:
Hehe... forgot about that. Too long since i used stock :/
[Galaxy Tab S2 Original Android Development] churchner420:
Just installed TWRP for the first time... Can't mount data partition at all. WHY? Nothing is working. Not even booting into a custom rom
[Galaxy Tab S2 Original Android Development] Lupin The Third:
If you came from stock rom, you have to format data and remove stock encryption first. You can access data afterwards.

format data, not wipe data. Mind the difference.

Formatting data deletes everything from your tablet, except for the external sd card.
[Galaxy Tab S2 Original Android Development] moloko01:
TWRP don't show correctly date/time. Same with Backups. Any fix?

Thank you.
[Galaxy Tab S2 Original Android Development] Lupin The Third:
You can set the time manually in twrp.
[Galaxy Tab S2 Original Android Development] moloko01:
Sorry but you can only change timezone.

My TWRP Date/Time shows something in 2016.
[Galaxy Tab S2 Original Android Development] Lupin The Third:
Any screenshot? Looks good here!
[Galaxy Tab S2 Original Android Development] ripee:
[MENTION=5075128]LuK1337[/MENTION], [MENTION=3859635]Lupin The Third[/MENTION], [MENTION=5561329]moloko01[/MENTION]

To be able to manually set the date in TWRP 3.2.3-0, the following needs to be added to omni_gts210vewifi.mk:

# Time Zone data for Recovery
PRODUCT_COPY_FILES += \
bionic/libc/zoneinfo/tzdata:recovery/root/system/usr/share/zoneinfo/tzdata

Then the proper date and time can be set with:

date -s "YYYY-MM-DD HH:MM:SS"

Notice that I linked to the android-6.0 branch, not 7.1. I was unable to build successfully with the 7.1 branch, but no problem with 6.0.
[Galaxy Tab S2 Original Android Development] ripee:
Sorry, duplicate post. For your convenience:

twrp-3.2.3-0-gts210vewifi.img

twrp-3.2.3-0-gts210vewifi.tar
[Galaxy Tab S2 Original Android Development] moloko01:
Thank you, but on LOS 16.0 With your TWRP this works only temporary. After reboot recovery the system time is again 2016....
[Galaxy Tab S2 Original Android Development] jokois:
Hi, i tried to install Lineage for the first time, but when i install TWRP with Odin and try to Boot into TWRP after the installation, is just get some flash of Pixel here and there, which looks more like the Screen is broken, then it gets completly black, Stock Android is still working.

Can someone help me to solve the problem and get it work, please?
[Galaxy Tab S2 Original Android Development] emuandco:
U sure that you installed the right TWRP? Which Tablet and while file was used?
[Galaxy Tab S2 Original Android Development] jokois:
Nope, it was a different one (gts28), now i have installed the right one, but can not do anything, it seems that i can not use the Storage, just shows me 0MB. I can not back up or delete either.

This massage appears when i try to back up, wipe is similiar:

Unable to mount storage

Failed to mount '/data'(Invalid argument)
[Galaxy Tab S2 Original Android Development] OhioYJ:
I've been running LOS 16, and using TWRP 3.2.3-0 on my T813, tried to update to 3.3.0-0 today, except it won't decrypt my data. Going back to 3.2.3-0 everything works again. Anyone else? Being TWRP though, I'm not sure what to pull or what would be helpful.
[Galaxy Tab S2 Original Android Development] Max-82:
I'm having the exact same issue right here....
[Galaxy Tab S2 Original Android Development] OhioYJ:
[MENTION=5075128]LuK1337[/MENTION] is this encryption problem user error, or is there something we can provide you with that would be helpful to troubleshoot this?
[Galaxy Tab S2 Original Android Development] Deltadroid:
Maybe this new commit will help

https://github.com/omnirom/android_bootable_recovery/commit/22e3aa9ed68c646050888d108257ff7fa6216910

Edit: nevermind, we don't have USE_KEYSTORAGE_4 defined
[Galaxy Tab S2 Original Android Development] OhioYJ:
I guess the question is does the latest recovery work for anyone? If I format data, and reinstall LOS 16, will it then work?
[Galaxy Tab S2 Original Android Development] Techguy777:
I have been using Twrp 3.3.0 and works fine for me but I haven't formatted Data yet.
[Galaxy Tab S2 Original Android Development] thisisapoorusernamechoice:
I used 3.3.0 to format data with no issue and clean install crDroid 5.3 (pie). FWIW I don't use encryption
[Galaxy Tab S2 Original Android Development] OhioYJ:
The problem is with encryption. It will work fine without encryption.
[Galaxy Tab S2 Original Android Development] thisisapoorusernamechoice:
That's what I figured, just wanted to confirm that it seemed everything else was working like normal
[Galaxy Tab S2 Original Android Development] Techguy777:
You say that there's a crdroid 5.3 pie for the Samsung Galaxy T813? Could you please point to a link or tell where to find it.
[Galaxy Tab S2 Original Android Development] thisisapoorusernamechoice:
Built it myself. As far as I know I'm the only one using it, so it's working fine for me but you'll have to use at your own risk. I'll upload and share the link, but might have to wait until after work
[Galaxy Tab S2 Original Android Development] Techguy777:
Thats awesome I will gladly wait until your out of work. I have been looking for another rom to try on this tablet for pie. Just let me know thanks.
[Galaxy Tab S2 Original Android Development] thisisapoorusernamechoice:
crdroid: https://www.androidfilehost.com/?w=files&flid=293541

Same warning as before, it's working seemingly fine on my tablet but who knows, I'm the only user, so you're doing this at your own risk. Make a nandroid backup for sure. Clean flash since it's a new ROM. Backup your internal storage. Be safe. I'm going to make myself updates for the monthly security patches at the very least. Can do weeklies or something if there's interest. Also if I'm allowed to be sharing these, these aren't my device trees or code or anything, I just sync & build.

I'm also working on collecting all (and I mean ALL) the Odin(/Heimdall) firmware files. So far I have all of the latest build from last year, and I'm working on the one that just dropped this year. Nice to have in case of a soft brick:

Nougat

Marshmallow (lower priority unless someone needs something)
[Galaxy Tab S2 Original Android Development] Techguy777:
Well it's running fine I've been using the rom for a few hours and everything is working well. Definitely lots of custom Options. Nice job ? Thanks again
[Galaxy Tab S2 Original Android Development] OhioYJ:
[MENTION=5075128]LuK1337[/MENTION] 3.3.1..0 also doesn't work with encryption. 3.3..0.0 didn't decrypt data, 3.3.1.0 doesn't even ask for a password/pin for me. Just boots straight into TWRP and shows the system as 0 MB. 3.2.3.0 still works perfectly though.
[Galaxy Tab S2 Original Android Development] Akipe:
Hello everyone :)

I just finished modifying TWRP from the official device tree. It is now based on Android 9.0, TWRP 3.3.1 and can decrypt (tested with LineageOS 16.0 and f2fs on /data) + some other changes.

For now the only thing I can't get working is restarting in Download mode from the TWRP interface. I haven't tested everything so it may be that there are other errors >>> if you can do tests and get back to me with logs it would be great ;) once I have enough positive feedback I will propose to integrate my changes into the official TWRP device tree.

!!!!! ATTENTION !!! I AM NEW SO THERE ARE RISKS, MAKE BACKUPS OF YOUR DATA BEFORE TESTING (but normally it should be ok...)

IF YOU ARE NEW WAIT FOR THE STABLE VERSION BEFORE FLASHING !!!!

Download v3.6.0_9 BETA08 : img / tar / tar.md5

Changelog to write, and I have to update the repo

Download v3.3.1 "BETA07"

Fix modules survival when ota update with encryption

Download v3.3.1 "BETA06"

rewrite the script who fix date

now activate property and build debug tools only when build twrp with eng variant (no more with userdebug)

little change for encrypt footer in fstab (need test and review)

change usb init.rc rules, it should work better (need test and review)

Download v3.3.1 "BETA05"

fix color flipp

fix time_daemon dependencies

Download v3.3.1 "BETA04"

disable vibration

fix wrong pixel format

active more debug message

fix timezone data and wrong date

various minor update

Download v3.3.1 "BETA03"

fix reboot to dowload (use now reboot to bootloader)

Download v3.3.1 "BETA02"

use prebuilt kernel

add tools for debug (debuggerd, strace & twrpdec)

Download v3.3.1 "BETA01"

initial release

based on Android 9.0

support decrypt

What's not working :

Need test & review : format data, then try encrypt / decrypt, post you ROM, partition data type (ext4 or f2fs), and other information.

Need test & review : verify if survival modules are keep after ota update with encryption.

Device tree sources :

https://github.com/Akipe/android_device_samsung_gts210vewifi
[Galaxy Tab S2 Original Android Development] supachris:
I tested your Beta-02 and in principle it works. I can decrypt, install LOS update and gapps. But I cannot install tweakprop zip (for enable soft buttons). It always says data or system cannot be mounted rw. Sometimes data sometimes system. Strange. Can I somehow help to find the issue?
[Galaxy Tab S2 Original Android Development] Akipe:
Thanks for your return :)

Can you give me the link of "tweakprop zip" ? I will try to fix this.

Could you give me logs and other information like the format of the partition /data and /system (ext4 and f2fs) ?
[Galaxy Tab S2 Original Android Development] OhioYJ:
Beta02 seems to work, I tried it on one of my T813s. It installs fine. Rolling back or installing other recoveries from it works fine. Decrypts data without issue. Updated to the latest LOS nightly with it. Installed gapps, magisk, MagiskHide Props Config, and busybox from it without issue. Mounts fine to the PC while in recovery, so data is accessible.

As you already mentioned rebooting to download doesn't work, it just reboots to recovery. However you knew that was broken already. So far haven't stumbled across other issues. I'll keep messing around with it though.
[Galaxy Tab S2 Original Android Development] Akipe:
I will try to fix that, but I may not know how to do it, if [MENTION=5075128]LuK1337[/MENTION] has an idea to find the solution, I'm interested!
[Galaxy Tab S2 Original Android Development] supachris:
I use tweakprop 0.5.9 from here: https://xdaforums.com/showthread.php?t=2664332

My data is f2fsy system should be ext4.

The recovery log is attached. It seems like the mountpoint was changed or so?

Thanks a lot.
[Galaxy Tab S2 Original Android Development] Akipe:
There is an error when the script tries to mount /system and /data, but i think the problem comes from the script. This may be because I modified TWRP to use Android 9.0 (before it was 6.0), and the script is maybe no longer compatible with recent versions of Android.

The problem is in the file https://notabug.org/kl3/tweakprop/src/master/META-INF/com/google/android/update-binary between line 30 and 39 :

for part in system data
do
ui_print "Mount /$part partition..."
if mount | grep -q "/$part"
then
mount -o rw,remount "/$part" "/$part" && ui_print "/$part remounted rw" || ex "Cannot get write access on /$part"
else
mount -o rw "/$part" && ui_print "/$part mounted rw" || ex "/$part cannot be mounted"
fi
done

And more exactly this command :

mount -o rw,remount "/$part" "/$part"

When I make this command manually, I have the same error as on you logs, but when I modify the command to mount -o rw,remount "/$part" (for example mount -o rw,remount "/system"), I do not have any more mistakes.

Tweakprop has not been updated for 4 years, and I think that another person has a similar problem on another phone -> https://xdaforums.com/showpost.php?p=79547341&postcount=192

In addition, other people have confirmed that other installers are running correctly : if there was a problem with TWRP, I think we would have had errors from other scripts.

Maybe you can try to modify the script to make it work on this version of TWRP .

If in the future we discover similar errors on other installation zip files, I will investigate if the problem does not come from TWRP
[Galaxy Tab S2 Original Android Development] supachris:
OK, thanks a lot for your investigation. I will try to change the script to be compatible with the Android 9 TWRP.
[Galaxy Tab S2 Original Android Development] Akipe:
I researched where the problem came from, I think that is from the kernel. I noticed that there was the same problem on LineageOS (my version of TWRP use the same kernel). I will test another kernel in the future to check my assumptions.

For the next version I will disable the ability to restart in download mode from TWRP, as the solution will not be found.

---------- Post added at 15:15 ---------- Previous post was at 14:46 ----------

I confirm that with another kernel (eg https://github.com/omnirom/android_kernel_samsung_msm8976/tree/android-7.1) the restart in Download mode works. I will try when I have time to fix the LineageOS.
[Galaxy Tab S2 Original Android Development] OhioYJ:
Restart to download (Bootloader) works for me in LOS (well the OS option, don't know about the recovery)? Or are we talking about different things?
[Galaxy Tab S2 Original Android Development] Akipe:
Thank you for this clarification :) i tried to restart in download mode directly from the shell, it had not worked, but from the menu it works (but it is noted "bootloader")

So i tried to put in TWRP menu "reboot from bootloader" instead of download mode... And it works ! :victory:

I updated TWRP with beta03, it will now use "reboot to bootloader" to enter in download mode. ;)
[Galaxy Tab S2 Original Android Development] supachris:
I was able to fix tweakprop by changing the remount command and removing the -follow option at the find command. Now it seems to work like usual. Thanks for the support.
[Galaxy Tab S2 Original Android Development] Akipe:
Cool :)
[Galaxy Tab S2 Original Android Development] ripee:
[MENTION=5075128]LuK1337[/MENTION], [MENTION=3859635]Lupin The Third[/MENTION],

According to the log:

I:TWFunc::Fixup_Time: Pre-fix date and time: 2016-04-30--02-13-25
I:TWFunc::Fixup_Time: Setting time offset from file /sys/class/rtc/rtc0/since_epoch
I:TWFunc::Fixup_Time: will attempt to use the ats files now.
I:TWFunc::Fixup_Time: Setting time offset from file /persist/time/ats_2, offset 1483217789985
I:TWFunc::Fixup_Time: Date and time corrected: 2019-04-30--23-09-54

This seems to be the cause of the incorrect time and date.
[Galaxy Tab S2 Original Android Development] Akipe:
Can you try my TWRP ? Maybe it's fixe
[Galaxy Tab S2 Original Android Development] ripee:
I tried twrp-3.3.1-BETA03-gts210vewifi.img, not fixed :confused::(
[Galaxy Tab S2 Original Android Development] OhioYJ:
I'm running this now on 3 different T813s with no issues (I use the same tablet for my wife and son as well). Been updating on a regular basis. Have you thought about pushing these changes to the official TWRP or perhaps creating an unofficial thread to make this version easier for people to find? It's very nice to have a new version that can decrypt data finally.
[Galaxy Tab S2 Original Android Development] ripee:
Does it display the correct time for you based on the timezone you select?
[Galaxy Tab S2 Original Android Development] OhioYJ:
Mine is off by like 10 minutes.

I did a quick searchand found this. in the TWRP terminal date --help works, as that command exactly as listed didn't seem to work for me. I don't have time to mess with it tonight, but maybe worth looking into? [MENTION=8175453]Akipe[/MENTION] perhaps nothing else is wrong?
[Galaxy Tab S2 Original Android Development] ripee:
Tried it, didn't help due to missing tzdata.
[Galaxy Tab S2 Original Android Development] Akipe:
I'll watch this as soon as I can, probably this weekend ;)
[Galaxy Tab S2 Original Android Development] Akipe:
Hello !

[MENTION=6005084]ripee[/MENTION] [MENTION=3720814]OhioYJ[/MENTION] I uploaded a new version and fix timezone / date with beta04, it is work with me (lineageos 16 with encryption), link to my post to download it

Can you try it and tell me if it works, with the name of your installed rom ?

I think the date my not be correct depending on the main rom.

Thank you :)
[Galaxy Tab S2 Original Android Development] ripee:
Thanks, someone else told me about that fix as well. In my case, the time problem was caused by Lineage. I managed to fix it by reflashing stock, syncing its time over wifi, and starting all over again with official TWRP. But I understand how and why your fix works. ;)
[Galaxy Tab S2 Original Android Development] OhioYJ:
Tried it, also running LOS 16, works fine for me. It's not correct until you decrypt data, but that's to be expected. As soon as it decrypted, it corrected the 10 minutes it was off.
[Galaxy Tab S2 Original Android Development] Fuzzums:
The time seems to be fixed now in this version for Lineage OS 16. However there is a weird issue within the recovery console where the default blue colors header is flashing rapidly between blue and orange when it asks for the decryption pin/pattern. As soon as you touch the screen the flashing colors stop but return if you take pressure off the screen. Definitely a strange bug, but the recovery works otherwise.
[Galaxy Tab S2 Original Android Development] OhioYJ:
Mine flipped from blue to orange as well. Not sure if it did it by itself or if it was because I touched the screen. I will have to check again when I get home.
[Galaxy Tab S2 Original Android Development] Akipe:
[MENTION=3720814]OhioYJ[/MENTION] [MENTION=4483461]Fuzzums[/MENTION] [MENTION=6005084]ripee[/MENTION] new beta out ! Can you test if the color bug is still present ? :)
[Galaxy Tab S2 Original Android Development] Fuzzums:
I disabled my encryption last night due to trying to figure out some issues with LinageOS 16, but from what I can tell, I don't see any of the weird color flashing. As that would happen even upon restart. Also, since I didn't say this earlier, THANK YOU for making all these modifications to TWRP for the T813!
[Galaxy Tab S2 Original Android Development] OhioYJ:
No more orange color for me!

Can you fix the format data issue? Not really a huge issue but to those that don't know or format data, it's frustrating.
[Galaxy Tab S2 Original Android Development] Akipe:
Thank you for your review! What is the problem with format data ?

I think the recovery is pretty stable, I asked if my changes could be integrated into the official repo :fingers-crossed:
[Galaxy Tab S2 Original Android Development] xXFutureGuyXx:
Do you recommend to use your version for a normal installation of LOS instead of the last stable one from dl.twrp.me/gts210vewifi/?
[Galaxy Tab S2 Original Android Development] OhioYJ:
@Deltadroid has explained it a few times in the LOS post and would do it better than I. My understanding is when 3.3.+ formats data it doesnt leave space for the encryption footer. 3.2.3.0 was the last one that did this properly.

Use 3.2.3.0 from the official page, or his beta. If you need to format data or encrypt after the Install you will have to use 3.2.3.0 at the moment. Once up and running I would recommend the beta 5 from this page. Big thanks to [MENTION=8175453]Akipe[/MENTION] for getting our TWRP fixed up, the official one should be up to speed soon.
[Galaxy Tab S2 Original Android Development] Akipe:
I just tested on my tablet with the latest version (beta6), I have no problem for format /data, then boot to the ROM (LineageOS 16) and then encrypt (tested with /data format with ext4 and f2fs).

However when I press to the button to encrypt, the tablet goes off, and I have to restart it manually, but then the tablet is encrypted (that's what is indicated in the settings) - maybe I did not do the right step to reproduce the bug, or my tablet is not really encrypted (there are no many data on my tablet I did my test) ?

---------- Post added at 21:16 ---------- Previous post was at 20:35 ----------

New build !!! :):):) https://xdaforums.com/showpost.php?p=80167078&postcount=119

I need test and review about format data then encrypt/decrypt, for me it's working with the beta6, with LineageOS 16 (latest build, with /data format with ext4 and f2fs). :fingers-crossed:

I don't know if it can influence, but i use the last bootloader available with the stock rom (T813XXU2BSI2_T813ZTO2BSI1).