yashsingh1/xdaforums huggingface dataset:
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] :
This Rom doesn't support encryption yet? I have an encrypted phone and never bothered to flash dfe since with the right twrp everything works just fine. However, coming from Pie, I flashed this rom and now my password isn't working, meaning I will have to format and lose my data. I did a backup so its not that big of a deal but is encryption not properly working on Q or do I need a different twrp?

EDIT: Also, I just flashed Magsiks 20 and I'm stuck in a bootloop so its only working with Magisk 18.5? Or do I need a newer dfe (I have dfe4 Magisk 18)?
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] ChocolateKrishnan:
Hi there,

Is the UPI fixed....Does it passes the safety net test?
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] dalyer:
Don't you need a clean flash when moving between Android 9 and 10 ROMs?
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] jackiass:
Yes, clean flash is required. Very clearly stated in OP.
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] pfavayi:
I am on pocophone F1.

These two gcam applications by BSG work well

https://f.celsoazevedo.com/file/gcamera/MGC_6.1.021_MI8_V2e.apk

https://f.celsoazevedo.com/file/cfiles/gcm1/MGC_6.2.030_MI9SE_V4_plus2.apk

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

Flashing vendor plus firmware separately will cause encryption if you don't run DfE.

Usually Flashing a rom does not course encryption and does not require DFE. But run it do you are on the safe side.

Encryption happens when the file fstab* in /vendor/ has certain parameters
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] bitye:
Why not 10.3.8.0?
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] :
I did but a clean Flash doesn't involve a full wipe (with data partition) and I don't remember wiping data every time I upgraded to a new Android version in the past but maybe I forgot that I did.

---------- Post added at 05:42 PM ---------- Previous post was at 05:39 PM ----------

My rom on Android 9 was always encrypted since I bought the phone and I actually wanted it to stay encrypted, thats why I didn't flash dfe, upgrading to Q. Maybe you really have to wipe DATA when upgrading to a newer Android, I don't know of any other reason why it bootlooped.
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] jackiass:
OP specifically says to format data coming from 9. I think I did the same coming from 8 to 9.
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] dalyer:
It does.

Clean flash starts with format data and wipe everything else.
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] Dirk:
It's a moot point if there's no way to edit the build.prop on this phone, but what's the Security Patch date on that Official Build? Bear in mind the Fingerprint is controlled by the ROM. We're just reacting to that with the Sec Patch date. Not the other way around. That would be the tail wagging the dog.

Most custom ROMs are way ahead of Official builds on Security Patch. That's why the mismatch exists. The mod, if it worked here, just makes it look like the sec patch is from the same Official Build as the Fingerprint.
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] Karlmay70:
Last Updated 2019-10-13 in OP.

Did i miss something?
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] baiMangau:
Let me quote myself:

Above-mentioned situation is true when using stock charger and stock USB cable.

All is good when I tried my car charger, delivering 1.5A with some random USB cable, also with another mains charger delivering around 2A and another random USB cable.

Maybe it has something to do with the fast charging detection.
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] pfavayi:
Even if I put 2 minutes screen time, it will go back to 15 seconds after I reboot. It says 15 seconds and it is 15 seconds.

---------- Post added at 01:53 AM ---------- Previous post was at 01:33 AM ----------

1. When your phone is encrypted and you install vendor plus firmware, you have to decrypt first otherwise you would have to format your phone

2. When your phone is encrypted and you change roms, there is a chance that you might have to format your phone. Most of the time you don't need to though.

3. Encryption is supposed to protect your data when changing roms, so it makes sense to format the phone phone when Roms are changed.

But sometimes the rom manufacturer makes it such that you don't have to format your phone.

4. If you want to keep your phone encrypted and you also want to change roms / install vendor plus firmware , make sure you check out the file fstab* in /vendor first .

On my pocophone F1 its /vendor/etc/fstab.qcom Google and learn about this file. This is the file DFE changes.
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] dalyer:
WTF?!? If you're trying to help people you're going about it in a really odd way.... Very confusing.... :eek::confused::eek:
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] jscheah:
I don't get it either :confused:
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] kishore1998:
Thanks, but I wanted to retain the stock navbar with the pill instead of the 3 button navigation. That's why I was requesting for some more Stock navbar customization.
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] Darklouis:
It is Android 10.

The difference of using "MagiskHide Props" to pass the ctsProfile. It changes the device's fingerprint to the one that passes the ctsProfile.

Mostly Android 10 ROMS failed the ctsProfile because of some issues regarding Google (idk which is which)

So use "MagiskHide Props" to pass it and can use the GooglePay.

See the pic below.
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] pfavayi:
DFE ,ENCRYPTION AND FORMATING

----------------------------------------------------------

The combined concepts of data encryption, data encryption in a smartphone and DfE cannot be explained in 6 sentences....

My explanation was for people who already understand the first two.

You Will need to Google to get the full picture.

Let me give an incomplete but SIMPLE and comprehensive picture (Don't blame for the simplicity and incompleteness)

[MENTION=5322980]dalyer[/MENTION]

---------- Post added at 08:01 AM ---------- Previous post was at 07:59 AM ----------

====================================

====================================

GOLDEN RULES FOR DFE ENCRYPTION AND FORMATTING

Just take these as golden rules

1. If your phone is ENCRYPTED and you change vendor+firmware, or unlock boot loader or change ROM, then your phone will FORMAT and ENCRYPT ON FIRST BOOT

But this will not happen in ALL cases of changing ROM. It will happen in ALL cases of the first 2

2. The above is also true for a phone that is NOT ENCRYPTED.

3. But if your phone is NOT ENCRYPTED and you do the above but run DFE BEFORE FIRST BOOT , your phone will remain NOT ENCRYPTED

4. So if you don't want the possibility of formatting your phone (and losing data) when you install vendor + firmware or a new rom, ALWAYS KEEP YOUR PHONE NOT ENCRYPTED AND ALWAYS RUN DFE WHENEVER YOU DO ANYTHING TO YOUR PHONE IN TWRP (DFE will always make your phone NOT ENCRYPT ON FIRST BOOT)

5. But if you want to keep your phone ENCRYPTED but also change ROM and install vendor+ firmware, then YOU HAVE TO DECRYPT YOUR PHONE FIRST BEFORE YOU CHANGE ROM OR INSTALL VENDOR FIRMWARE.

This effectively makes your phone NOT ENCRYPTED (just like the NOT ENCRYPTED case above)

Don't run DFE and your phone will ENCRYPT ON FIRST BOOT but it will not format.

6. N.B FORMATING HAPPENS WHEN YOU TRY TO ACCESS ENCRYPTED DATA /ENCRYPTED PHONE FROM TWRP OR ON FIRST BOOT

[MENTION=9234500]jscheah[/MENTION] [MENTION=5322980]dalyer[/MENTION]
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] :
Actually, I got your first post. Big thanks for the extensive explanation and some things make Mord sense now.

Also, now that my phone isn't encrypted anymore, I nicht keep it like that. To be honest, the phone is booting much faster like this.

Now that I run this Rom for almost a day, I gotta say, it's pretty stable. Coming Form havoc OS and using it for years, I'm a little disappointed by the lack oft many features but I would guess that's because most features aren't ported to Q yet?
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] leakcim90:
Thank you mate, I got it now :good:
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] pfavayi:
===

Actually, I got your first post.

===

Then you are well-read!!!

Some people didn't get it and two of them complained, and that's why I did a more layman explanation. and it's turned out very good because it explains even to those who do not understand a more technical explanation.

===

Big thanks for the extensive explanation and some things make Mord sense now.

===

I am honored that I was helpful to at least one person, and they appreciate it.

===

Also, now that my phone isn't encrypted anymore, I nicht keep it like that. To be honest, the phone is booting much faster like this.

===

Actually the phone is supposed to boot faster when it's not encrypted...

It does everything faster when you use it, because you don't have to encrypt and decrypt every time.

The encryption that Android uses is slow. Google is working on a faster encryption algorithm. It will introduce it soon.

===

Now that I run this Rom for almost a day, I gotta say, it's pretty stable.

===

It's probably the most stable both in Android 9 and in Android 10.

===

Coming Form havoc OS and using it for years, I'm a little disappointed by the lack oft many features

===

You should compare havoc OS Android 9 with crDroid Android 9. crDroid has as many features as, if not more than, havoc

Now compare havoc OS Android 10 with crDroid Android 10. If havoc OS has Android 10 (I say "if"), it won't be as stable as or have as many features as crDroid Android 10.

===

but I would guess that's because most features aren't ported to Q yet?

===

Correct.

---------- Post added at 01:50 PM ---------- Previous post was at 01:39 PM ----------

=========================================

Then don't !!!

This is a Layman's everyday-use handbook. And It works. At the beginning you couldn't understand the semi technical explanation. You complained and so I gave you a simplified abridged version. But you are complaining again....

If you can't understand the semi technical you will not understand the fully technical, so I won't go into the fully technical.

If there were as many wrong things in my explanation as you insinuate, then you could easily mention five of them.

You mentioned zero. And that's because there's nothing wrong with it.

besides it has already helped someone who appreciated it and applied it and is now using it. [MENTION=8862070]Rorschach1010[/MENTION]

Just in case I am wrong somewhere ( to err is human) you should correct me. I am open to corrections because I can make mistakes too.

But I am not open to a person who accuses without correcting and without offering an alternative explanation - and that would be you.
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] jackiass:
Just a warning to the new guys. When essay guy with the broken caps lock button starts his rants, half of it is down right wrong and the rest is overly convoluted or misleading. I'll just try and do a little cleaning up so you don't get too confused. After this essay guy will explode but I'm not going to participate in the forthcoming flamewar as it's a waste of the mods time.

No. It will not format. Just encrypt.

You only need to flash dfe when changing vendor. Most roms have custom vendors now, so also do it after flashing one of those.

Once /data is encrypted it stays that way. Only way to change that is formatting it. dfe won't help you in that situation.

No. Formatting happens when you choose the format option in TWRP. I'm not quite sure you now what formatting is. You keep using the term wrong.
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] vence.andersen:
Should i flash a DFE when coming from oos/miui running on android 9...?
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] youngAvJ:
Yes. Only if you don't want encryption
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] piet8stevens:
But this rom does not have encryption yet, right?
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] dalyer:
What do you mean?

It bundles a custom vendor but the vendor will encrypt by default as normal unless patched with dfe to prevent that.

Bear in mind that there's no problem per se with encryption and dfe is completely optional.
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] pfavayi:
===

No. It will not format. Just encrypt.

===

This is your answer when I say to the following

""""

1. If your phone is ENCRYPTED and you change vendor+firmware, or unlock boot loader or change ROM, then your phone will FORMAT and ENCRYPT ON FIRST BOOT

""""

I have actually done this on my phone. It is the No1 mistake that new users make.

Since this was a simplified version - the phone will ask you to format because it cannot read the encrypted data. You cannot proceed unless you format.

And after you format any new data will be encrypted.

At least on the pocophone F1 in Android 9 and in Android 10 ,encryption is determined by the file

/vendor/etc/fstab.qcom

If you have the word " forceencrypt" instead of "encryptable" your phone will encrypt on first boot after the installation of the vendor+ firmware.

But if you are Already encrypted, the phone will try to encrypt already encrypted data and it will fail ( it can not read that ENCRYPTED data). So it will offer you to format the phone for you to proceed.

This happens on first boot only -First boot after installation of vendor+ firmware

If you think your phone will not force you to format on first boot after you install vendor+ firmware without running DFE -try it now.

DFE = disable force encryption.

The screenshots show my fstab.qcom. if you replace "encryptable" with "forceencrypt" my phone will and encrypt on first boot after the change.

But it will not format or force to format because it is already unencrypted.

Many people do not understand encryption on Android very well, and if you don't ,you wouldn't be the first or the last

Edit: the screenshots are before I marked the words. I will upload the proper screenshots.
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] pfavayi:
If your OEM is complying with Google then your phone should be encrypted.

But many OEMs ( e.g xiaomi) have unencrypted phones...e.g pocophone F1

So on the pocophone F1 if you Unlock the bootloader , the phone formats but will be unencrypted.

and when you change from MIUI to a custom rom they will be no problem ( unencrypted phone)

But if you have an encrypted phone and you do the same ,it will be encrypted.

When you change to a custom rom you will have problems - because the phone will not allow another "foreign rom" to read it's private data. so it'll offer to format that data or you won't proceed.

You have to understand that whether a phone encryptes or not depends on the entries in the file /vendor/etc/fstab.qcom

(at least on the pocophone F1 and all phones that have the Qualcomm chipset)

This is the file that DFE changes...

Edit: I will respond to the other accusations by @ jackiass one at time later
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] pfavayi:
The marked fstab.qcom files...
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] pfavayi:
===

It bundles a custom vendor but the vendor will encrypt by default as normal unless patched with dfe to prevent that.

===

This is only partly true (the other part is not true) and I will show you why.

Vendor does not encrypt.

This is a mistake that many people make.

The entry in /vendor/etc/fstab.qcom ( forceencrypt vs encryptable) determines whether the phone will encrypt or not.

This is what DFE changes.

You can change it manually from twrp cli.

vi /vendor/etc/fstab.qcom

And replace forceencrypt with encryptable.

I have actually done it manually.

The Vendor + firmware that we download and install has a default entry of forceencrypt in fstab.qcom. And that is why you have to change it with DFE (or manually if you can) otherwise you will be encrypted.

The Vendor + firmware attached to xiaomi MIUI roms has a fstab.qcom with "encryptable". You can check it out on your own. So you don't have to run DFE

But If you install other roms that include vendor + firmware, you can never be 100% sure if the entry in fstab.qcom is "encryptable"

So to be on the safe side just run DFE. Or Check fstab.qcom if you can.
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] jackiass:
As I said. I does not automatically format. It asks YOU to do it yourself. Just don't. Force reboot to TWRP by holding power + volume down and restore the nandroid backup you always make before doing big changes to your system. It will read the encrypted data just fine. If you don't force reboot, but use the GUI to reboot, you will have lost all your data since the partition will be flagged as damaged. No OS or recovery will be able to mount it then.

That being said I don't think this is very on topic. People come here to read about features of crDroid 6.0 and not the most basic stuff about android encryption. I think the amount of thanks I got from my last post also shows that. Maybe we should get our own thread? I've got the rest of the week off so I have time.
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] abhijiths362:
What is the thing he said wrongly?? He's correct the entry of fstab.qcom makes the device encrypting. If the dev makes it encrytable the device won't encrypt.
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] vence.andersen:
Why am i not able to install magisk 20.0v... If that's not supported can some send a link of the version which is working
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] pfavayi:
===

You only need to flash dfe when changing vendor. Most roms have custom vendors now, so also do it after flashing one of those.

===

Again this is partly correct and partly wrong... But this time its more correct than wrong.

For Practical purposes ,at least so far, it has been shown that you need to flash DFE after you change vendor plus firmware.

And this is because all the vendor + firmware we have used so far have forceencrypt in their fstab.qcom

At least with vendor plus firmware they are complying with what Google requests. Google wants all phones encrypted for security purposes.

-----

All stock roms have vendor plus firmware included... but it depends on the rom if they want forceencrypt in their fstab.qcom file

A good example is MIUI (for the pocophone at least).

The phone is Not encrypted and we have encryptable (not forceencrypt) in the fstab.qcom file.

If you flash MIUI or if you change to another rom from MIUI, you don't have to worry about encryption because the phone is not encrypted and will not encrypt.

For other roms that include vendor plus firmware it would be good to check to see what fstab.qcom says.

And because I am not encrypted and I want to keep it that way, I always run dfe whenever I change roms or install vendor plus firmware or update a rom...

I do this so that I'm on the safe side.

It's better to run DFE when you don't need it rather than not run it when you need it. The second case would be a disaster.

crDroid 6 now comes with vendor. I don't know, but I think it says encryptable in the fstab.qcom file. I never really got to check it because i ran DFE anyway.

I will check on the next update which I will clean install. In the meantime the [MENTION=5195210]gwolfu[/MENTION] can enlighten us

I THINK all custom roms that include vendor will not encrypt. It makes sense if you think about it....

...but it doesn't hurt to check so that you are 100% sure or just run DFE ,just in case....
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] chopoLet:
The little debates above are very informative. Thank you guys. I learned a lot and I understand more about encryption now :)
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] pfavayi:
It is a good thing that you found a link from GitHub!!!

This link proves I was right all along.

If someone doesn't know they must listen and learned or Google.

Insulting people or belittling them simply shows that they are ignorant.

They don't have arguments to present so they simply say what the other person is wrong. They hide behind insulting other people.

Thanks [MENTION=6696910]abhijiths[/MENTION] for the link

Let people Google this subject and they will see that I was correct....

---------- Post added at 07:53 PM ---------- Previous post was at 07:46 PM ----------

Thank you so much for coming out with the truth.

Some people think they know everything yet they know nothing. And they accuse other people of not knowing.

They don't have a solution to anything because they don't know. They give you miserable excuses for not giving the correct answer.

No one has to believe me. Just Google and you'll find the same thing I'm saying for yourself.

If you don't know, which is a normal thing , try and learn from others. that's why we have this channel.

but don't go insulting other people, saying that they don't know, when it is actually you who doesn't know.

---------- Post added at 07:56 PM ---------- Previous post was at 07:53 PM ----------

Install it from TWRP ,not from magisk manager. You can just download it through magisk manager or download it directly from GitHub.
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] jackiass:
Yes, nandroid formats before restoring the backed up partitions but I'm talking about /sdcard - the only place that matters, since this is where all your "stuff" is being held (pics, downloads, music, video - basically anything user created). This does not get backed up with nandroid and this does not get formatted. It even says so when you do the backup: "Data (excl. storage)".

If this folder is encrypted, the new OS won't be able to read it, since it does not have the encryption key. The old OS does, so restoring from nandroid makes you able to read all your encrypted stuff again.

Storing of the key(s) is explained in detail here: https://source.android.com/security/encryption/full-disk

Note that from android 10 and on we are no longer talking full-disk encryption, but file-based

https://source.android.com/security/encryption/file-based

If you do a force reboot as I said, it won't force you to format. You can use your nandroid backup and be able to read your files again. You can access encrypted data if you have the key.
[Xiaomi Poco F1 ROMs, Kernels, Recoveries, & Other ] pfavayi:
===

No. Formatting happens when you choose the format option in TWRP. I'm not quite sure you now what formatting is. You keep using the term wrong.

===

you are talkin about formatting in TWRP and we are talking about formatting when you boot into the rom.

you are still in TWRP . no wonder you don't understand what happens in the rom.

This is the formatting that the phone forces you to do. It's not the formatting in TWRP which you choose to do.

For your information (and for the information of anyone who is reading this ) recovery (in this case TWRP) is a ROM.

It is a small rom that you can use to do maintenance on the phone.

So there are Two roms on the phone - recovery and the main Android ROM.

You are talking of formatting in recovery rom.

We are talking of formatting in the main Android ROM.

The Vendor+firmware formatting through fstab.qcom has nothing to do with recovery rom (TWRP).

This happens in the main Android phone when you boot the phone normally.

You are so not informed that you don't know that you don't know. Google is your friend in this case too.