Hovatek Forum DEVELOPMENT Android [Development] How to fix 0 MB Internal Storage / Data Encryption
Try our Online TWRP Builder..its free!
Can't login? Please, reset your password.


[Development] How to fix 0 MB Internal Storage / Data Encryption

[Development] How to fix 0 MB Internal Storage / Data Encryption

Iken99
Iken99
Iken99
Respected Member
110
12-09-2020, 05:38 AM
#1



Users of TWRP 3.1 (including myself on GIONEE M6 (GN8003) faced the huge problem of an encrypted storage after unlocking the bootloader and flashing the custom recovery. This problem is not peculiar to the GIONEE M6 (GN8003), any other device with TWRP 3.1+ will likely face the same issue and the solution preferred here would work.

By default, your device storage is encrypted (Settings > Security > Encryption) and any TWRP from 3.1+ respects that protocol.
This means that the internal storage would be showing 0mb because it can't be mounted, (no) thanks to the encryption.
Previous versions of TWRP (eg 3.0.3) could easily decrypt the device using the default password but from version 3.1, things changed.

SOLUTION
Needed:
1. An unlocked bootloader
2. TWRP installed (download from the TWRP thread)
3. An SD CARD (or USB OTG)
4. Magisk.zip (latest version, copy it to the SD card)

NOTE: Copy/Backup your files from your internal storage into your PC as this process would wipe everything from the internal storage.

STEPS
> With the bootloader unlocked and TWRP flashed, boot into recovery.
> The screen might be dark when in recovery, just press the power button and the the vol- button, it'll turn ON. Then swipe to unlock.
> You can change the language to English by clicking on the 2nd rectangle by the right above the swipe function.
> Tick "do not show again" and the swipe to allow modification.
> Confirm device encryption by clicking "Backup" or "Install", if the storage size is 0mb or no folder is showing while trying to install, then the device is encrypted.
> Go back, click "Wipe"
> You can choose to Factory reset, Format data or Advanced wipe > tick /data. Either way, it's going to wipe EVERYTHING in the internal storage (that's the purpose of device encryption, to prevent unauthorized access to the storage). However, I recommend you choose "FORMAT DATA"
> If you chose "Format data", then type yes in the next screen and swipe to format.
> When completed, go home, click Reboot and choose Recovery to boot into recovery (very important, do not reboot the phone into system otherwise you'll start all over. Reboot into recovery, not system).
> When in the recovery, click install > select storage > SD card (or USB OTG) (note that the internal storage will display as normal but remember it is now empty following the data reset)
> Navigate to the Magisk in /Sdcard (or USB OTG) and install.
> When completed, you can now reboot safely into system.
> Complete the phone setup and Open Magisk Manager. Notice that Magisk is now installed and "Preserve force encryption" is now unticked". You can also go to Settings > Security > Encryption and notice that it will ask you to encrypt your device, meaning it is decrypted now.
> The next time you will boot into recovery, TWRP may still be in Russian language, just change it one more time and you are good to go.
> Now you can flash anything you want including Xposed, Viper4android, GAPPS, VANCED etc.
This post was last modified: 16-09-2020, 05:59 PM by Iken99.
Attached Files
.png
1 TWRP.png
Size: 91.67 KB / Downloads: 14
.png
2 Magisk.png
Size: 117.46 KB / Downloads: 15
.png
3 Disabled encryption.png
Size: 98.46 KB / Downloads: 18
.png
MY GIONEE M6.png
Size: 212.65 KB / Downloads: 16
hovatek
hovatek
hovatek
Administrator
49,585
12-09-2020, 03:49 PM
#2
Thanks for sharing!

Note!
We have a reply schedule for Free Support. Please upgrade to Private Support if you can't wait.
Users browsing this thread:
 1 Guest(s)
Users browsing this thread:
 1 Guest(s)
YtWhTl
live chat
whatsapp telegram instagram