I'm trying to flash MM as the battery life on Nougat isn't that great.
However when I try and sideload the stock ROM which was downloaded from the OnePlus site I get an error - ADB sideload cannot read file.
I've tried everything possible to fix the issue - even made sure that the file is in the correct folder when opening the CMD prompt, renamed the file, checked YouTube and XDA using search and found a few threads but I'm still having the same issue.
I have a C Type external USB drive to hand. Is it possible I can copy over the update file and flash from there?
Related
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.
Recently i wanted to a full wipe including internal storage on my nexus 5 and since nexus 5 does not have external storage i found it a bit tricky to flash a rom again...
so,here im going to explain the easiest and simplest way to install a rom via adb sideload on nexus 5 using TWRP after a complete wipe
I am not responsible for bricked devices.
Please do some research if you have any concerns about adb sideload
BACKUP YOUR DATA FIRST
1.Download the file and place it on desktop View attachment Nexus5.zip
2.boot your device into recovery, wipe everything and connect it to pc and make sure drivers are installed. if not do as follows:
open device manager in control panel and if drivers are already installed, it shows something like ANDROID ADB INTERFACE,
if not,it shows some name with yellow symbol..
right click on it and select update drivers and select browse my computer and select let me pick..
click next > have disk>browse> and select the usb_drivers in downloaded file> open > open > ok
now it shows as ANDROID ADB INTERFACE..
3.In TWRP, select advanced and choose sideload option.
4.open command prompt and change the directory to where you downloaded the file ( easy if on desktop )
to open command prompt: win+r>cmd
for changing directory: cd desktop > cd nexus5
5.Now type adb devices in command prompt and it should show list of devices with your device code name and mode as sideload mode.
if not install drivers again.
6.copy your ROM zip file to the folder 'Nexus5' which you downloaded.
7.type adb sideload romzipname
8.now it starts copying and wait till it shows 100%. after copying it automatically starts installing.
when the installing is finished,it shows reboot system. reboot and njoy :highfive:
Note: If stuck while flashing rom, hold power and volume down until it reboots to fastboot then go to recovery and repeat the same procedure.
Please hit the 'thanks' if this helped you.
jaj473 said:
Recently i wanted to a full wipe including internal storage on my nexus 5 and since nexus 5 does not have external storage i found it a bit tricky to flash a rom again...
so,here im going to explain the easiest and simplest way to install a rom via adb sideload on nexus 5 using TWRP after a complete wipe
I am not responsible for bricked devices.
Please do some research if you have any concerns about adb sideload
BACKUP YOUR DATA FIRST
1.Download the file and place it on desktop View attachment 2461684
2.boot your device into recovery, wipe everything and connect it to pc and make sure drivers are installed. if not do as follows:
open device manager in control panel and if drivers are already installed, it shows something like ANDROID ADB INTERFACE,
if not,it shows some name with yellow symbol..
right click on it and select update drivers and select browse my computer and select let me pick..
click next > have disk>browse> and select the usb_drivers in downloaded file> open > open > ok
now it shows as ANDROID ADB INTERFACE..
3.In TWRP, select advanced and choose sideload option.
4.open command prompt and change the directory to where you downloaded the file ( easy if on desktop )
to open command prompt: win+r>cmd
for changing directory: cd desktop > cd nexus5
5.Now type adb devices in command prompt and it should show list of devices with your device code name and mode as sideload mode.
if not install drivers again.
6.copy your ROM zip file to the folder 'Nexus5' which you downloaded.
7.type adb sideload romzipname
8.now it starts copying and wait till it shows 100%. after copying it automatically starts installing.
when the installing is finished,it shows reboot system. reboot and njoy :highfive:
Note: If stuck while flashing rom, hold power and volume down until it reboots to fastboot then go to recovery and repeat the same procedure.
Please hit the 'thanks' if this helped you.
Click to expand...
Click to collapse
in the cmd prompt it keeps telling me it cannot read my rom file. any helpm please?
b_rangel29 said:
in the cmd prompt it keeps telling me it cannot read my rom file. any helpm please?
Click to expand...
Click to collapse
Did you copy the rom file to Nexus5 folder?
Why not use WugFresh's tool.... that thing does everything.
Sent from my Nexus 5 using Tapatalk
We try to discourage the use of toolkits as they remove the "ability" element or the "learning" aspect.
Doing things manually teaches the skills to get out of trouble later on.
Sent from my Nexus 5 using Tapatalk
try to update usb driver. browse the file inside dowloaded file but it came result windows was unable to instal your nexus 5
i'm using windows 7
any sugestions?
Help
So, I have/had a N5 on stock 4.4.4 rom, rooted & Xposed installed with TWRP & a lollipop preview on MultiRom.
Was installing the new Lollipop .zip. In an act of hurried stupidity, I wiped my phone, including the internal storage.
Which for some reason also wiped my NANDROID backup. I thought that is not supposed to be wiped even when doing an internal storage wipe, BUT it did.
Now, all i have is TWRP on my phone with no rom installed.
I tried connecting my phone to the pc to see if i can just transfer the rom file onto the internal memory, but nothing shows up when i connect my phone to PC.
after some searching, I ended up in this thread.
The problem is, when i connect my phone to the PC, the phone doesn't show up in the device manager.
So i cannot install the drivers & android SDK itself.
So, How do i Install a rom onto it?
I have a PC & a MAC, so i can use either of the machines. But i don't have much technical knowledge about stuff, I did all the above modifications with the help of tutorials & guids. so ELI5 please.
Please help!
Thank you.
Jugal.PM said:
So, I have/had a N5 on stock 4.4.4 rom, rooted & Xposed installed with TWRP & a lollipop preview on MultiRom.
Was installing the new Lollipop .zip. In an act of hurried stupidity, I wiped my phone, including the internal storage.
Which for some reason also wiped my NANDROID backup. I thought that is not supposed to be wiped even when doing an internal storage wipe, BUT it did.
Now, all i have is TWRP on my phone with no rom installed.
I tried connecting my phone to the pc to see if i can just transfer the rom file onto the internal memory, but nothing shows up when i connect my phone to PC.
after some searching, I ended up in this thread.
The problem is, when i connect my phone to the PC, the phone doesn't show up in the device manager.
So i cannot install the drivers & android SDK itself.
So, How do i Install a rom onto it?
I have a PC & a MAC, so i can use either of the machines. But i don't have much technical knowledge about stuff, I did all the above modifications with the help of tutorials & guids. so ELI5 please.
Please help!
Thank you.
Click to expand...
Click to collapse
Read here - http://forum.xda-developers.com/showthread.php?p=48915118
Sent from my Android 5.0 Nexus 5
accidently wiped internal memory in lenovo p1m
i accidently wiped internal memory using twrp. so now can i flash a custom rom for my lenovo p1m
So I am going to go sell my HTC One and I wanted to remove the root and revert back to stock. Without thinking twice I deleted everything on the phone and all that remains is TWRP. I have downloaded the stock rom but where I am running into trouble is that my computer is detecting the HTC One as a CD drive. I have tried multiple different solutions that I have read online and cannot seem to fix it. I am just trying to put the stock zip file onto the phones internal memory. I am able to access recovery and twrp. I am just unable to figure out what I need to do to have my computer recognize my phone.
KorayC said:
So I am going to go sell my HTC One and I wanted to remove the root and revert back to stock. Without thinking twice I deleted everything on the phone and all that remains is TWRP. I have downloaded the stock rom but where I am running into trouble is that my computer is detecting the HTC One as a CD drive. I have tried multiple different solutions that I have read online and cannot seem to fix it. I am just trying to put the stock zip file onto the phones internal memory. I am able to access recovery and twrp. I am just unable to figure out what I need to do to have my computer recognize my phone.
Click to expand...
Click to collapse
You need to use adb commands to push or sideload a rom while in twrp recovery.
Put the Rom file in your adb/fastboot folder and rename it rom.zip. Open your adb/fastboot command window.
Boot phone to twrp and connect usb.
In the command window type
Code:
adb push rom.zip /sdcard
The command window will appear unresponsive until the push completes (several minutes)
When it's done install the Rom with twrp recovery.
Sent from my HTC One M7 - ARHD 82.0 Using Tapatalk
If you found my posts helpful, Please click thanks :good:
Danny201281 said:
You need to use adb commands to push or sideload a rom while in twrp recovery.
Put the Rom file in your adb/fastboot folder and rename it rom.zip. Open your adb/fastboot command window.
Boot phone to twrp and connect usb.
In the command window type
Code:
adb push rom.zip /sdcard
The command window will appear unresponsive until the push completes (several minutes)
When it's done install the Rom with twrp recovery.
Sent from my HTC One M7 - ARHD 82.0 Using Tapatalk
If you found my posts helpful, Please click thanks :good:
Click to expand...
Click to collapse
You just saved me the biggest headache ever.... thank you so much.
KorayC said:
You just saved me the biggest headache ever.... thank you so much.
Click to expand...
Click to collapse
I can assume your back up then :good: good job.
Glad I could help
Sent from my HTC One M7 - ARHD 82.0 Using Tapatalk
If you found my posts helpful, Please click thanks :good:
[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.
I am stuck. I tried to update to OREO and the update wouldnt take. I kept saying that update is for "oneplus 3t" and you have " ". I wiped device and have been trying to get an OS back on my device. I tried using ADB with ADB sideload through TWRP and the Command Prompt but I get an error "you need adb 1.0.32 or newer to sideload to this. My ADB is version 1.1.3 and TWRP is 3.1.1-2
I dont know what else to do........
Try a slightly older version of ADB. Also make sure you kill the old adb.exe in taskmanager since it runs on the background.
Read the OP in the official Open Beta 16 forum. All answers are there.
zdaddi said:
I am stuck. I tried to update to OREO and the update wouldnt take. I kept saying that update is for "oneplus 3t" and you have " ". I wiped device and have been trying to get an OS back on my device. I tried using ADB with ADB sideload through TWRP and the Command Prompt but I get an error "you need adb 1.0.32 or newer to sideload to this. My ADB is version 1.1.3 and TWRP is 3.1.1-2
I dont know what else to do........
Click to expand...
Click to collapse
Did you follow all the steps correctly? I think this occurs when one doesn't flash the right firmware beforehand. I also believe that you require an oreo compatible recovery such as blu spark.
All the flashing instructions are in the 2nd post of this thread: https://forum.xda-developers.com/oneplus-3t/how-to/coming-update-oos-based-7-1-t3564240
Here is the Zip file containing edited xml files to stop unbrick tool to erase your internal data.
Link to edited script : https://drive.google.com/open?id=0Byn304jb_hlqZ29XM1oxUUZwbzg
(Personally I made , Tested and used these files and successfully recovered device without data loss)
Link to the unbrick tool download : https://mega.nz/#!Q1YnTTAT!gnLf6NEkSRy7W-WY8J0H2SmJJLzO91-vReKx7B1VVpI
Thread : https://forum.xda-developers.com/oneplus-3t/how-to/unbrick-unbrick-tutorial-oneplus-3t-t3515306.
Steps to be followed :
1. Download the unbrick tool
2. Extract the Zip File.
3. Download my edited script zip file.
4. Extract the zip and copy and replace the extracted files in the unbrick tool.
5. Follow the steps in the unbrick thread .
Dont forget to hit Thanks Button ............
Sent from my OnePlus3T using XDA Labs
Push the ROM to your phone using the adb push command and flash from your phone