Question TWRP Doesn't Show Internal Storage - Xiaomi Poco X3 Pro

Getting tired of the buggy MIUi 13 so I'm trying to install a custom rom on my phone. But when I'm in TWRP to flash rom, it doesnt show my internal storage and it shows what I suspect are root android folders. Any way to fix this? Thanks!

in Android 12 the data partition in TWRP can not be decryptet, if you search, you will find the infos yourself. You can format the data partition, but all stored data will be lost then...

borisku said:
in Android 12 the data partition in TWRP can not be decryptet, if you search, you will find the infos yourself. You can format the data partition, but all stored data will be lost then...
Click to expand...
Click to collapse
I tried doing that, but It still cant detect my internal storage. Also tried using a USB OTG but TWRP still don't detect it. Is there any way to flash rom using pc? If there's none I'll just give up lol

dnleet said:
I tried doing that, but It still cant detect my internal storage. Also tried using a USB OTG but TWRP still don't detect it. Is there any way to flash rom using pc? If there's none I'll just give up lol
Click to expand...
Click to collapse
You can just adb sideload rom.

irmas5 said:
You can just adb sideload rom.
Click to expand...
Click to collapse
Thanks for the reply bro! But from what I learned from @borisku that android 12 has strict storage encryption. So what i did was downgrade to an older version of miui that runs android 11, and after that flash the rom i was changing to.

dnleet said:
Thanks for the reply bro! But from what I learned from @borisku that android 12 has strict storage encryption. So what i did was downgrade to an older version of miui that runs android 11, and after that flash the rom i was changing to.
Click to expand...
Click to collapse
You don't need to have a recovery that can decrypt android 12 internal storage to use adb sideload. Hence, even if you are using MIUI 13 and TWRP, you can just adb sideload the custom rom directly without the need to downgrad to android 11.

JSGuangco said:
You don't need to have a recovery that can decrypt android 12 internal storage to use adb sideload.
Click to expand...
Click to collapse
I'm not familiar with ADB sideload so I didn't use the method, but thanks for the info! I'm running Pixel Experience on my phone right now so my problem is basically solved.

Related

[Q] deleted internal storage by accident

NOOOB accident,
but it is done. I've erased my internal storage and now, when I boot, theres no notification or menu bar (bottom). I can't access my "SD card" cuz it doesn't exist anymore. So even If I download a ROM and try to flash it, I can't even find the download.
Any help would be greatly appreciated.
To note that I don't have access to a computer!
What exactly did you do and how?
What exactly is the current state of your phone?
rootSU said:
What exactly did you do and how?
What exactly is the current state of your phone?
Click to expand...
Click to collapse
From Recovery I wiped the internal storage... I thought that would just erase the content of it, guess I was wrong. lol
My phone wokrs, I just can't leave any application once I've opened it, I also can't install new apps. So right now I'm running XtraSmooth 3.2 with ElementalX 2.05 Kernel.
In TWRP, erase storage just wipes sdcard. Though maybe since youre on lollipop, you need to run the restorecon commands. Please tell mW you have a terminal emulator installed?
rootSU said:
In TWRP, erase storage just wipes sdcard. Though maybe since youre on lollipop, you need to run the restorecon commands. Please tell mW you have a terminal emulator installed?
Click to expand...
Click to collapse
DId, not there anymore for a reason all apps disapeared upon boot (after erasing internal storage)
Update... Phone turned off and stuck booting.. lol It's going to be an awesome! Ima bout to just throw it on the ground then in the garbage! lol
Do a full factory reset. If that doesn't work, you WILL need a computer
You could try repairing your system partition in recovery then flash a ROM or factory image.
Sent from my Nexus 7 using XDA Free mobile app
EverDawn4 said:
You could try repairing your system partition in recovery then flash a ROM or factory image.
Sent from my Nexus 7 using XDA Free mobile app
Click to expand...
Click to collapse
His system partition is fine. Its his /data/media/0 or /sdcard partition.
Since he has no storage. He can't download a ROM. Hr just needs to run a basic command from terminal to fix it, but he is struggling to install apps
rootSU said:
Do a full factory reset. If that doesn't work, you WILL need a computer
Click to expand...
Click to collapse
I'll need a computer it seems. Thanks for trying!
Kukussi said:
I'll need a computer it seems. Thanks for trying!
Click to expand...
Click to collapse
If you get one, best bet is flash entire latest (5.0.1) factory image. Then you can flash recovery if you want and root from there.
how do I do that without the developer option and USB Debug enabled? I have search and they all say to enable it... ill try to figure it out until someone tells me how...lol
Kukussi said:
how do I do that without the developer option and USB Debug enabled? I have search and they all say to enable it... ill try to figure it out until someone tells me how...lol
Click to expand...
Click to collapse
USB debugging is nothing to do with this. USB debugging works in android only. Factory images are flashed from the bootloader using fastboot.
rootSU said:
USB debugging is nothing to do with this. USB debugging works in android only. Factory images are flashed from the bootloader using fastboot.
Click to expand...
Click to collapse
Done and fixed...
Kukussi said:
how do I do that without the developer option and USB Debug enabled? I have search and they all say to enable it... ill try to figure it out until someone tells me how...lol
Click to expand...
Click to collapse
Who the hell keeps spreading this misinformation? Developer options and USB debugging are irrelevant to fastboot mode and recovery. USB debug mode is only pertinent to issuing ADB commands within the OS. It is completely meaningless to the bootloader.
rootSU said:
In TWRP, erase storage just wipes sdcard. Though maybe since youre on lollipop, you need to run the restorecon commands. Please tell mW you have a terminal emulator installed?
Click to expand...
Click to collapse
just trying to change ext4 to f2fs through TWRP. as i remmember i only wipe data, cache and dalvik. But after i formatted my data, system, partition to f2fs, my internal storage (pic, music, Tibu Backup, downloaded Zip Files) are gone. is this re-formatting thing is also wipe my internal storage? or i also just accidently klik to wipe internal storage?
Formatting implies wiping. It is starting a filesystem from fresh, even if you are formatting in the same format.

Unable to mount storage in freshly installed TWRP

I have the TX1541 model, 16GB ROM. I just got the device a few hours ago so here's a quick rundown of exactly what I have done with it so far.
1. Boot
2. Go through google setup
3. Install marshmallow update
4. Format Sandisk 32GB SDCard as internal storage
5. Enable Developer options, allow OEM unlock, enable USB Debugging
6. Move latest CM13 nightly and OpenGApps to internal storage using MTP
7. Boot into fastboot
8. Unlock bootloader successfully
9. Flash latest TWRP build (twrp-osprey-3.0.2-r1) successfully
10. Reboot into recovery
11. Swipe to allow TWRP to allow modifications
Now, I can't install any of the zips I moved on the device earlier because according to the log neither "storage" nor "/data" can be mounted. So obviously, if I go to Install -> Select Storage everything has "0MB" and wiping doesn't work. . Oh yeah and MTP doesn't work either so I can't really get any files on the device ATM, maybe using push in fastbooot...
I'd appreciate any help on this...
Don't wipe anything yet... Once you boot into TWRP once and allow changes to system, go to Reboot menu and reboot to Recovery again. Test to see if you can see storage now...
Encrypted?
When you format your SD card as internal, it encrypts it so that you can't use it with other phones, and it protects your data.
If you encrypted it and then installed TRWP you've essentially changed the phone, you won't be able to access it without booting into the android OS that you encrypted it on.
Hope that it wasn't what you did. Otherwise the only way in is to load it into android, connect to the computer, and get the files from there.
RylenWolf said:
When you format your SD card as internal, it encrypts it so that you can't use it with other phones, and it protects your data.
If you encrypted it and then installed TRWP you've essentially changed the phone, you won't be able to access it without booting into the android OS that you encrypted it on.
Hope that it wasn't what you did. Otherwise the only way in is to load it into android, connect to the computer, and get the files from there.
Click to expand...
Click to collapse
how do you fix it on the computer?
mjf042 said:
how do you fix it on the computer?
Click to expand...
Click to collapse
@Jisifus You need to go in twrp ans change the filesystem to ext4
mjf042 said:
how do you fix it on the computer?
Click to expand...
Click to collapse
@Jisifus You need to go in twrp ans change the filesystem to ext4
Hi
You found solution to this problem :C??
I have the same problem :crying:
This is a known issue in the official version... @Alberto97 has submitted the fixes, we just need to wait until it's merged into official build.
An unofficial build with the fixes applied is available here: https://forum.xda-developers.com//2...t/twrp-twrp-moto-g-2015-t3170537/post71386235

Fully Wipe internal Storage and flash new Rom from Pc

Hey guys, I just wanted to know if there is any way by which I could completely wipe the internal memory and flash a rom, kernel etc straight from the PC through USB? Also If someone could recommend a Rom and gapps (xposed user) it would be greatly appreciated. Thank you.
Sent from my A0001 using XDA-Developers mobile app
Edit : I don't necessarily have to flash from the PC, I just want to completely wipe the Internal memory before flashing a new Rom coz of viruses. Thank you
Sent from my A0001 using XDA-Developers mobile app
You have that option on Twrp.
Wipe -> Advanced -> Choose all partitions including internal storage
If you to Instal new rom from PC, you have to use fastboot but you can use USB otg to
FSadino said:
You have that option on Twrp.
Wipe -> Advanced -> Choose all partitions including internal storage
If you to Instal new rom from PC, you have to use fastboot but you can use USB otg to
Click to expand...
Click to collapse
But if I choose Internal storage from TWRP won't the rom and gapps get erased too?
Sent from my A0001 using XDA-Developers mobile app
Well yes that would happen, you'd delete the files you put on the internal storage so, when you do the "full" wipe in TWRP using the Advanced wipe option, select everything except the internal storage which will leave those files located there intact.
br0adband said:
Well yes that would happen, you'd delete the files you put on the internal storage so, when you do the "full" wipe in TWRP using the Advanced wipe option, select everything except the internal storage which will leave those files located there intact.
Click to expand...
Click to collapse
I understand but I want to wipe the internal storage too , is there a way for me to flash the files from the PC through recovery?
Sent from my A0001 using XDA-Developers mobile app
No, there's not really much you can do at that point since you'd be cleaning out any content there you'd need to redo the phone back to a functional state. The only types of ROMs you can flash directly in fastboot mode are pretty much the factory CyanogenOS ones from what I can tell, those are the only ones provided as actual partition images, the rest are designed to be installed through recovery, even OxygenOS comes in a recovery flashable form (the last one for the OPO, 2.1.4).
Well there's one possible way: using an OTG USB stick with the ROM files on that, it might work but I can't say for certain it will. You could do the full wipe including the internal storage, use the file manager in TWRP to copy the ROM from the OTG USB stick back to internal storage then flash, maybe.
Just put all the files you need on pen drive, wipe all partitions including internal storage, plug pen drive through otg cable and flash everything you need
galaxys3lover said:
Edit : I don't necessarily have to flash from the PC, I just want to completely wipe the Internal memory before flashing a new Rom coz of viruses. Thank you
Sent from my A0001 using XDA-Developers mobile app
Click to expand...
Click to collapse
Android is vulnerable to virus?
I just wipe and transfer the ROM/Gapps/addons from my PC while still in recovery.
This has always worked fine with my Oneplus One. My Note 5 and Galaxy Tab S2 will not be detected by my PC in recovery.
ADB sideload the ROM after erasing the Internal Storage
Doomerts said:
I just wipe and transfer the ROM/Gapps/addons from my PC while still in recovery.
This has always worked fine with my Oneplus One. My Note 5 and Galaxy Tab S2 will not be detected by my PC in recovery.
Click to expand...
Click to collapse
Thank you. Is there a tool to do that? I remember having a tool to do that for the S3.
Sent from my A0001 using XDA-Developers mobile app
galaxys3lover said:
Thank you. Is there a tool to do that? I remember having a tool to do that for the S3.
Click to expand...
Click to collapse
euh, Windows explorer?
I don't use a tool at all. I plug in the USB cable, computer goes "pling", I drag and drop files from my computer into the phone's folder and done.
If you can't do this I'm not really even sure where to begin to find out why I can and you can't. Try just, going into recovery, plugging your phone into your computer and seeing what happens?
Doomerts said:
euh, Windows explorer?
I don't use a tool at all. I plug in the USB cable, computer goes "pling", I drag and drop files from my computer into the phone's folder and done.
If you can't do this I'm not really even sure where to begin to find out why I can and you can't. Try just, going into recovery, plugging your phone into your computer and seeing what happens?
Click to expand...
Click to collapse
My bad , I thought windows woudnt recognize the phone storage while in recovery , I thought i would have to do it through fastboot , i just checked it reads while in recovery ,I will try flashing now , Thanks for your help
galaxys3lover said:
My bad , I thought windows woudnt recognize the phone storage while in recovery , I thought i would have to do it through fastboot , i just checked it reads while in recovery ,I will try flashing now , Thanks for your help
Click to expand...
Click to collapse
We cool. Good luck!
You could always just format everything through recovery and then either push or sideload the new rom through adb.
darshiz said:
ADB sideload the ROM after erasing the Internal Storage
Click to expand...
Click to collapse
this is the right answer
I'm surprised people haven't come up with ADB push yet.
Before wiping everything ADB pull the required files.
Wipe everything from the recovery, and while in recovery, ADB push everything you pulled back to the device.
Profit!
Mr.Ak said:
Android is vulnerable to virus?
Click to expand...
Click to collapse
Everything that is connected to the internet is vulnerable to virus

TWRP differences/limitations in Android Q

I upgraded to the latest Q4 beta. When doing this following instructions when flashing in TWRP it said to flash the file from USB otg since you couldn't flash from internal storage.
my question is, once you have Q installed as I do can you never flash files from internal storage? i assume this must be the case, or i have something very wrong with what i'm doing. I can't mount my internal storage at all in TWRP or see any of the files.
knives of ice said:
I upgraded to the latest Q4 beta. When doing this following instructions when flashing in TWRP it said to flash the file from USB otg since you couldn't flash from internal storage.
my question is, once you have Q installed as I do can you never flash files from internal storage? i assume this must be the case, or i have something very wrong with what i'm doing. I can't mount my internal storage at all in TWRP or see any of the files.
Click to expand...
Click to collapse
Everything works but decryption.
We may have to wait until official q comes before decryption works.
You may find ways to run unencrypted using search function. I know it has been talked about in the forum.
twinnfamous said:
Everything works but decryption.
We may have to wait until official q comes before decryption works.
You may find ways to run unencrypted using search function. I know it has been talked about in the forum.
Click to expand...
Click to collapse
Do you have any idea what could be wrong with my install or setup? I can't mount system. It can't even see my internal sd card it lists it as 0. Never had anything like this happen
knives of ice said:
Do you have any idea what could be wrong with my install or setup? I can't mount system. It can't even see my internal sd card it lists it as 0. Never had anything like this happen
Click to expand...
Click to collapse
U can't see anything in SD card if decryption doesn't work.
What twrp and what where your steps to get where you are now?
twinnfamous said:
U can't see anything in SD card if decryption doesn't work.
What twrp and what where your steps to get where you are now?
Click to expand...
Click to collapse
yes, i know what you are saying with encryption when you can't decrypt it still shows everything with crazy decrypted numbers like 8784322qzzwerei, etc. Even if i turn off my security and boot into twrp (i'm running the latest version i believe 3.3.1-50 according to the twrp menu) it can't see anything on internal storage. when you go to select storage it shows 0mb under internal storage. if i plug in a usb otg it immediately shows and reads that.
if i want to select a file it says select file from internal storage (0 mb)
I have things installed to slot A. these slots i'm not used to using but maybe someone when it boots to twrp its not on the right slot or something? any ideas?
knives of ice said:
yes, i know what you are saying with encryption when you can't decrypt it still shows everything with crazy decrypted numbers like 8784322qzzwerei, etc. Even if i turn off my security and boot into twrp (i'm running the latest version i believe 3.3.1-50 according to the twrp menu) it can't see anything on internal storage. when you go to select storage it shows 0mb under internal storage. if i plug in a usb otg it immediately shows and reads that.
if i want to select a file it says select file from internal storage (0 mb)
I have things installed to slot A. these slots i'm not used to using but maybe someone when it boots to twrp its not on the right slot or something? any ideas?
Click to expand...
Click to collapse
Has the rom booted yet? Did u wipe? Nevermind forgot on q it just shows 0mb
U can try switching slots but it might put u back to rom u had before.
As was previously stated, TWRP cannot decrypt data on q. TWRP will have to be updated to address this. It will be the same for everyone.
Once you boot into rom, all your data will be accessible.
Maybe try fastboot boot twrp.img as that may allow decryption
miffymiffy said:
As was previously stated, TWRP cannot decrypt data on q. TWRP will have to be updated to address this. It will be the same for everyone.
Once you boot into rom, all your data will be accessible.
Maybe try fastboot boot twrp.img as that may allow decryption
Click to expand...
Click to collapse
even if i remove all encryption from my device the system still shows at 0mb. which means you can't flash anything in twrp from the sd card.
i'm trying to figure out why i can't get magisk vanced to work and i assume it is because the flashing in magisk isn't occurring correctly.
so does everyone show a system in twrp for q at 0mb? if what i have is normal and the norm, fine but that was the reason for this thread to list the differences/limitations of twrp in q.
I believe TWRP can't access the internal sdcard due to the change in Q called Scoped Storage:
https://developer.android.com/preview/privacy/scoped-storage
This is also why Magisk vanced isn't installing properly
docnok63 said:
I believe TWRP can't access the internal sdcard due to the change in Q called Scoped Storage:
https://developer.android.com/preview/privacy/scoped-storage
This is also why Magisk vanced isn't installing properly
Click to expand...
Click to collapse
i agree.
the problem is, some are reporting no problems with youtube vanced through magisk. others are claiming that they can see the data on their sd card. i have no idea, maybe some of these people don't even have the q beta installed.
knives of ice said:
i agree.
the problem is, some are reporting no problems with youtube vanced through magisk. others are claiming that they can see the data on their sd card. i have no idea, maybe some of these people don't even have the q beta installed.
Click to expand...
Click to collapse
I've been on DP2, 3, and now 4 and never been able to see internal in TWRP. All flashes have had to be done via OTG after the initial Q install.
docnok63 said:
I've been on DP2, 3, and now 4 and never been able to see internal in TWRP. All flashes have had to be done via OTG after the initial Q install.
Click to expand...
Click to collapse
ok awesome, thanks for confirming. have no idea what some are claiming in the ver 4 thread.
have you found a way to get youtube vanced working? even the non rooted version force closes for me. that is the one thing in my routine that is tough to live without.
knives of ice said:
ok awesome, thanks for confirming. have no idea what some are claiming in the ver 4 thread.
have you found a way to get youtube vanced working? even the non rooted version force closes for me. that is the one thing in my routine that is tough to live without.
Click to expand...
Click to collapse
I have YouTube Premium so I don't mess with vanced. Sorry...
knives of ice said:
ok awesome, thanks for confirming. have no idea what some are claiming in the ver 4 thread.
have you found a way to get youtube vanced working? even the non rooted version force closes for me. that is the one thing in my routine that is tough to live without.
Click to expand...
Click to collapse
Because if your run your device unecrypted you can access the data partitions in TWRP while running Q.
Namolas said:
Because if your run your device unecrypted you can access the data partitions in TWRP while running Q.
Click to expand...
Click to collapse
i remove all fingerprints/pins and have no security. i should be able to boot into TWRP and see data then correct?
it still shows 0mb for me and won't mount.
knives of ice said:
i remove all fingerprints/pins and have no security. i should be able to boot into TWRP and see data then correct?
it still shows 0mb for me and won't mount.
Click to expand...
Click to collapse
Currently decrypted state, and running the device unencrypted aren't the same. Even with your fingerprints pins removed if you look in Settings/Security you'll see your device still shows as encrypted.
OnePlus 7 forces encryption by default. To run your device unencrypted you have to format the internal storage (wipes everything pictures media etc) and make sure you flash a special disable force encrypt zip every time you flash anything system related in TWRP.
Its a lengthy process to get it running unencrypted and if you forget to flash the special script even one time OP7P will force encrypt on boot and you have to start over. Its not for everybody but I know a lot of people running this way, myself included.
This should all be fixed with and update to TWRP but who knows how long that will take.
Not sure if this is worth anything or not, but it's decryption related: https://gist.github.com/mauronofrio/af29bad34ad87a1a957d193794f0bf5f
Namolas said:
Currently decrypted state, and running the device unencrypted aren't the same. Even with your fingerprints pins removed if you look in Settings/Security you'll see your device still shows as encrypted.
OnePlus 7 forces encryption by default. To run your device unencrypted you have to format the internal storage (wipes everything pictures media etc) and make sure you flash a special disable force encrypt zip every time you flash anything system related in TWRP.
Its a lengthy process to get it running unencrypted and if you forget to flash the special script even one time OP7P will force encrypt on boot and you have to start over. Its not for everybody but I know a lot of people running this way, myself included.
This should all be fixed with and update to TWRP but who knows how long that will take.
Click to expand...
Click to collapse
Thanks for your post.
So if I want to "dirty flash" a rom on android q, is it still possible with data encrypted or should I format internal storage anyway ? (and clean flash...)
Gabrech said:
Thanks for your post.
So if I want to "dirty flash" a rom on android q, is it still possible with data encrypted or should I format internal storage anyway ? (and clean flash...)
Click to expand...
Click to collapse
On my Pixel (original) with TWRP 3.3.0-0 and Q, I am able to do everything normally, including decrypting, dirty flash, cutstom ROMs, factory, nandroids, etc .... However, /system and /vendor won't mount. But, it works anyway!
The scoped storage is still a pain in the butt.

Question TWRP Unable to mount /data/media/TWRP/.twrps + 0 Mb storage

I have ArrowOS 12 installed, with 11 the updates went well but now if I try to update i get the messages in the title. I tried to repair the filesystem, changed it from ext4 to ext2 and ext4 back again, wipe basically everything, can't restore anything, really have no idea of what I should do more.
TWRP is on 3.5.2_11.0, I have no personal files on the phone so anything is ok.
sherlockhs03 said:
I have ArrowOS 12 installed, with 11 the updates went well but now if I try to update i get the messages in the title. I tried to repair the filesystem, changed it from ext4 to ext2 and ext4 back again, wipe basically everything, can't restore anything, really have no idea of what I should do more.
TWRP is on 3.5.2_11.0, I have no personal files on the phone so anything is ok.
Click to expand...
Click to collapse
All custom recoveries (TWRP, OrangeFox) cannot decrypt Android 12 data in the meantime, so you will not see any internal storage and cannot mount.
If you want your data, you can try ArrowOS 11, restore data into ArrowOS 11, make sure data works in ArrowOS 11 system boot, then flash ArrowOS 12 without format data.
Some said you can do that, but there's chance it will fail, but since your phone has no personal files, you can try.
There is update of TWRP 3.6.0_11.0
pl1992aw said:
All custom recoveries (TWRP, OrangeFox) cannot decrypt Android 12 data in the meantime, so you will not see any internal storage and cannot mount.
If you want your data, you can try ArrowOS 11, restore data into ArrowOS 11, make sure data works in ArrowOS 11 system boot, then flash ArrowOS 12 without format data.
Some said you can do that, but there's chance it will fail, but since your phone has no personal files, you can try.
There is update of TWRP 3.6.0_11.0
Click to expand...
Click to collapse
Thanks man, does this mean there is no effective way to update the OS on android 12 in any way, no custom roms at least? In that case I'm very confused as to why the update button even is there
sherlockhs03 said:
Thanks man, does this mean there is no effective way to update the OS on android 12 in any way, no custom roms at least? In that case I'm very confused as to why the update button even is there
Click to expand...
Click to collapse
Custom recoveries cannot decrypt internal storage, but can read microSD cards and USB OTG. Remember Poco X3 Pro has microSD slot.
You can also use ADB sideload command in custom recoveries to flash zip files, so ROM updates can be installed this way.
Almost all function of custom recoveries are working, except decrypting internal storage.
pl1992aw said:
Custom recoveries cannot decrypt internal storage, but can read microSD cards and USB OTG. Remember Poco X3 Pro has microSD slot.
You can also use ADB sideload command in custom recoveries to flash zip files, so ROM updates can be installed this way.
Almost all function of custom recoveries are working, except decrypting internal storage.
Click to expand...
Click to collapse
alright, thanks a lot, have a good one

Categories

Resources