mi5 TWRP wipe - Xiaomi Mi 5 Questions & Answers

i have 4 questions, with short answers
my MI5 has TWRP3.1 + root+ bootloader unlocked+ global developer rom 8.3
all ok perfect. with TWRP i did factory reset ( which contains data and chache wipe) to have everything clean.
But
i still have some old application folders, files, even my old media inside the phone!
how to clean them? i want to delete all files which is not about new system.
1) in TWRP;
advanced - wipe system
or
advanced - wipe internal storage?
which one?
2) and if i delete all, i want to reflash new rom without quiting from TWRP,
, but new rom zip file will be deleted also i think ! so how can i reflash?
3)
i ve changed imei number of my phone , i hope my new imei number will not be deleted?

1. You also need to wipe internal storage.
2. You can still use mtp to pc or usb otg in twrp.
3. I don't know, sorry.

kazzien said:
1. You also need to wipe internal storage.
2. You can still use mtp to pc or usb otg in twrp.
3. I don't know, sorry.
Click to expand...
Click to collapse
thanks,
while on TWRP its possbile to mtp to pc, but
after internal storage wipe, its not possbile to mtp to pc while on TWRP.
so, without quiting twrp screen, i used adb side load option of TWRP and flashed the rom from PC. ( i dont have otg cable)
and now its full clean system :good::good:
EDiT: imei numbers still exists.

gimmeluck2 said:
thanks,
while on TWRP its possbile to mtp to pc, but
after internal storage wipe, its not possbile to mtp to pc while on TWRP.
so, without quiting twrp screen, i used adb side load option of TWRP and flashed the rom from PC. ( i dont have otg cable)
and now its full clean system :good::good:
EDiT: imei numbers still exists.
Click to expand...
Click to collapse
After wiping internal storage, reboot twrp and reconnect to pc again. This way you can see internal storage in pc.

Flash zips via Adb Sideload is very useful when you have a computer with ADB cmd.

You can easily use MTP from TWRP.
or get an OTG cable.
As you changed your IMEI, Keep a backup of EFS partition from TWRP and upload it to Google drive.
if you get any error on network then just restore the efs backup from twrp.

Z4HD said:
Flash zips via Adb Sideload is very useful when you have a computer with ADB cmd.
Click to expand...
Click to collapse
Please advise the command Adb Sideload to upload the zip file.
Thanks

Related

Need Help Quick plz :|

hi dears,
i lost my sdcard then in twrp i wipe internal storage my sd card (now have 26GBs free) turned back
but after flash any rom , sense UI Stopped , even i cant access to my sdcard via PC
whats wrong ?? help quick if you can plz :|
armindelavari said:
hi dears,
i lost my sdcard then in twrp i wipe internal storage my sd card (now have 26GBs free) turned back
but after flash any rom , sense UI Stopped , even i cant access to my sdcard via PC
whats wrong ?? help quick if you can plz :|
Click to expand...
Click to collapse
Which recovery version? Have you tried "Format Data" reboot recovery. adb push and install rom?
If your with TWRP 2.8.4.0 you can use MTP instead of push
Reply
Danny201281 said:
Which recovery version? Have you tried "Format Data" reboot recovery. adb push and install rom?
If your with TWRP 2.8.4.0 you can use MTP instead of push
Click to expand...
Click to collapse
TWRP 2.6.3.3, yes i try wipe internal storage and no i dont try push rom ? how can i push rom ??
armindelavari said:
TWRP 2.6.3.3, yes i try wipe internal storage and no i dont try push rom ? how can i push rom ??
Click to expand...
Click to collapse
I don't mean wipe internal storage. "Format Data" is not the same as Wiping Internal Storage. Format Data will wipe everything by deleting the System Data and Boot Partition. You must reboot recovery after format to write the new partition structure then push a new Rom to the phone with adb.
In twrp go to "Wipe" then "Format Data" you will be prompted to type yes to confirm.
When it's done go to the reboot menu and reboot recovery. You will get the No OS installed message. Reboot anyway, you will also be prompted to root the device say No.
When your back in recovery connect your usb cable. Put your Rom in your fastboot folder and rename it rom.zip
In the command window type.
Code:
adb push rom.zip /sdcard
The command window will appear unresponsive until the push complete (Several Minutes) When it's done Install the Rom with twrp :good:
@armindelavari Check the adb push command. I noticed I had a space missing. I have edited it so it's correct now :good:
Danny201281 said:
I don't mean wipe internal storage. "Format Data" is not the same as Wiping Internal Storage. Format Data will wipe everything by deleting the System Data and Boot Partition. You must reboot recovery after format to write the new partition structure then push a new Rom to the phone with adb.
In twrp go to "Wipe" then "Format Data" you will be prompted to type yes to confirm.
When it's done go to the reboot menu and reboot recovery. You will get the No OS installed message. Reboot anyway, you will also be prompted to root the device say No.
When your back in recovery connect your usb cable. Put your Rom in your fastboot folder and rename it rom.zip
In the command window type.
Code:
adb push rom.zip/sdcsrd
The command window will appear unresponsive until the push complete (Several Minutes) When it's done Install the Rom with twrp :good:
Click to expand...
Click to collapse
wow , tnx for your complete Reply
ok , i do these step right now

[Q] HELP Deleted internal in TWRP

This is the first time I've done this so I have NO idea how to fix it . I was just flashing a new rom
when I accidently checked off system in WIPE. Everything is gone obviously. Can someone please tell me what to do from here? I have no access to a computer till later today. Any help is appreciated thank you!
Update: internal storage is also deleted. The phone has nothing. No OS what so ever.
What do i do?
Thanks for any help
You deleted system or internal storage? If just system then reflash the rom. The zip should still be on your phone
your sdcard contents are still there, since sdcard "lives" in /data/media NOT in /system
proceed to flash whatever ROM+gapps you were going to install, wiping system is actually one of the steps many people do when doing a clean install
if internal storage is deleted you have 2 options
1. copy ROM and gaps on a USB flash drive , use a OTG cable to connect them, reboot into recovery , mount USB-OTG, you can install whatever zips you have on the flash drive
2. push the files to the sdcard from your computer using ADB push
sgloki77 said:
if internal storage is deleted you have 2 options
1. copy ROM and gaps on a USB flash drive , use a OTG cable to connect them, reboot into recovery , mount USB-OTG, you can install whatever zips you have on the flash drive
2. push the files to the sdcard from your computer using ADB push
Click to expand...
Click to collapse
TWRP Supports MTP connections. Plug the phone in via USB then go into "Mounts" and "enable MTP". Then just drag and drop the files into internal storage
the babadook! ?

Unable to update CM13

Hello guys, i was trying to update my CM 13 today and it didn't work. It made the download but once in the recovery, nothing happened :S i'm trying to understand why and i hope some of you know of this.
By the way, my TWRP version is the 2.8.7.0 if it helps..
ugh...Can't really understand what happened
You installed via OTA/cm updater? meaning you downloaded with your phone
Just download the zip directly and flash it with twrp
You'll also need to re-flash gapps unless you're using TWRP 3.0.0
Make sure that you have not installed any additional mods which alters system partition (kernels, soundmods etc.) If not, easiest solution would be to dirtyflash new one or clean install.
Same problem here.
405. CM13. TWRP 3.0.0. Merged SD card with internal storage.
In Recovery I can see folder structure but no files. I know its because of SD-encryption but I hoped I could at least see files in internal storage to update. Hope there's a solution soon. Does anyone have a workaround?
Gesendet von meinem LG-D405 mit Tapatalk
Filesystem of sdcard mount point
What is your /sdcard mount point filesystem? Mine is 'auto' (Maybe that might be causing the problem?) , and you can check by going into TWRP -> Wipe -> sdcard -> Repair or Change File System
Thank you for your answer. I checked that quickly, but couldn't find the option 'repair or change filesystem' without actually wiping the storage... I'll check again later if there's more time.
I found and changed the option from exFAT to ext4. All folders on the SD were lost in TWRP. Changed back to exFAT: couldn't see them either..
When using adopted storage (i.e. formatting external SD and using it as internal storage), then /sdcard in Android becomes /emmc in TWRP. At least it's what I see here using TWRP 3.0.0 Dark Blue.
From what I've looked, all internal storage is used only for app and app data once I started using adopted storage, so the only way I can think of using internal storage in TWRP to flash anything is either sideloading or using MTP in TWRP.
I managed updating through sideload.
1. Connect your phone to your computer via USB
2. Activate sideload in TWRP (advanced)
3. In platform-tools folder press Shift+right click to open commandline
4. If your device is connected properly ('adb devices') you can sideload zips (in platformfolder) via the command 'adb sideload filename.zip'
5. Restart device. Note: It took a few minutes for all apps to appear in the appdrawer again.
Thank you all for your help! I will looks after the folder emmc, but as I see no files, just folders anywhere, I am not that hopeful. But at least it works now
kreativpause said:
I managed updating through sideload.
1. Connect your phone to your computer via USB
2. Activate sideload in TWRP (advanced)
3. In platform-tools folder press Shift+right click to open commandline
4. If your device is connected properly ('adb devices') you can sideload zips (in platformfolder) via the command 'adb sideload filename.zip'
5. Restart device. Note: It took a few minutes for all apps to appear in the appdrawer again.
Thank you all for your help! I will looks after the folder emmc, but as I see no files, just folders anywhere, I am not that hopeful. But at least it works now
Click to expand...
Click to collapse
What did you wipe prior to your sideload? I want to do a wipe and fresh install of gapps and cm13, but I am afraid I could soft brick my phone.
I chose both. Dalvik and the other option ( I believe cache). No issues.
kreativpause said:
I chose both. Dalvik and the other option ( I believe cache). No issues.
Click to expand...
Click to collapse
Mine gets stuck at "detected filesystem ext4 for /dev/block/platform/msm_sdcc.1/by-name/system" then it just reboots to TWRP again. Sideload says "
serving: 'cm-13.0-20160322-NIGHTLY-w7.zip' (~0%) * failed to read command: No error". Did you wipe system before you sideloaded?
I did not wipe anything beforehand.

Access fastboot after full wipe

Will I be able to get into fastboot after full wipe (including internal storage) in TWRP? I made a huge mistake and I can't go into /sdcard via PC to push .zip file to flash it. ADB sideload doesn't work, only shows "error: closed".
Hope that friends have OTG to put smth on disk, but I don't have for this right now :crying: Any ideas?
mop3c said:
Will I be able to get into fastboot after full wipe (including internal storage) in TWRP? I made a huge mistake and I can't go into /sdcard via PC to push .zip file to flash it. ADB sideload doesn't work, only shows "error: closed".
Hope that friends have OTG to put smth on disk, but I don't have for this right now :crying: Any ideas?
Click to expand...
Click to collapse
Yes you can.. do you mean you can't connect as mtp to pc while in twrp..?, anyway what twrp version you're using it..?, did you already mount internal before connect it to pc..?
You should be able to flash the MIUI fastboot roms still.
@JJeamy:
Well, I've managed to flash TWRP once again and I had access to everything. Propably full wipe messed priviliges to access Thanks for help ?

Help! Tried to install custom rom and now internal storage is encrypted

So i tried to install a custom rom, now my storage is encrypted and i can't install apps or anything on my device.
I unlocked the bootloader, install twrp, it didn't ask me for a password however. I then did advanced wipe, system data cache.
I then couldn't copy anything to my internal storage, so reflashed miui using miflash tool.
My device is working fine, but when plugged in, all the folders on my internal storage come up as random numbers and letters (which i assume means its encrypted). I have tried downloading something via chrome and it says "sd card not found".
I really hope someone can help me.
Thanks!
Hi ! Do you can resolve your problem ?
I'm not expert but I think reboot to Twrp and format your data . Advanced format data yes and flash your Rom. But I don't no if you do to flash the DM Verity Encryption remover before flash your Rom ?
Stay for expert help you..
ha2ell said:
So i tried to install a custom rom, now my storage is encrypted and i can't install apps or anything on my device.
I unlocked the bootloader, install twrp, it didn't ask me for a password however. I then did advanced wipe, system data cache.
I then couldn't copy anything to my internal storage, so reflashed miui using miflash tool.
My device is working fine, but when plugged in, all the folders on my internal storage come up as random numbers and letters (which i assume means its encrypted). I have tried downloading something via chrome and it says "sd card not found".
I really hope someone can help me.
Thanks!
Click to expand...
Click to collapse
I faced similar issue when flashing custom rom.
I did some research and found out that, I have to wipe data first, reboot to fastboot (in TWRP). Boot into TWRP again using DOS shell prompt.
In this way, your phone will not be encrypted, allowing file transfer and flash from TWRP.
Hope it helps.
Hi, I managed to fix it by flashing the latest miui fastboot ROM again using mi flash tool, and then restoring a backup of my system from Google drive and miui when setting up the phone. I think I will try to flash a ROM again at some point. What do you mean by DOS shell prompt? Thanks
You need flash Forced Encryption Disabler to remove encryption of the folders. In TWRP, flash zip and reboot to recovery.
This is link to download. https://androidfilehost.com/?fid=3700668719832238534
ha2ell said:
Hi, I managed to fix it by flashing the latest miui fastboot ROM again using mi flash tool, and then restoring a backup of my system from Google drive and miui when setting up the phone. I think I will try to flash a ROM again at some point. What do you mean by DOS shell prompt? Thanks
Click to expand...
Click to collapse
im facing the same problem now. the files are all jumbled up letters, do i need to format the device before using mi flash tool?

Categories

Resources