How to Flash Files on Encrypted Device Without Factory Reset
In this guide, we will show you the steps to flash files on any encrypted device without doing a factory reset. Recently, I had to root my Samsung device via Magisk , and for that, there were two ways out: either using a patched AP or via a custom recovery. If you have ever owned a Samsung device, then you would already know the answer, but for the non-Samsung users, I opted for TWRP because the patched AP approach is quite a lengthy and effort-taking task.
However, right after I flashed TWRP, I was about to transfer the Magisk ZIP file to my device, but then I saw that the internal storage was encrypted. For the unaware, when the storage is encrypted, all the files and folders will be randomly named with a mix of letters and numbers.

This wouldn’t only happen on your device; if you tried to access the storage from your PC, you’d see the same jumbled file name. While the file extensions and size would have given you a decent idea, unfortunately, you wouldn’t be able to get even that information! So one way to remove encryption and decrypt your device is to format the data [Wipe > Advanced Wipe > Format Data].
However, I wasn’t going to reset my device just for the sake of flashing a ZIP file. So what else can be done? Well, there does exist a nifty workaround using which you can easily flash files on any encrypted device without doing a factory reset. So without any further ado, let’s show you how this could be carried out.
How to Flash Files on an Encrypted Device Without a Factory Reset
Droidwin and its members wouldn’t be held responsible in case of a thermonuclear war, your alarm doesn’t wake you up, or if anything happens to your device and data by performing the below steps.
As of now, only the device’s Internal Storage/sdcard is encrypted; the rest of the partitions are still decrypted. So we could simply transfer the file to any other partition [such as /data or /tmp] and flash the file from there. Here’s how it can be done:

- Download and extract the Android SDK Platform Tools on your PC.
- Now enable USB Debugging and connect your device to PC via USB.
- Then open Command Prompt inside platform-tools folder and type: adb reboot recovery
- Your device will boot to custom recovery, which in our case is TWRP.
- After that, place the file to be transferred in the platform-tools folder.
- Now type the below command to transfer the file to the data partition adb push file.zip /data
- To transfer files to any other partition, simply replace data with that partition’s name: adb push file.zip /tmp
- Next up, go to Install, tap Up a Level, and choose the partition where the file is placed.
- Select that file and then perform a swipe to flash it. You may flash other files similarly.
- Once the flashing is done, head over to Reboot > System to boot your device to the OS.
- How to Remove Data Encryption and Decrypt Data in TWRP
- Can You Decrypt Data in TWRP without Format Data?
- How to Convert MSM Download Tool to a Different Region
- How to Disable Force Encryption on Android via DFE and TWRP
(Cancel Reply)
Δ