yashsingh1/xdaforums huggingface dataset:
[Xiaomi Redmi Note 3 Questions & Answers] alecxs:
I never used FBE encryption but I can barely imagine lock screen can be backed up from TWRP. It might work as long as you don't perform factory reset (formatting userdata is fine). But once keystore in TEE is flushed, old locksettings.db synthetic password becomes invalid.

Nevertheless backup data.f2fs.win000 itself is not encrypted. if TWRP is official released for FBE it should skip backup/restoring /data/misc and correlating stuff.

However, some devices like Samsung have additional protections like vaultkeeper etc. makes it impossible to boot unencrypted backup from previously encrypted userdata partition, not even for FDE dm-0 partition image. Maybe similar pitfall is added by your OEM?
[Xiaomi Redmi Note 3 Questions & Answers] RootedLee:
Thank you @aIecxs for your brain power input and sharing your wealth of knowledge - very much appreciated! After educating myself about TEE (Trusted Execution Environment) over in this short page at Android Enthusiasts, I now understand that FBE (file-based encryption) keys can NOT be backed up and thus neither be restored!

FBE appears to be what LOS 18.1 uses by default when activating screen lock. I have used a 4 digit PIN.

Yes, I have performed a factory reset because before I had installed the latest stock ROM to check something. I felt safe because I had backed up LOS Boot/ System/ Data via TWRP. Now I know better, the hard way .. :(

Do you know if it would've helped if I had also backed up system.img in TWRP (in additon to the sys partition)?

When I run my batch

tar xvfz data.ext4.win
tar xvfz data.ext4.win000
tar xvfz data.ext4.win001
tar xvfz data.ext4.win002
tar xvfz data.ext4.win003
tar xvfz data.ext4.win004

-> after about 50%, every output line starts with either one of the following:

x data/[...] Write failed
x data/[...] Write to restore size failed

Not sure if the resulting Data folder with 6GB contains everything, but the folder and file structure inside looks 100% correct. So most importantly you're right, the TWRP Data backup is NOT encrypted!

TWRP is not official for my Nokia 6.1 ("PL2") because the latest official for it is v.3.3.1-1 (no support for LOS FBE), so instead I've been using the latest 3.6.1 from the Nokia 6.1 Plus and 7 Plus.

I don't have any clue about potential Nokia pitfalls in regards to encryption.

My aim for tonite would be to try get the restored backup booting into Homescreen. If that fails in due time, I'd run your migrate_emergency_flashable you kindly shared with us (I'm aware of the caveats explained by SayantanRC).

From my research last nite, I found the following two options most promising:

Zackptg5's Universal DM-Verity, ForceEncrypt, Disk Quota Disabler [11/2/2020]

Deprecated, but as per your comment on Jan 23, 2021 the first thing for me to try, I guess (awesome fundus of information in that post of yours)

Sakhatlonda's koutiliy with LoadOP2's instructions

Or would you suggest something different to begin with? (for Nokia 6.1/ 6.1 Plus/ 7 Plus, I outruled OrangeFox and PitchBlack Recoveries).

BTW, once all is up and running again, I'll backup all with built-in LOS Seedvault, Migrate, Swift Backup etc. TWRP has been 100% reliable on my old phones over the last 7 years, which lured me into complacency.
[Xiaomi Redmi Note 3 Questions & Answers] RootedLee:
Now in TWRP I need to get beyond

I see your [RECOVERY] [TWRP] Backup Converter Android system recovery <3e> page not just with your scripts for Linux, but also with instructions how to make a TWRP backup from an encrypted Data partition restorable by TWRP even to an unencrypted Data partition, which should circumnavigate above tar 255 error.

Busybox is not part of TWRP 3.6.1 terminal (at least not the TWRP fork I use) so I downloaded the latest v1_34_1.zip from Releases · meefik/busybox + latest tar134.aarch64.static.20220213 by DualJoe and placed the extracted and appropriate binaries into the same folder as the TWRP backup with the (split) data image to be treated (in my case sdcard1/twrp/backups/PL2GAR9842318434/2022-05-07--02-59-48_lineage_PL2-userdebug_11_RQ3A211001001_1004)

Then in Terminal via adb shell, cd'ed into the folder of the TWRP backup's Data to be "treated", then ran below code block via copy > paste into Terminal > ENTER:

chmod 0755 ./tar
chmod 0755 ./busybox
./busybox gzip -cd data.ext4.win001 | ./tar --selinux --xattrs -P -vxp
./busybox gzip -cd data.ext4.win002 | ./tar --selinux --xattrs -P -vxp
./busybox gzip -cd data.ext4.win003 | ./tar --selinux --xattrs -P -vxp
./busybox gzip -cd data.ext4.win004 | ./tar --selinux --xattrs -P -vxp
./busybox gzip -cd data.ext4.win005 | ./tar --selinux --xattrs -P -vxp
./busybox gzip -cd data.ext4.win006 | ./tar --selinux --xattrs -P -vxp

(note to others who read and might need this: you need to adapt the lines accdg. to your amount of data.ext4.win0x)

Towards the end I saw some errors in the Terminal output, but from what I can tell they don't seem dire.

I need to pause right now and continue later.
[Xiaomi Redmi Note 3 Questions & Answers] alecxs:
yes that's how I would do it.

1) patch fstab with Magisk or whatever to stay unencrypted (boot up two times and check from TWRP)

2) restore userdata backup

3) delete locksettings.db

related

https://github.com/TeamWin/Team-Win-Recovery-Project/issues/1323
[Xiaomi Redmi Note 3 Questions & Answers] RootedLee:
Step 2) "restore userdata backup" fails with Error 255 even after

/cache/busybox gzip -cd data.ext4.win00# | /cache/tar --selinux --xattrs -P -vxp

on all 5 data.ext4.win00# files. The -c (--stdout) switch decompresses to stdout, in this case pipes into tar thus should keep the original files as they are, just with the altered extended attributes from how I read this command, so after running the command on all files, I shouldn't see a difference to before, I think (?)

I only had a few minutes time for this tonite so I need to tackle this for good tomorrow and report back then.
[Xiaomi Redmi Note 3 Questions & Answers] alecxs:
it's plenty ot here but twrpTar works bit different than gnu tar (I believe it's star fork). you can however try to convert

https://github.com/venerjoel99/TarProject

(or try the tar -i -B flags)
[Xiaomi Redmi Note 3 Questions & Answers] RootedLee:
Will try. Thanks for the links (I had already come across some of them during my research). Quick question in between (just have a minute right now): could it be of any help to edit the twrp.img and replace contained tar binary with the GNU one?

OT: this whole thread should be moved to the TWRP section where it belongs to in the first place because this is a TWRP not a Xiaomi Redmi Note 3 issue to begin with.

[EDIT]: alecxs has continued this discussion here. There you can also see that I was eventually able to SOLVE the deadlock by means of the instructions above (his and mine) and am 100% back up'n RUNNING :) !!!
[Xiaomi Redmi Note 3 Questions & Answers] Lubo99:
my phone is crashed so I can't do delete those files and once I flashed twrp i am able to access storage however all i see are encrypted files so i can't identify those .key to delete. any idea how to solved this? twrp decrypt via adb does not work even when I use correct PIN...

twrp log

I:Command 'decrypt PIN' received

I:Set page: 'singleaction_page'

I:eek:peration_start: 'TWRP CLI Command'

Attempting to decrypt data partition or user data via command line.

E:Unexpected value for crypto key location

E:Error getting crypt footer and key

E:Could not get footer

Failed to decrypt data.

phone is XIAOMI MI9

fixed with this version twrp-3.5.2_9-0-cepheus *twrp decrypt PIN worked

and not fastboot flash recovery but rather fastboot boot xxxx.img. 1 thing really pissed me off when using android file transfer when copying files to my pc it stopped at 4GB and only adb pull command were able to copy files larger than 4GB. also after a while folder showed no files and there was error segmentation fault if i just did reboot recovery twrp was loaded but with the same error segmentation failure. so i did fastboot boot xxxx.img again! and reboot and was able to run again TWRP DECRYPT PIN and use and see all directories decrypted. i dont get why 4GB was limit when both partitions phone and PC supported files larger than 4GB(adb pull worked) and why after some time there was stupid message segmentation failure. luckily I was able to get all files but this was just nerves and taste to throw both laptop and phone out of the window...
[Xiaomi Redmi Note 3 Questions & Answers] alecxs:
fyi do not attempt to delete *.key or locksettings.db* files. this advice is outdated and wouldn't have worked anyway. it just deletes your login credentials - that would destroy all encrypted userdata.
[Xiaomi Redmi Note 3 Questions & Answers] Lubo99:
can you comment on why segmentation failure after while or why android file transfer always ended on 4GB despite both pc and phone partititon are able to handle files larger than 4GB?

i have deleted them anyway after I loaded all my data to pc. and you are right decryption no longer works. but i did not lost my data .

is it possible to undelete this files via adb? (i have display which is completely broken so I can't use screen) and dont have OTG which would display on monitor.
[Xiaomi Redmi Note 3 Questions & Answers] alecxs:
Microsoft MTP protocol? Mainly designed for FAT.

no
[Xiaomi Redmi Note 3 Questions & Answers] Lubo99:
so android transfer file uses mtp protocol and adb pull not?
[Sprint Samsung Galaxy Note5] justmc12:
Hello I need help ... I have a problem I want to downgrade my phone from 6.0.1 to 5.1.1 and when I try always fail .... I tried different stock rom from samfirmware and it always fails in Odin.. sorry for that im a noob!
[Sprint Samsung Galaxy Note5] MrMike2182:
How are you trying to flash the firmware? Which app are you using? You didn't root the phone did you?

Try this but use your own firmware!

http://xdaforums.com/verizon-galaxy-note5/general/downgrade-to-lollipop-5-1-1-verizon-t3368250
[Sprint Samsung Galaxy Note5] justmc12:
Yes my phone is root and I'm use odin to flash a stock 5.1.1
[Sprint Samsung Galaxy Note5] MrMike2182:
Unfortunately you can't do that if you've rooted the phone and used Marshmallow then the DM Verity will fail either way and so will Odin.. You have to get a rom and then boot into twrp recovery and flash the rom that way! If you cannot get into twrp then reflash it using Odin and try again.. Once you root the phone it trips the Knox Counter and it prevents you from doing what you're trying to do.. twrp is the only solution at this point.
[Sprint Samsung Galaxy Note5] justmc12:
Thanks bro..so yes I have twrp but what Rom 5.1.1 can i flash cuz I try somes and does not boot
[Sprint Samsung Galaxy Note5] MrMike2182:
You can flash pretty much any rom you want really but for now I would look around on the Sprint forums and see what some of the devs have already built that way your network and everything works the right way.
[LG G5 Questions & Answers] CellKen:
Hello,

I've an unlocked, rooted H850 with CM13.0 runnning.

I want to get back to Stock Rom, especially to Android 7.

I tried to follow the instructions in this thread ([STOCK][N] H850 20A OPEN EU Flashable ZIPs + IMGs + KDZ):

http://xdaforums.com/lg-g5/development/stock-h850-20a-eu-rom-flashable-zips-t3506514

However, I didnt get it working.

- LG Brigde doesn't connect to my phone,

- LGUP shows an unknown Model

How can I go back to stock? Could you write an easy Tutorial?

Thank you.
[LG G5 Questions & Answers] Nick216ohio:
Try different version on Bridge and LGUP. Also try different PCs. Always seems to work.
[Galaxy Tab S2 Android Development] schwabe93:
Reserved

Xposed Users :

Please Note . Xposed is NOT ready for N . If you end up in bootloops, have issues in future, support will not be provided if Xposed is Installed.

What about CMTE?

Well cm havent merged it yet so nope ,not yet. Will be merged soon. Our initial Plan was to make our first release with CMTE but unfortunately its taking longer than expected.
[Galaxy Tab S2 Android Development] schwabe93:
Reserved

Join my Telegramm Support Group for faster updates and new Roms:

Telegram

Bugs on all Devices

Fingerprint scanner not working (included, but not working)

Bugs on SM-T710 and SM-T715:

Camera not working (killed it with kernel update )

Vibration not working (probably also kernel)

Device Codenames:

gts28wifi= SM-T710

gts28ltexx= SM-T715

gts210wifi= SM-T810

gts210ltexx= SM-T815
[Galaxy Tab S2 Android Development] NeWONEx:
This is amazing !
[Galaxy Tab S2 Android Development] DroidIt!:
Sweet. Thanks a ton hiowa. Will be loading this up shortly. :)
[Galaxy Tab S2 Android Development] lewmur:
Is there a way to add owner info to the lock screen on this ROM?
[Galaxy Tab S2 Android Development] DroidIt!:
Yeap :) Under security, hit the gear next to screen lock and you'll see it in there. ;) This build is awesome BTW. Just Booted up off a clean flash, even wiped internal storage. Flashed the latest + open gapps 7.1 nano, +sound boost mod and all's working perfect. Still playing around in the settings, but working perfect so far. :good:
[Galaxy Tab S2 Android Development] DroidIt!:
Just curious. :) Should busybox be installed to su/xbin or system/xbin. I just noticed there's no busybox installed.

Edit: never mind :) Looks like su/xbin. Still running great. I'll try a few more mods and play and see how she goes. Still all good so far though.
[Galaxy Tab S2 Android Development] suzook:
Substratum should work on this, correct?
[Galaxy Tab S2 Android Development] DroidIt!:
Not too sure, you'd have to try. ;) I've just been trying a couple things myself and a couple notes. L speed works just fine. I set all settings for moderate battery saving, rebooted and works like a charm. Titanium does work for restoring apps if in supersu setting you disable mount namespace separation and then choose SD card in the TiBu preferences. It just says SD not writable. So what you could do is restore all your apps from SD and when you back up, back up to internal storage and cut/paste those over app backups on the SD. Still playing, but still all looking good. :)
[Galaxy Tab S2 Android Development] suzook:
It is working!!!

---------- Post added at 07:48 PM ---------- Previous post was at 07:05 PM ----------

Just a heads up....mic not working, like in other n Roms. Just letting op know, no complaints....great build!
[Galaxy Tab S2 Android Development] DroidIt!:
Well that's cool. Not ever played with substrates too much myself but I'll give it a go. ;)
[Galaxy Tab S2 Android Development] Operation-A:
Does this work on T817
[Galaxy Tab S2 Android Development] wcoast:
T-Mobile SM-T817T

[MENTION=4873016]hiowa93[/MENTION],

Is there a way to boot RR on T-Mobile SM-T817T
[Galaxy Tab S2 Android Development] Operation-A:
Is there any way to get past a Error 7
[Galaxy Tab S2 Android Development] Mohaned_y98:
Great Work ?
[Galaxy Tab S2 Android Development] papampi:
Thanks a lot,

Silly question which Gapps platform should I install on my T-815?

Arm, Arm64, x86, or x86_64 ?
[Galaxy Tab S2 Android Development] harise100:
ARM, 7.1 (I use nano)
[Galaxy Tab S2 Android Development] papampi:
Can't get data, any ideas ?

And clock keep force closing.
[Galaxy Tab S2 Android Development] DroidIt!:
What device are you trying to flash on? On T810 no such issues at all for me. Did you do a full wipe? Any mods?
[Galaxy Tab S2 Android Development] badashot7:
Hello! Can anyone tell is the HD video in browser works in this build?
[Galaxy Tab S2 Android Development] Deyadissa:
I am unable to activate the lift to wake feature under display? As soon as I leave the screen it turns itself off as if I never activated it. Is there a fix for this?
[Galaxy Tab S2 Android Development] noratroll:
confirm. seems to be a bug
[Galaxy Tab S2 Android Development] rholm:
The mic works and video seems better. Fast and smooth otherwise.

Cheers,

Rich
[Galaxy Tab S2 Android Development] danielfrancisarthurs:
Everything is amazing only issue I'm having is Netflix plays nothing? Not able to watch anything on it
[Galaxy Tab S2 Android Development] noratroll:
2 bugs lead to not being able to enter the device password -> no other solution than clean flash and installing from scratch:

Situation:

1) i restart the tablet very seldom

2) i usually use the keyboard app "external keyboard helper" which is designed to provide outstanding comfort when using a Bluetooth keyboard (what i do) and which is suppressing onscreen keyboard

3) my tablet is password protected.

4) still the bug which causes that Bluetooth is switched off after a device restart

5) latest RR 05/02 sm-t815

What happened:

while been connected to Bluetooth keyboard (the mentioned "external keyboard helper" was set as keyboard app), i restarted the tablet.

when arriving the password screen, there where no onscreen keyboard since previously i intentionally chose the "external keyboard helper". the Logitech Bluetooth keyboard was not able to reconnect because of the mentioned bug.

now i had to switch to gboard in order to see the onscreen keyboard.

but: the password screen does not show the keyboard change icon.

So now i need to clean flash.

EDIT:

ok, at first try i did not succeeid in opening the quick settings which could have helped to re-enable Bluetooth.

After having written my above listed post, i tried again and quick settings opened succesfully -> bluetooth enabled and i could open the secured lock screen.

But there remain these 2 bugs. No input method change symbol in password protected lock screen and Bluetooth is switched off after every single restart.
[Galaxy Tab S2 Android Development] halloarno:
Why use an app to connect?
[Galaxy Tab S2 Android Development] noratroll:
Not an app to connect.

"External keyboard helper" is the keyboard app (such as GBoard or Swipe for example) which I use while being connect to a bluetooth device. It provides many additional features for the use of Bluetooth keyboards, but at the same time it does not show an onscreen keyboard.

I shouldn't have written, shouldn't have posted my problem. Sry.
[Galaxy Tab S2 Android Development] rholm:
Also, bluetooth audio works now.

Cheers,

Rich
[Galaxy Tab S2 Android Development] JustMeToo:
I don't use the LTE option and don't have a sim card installed. The biggest battery drain I have, besides the screen, is 'Cell Standby'. Which app causes it or how do I disable it?
[Galaxy Tab S2 Android Development] noratroll:
Try to switch off mobile data
[Galaxy Tab S2 Android Development] JustMeToo:
There is no mobile data option in this ROM but there is 'Data Saver'. I turned it on and we'll see if it works.
[Galaxy Tab S2 Android Development] JustMeToo:
The turning off of the 'Data Saver' did eliminate the 'Cell Standby'. My battery drain now is about 1% per hour during sleep. Is that good?
[Galaxy Tab S2 Android Development] JustMeToo:
Last night at 11pm the tablet had 32%. I went to sleep (and the tablet too) and this morning, at 7am the tablet was 'dead'. I plugged it and it said 0%. NOT GOOD! And all that after the tablet was fully charged yesterday morning and I used it very little, mostly for reading books at a low screen brightness setting. I think I'll have to go back to Samsung MM. It was a decent battery drain then. I didn't had to charge the battery once every three days, or so.
[Galaxy Tab S2 Android Development] NeWONEx:
No it is not good , most likely this issue related to FP sensor.
[Galaxy Tab S2 Android Development] JustMeToo:
I don't even use the Finger Print Sensor. How do I disable it? I know I didn't set it up.
[Galaxy Tab S2 Android Development] noratroll:
finger print sensor is not available in this built
[Galaxy Tab S2 Android Development] ivanox1972:
I tried rom and looks very good, full of options. I have 1 big problem. Phone calls are not recognized. When I call from other mobile it signs as all ok, but t815 not ringing and not counting miss call. I am on newest pk4 Nordic modem file, flashe together with ehole rom with odin
[Galaxy Tab S2 Android Development] sutur:
Crash in Settings after launching

Language & Input > Pointer Speed

Can't see a way to give debug info?

Can anyone else reproduce?
[Galaxy Tab S2 Android Development] schwabe93:
Phone calls are working for me on AOKP , in RR dont tested it yet.

New builds are out ver y soon
[Galaxy Tab S2 Android Development] hasenbein1966:
So, after reading the posts here, am I right to assume that, while the battery life is fine when USING the tablet, the standby battery life leaves something to desire?
[Galaxy Tab S2 Android Development] crowe840:
Standby time is fine on my tablet with this ROM, I have optimised apps, turn off wifi during sleep, and it uses maybe 2-3% over the course of the day in standby.
[Galaxy Tab S2 Android Development] JustMeToo:
Hmmm...then I must be doing something wrong. I gave up on this ROM because the battery drain was way to much. In the Samsung firmware, last night, I put the tab to sleep with the battery at 31% and this morning it was 28%. As I posted here a few days ago with this ROM the tab shut off with the battery at 0% when I woke up in the morning from similar start.
[Galaxy Tab S2 Android Development] shortbus1234:
Anyone have any tips for me trying to go from OPTIMALROM by [MENTION=4549354]BigBot96[/MENTION] (5.1.1) (T710/810) - to This rom. I am stuck in boot loop. I have the most current version of TWRP installed and I am able to access TWRP. I am not a noob but this has me stumped. I am considering restoring to stock 6.01 via ODIN just to get working tablet.
[Galaxy Tab S2 Android Development] rholm:
Install the 6.0 version of RR first. I think it has something to so with the file system organization. There was a conversation a while back.

Cheers,

Rich
[Galaxy Tab S2 Android Development] shortbus1234:
Ok thanks I will give it a try. Thanks!
[Galaxy Tab S2 Android Development] lewmur:
That's wrong. You need to use Odin to install the STOCK 6.0 before you can install ANY custom 6.x or 7.x custom ROM. There is a special Samsung partition needed that you can ONLY get via the stock ROM.
[Galaxy Tab S2 Android Development] shortbus1234:
Yes I figured out the Odin stock rom on my own late last night and was going to update this morning. Thanks for the reply as hopefully it helps someone else. I downloaded from he stock firmware from Sammobile. The stock rom runs and does an "update" changes some files and permissions. After that you can flash TWRP with Odin and upgrade to RR. RR comes already rooted so that makes it easy. So far impressive ROM!
[Galaxy Tab S2 Android Development] rholm:
That is essentially what I did. Sorry I slightly missed on the details.

Cheers,

Rich
[Galaxy Tab S2 Android Development] shortbus1234:
When using Hangouts every time I type it pops up with "Select Sim Card." This tablet is wifi only. Anyone know how to disable this popup?
[Galaxy Tab S2 Android Development] Carsontw2001:
Tab S2 RR ROM 7.1.1

Since I installed ROM update, my Bluetooth will not connect, and display seems to turn up to full brightness at different times, other than that it's great.
[Galaxy Tab S2 Android Development] elbello:
Use google voice. I moved to it and no longer get that annoying popup
[Galaxy Tab S2 Android Development] shortbus1234:
Thanks I'll try that. I heard somewhere else to make a different app the default for SMS but that didn't work.
[Galaxy Tab S2 Android Development] noratroll:
Just flashed build of today - here what I found out at the first view:

-WiFi hotspot now works

-dashboard columns in settings can now been set to more than only one

-no finger print sensor available

-CPU temp sensor not availbable

-no keyboard change icon in lock screen after reboot
[Galaxy Tab S2 Android Development] hasenbein1966:
Are screen color modes working? Is Bluetooth audio (e.g. over a portable Bluetooth speaker) working?
[Galaxy Tab S2 Android Development] rholm:
I haven't tried the latest build yet, but a previous build had working Bluetooth audio.

Cheers,

Rich
[Galaxy Tab S2 Android Development] rholm:
Getting ready to install. Anything new between the 2/26 and 2/27 builds?

Thanks!

Cheers,

Rich