yashsingh1/xdaforums huggingface dataset:
[Android Software Development] btvolta:
It works my 7 pro, but I'm wondering the same thing, if it works on the 5t. Anyone?
[Android Software Development] Seriousfreedom:
Will this work on the galaxy a21 with locked Bootloader?
[Android Software Development] alecxs:
Lol... yes it will work (if you can flash it)! 😉
[Android Software Development] foyees:
Same problem, fingerprint not working. When set password and try to unlock this password or pattern it says wrong password.
[Android Software Development] mrk2815:
some people dont understand what things do and those people should not go installing these things and or modding or messing with their devices.
[Android Software Development] mrk2815:
a b dual slot device my rom, gapps and twrp installer and then should i jsut install the forced encrypted disabler after that on both slots or on either slot. since my friend who has been flashing these told me to do that way an then to install teh forced disabler to both slots.buti am not sure and thas iis why i am asking.i neve had issues with a only devices.this is my first a b device and i do want to rom as a learnign project and process
[Android Software Development] Vulkroniid:
Do you have any idea how to take backup of data partition if it is encrypted ?

A few years ago, we had utilities like Nandroid Backup Online that allowed you to do it directly on the operating system !
[Android Software Development] alecxs:
you can adb pull /dev/block/dm-0 (or whatever /data is mounted) or use Migrate or Titanium
[Android Software Development] droople:
After flashing this zip on my One plus 7 pro with Oxygen OS, keep boot loop :(
[Android Software Development] pdbqstab1:
Moto G Power. Seems didn't work, but installation completed successfully.
[Android Software Development] pdbqstab1:
Moto G Power
[Android Software Development] billyt1:
You would of had to wipe your data then flash b4 magisk.
[Android Software Development] droople:
Thank you mate.

Flash ROM

Flash TWRP Installer Zip

Reboot into TWRP

Flash everything else

Flash this zip

I thought magisk was included in everything else
[Android Software Development] Awesomeslayerg:
Some lg g8 models bootloop after flashing this
[Android Software Development] thohac:
The OP 7T uses some wierd encryption and twrp can't mount partitions for flashing.

I'm trying to manually disable dm-verity on Android 11.

I patched dtb with magiskboot then edited ramdisk fstab.qcom to remove avb

Original

system /system ext4 ro,barrier=1,discard wait,slotselect,avb=vbmeta_system,logical,first_stage_mount,avb_keys=/avb/q-gsi.avbpubkey:/avb/r-gsi.avbpubkey:/avb/s-gsi.avbpubkey

MODIFIED

system /system ext4 ro,barrier=1,discard wait,slotselect,logical,first_stage_mount

repacked everything then booted.

Now dmctl info system_a shows

device : system_a

active : true

access : rw

activeTable : true

inactiveTable : false

bufferFull : false

When I try to remount rw I get a error

EXT4-fs (dm-2): couldn't mount RDWR because of unsupported optional features (4000)

What am I doing wrong?
[Android Software Development] amyli8789:
@Zackptg5

This currently does not disable encryption on my Redmi Note 9S curtana and I believe any phone launched with Android 10.
[Android Software Development] XTrail02:
It does disable encryption on my Samsung Note 9 running Android 10.
[Android Software Development] amyli8789:
I said phones that launched with Android 10, the samsung galaxy note 9 launched with Android 8.1
[Android Software Development] thohac:
Apparently they have implemented a ext4 extended feature for read_only filesystems called "shared_blocks"

tune2fs lists

Filesystem features: ext_attr dir_index filetype extent sparse_super large_file huge_file uninit_bg dir_nlink extra_isize shared_blocks

e2fsck -E unshare_blocks can make the filesystem RW however there is not enough free space to clone the blocks.
[Android Software Development] kamikaze702k:
*delete
[Android Software Development] Amelberger:
this may be a stupid question, but:

Is there a way to flash this zip without TWRP? My device isn't supported yet and I install magisk by flashing a patched boot.img through fastboot.
[Android Software Development] Jesus is God Almighty:
Latest version of this thing is 6.1 correct??? I just found 6.1 anyway some place. Trying to gather all files that is needed for my phone. Will end it with a short tutorial for my phone with a zip of all the files I've tested and what is needed.

On V20 F800K.

Just reading up on these things as I have some issues. Although I did get the phone memory unencrypted, yet... Not sure what helped me do it, so need to test some things to find out what made it work.
[Android Software Development] alecxs:
no, that's a different product (wrong thread)
[Android Software Development] Jesus is God Almighty:
So what is this, and what is the latest version?
[Android Software Development] alecxs:
This zip disables dm-verity, forced encryption, and/or disk quota (see post #1). current version is 7e2fc89 (see post #1162)
[Android Software Development] Vision:
I read somewhere for xiaomi phones , open TWRP allow modified system after flash a dm-verity zip like that if the same, and after magisk otherwise bootloop now here I read flash this zip last and I'm little confused 🤔
[Android Software Development] ulbricht_y:
Will this work on my Nexus 6p running stock Android 8.1 with Magisk and twrp 3.1 dfe and yeah it's encrypted...
[Android Software Development] holymoz:
I want to write in data\vendor\modem_config, after edit files and reboot the editing is gone and all files in this folder seems created at boot (according to date\time of the files).

Flashed dmverity disabler (only dmverity) but nothing change, modem_config folder is eternally immutable, any suggestions? Miui12 android 10, Thz
[Android Software Development] @ankur_keshri:
Will it work for Android 11? I need it urgently...
[Android Software Development] Pvt WhoOkid:
So try it out. Let us all know.
[Android Software Development] mr-mauro:
Yes it works ;)
[Android Software Development] robygt:
I tried on Poco F2 Pro on an aosp based rom and didn't seem to work. ¯\_(ツ)_/¯
[Android Software Development] lebigmac:
This is what happens when I run the command on my super partition

surya:/ # umount -a
umount: /dev/usb-ffs/adb: Device or resource busy
umount: /tmp: Device or resource busy
umount: /sys/fs/selinux: Device or resource busy
umount: /sys: Device or resource busy
umount: /proc: Device or resource busy
umount: /dev/pts: Device or resource busy
umount: /dev: Device or resource busy
umount: /: Invalid argument
surya:/ # e2fsck -E unshare_blocks /dev/block/sda15
e2fsck 1.44.4 (18-Aug-2018)
/dev/block/sda15 is in use.
e2fsck: Cannot continue, aborting.

Another question:

If I already successfully disabled dm-verity and verification using both of the commands below:

adb disable-verity

adb shell avbctl disable-verification

Do I still need to flash an empty vbmeta in this case in order to disable verified boot using this command?

fastboot --disable-verification flash vbmeta vbmeta_disabled.img

Thanks for answers!
[Android Software Development] mr-mauro:
Funny thing... I have now the opposite problem of most people here :)

I want to encrypt my phone because I need to setup my company account on my phone and it require encryption to proceed :)

I'm on A11 and I flashed ForceEncrypt to not have the encryption :) I tried so to ever it flashing the zip with EnForceEncrypt in the file and then In Security->Encryption and credentials to encrypt but the phone reboot and nothing happens :) Does someone know if it possible to then force the encryption or if I will need to form data to enable it? :D
[Android Software Development] lebigmac:
@thohac here is the solution to your problem my friend. Enjoy!

Works like a charm in Android 10 and later. Now my system, vendor and product partitions are read-write!

Use at your own risk!

https://xdaforums.com/t/script-mount-system-as-read-write-android-10.4240703/
[Android Software Development] alterechtschreibung:
I tried to flash Disable_Dm-Verity_ForceEncrypt_11.02.2020.zip from TWRP as described after a reboot to TWRP as last file.

Before I did that I formatted Data and flashed LineageOS 17.1 with microG from here https://lineage.microg.org/

In TWRP I get the following error message while the flash of the Disable_Dm-Verity_ForceEncrypt_11.02.2020.zip:

Failed to mount '/odm'

On first boot Lineage encrypts data.

Device is Samsung S9+ (STAR2LTE).

Log file is attached.
[Android Software Development] grajek05:
Cześć chciał bym się zapytać jeśli w TWRP zainstalowałem "Dm-Verity & ForceEncrypt Disabler" i sformatowałem w TWRP Data. Czy to jest dobry znak, że wszystko zrobiłem dobrze, przy uruchamianiu ponownie telefonu że będzie wibracja. Dziękuje za odpowiedź.

Hi I would like to ask if in TWRP I installed "Dm-Verity & ForceEncrypt Disabler" and formatted in TWRP Data. Is it a good sign that I did everything right, when restarting the phone that it will vibrate. Thank you for your reply.
[Android Software Development] alecxs:
some phones do vibrate on boot. some phones using vibration as silent message to indicate something is wrong. we can't tell you
[Android Software Development] oldman20:
Would this work with the latest update release N960F one UI 2.5 Android 10 released on February 2021? Thank you!
[Android Software Development] :
@Zackptg5 I'm stuck in a loop. if I format datas to decrypt I have to reintall the ROM, but when I reinstall the ROM it encrypts the datas again. do you have any suggestions? also there's a way to be sure if datas are encrypted or not? because I'm not even sure of that. I suppose it's like what I said before because I can't flash dm verity without bricking the phone...

ps. I'm on a xiaomi redmi 4a
[Android Software Development] alecxs:
please elaborate
[Android Software Development] :
in the guide there's written that to decrypt you need to format data.

btw I solved the problem flashing magisk before dm verity disabler.
[Android Software Development] alecxs:
never mind. just curious about why should one reinstall ROM, formatting /data does not do anything
[Android Software Development] neilth:
I have a Pixel 2 XL running LOS 18.1 (Android 11) rooted with Magisk which is working well. I ran your script to disable DM-Verity attempting to eliminate the Google warning message that’s now always displayed at boot once the bootloader is unlocked. The script appeared to run successfully, but the boot message is still present. Is there any way to stop this warning message from being displayed every time I turn my phone on?
[Android Software Development] reaper000:
No script can't eliminate the warning message. To the best of my knowledge, the ONLY thing that can eliminate that message is to relock the bootloader.
[Android Software Development] neilth:
Thank you for letting me know the bad news.☹️
[Android Software Development] giogio80:
On S9 + with Android 10 universal dm verity with magisk 22 and 22.1 does not work. I can't get root and the smartphone has sudden reboots or the interface freezes. As a recovery I tried TWRP 3.4, 3.5, 3.5.1 etc.
[Android Software Development] shafi1885:
my storage + system is encrypted in stock MIUI 12.5 china ROM. I want to shift to EU Global ROM. but in order to avoid bricking the phone, I want to take a full backup of the rom. I know you will suggest TWRP. but no matter what I do, it won't get decrypted. I read about dm-verity encryption disabler. so , if I flash it now, will my system be decrypted and can I take full backup of rom then?

I have tried youtube instructions, but in their video, they took also backup of system. but my system doesn't show in backup. I have mount it in mount option in twrp, their is no ok or confirm option their right? I just ticked it in mount , then pressed back, then went to backup, but still no system partition, so how will I take full backup of my current ROM?

please guide me through it, I don't want to flash any rom before taking a full backup of my current stock rom as this is my first time.

(my twrp MTP doesn't work, no file exchange is possible between pc and my android & I swapped allow to modification in twrp first time, second time, every time :(

how I solved my problem:​

I have replied it another thread, so I am attaching the link here so that people like me might get benefitted.

HOW I SOLVED MY PROBLEM
[Android Software Development] sunnyy15:
Watch this video to see whether it helps. I followed the instructions and it worked for me on my Galaxy A515F/DSN. Tested on Android 10 & 11 successfully.
[Android Software Development] sunnyy15:
What about this method in this video...? I followed the instructions and it worked for me on my Galaxy A515F/DSN. Tested on Android 10 & 11 successfully.
[Android Software Development] giogio80:
after a month no response. Could someone kindly explain to me how to get root on S9 + with android 10?
[Android Software Development] shafi1885:
Brother, don't spam this thread,this is not for the question you asked. Search it in your device's thread, rooting your phone is pretty basic thing to do and lots of YouTube videos. If you face any particular problem while rooting, something like for which you can't proceed, then you can ask about it in your device's rooting thread, but not here. I hope you have understood. Let me know if I can be of any assistance. Thank You
[Android Software Development] vp1117:
Hello knowledgeable friends!

Is there any way how DM-Verity script can be flashed to the phone which doesn't have custom recovery and there is no way for sideload ?

Also, my phone does not allow me to run fastboot flash command.

I only can run adb shell commands. Strange enough, but on my unrooted phone running stock ROM I can run <adb shell> commands as if the phone was rooted: I have # prompt in command line of adb shell instead of $. Worth mentioning that I did not do anything to be able to run commands as root. It appears to be a strange specifics of stock ROM. However, android applications do not have root privileges.

I know it might be very manual way and it might take time, but running commands from <adb shell> command line seems to be my only option to run DM-Verity script.

Can anybody help me how to run this script from adb shell?
[Android Software Development] giogio80:
sorry I have the wrong 3d. truly forgive me.
[Android Software Development] jbiribi:
I'm getting an error. I didn't find what could be causing it. I formated it before.
[Android Software Development] TheDrive:
Hello!

I've patched the boot image on a fresh, Android 11 based Samsung A52 (SM-A525F) with newest available disable_dm-verity_forceencrypt_11-02-2020-zip

And got a bootloop. Also the patched boot does always encrypt back userdata partition once it tries to boot the OS, so the next recovery boot TWRP can't mount it.

Plz help me correctly patch the original FW's A525FXXU1AUC4 boot image to fully disable verity and userdata encryption.

Here is the link to my post with full problem description in A52 TWRP thread. Logs are attached as the following posts there.

https://xdaforums.com/t/recovery-unofficial-twrp-3-5-2-for-galaxy-a52-4g.4276515/post-85123077
[Android Software Development] michael205:
After installing this with Android 11 GSI rom (all of them) i can't connect to wifi, also during installation "Interface" is hanging up and i can't finish normal configuration. Any idea what can be done to fix it ?

Doogee S95

Edit.

Well now it looks like every rom will behave like this no matter if i install this or not.

I have to restore oryginal rom and try again. Maybe with more luck :)
[Android Software Development] michael205:
Spoiler content hidden.
[Android Software Development] Dixon A:
Can someone help me,

I am trying to root my Realme U1(rmx1831) .

*Unlocked bootloader

*Flashed twrp , but this is were i messed up. I used these commands in fastboot mode.

fastboot erase recovery

fastboot flash recovery recovery.img

(fastboot reboot recovery , ,this command didn't work so)

fastboot oem reboot-recovery

Long story short i messed up my recovery. I couldn't flash any custom rom properly. Every time I've to use this command 'fastboot flash recovery recovery.img' to force enter to twrp.

Lastly i tried oem stock rom. And went back to default os. But still i didn't have oem recovery nor twrp.

Even when in twrp i couldn't flash lineage 10, pixelplusexp 11 properly. When i restart I'm having a bootloop.

In oem rom (it says the rom is rooted) but i don't have any recovery.

What should i do .? Can someone help me .

Will this thread help me ..
[Android Software Development] enragedpaza:
I keep getting boot loop

steps:

-factory reset, flash 00s 1.36/ twrp/ magisk

-reboot twrp, format data

- from usb: flash oos 1.36, twrp, magisk, verity

-boot system
[Android Software Development] dovahkiin4756:
Try flashing it before magisk. I know the first post says otherwise, but it worked in my case.
[Android Software Development] enragedpaza:
originally i tried that as well. tried both methods to flash it ending in boot loop. I ended up getting it to work by selecting verity and selecting another zip (magisk). I am having so much trouble flashing lately lol. thank you for the response
[Android Software Development] tefenet:
hi, this method doesnt work in my LG k430ar, i cant flash twrp, just boot into twrp from fastboot, in a fresh marshmallow i tried with format data, and without format data, the zip is flashed but then cant boot because 'device corrupted'.

steps:

put universal.zip in sdcard

adb reboot bootloader

fastboot oem unlock

fastboot boot twrp

format data or not

flash universal.zip

reboot, cant boot 'device corrupted.... cant be trusted' loop.

flash stock firmware again

another method was get boot.img from phone with dd, patch with magiskmanager then flash, same result.
[Android Software Development] xiaomieu:
Doesn't work on Xiaomi mi10T lite.
[Android Software Development] Jona'san - sama:
Bro can i ask a question..

I Already flash a new ROM on my devices and before i proceed to flashing it's seems the folder in Custom Recovery is readable so its not encrypted.. right ?

So no need to flash this DM Verity File ?

BEFORE of all of that, I already Format my devices then Reboot to recov again..

**i can't tell the differences between Encrypted nor Decrypted, sorry for being just a noob at this 😅
[Android Software Development] American_Jesus:
On your ROM, go to Settings -> Security and check encryption, if says "not encrypted" you don't need to flash it.
[Android Software Development] Jona'san - sama:
Thank You brother for your help, Love You 😘
[Android Software Development] Chanti Banavathu:
Hi,

My Name is chanti .i'm trying for Nokia 6.1 Plus how disable the Encryption & credentials pls help me I'm try this but not working pls need ur help
[Android Software Development] Zackptg5:
Just a friendly reminder to read through your device's TWRP release notes/bugs - some newer ones do not yet have the capability to mount system and vendor as rw which this mod requires. I'm in this boat and so I still have no way of testing this zip and thus, making any major changes. Also, if you just report that you have a problem without any logs, I'll ignore you.

To everyone who did attach logs, there's still not much I can do about anything due to the above. TWRP team has been hard at work but google is making it more and more difficult for them

I updated the AK3 template and the binaries in this zip here which may help with any issues your having. This is UNTESTED so flash at your own risk.
[Android Software Development] enricojacko:
Hi. I have a Xiaomi Mi 10T Pro.

I followed your instructions and everything went fine, now I have an unencrypted Evolution X Custom ROM. Anyway, as soon as I set any protection (PIN, Fingerprint, etc.) to lock my screen and/or use Google Pay with MagiskHide (it is mandatory to setup a PIN), the device apply encryption.

Is there any way to prevent encryption and keep it decrypted even if I need to use a PIN and/or Fingerprint?

Thanks a lot.
[Android Software Development] bobbyp1086:
Is this still functional with Android 11? Motorola devices? Please say yes
[Android Software Development] Techguy777:
Are you sure it's encrypting your device? Ive never seen that before normally it allows you to set a pin without encryption. Does it take a few minutes and say encrypting?
[Android Software Development] enricojacko:
Unfortunately yes... it happened again just few days ago.

I strictly followed instructions to wipe, flash EvolutionX for my Mi 10T Pro, fomat data, flashed DM-Verity zip, flash Magisk then format data again (just to be sure before first boot.

Everything was unencrypted for few days but, as soon as I was forced to setup a lock screen to use Google Pay, I chose the basic 4-digit PIN (no fingerprint, no face unlock) and my device was immediately encrypted. In fact, as soon as I rebooted to recovery, my TWRP asked for password to access phone data.

Is there any way to prevent encryption forever? Thanks a lot.
[Android Software Development] Techguy777:
I would think a custom kernel or just evolution x rom without the dm verity zip because it should have forced encryption shut off already. You might be turning it on by flashing the dm verity zip when you don't need to
[Android Software Development] hkdoublecat:
Not so sure if should apply this, so.....

#1 I flash rom and lose my access and all internal storage unwritable. Then #2 I apply adb command restorecon+chown+chmod to make the storage writable again. However,

#3 Some batch of old photos become unreadable, I suppose it is because they are now unencrypted for me. And sound DM-Verity could be my answer to make those files live again?

Much appreciate if someone who familiar would clear my mist.
[Android Software Development] SigmaPhi001:
I was able to successfully decrypt by sideloading dm-verity forceencrypt.zip but I was having the same issue with the system being unwriteable and I kept getting the message that there wasn't enough space to install apps or nethunter so I just ended up going with the nethunter lite version. I was wondering exactly what you did because I wasn't able to find a solution to this problem. Thanks in advance :-)
[Android Software Development] hkdoublecat:
I input adb command in recovery mode:

chown -R media_rw:media_rw /data/media/

find /data/media/ -type d -exec chmod 775 {} ';'

find /data/media/ -type f -exec chmod 664 {} ';'

restorecon -FR /data/media/

as instructed here
[Android Software Development] SigmaPhi001:
Im restoring to factory and Im going to try this. Thanks a lot for sharing this, I've been searching for days for a solution so I really appreciate this.

Update: I just followed the instructions on that thread and now everything is resolved. Thank you very much for that advice, I really appreciate you pointing me in the right direction. :-)
[Android Software Development] love4chat:
thanks for this
[Android Software Development] Forwat:
hey, what do i do if i want to flash somethings else a long time after flashing no encrypt ?
[Android Software Development] sieger007:
I am on a rooted android 10 phone ( magisk) . I restored stock recovery. No Luck incremental OTA's keep failing. I then restored stock Boot after removing magisk . Still got veriification error. My BL is unlocked. What does it take to get my OTA zip file working.... do I flash dm verify force encrypt . Why does it refuse. Should BL be locked as well
[Android Software Development] alecxs:
As already stated this zip does modifications in /vendor/etc/fstab.qcom and the only way to undo is restore the backup which you have created before you flashed this zip
[Android Software Development] Blue_Monk:
I'm at a loss tbh.

I did a full wipe with MSM tool last night and installed twrp and magisk. funny thing is I forgot to flash vbmeta and the phone boots and works.

I'll give it another shot today
[Android Software Development] Thenootable:
How do i enable DM-Verity ForceEncrypt back on
[Android Software Development] Thenootable:
How do enable DM-Verity ForceEncrypt back on
[Android Software Development] alecxs:
restore your backup
[Android Software Development] chaoscreater:
does this only patch the boot.img or does it touch other partitions?