Help!! Erease OS D: - Xiaomi Mi 5 Questions & Answers

Hi! I accidenttly ereased my os via twrp, i tried to flash rom via adb but my computer doesnt recognizes the device, i have no backup and no SD card, twrp is the only thing that still works
can anyone help me?? D:

adb sideload (try reinstalling drivers on pc)

PC doesn't recognize on ADB?
Then just copy a zip file from your pc to the phone storage via file manager and install the os on your phone.

twrp> adb sideload
PC>CMD> adb sideload os*.zip> adb sideload gapps*.zip

Related

[Q] How do i flash a file to internal sdcard?

My HTC ONE wont mount via usb so i'm trying to flash a custom rom to the phone's internal storage (as it has no sdcard slot)
I have got as far as opening the CMD and directing it to the device but i dont know the proper command to ADD a zip file to the storage
anyone pls help, i think this is fairly simple
You're supposed to be using ADB commands in order to sideload a ROM and then install it from recovery.
Is that what you are trying to do or how are you going about it? Are you trying to use fast boot commands? Because those won't work.
Here's a guide to setting up ADB:
http://www.howtogeek.com/125769/how-to-install-and-use-abd-the-android-debug-bridge-utility/
You'll need proper drivers for your computer to recognise your device in ADB mode, and those are automatically installed with HTC Sync Manager.
After placing the ROM file into the platform-tools folder, rename it to rom.zip and then execute the following command:
adb sideload rom.zip
Of course that's after making sure that your device is actually recognised by ADB and listed in command prompt, by using this code:
adb devices
Good luck
Ok great i think i have adb and most of the drivers already installed so i'll give this a go.
yes my ONE got stuck in bootloop with CM10.1 and my backups are on my PC not the phone so i figured i'd mount by USB but neither TWRP or CWM will mount by USB????
I have CWM touch installed so i'm thinking as long as this is in place my device isn't tottally shafted?
Use the command:
Code:
adb push name_of_rom.zip /sdcard/0
or
Code:
adb push name_of_rom.zip /data/media
when you're in CWM, then flash the rom
Drag and drop it to the storage folder. Should be
/storage/sdcard0
And you can use ftp WiFi from the playstore if you don't wanna connect via usb cable.
I've resolved this now.
i'll explain what i did, it may help someone else out:
I went into CWM
Then i formatted the internal sdcard
Once i did that, an option in CWM appeared to sideload zip, i picked that, then it waited for the sideload command
went to folder on my PC containing adb.exe > hold shift > right click > open command here
then typed "adb sideload <romname>"
thanks for the help, good community here.
Yes, that's the correct way. And by the way, you cannot mount usb storage while you're in recovery anymore, neither TWRP nor CWM will do that for you. The only other option is using an OTG cable.

no OS no rom flashable in the memory

I've made a mistake,
I've wiped all with twrp:
system,
boot,
cache,
internal storage
So I've no OS and no flashable zip in the device.
I've tried to use ADB sideload, but i'm not able to use. I've drivers installed in the pc, but mobile phone is not recognised (other driver missing???).
Fastboot is working and the device is recognized.
Is it possible to flash a rom via fastboot, in this current status?
Or how to make it working the ADB shell? what is missing??
Thank you all.
Please save my phone!
eternasparta said:
I've made a mistake,
I've wiped all with twrp:
system,
boot,
cache,
internal storage
So I've no OS and no flashable zip in the device.
I've tried to use ADB sideload, but i'm not able to use. I've drivers installed in the pc, but mobile phone is not recognised (other driver missing???).
Fastboot is working and the device is recognized.
Is it possible to flash a rom via fastboot, in this current status?
Or how to make it working the ADB shell? what is missing??
Thank you all.
Please save my phone!
Click to expand...
Click to collapse
hi there,
have you even bothered looking, or searching?? pretty much every thread has the info you need.
if you had bothered looking at the the Frequently Asked Question sticky including page 3
you would have your answer
or any of the other Q&A thread, for example: http://forum.xda-developers.com/showpost.php?p=52396849&postcount=11
Sounds like you need to download the right drivers for Windows and adb push a rom zip on over. If your having no luck with Windows, load up a live cd or usb of Ubuntu and install adb there.
Good luck and happy searching.
it is possible to flash a ROM/ RUU via fastboot but you should install the right ADB to your PC. other way, mount your storage via TWRP, copy your ROM to your storage, then flash it.
zigyna said:
it is possible to flash a ROM/ RUU via fastboot but you should install the right ADB to your PC. other way, mount your storage via TWRP, copy your ROM to your storage, then flash it.
Click to expand...
Click to collapse
thank you all.
I've obviously seen the faq, but nothing was working.
however, ad have you said I've to install the right ADB on my pc. In fact adb was not working because drivers was not working.
I've resolved doing the following.
Remove manually drivers from windows, install manually drivers, restart windows :good:
:good::good::good: adb now is working
Thank you for the support

help with xperia z1 custom rom installing

I have an xperia z1 C6902 and now I want to flash custom roms into it. The problem is I have a dead sd card slot, which prevents me from installing rom the normal way. I have searched over the internet and find out how to use the adb sideload mode, but when I enter adb sideload mode in TWRP recovery, it just says "starting adb sideload mode...." forever. What should I do? Any help would be appreciated
EDIT: Turns out I was missing a driver in windows. Now I can get adb to recognize device but when I use "adb sideload xxx.zip" it returns "cannot read xxx.zip"
spiwar said:
I have an xperia z1 C6902 and now I want to flash custom roms into it. The problem is I have a dead sd card slot, which prevents me from installing rom the normal way. I have searched over the internet and find out how to use the adb sideload mode, but when I enter adb sideload mode in TWRP recovery, it just says "starting adb sideload mode...." forever. What should I do? Any help would be appreciated
EDIT: Turns out I was missing a driver in windows. Now I can get adb to recognize device but when I use "adb sideload xxx.zip" it returns "cannot read xxx.zip"
Click to expand...
Click to collapse
I fixed the adb problem by installing another recovery

Stuck on Boot After installing SuperSU Binary [URGENT][Solved]

[Update]: Now it says no OS installed in TWRP. I think I have wiped the os by mistake. Just need to know how to install cm13 image using fastboot or ADB. Please help!
I wasn't aware if SuperSU works with CM13 and I installed the app, on request to update the binaries, I selected TWRP/CWM method because the normal mode didn't work. After the reboot the phone won't load into os, its stuck on the CM boot screen. I don't have a CM image on my sd therefore unable to flash again either. Is there a way to push files (cm img) to my phone? I have adb/adb over network enabled as well from developer options. I just need a way to put files into my sd card and flash using TWRP. Please help! this is urgent! :crying:
[SOLVED][HOW TO]
This is in a situation where you've messed up your system and don't have the image file stored in your sd card for quick flashing. Make sure you're using the latest USB drivers and ADB binaries 1.0.32+
- Get into TWRP
- Swipe to ADB Sideload and enable it
- On your desktop, open command and type "Adb sideload filename.zip" [Filename here is the filename of your flashable zip/rom]
- Once you the installation finishes, reboot twrp normally into system
dibyajyoti said:
I just need a way to put files into my sd card and flash using TWRP. Please help! this is urgent! :crying:
Click to expand...
Click to collapse
Have you tried enabling MTP in TWRP and using a computer to transfer the image over?
Contact me if you have any questions.
R55770 said:
Have you tried enabling MTP in TWRP and using a computer to transfer the image over?
Contact me if you have any questions.
Click to expand...
Click to collapse
MTP shows as enabled - But the device doesn't show up in my pc. I'm connected through USB in TWRP recovery. I have android debugging also enabled, when trying adb push command, it shows adb devices attached as empty.
[Update]: I am trying to push the file using ADB Sideload in TWRP, the error I get is my adb needs to be updated to 1.0.32. How do i get updated adb 1.0.32?
[Update 2]: So I managed to update by ADB on desktop, and push the zip file using adb sideload in twrp. The zip is being installed as I write this. Lets hope this works!
[Update 3]: Got the rom to install via ADB sideload, though all my apps and settings are gone Anyway, I got the phone back for immediate use. Phew!
dibyajyoti said:
MTP shows as enabled - But the device doesn't show up in my pc. I'm connected through USB in TWRP recovery. I have android debugging also enabled, when trying adb push command, it shows adb devices attached as empty.
[Update]: I am trying to push the file using ADB Sideload in TWRP, the error I get is my adb needs to be updated to 1.0.32. How do i get updated adb 1.0.32?
[Update 2]: So I managed to update by ADB on desktop, and push the zip file using adb sideload in twrp. The zip is being installed as I write this. Lets hope this works!
[Update 3]: Got the rom to install via ADB sideload, though all my apps and settings are gone Anyway, I got the phone back for immediate use. Phew!
Click to expand...
Click to collapse
Great. Thanks for letting us know.

Wiped internal storage. Only have old TWRP recovery. How can I recover phone?

I can't see the device when I connect it to my laptop. ADB can't see it. I can't mount an OTG cable.
I've got a custom ROM downloaded (CM) but I don't know how to get it on to the phone to be able to install it?
Start adb sideload within TWRP
The on your pc open a command prompt / terminal and type - adb sideload rom.zip (rom.zip being the rom you downloaded)

Categories

Resources