HTC One M8 stuck in boot loop cannot "adb push" help! - One (M8) Q&A, Help & Troubleshooting

My HTC One M8 from AT&T got stuck in a boot loop after I unlocked it, put a custom recovery on it, and then tried to put a custom ROM on it.
I tried to put InsertCoin on there and it got stuck in a boot loop for some reason.
I got the SDK kit and tried doing a adb push my NANDroid I did originally (before trying the ROM) and so I have my NANDroid backup.
I just can't push anything to my SDCard because it keeps saying "adb shell ls /mnt/sdcard/" no such file or directory exists
same thing with "adb shell ls /sdcard/" no such file or directory exists.
I have my NANDroid backup (before the soft brick) and, a new ROM (Viper One M8 2.3.0)
so how do I "adb push" a file onto a filesystem that I have no access to?
adb push viperOne.zip /sdcard says "protocol failure"
It's as if I have no rights to push anything.
When I try to "install from .zip" it says "unable to mount SDCard"
Is there anything we can do to push? Is it because i'm not successfully rooted?

technocrat7 said:
My HTC One M8 from AT&T got stuck in a boot loop after I unlocked it, put a custom recovery on it, and then tried to put a custom ROM on it.
I tried to put InsertCoin on there and it got stuck in a boot loop for some reason.
I got the SDK kit and tried doing a adb push my NANDroid I did originally (before trying the ROM) and so I have my NANDroid backup.
I just can't push anything to my SDCard because it keeps saying "adb shell ls /mnt/sdcard/" no such file or directory exists
same thing with "adb shell ls /sdcard/" no such file or directory exists.
I have my NANDroid backup (before the soft brick) and, a new ROM (Viper One M8 2.3.0)
so how do I "adb push" a file onto a filesystem that I have no access to?
adb push viperOne.zip /sdcard says "protocol failure"
It's as if I have no rights to push anything.
When I try to "install from .zip" it says "unable to mount SDCard"
Is there anything we can do to push? Is it because i'm not successfully rooted?
Click to expand...
Click to collapse
The recovery does not require root as root is a thing for the Android system. You could always try doing adb sideload and using the command 'adb sideload viperOne.zip', that will sideload the ROM to your device and flash it. An alternative thing to try would be going into the 'Mount' section of your recovery and checking /system, /data, /cache & /boot and re-attempting it. If all else fails then you could attempt to do 'Format data' from the wiping section (take note these are for TWRP, not so sure about CWM).
Also all you need is the 'platform-tools' folder of the sdk. Lastly I would only recommend doing the 'Format data' option after you've tried everything else. If you don't really care about losing your pictures, music, etc then you don't really need to avoid it.

S1L3nTShaDoWz said:
The recovery does not require root as root is a thing for the Android system. You could always try doing adb sideload and using the command 'adb sideload viperOne.zip', that will sideload the ROM to your device and flash it. An alternative thing to try would be going into the 'Mount' section of your recovery and checking /system, /data, /cache & /boot and re-attempting it. If all else fails then you could attempt to do 'Format data' from the wiping section (take note these are for TWRP, not so sure about CWM).
Also all you need is the 'platform-tools' folder of the sdk. Lastly I would only recommend doing the 'Format data' option after you've tried everything else. If you don't really care about losing your pictures, music, etc then you don't really need to avoid it.
Click to expand...
Click to collapse
When trying ADB Sideload, it would always get to 64% and then fail.
Also if I go to "wipe factory data" through philZ, then what will that do?
This all happened when I put InsertCoin on it.

I don't know much about AT&T device as this is more of an Int'l GSM forum and I don't use recovery other than TWRP.
But ... this is basic things that should work for any device when you don't have an external sdcard. If you have one, just put the ROM.zip on it and install in recovery.
If there is no sdcard, Push the ROM.zip to internal sdcard
Put a ROM.zip in your adb/fastboot folder
Put your device in recovery then check the data is mounted
(TWRP - mount - data checked, other recovery maybe - mount & storage - mount data)
Then adb push it to internal sdcard
command : adb push ROM.zip /data/media/0/

That worked, thank you!
And it should be the same no?
I heard TWRP and PhilZ 6 were pretty much the same. I actually heard better things about PhilZ than TWRP

technocrat7 said:
That worked, thank you!
And it should be the same no?
I heard TWRP and PhilZ 6 were pretty much the same. I actually heard better things about PhilZ than TWRP
Click to expand...
Click to collapse
No comparison ... I prefer to try on my own and decide which is better rather then just swallow what people said.
And I like the simplicity of TWRP ... so it's personal preference, that's all that I can say

That's what I would've said too.
But the way you made it sound in your other post made it sound like TWRP can do more than PhilZ or something
I personally like Philz better, but yeah

technocrat7 said:
But the way you made it sound in your other post made it sound like TWRP can do more than PhilZ or something
Click to expand...
Click to collapse
Not that ... I said that I only use TWRP because the step that I mentioned is correct for TWRP but I'm not so sure for other recovery ... that's why I put the word "maybe" there.
(TWRP - mount - data checked, other recovery maybe - mount & storage - mount data)

Oh I see, and yeah it was pretty much the same. It worked

Related

SD Card not mounting

Out of no where I got a message on my phone, saying that my sd card was unmounted. I wasn't doing anything other than I normally would. Now when I try to access my SD card, it's not even seen by the G2. I've formatted it to FAT32 and nothing, I've restarted the phone multiple times and no dice, and I have given it time to rest. I cannot seem to find the issue with this, but I have heard about some issue with the SD card latch thing. What can I do to fix this issue? Any advice would be greatly welcome
Have you tried another SD card to see if it is the phone or the SD card giving you problems?
Sent from my SilverBullet 'HTCDesireZ running CM7'
Fireflyz said:
Out of no where I got a message on my phone, saying that my sd card was unmounted. I wasn't doing anything other than I normally would. Now when I try to access my SD card, it's not even seen by the G2. I've formatted it to FAT32 and nothing, I've restarted the phone multiple times and no dice, and I have given it time to rest. I cannot seem to find the issue with this, but I have heard about some issue with the SD card latch thing. What can I do to fix this issue? Any advice would be greatly welcome
Click to expand...
Click to collapse
Is it the SD card that came with the g2 or a different one?
I had this happen with a 32GB patriot class 10 I put in my G2. It would corrupt and do the exact same until I full formatted it on a PC. (long story short it's a issue with the sdcard itself and has to be formatted a special way, but it's ONLY THIS CARD).
Try a different card, if a different card works then full format the nonworking card. If that still doesn't work then there may be a off chance (a very very off chance) that the card went bad.
Went to the T-mobile store and tried 2 different sd cards. Neither of them worked... any way to fix this on my own? If not, then can I un-root my G2 without an SD? If I call up costumer care, they'll probably want me to send my G2 in and will notice it has been rooted and such. I heard somewhere that as long as it looks stock, they won't do/say anything... not sure if this is true though..
Fireflyz said:
Went to the T-mobile store and tried 2 different sd cards. Neither of them worked... any way to fix this on my own? If not, then can I un-root my G2 without an SD? If I call up costumer care, they'll probably want me to send my G2 in and will notice it has been rooted and such. I heard somewhere that as long as it looks stock, they won't do/say anything... not sure if this is true though..
Click to expand...
Click to collapse
Yikes, I'm not sure if you can if it can't read a image off the sdcard to flash.
You do have a legit hardware issue that rooting couldn't cause though.
The sd slot is not fixable most likely.
But getting your phone back to stock is.
if you have an eng s-off bootloader you can usually fasboot update the PC10IM.zip if you rename it to update.zip and place it in your adb/fastboot fodler on your pc like so:
fastboot update
ot
fastboot update update.zip
not sure, it's been a while
if you have an s-on bootloader have no fear, you can still get to stock, it's a little more complicated.
find a PC10IMG.zip that has a stock recovery.img in it.
extract it and place it somwhere it is easy to locate and the path is short for ease. like c:\
download a flashable recovery update zip for the stock rom you want to load back on the device. keep it for later.
download this special recovery image:
View attachment CWM-3.0.2.4-sd-spoof.zip
extract the image and flash it from the OS, you'll need to boot your phone first then when it is up and running you need to enable usb debugging and use it to push the recovery image to your /data partition
adb push recovery.img /data
or the path is required if you put it elsewhere like c:\
adb push c:\recovery.img /data
it should be in /data/recovery.img
then open terminal or since you shoudl have adb open you can use 'adb shell' then type enter to enter a root shell
flash_image recovery /data/recovery.img
it should just spir out a
#
that means it's successful, reboot to recovery
now you will be able to push items to the root of your /data folder (or anywhere in /data really)
when you select the flash zip from recovery option it will spoof the /data folder as the /sdcard and display the contents of your /data folder rather than the /sdcard allowing you to flash without needing the sdcard to work.
now flash any stock rom from recovery.
while still in recovery you will need to flash the stock recovery image as well once you verify the stock rom is in place and boots. you will still have CWM but you wont be rooted so flashing from recovery is required. it can be flashed with the same commands you used to flash the other recovery from the OS
if you get a return of error -1 when you try to use the flash_iamge command to flash recovery PM me, i have a fix for that as well. it should be updated though not to do that any more.
ONCE YOU FLASH THE STOCK RECOVERY AND STOCK ROM, unless you manually root again, which will be tricky, you are stuck.
hope this has been helpful.
amazinglarry311 said:
The sd slot is not fixable most likely.
But getting your phone back to stock is.
if you have an eng s-off bootloader you can usually fasboot update the PC10IM.zip if you rename it to update.zip and place it in your adb/fastboot fodler on your pc like so:
fastboot update
ot
fastboot update update.zip
not sure, it's been a while
if you have an s-on bootloader have no fear, you can still get to stock, it's a little more complicated.
find a PC10IMG.zip that has a stock recovery.img in it.
extract it and place it somwhere it is easy to locate and the path is short for ease. like c:\
download a flashable recovery update zip for the stock rom you want to load back on the device. keep it for later.
download this special recovery image:
View attachment 582547
extract the image and flash it from the OS, you'll need to boot your phone first then when it is up and running you need to enable usb debugging and use it to push the recovery image to your /data partition
adb push recovery.img /data
or the path is required if you put it elsewhere like c:\
adb push c:\recovery.img /data
it should be in /data/recovery.img
then open terminal or since you shoudl have adb open you can use 'adb shell' then type enter to enter a root shell
flash_image recovery /data/recovery.img
it should just spir out a
#
that means it's successful, reboot to recovery
now you will be able to push items to the root of your /data folder (or anywhere in /data really)
when you select the flash zip from recovery option it will spoof the /data folder as the /sdcard and display the contents of your /data folder rather than the /sdcard allowing you to flash without needing the sdcard to work.
now flash any stock rom from recovery.
while still in recovery you will need to flash the stock recovery image as well once you verify the stock rom is in place and boots. you will still have CWM but you wont be rooted so flashing from recovery is required. it can be flashed with the same commands you used to flash the other recovery from the OS
if you get a return of error -1 when you try to use the flash_iamge command to flash recovery PM me, i have a fix for that as well. it should be updated though not to do that any more.
ONCE YOU FLASH THE STOCK RECOVERY AND STOCK ROM, unless you manually root again, which will be tricky, you are stuck.
hope this has been helpful.
Click to expand...
Click to collapse
S-off and S-on bootloader? Is that the same as having S-on/S-off in general?
Larry was banned this morning, apparently being helpful isnt something highly valued around here.
yeah, you achieve s-off using gfree and you can decide if you want to install the ENG bootloader.
If you did, it should say ENG S-OFF instead of SHIP S-OFF
if fastboot allows you to do anything remotely you're in a good shape and that means you probably have a ENG bootloader.

Help me recover HTC One X

I've searched for 3 hours and nothing helped so:
I have an international HTC One X Unlocked on HTCDev with S-ON :
ENDEAVORU PVT SHIP S-ON RL
HBOOT-0.95.000
CID: HTC__032
MID: PJ4610000
I have installed ClockworkMod 5.8.4.0 and made a backup recovery 2 days ago from it before doing anything else.
and accidentally today i did these commands:
Wipe battery stats
Wipe Dalvik cache
wipe data/factory reset
and
format /cache
format /data
format /sdcard
format /system
Of course... after rebooting... NO MORE OS BOOT UP , it gets stuck at HTC Brilliant screen and stays forever.
First thing I did was to try to flash RUU_ENDEAVOR_U_ICS_40_HTC_Europe_1.29.401.11_Radio_1.1204.105.14_release_260491_signed.exe
didn't work! it says UNKNOWN ERROR (i think not the os it wants)
then i copied all the backup folders from my computer (the backup that i've made 2 days ago) on the sdcard partition which i can accesss from clockworkmod by mounting usb (and of course it was totally empty)
didn't wirk either.
How cand i put back my OS while I still have access to sdcard, bootloader and clockwork mod.
Please help me, I'm a dummy!
Can you put your back up of nandroid to internal sd card of phone?
Sent from my HTC One X using Tapatalk 2
tomislav177 said:
Can you put your back up of nandroid to internal sd card of phone?
Sent from my HTC One X using Tapatalk 2
Click to expand...
Click to collapse
I can, but I don't know the path, correct path, All I have is the folder named exactly like this: 2012-07-26.05.13.13 with this files in it:
.android_secure.vfat.tar
boot.img
cache.ext4.tar
data.ext4.tar
nandroid.md5
recovery.img
system.ext4.tar
mihaipricop82 said:
I can, but I don't know the path, correct path, All I have is the folder named exactly like this: 2012-07-26.05.13.13 with this files in it:
.android_secure.vfat.tar
boot.img
cache.ext4.tar
data.ext4.tar
nandroid.md5
recovery.img
system.ext4.tar
Click to expand...
Click to collapse
lol
if you know what you are doing with explorer then you just need to drop the folder 2012-07-26.05.13.13 in /sdcard/clockworkmod/backup/
then restore your backup in recovery
i assume if you have done "format /sdcard and /system" then wondering why your phone wont boot, you are a dummy so i will write a dummy guide for you :laugh:
yeah, formatting /system is why it wont boot anymore
here are the things you need to do to get booting again
reboot into recovery
click on "mounts and storage"
click on "mount USB storage" at bottom
plug your phone into PC via USB cable
open up computer (assuming Windows) and open up your now blank /SDCARD
make a folder called "clockworkmod" (without quotes)
open this folder then make another one inside it called "backup"
copy your 2012-07-26.05.13.13 folder from your PC to the "backup" folder
click on "Unmount" on your phone
click on "+++++Go Back+++++"
click on "backup and restore"
click on "restore"
click on "2012-07-26.05.13.13"
click on "Yes - Restore"
once complete you should be fine and dandy again
I don't know what did you erase but inside zip you have boot.img which if you deleted somehow boot.img you can flash through adb shell. Don't ask me I don't know correct command line, but you can extract it and flash itbthrough phone. I will look for exact path for recovery zip file because i have root and nandroid back up and in next post I will give you my path.
Sent from my HTC One X using Tapatalk 2
tomislav177 said:
I don't know what did you erase but inside zip you have boot.img which if you deleted somehow boot.img you can flash through adb shell. Don't ask me I don't know correct command line, but you can extract it and flash itbthrough phone. I will look for exact path for recovery zip file because i have root and nandroid back up and in next post I will give you my path.
Sent from my HTC One X using Tapatalk 2
Click to expand...
Click to collapse
Path:
/mnt/sdcard/clockworkmod/backup/
Sent from my HTC One X using Tapatalk 2
bagofcrap24 said:
lol
if you know what you are doing with explorer then you just need to drop the folder 2012-07-26.05.13.13 in /sdcard/clockworkmod/backup/
then restore your backup in recovery
i assume if you have done "format /sdcard and /system" then wondering why your phone wont boot, you are a dummy so i will write a dummy guide for you :laugh:
yeah, formatting /system is why it wont boot anymore
here are the things you need to do to get booting again
reboot into recovery
click on "mounts and storage"
click on "mount USB storage" at bottom
plug your phone into PC via USB cable
open up computer (assuming Windows) and open up your now blank /SDCARD
make a folder called "clockworkmod" (without quotes)
open this folder then make another one inside it called "backup"
copy your 2012-07-26.05.13.13 folder from your PC to the "backup" folder
click on "Unmount" on your phone
click on "+++++Go Back+++++"
click on "backup and restore"
click on "restore"
click on "2012-07-26.05.13.13"
click on "Yes - Restore"
once complete you should be fine and dandy again
Click to expand...
Click to collapse
THANK YOU. especially for your patience. I got somehow desperate and didn't know how to do correctly these steps
God bless you.
Please Help
Ok, so I know I take first prize for noob/dummy of the year but I'm really hoping someone cane help.
I recently rooted my one x and tried to install Android Revolution custom rom. Got stuck in a bootloop. Managed to then flash Cyanogenmod 9 (trip's version) however had issues with bluetooth not working and random reboots. Thought i'd give Android revolution a go again but got stuck in bootloop.....again!!! So...in all my (lack of) infinite wisdom, I booted into recovery and proceeded to format everything thinking I could just drop Leedroid's rom onto the sd card and flash it from recovery.
Whilst I thought this would work, I now have no access to the sd card. I tried mounting usb mass storage and the sdcard in recovery so I could just drag and drop it frrom windows but got the following error "E: Unable to open ums lunfile (No such file or di
So, after reading through some other threads, I discovered that you could just push the zip file using adb, however, when trying this I get the error: device not found.
When launching fastboot I get
SD Checking
Failed to open usb Master mode
Failed to open usb Master mode
loading HTCUpdatezipName image
Failed to open usb Master mode
Please plug off USB
Hope someone out there can help.
yorkieip said:
Ok, so I know I take first prize for noob/dummy of the year but I'm really hoping someone cane help.
I recently rooted my one x and tried to install Android Revolution custom rom. Got stuck in a bootloop. Managed to then flash Cyanogenmod 9 (trip's version) however had issues with bluetooth not working and random reboots. Thought i'd give Android revolution a go again but got stuck in bootloop.....again!!! So...in all my (lack of) infinite wisdom, I booted into recovery and proceeded to format everything thinking I could just drop Leedroid's rom onto the sd card and flash it from recovery.
Whilst I thought this would work, I now have no access to the sd card. I tried mounting usb mass storage and the sdcard in recovery so I could just drag and drop it frrom windows but got the following error "E: Unable to open ums lunfile (No such file or di
So, after reading through some other threads, I discovered that you could just push the zip file using adb, however, when trying this I get the error: device not found.
When launching fastboot I get
SD Checking
Failed to open usb Master mode
Failed to open usb Master mode
loading HTCUpdatezipName image
Failed to open usb Master mode
Please plug off USB
Hope someone out there can help.
Click to expand...
Click to collapse
Do you have the latst Recovery? http://forum.xda-developers.com/showthread.php?t=1594819
If not, update to latest recovery and try to mount USB storage again.
Also you can try to use adb while you have the phone in recovery mode, not fastboot or hboot.
And, did you remember to flash the boot.img from fast boot after reflasnig the ROM? if not, that that is causing the bootloops.
ionut.micu said:
Do you have the latst Recovery? http://forum.xda-developers.com/showthread.php?t=1594819
If not, update to latest recovery and try to mount USB storage again.
Also you can try to use adb while you have the phone in recovery mode, not fastboot or hboot.
And, did you remember to flash the boot.img from fast boot after reflasnig the ROM? if not, that that is causing the bootloops.
Click to expand...
Click to collapse
wow, thankyou so much.
That was a relatively easy solution and got be back in the game baby!!!
BTW I gotta say, I was pretty happy with my one x before but now... I think i'm in love.
Sorry if this is off topic but was unsure where else to post. Had issues with random rebooting after certain apps launched so scrapped leedroid and tried out modaco. All seemed fine but then I was getting a reboot every time I tried to access (play, set as a ring tone or even just play) mp3's so I did a full wipe reflash of Leedroid and the same thing happens, full reboot when tying to do anything with MP3s
please help
Sent from my HTC One X using xda app-developers app
Here is an alternative way without ruu
1-Mount usb in recovery
2-Copy this rom to sdcard
3-Factory reset
4-Flash rom
4-Start ruu and grab the rom.zip (you can find guides at xda for grabbing rom.zip)
5-Extract boot_signed.img and recovery.img
6-Execute fastboot flash boot boot_signed.img and fastboot flash recovery
recovery.img
7-Reboot and relock the bootloader
and now you don't need ruu and phone works well I tried this myself and it worked
Firstly, thanks for your sugggestion. One question though, won't relocking the bootloader also unroot the phone?
Sent from my HTC One X using xda app-developers app
I am in a similar problem with my htc one x. I tried to flash android revolution but recovery would always tell me this;
E:can't open /sdcard/Android_Revolution_HD-One_X_8.0.0,zip
(bad)
Installation aborted
I tried to restore a backup I made from the stock system, but it just reboots shortly after showing the wallpaper. I am a real noob here and I read about updating clockwork, my version is 5.8.2.7. I do not know how to do that since I can't mount usb storage from recovery...
I really would appreciate a guide that even squirrels could follow, please
Just come across this thread, and i would like to say:
ACCIDENTALLY MY ****
There is no way you can format your partitions accidentally lmao
My phone was stuck in bootloop for 4 days. I finally relocked the bootloader and flashed my RUU. Worked perfectly after that

[SOLVED] completely stuck, ADB won't push

Problem description
trying to get the phone to update from 4.0.4 to 4.2.x, [Phone has 'ClockWorkMod recovery v6.0.0.5' and I believe is rooted]
first tried via OTA automatic update, but at bootloader it says something like 'failed signature verification, aborted'
I then downloaded 'cm-10.1-20130411-EXPERIMENTAL-maguro-M3' placed it in a folder, but it won't install at bootloader, says 'something ~~, aborted' again
Some thread mentioned need to install a kernel, so I installed 'franco Kernel r374', in recovery mode ['install from zip' etc]
then the phone won't start, gets stuck at white Google logo and open lock screen
I managed to get ADB and get it show up with 'adb devices', (but phone won't show on file explorer)
Tried 'adb push ***.zip' [I think it was a different CWM zip file], screen says 'failed to copy ***, to /sdcard: read only file system'
I went into recovery mode, tried "mounts and storage, mount /sdcard"
It would not mount, screen flashes briefly, but mount status stay the same
Then tried 'format /sdcard', it seemed to have done that
ADB still won't push anything into the phone, and recovery mode takes about 5 seconds to go into the blue menu screen, whereas before it was immediate
Now the phone is still stuck at logo screen and can't copy anything from ADB to /sdcard, but adb is able to push file into /data/media, but 'install zip from folder' thingy won't find /data/media folder
Please help, sorry if posting new thread is wrong, my first post
many thanks to everyone who provided help, finally i managed to flash the kernel and 4.2.2 across and the thing works now
/data/media is the same as /sdcard/
Sent from my Nexus
bk201doesntexist said:
/data/media is the same as /sdcard/
Sent from my Nexus
Click to expand...
Click to collapse
i did push a new francokernel into /data/media, but at recovery screen install zip from sdcard, choose zip from sdcard, phone says 'no files found',
plus, i still can't mount sdcard
bellemonde said:
i did push a new francokernel into /data/media, but at recovery screen install zip from sdcard, choose zip from sdcard, phone says 'no files found',
plus, i still can't mount sdcard
Click to expand...
Click to collapse
push to /data/media/0 then
Sent from my Galaxy Nexus using Tapatalk 2
i have been this before, when locking and then unlocking the fastboot by mistake.
cant mount all partitions except /system.
flash a stock through usb and works fine so far.
Sent from my Galaxy Nexus using xda premium
bellemonde said:
i did push a new francokernel into /data/media, but at recovery screen install zip from sdcard, choose zip from sdcard, phone says 'no files found',
plus, i still can't mount sdcard
Click to expand...
Click to collapse
While connected to USB, go to "choose zip from sdcard". Now push the files. Once it's done, back out of that menu, and reenter.
Sent from my Nexus

[Q] Wiped data and cache, and now I can't install the ROM

Hi there,
I have TWRP Recovery v2.3.3.0, and I want to install the new Shiny rom so I can taste that sweet, sweet Kit Kat. However, after I booted into recovery and wiped my cache and data (I wiped internal storage, cache, dalvik cache, and did factory reset), I found that I didn't have the rom on my phone storage anymore (duh). I connected the phone to my laptop (Windows 7) via usb, but for some reason it's not being recognized (it's not showing up in my computer or anything). I went into device manager and deleted the drivers so that I could install them anew, but I'm not entirely sure what to install/what to do afterwards.
Usually I'm good at figuring out what to do on my own with this sort of thing, but after scouring pages on pages for hours, I'm stumped now, and kinda frustrated. Can anyone give a brief step-by-step on what to do? I just don't wanna screw up something little and have it not work.
Thanks so much for reading! (I work in tech support at school, so I know how laborious this is. )
ijrabbani said:
Hi there,
I have TWRP Recovery v2.3.3.0, and I want to install the new Shiny rom so I can taste that sweet, sweet Kit Kat. However, after I booted into recovery and wiped my cache and data (I wiped internal storage, cache, dalvik cache, and did factory reset), I found that I didn't have the rom on my phone storage anymore (duh). I connected the phone to my laptop (Windows 7) via usb, but for some reason it's not being recognized (it's not showing up in my computer or anything). I went into device manager and deleted the drivers so that I could install them anew, but I'm not entirely sure what to install/what to do afterwards.
Usually I'm good at figuring out what to do on my own with this sort of thing, but after scouring pages on pages for hours, I'm stumped now, and kinda frustrated. Can anyone give a brief step-by-step on what to do? I just don't wanna screw up something little and have it not work.
Thanks so much for reading! (I work in tech support at school, so I know how laborious this is. )
Click to expand...
Click to collapse
First of all install proper drivers using this GNex Toolkit. (Use it only to install drivers)
The boot to bootloader and flash the newest TWRP recovery by executing this command in the same folder where the file resides. Download it from here.
Code:
fastboot flash recovery openrecovery-twrp-2.6.3.1-maguro.img
Then boot to recovery and open command window in the same folder where your ROM's zip resides and execute following command.
Code:
adb push ROM.zip /sdcard/ROM.zip
Now reboot to recovery again and you will see the ROM zip in /sdcard. Flash it!!
I'm confused. should I be running this code on my phone, or computer? from my phone, I'm booting into recovery, pressing Advanced -> Terminal Command. then I navigate to the folder where I put the file (openrecovery...img), and executing the command, only to get "fastboot: not found"
Also, after installing the Gnex toolkit, I still can't put files in my phone's storage from my computer, unless I boot into the actual system and not the recovery. Is that alright?
Don't know if sideload is supported by TWRP. If it is supported, select 'install zip from sideload' and then run the following command:-
Code:
adb sideload ROM.zip
wow, I totally forgot I had the Nexus Root Toolkit, which does all this for you....I just had it flash my stuff, so I'm all good :good:

[Q] Stuck trying to restore to stock

Hi guys,
I've been running custom AOKP rom and decided to return back to stock.
I have the rogers version of the M8, and intended to flash a stock TWRP backup of someone's rogers save.
I made the poor decision of relocking and unlocking the bootloader again, leaving me without a functional OS and with only fastboot and TWRP recovery available to me. As a result, I can't get the rogers backup folder onto my phone ( I don't have a miscro SD), and the only other option I see is to manually push each file in the stock TWRP recovery with ADB to my phone, but I'm horrible with anything that involves command lines.
Any suggestions to get me out of this situation would be great. My end goal is to get the stock ROM / kernel running so I can get OTA's.
Edit: Solved by doing an advanced wipe and format in TWRP, and I flashed a stock Rogers nandroid
Just adb push or adb sideload a stock rooted ROM to your phone. Just a single command line.
If you want OTAs, you will also need stock recovery. But my recommendation is that OTAs have no place on a modded device.
redpoint73 said:
Just adb push or adb sideload a stock rooted ROM to your phone. Just a single command line.
If you want OTAs, you will also need stock recovery. But my recommendation is that OTAs have no place on a modded device.
Click to expand...
Click to collapse
I've tried flashing a ROM and unfortunately I get stuck on the boot animation.
Attempting to wipe my phone through TWRP before the zip install yields a failure:
E: Unable to mount '/data'
E: Unable to mount internal storage
Those two lines are repeated a couple times in the error screen.
It looks like I need to flash some form of backup but am not sure which one will hard reset my phone to stock from this scenario.
Flashnova said:
I've tried flashing a ROM and unfortunately I get stuck on the boot animation.
Click to expand...
Click to collapse
Which ROM? How did you try to flash it (how did you get it on the phone, did you adb sideload?)/
Flashnova said:
Attempting to wipe my phone through TWRP before the zip install yields a failure:
E: Unable to mount '/data'
E: Unable to mount internal storage
Click to expand...
Click to collapse
Select "Mount" in TWRP main screen and make sure data is checked (cache should also e checked by default). If so, and still getting this error, di you by chance try to factory reset in bootloader (not TWRP)?
redpoint73 said:
Which ROM? How did you try to flash it (how did you get it on the phone, did you adb sideload?)/
Select "Mount" in TWRP main screen and make sure data is checked (cache should also e checked by default). If so, and still getting this error, di you by chance try to factory reset in bootloader (not TWRP)?
Click to expand...
Click to collapse
I flashed dirty unicorns 4.4.4. I had a 2gb SD card which managed to get it to the phone (the 2gb isn't enough to move the system backup).
I can't check Mount in the settings and it remains unchecked, and yes, I did hit the factory reset in the bootloader thinking that it would help me (I assume this was another bad decision).
Flashnova said:
I can't check Mount in the settings and it remains unchecked, and yes, I did hit the factory reset in the bootloader thinking that it would help me (I assume this was another bad decision).
Click to expand...
Click to collapse
Yes, that was a bad decision. But probably not one that you could have known about. Doing a factory reset in bootloader on a modded M8 corrupts the internal memory. This is your main problem right there.
If you have a Windows PC, connect the phone, go to Device Manager and find the phone. Then select the option to format the memory.
In the future only do a factory reset within the OS (in Settings) or in recovery, not in bootloader.
If you've gone through this much, I'd highly recommend getting comfy with a few command line commands. These may very well save you some time and additional headache (speaking from experience).
After recently running into issues with my newly purchased Roger's M8, I needed to restore to stock as well. Honestly, I followed these instructions to the T and it got me out scrape-free.
But, note Step #6 may require you to "adb push" your unzipped folder. And that's it.
Once you've ADB'd the massive nandroid backup, you should be out of the woods (in TWRP, Restore, Select the pushed backup file).
Good luck, and as long as you've got recovery/hboot looking back at you, you should be fine.
redpoint73 said:
If you have a Windows PC, connect the phone, go to Device Manager and find the phone. Then select the option to format the memory.
Click to expand...
Click to collapse
I'm not too sure where that option is located, would you know how to get there?
esuohe said:
But, note Step #6 may require you to "adb push" your unzipped folder. And that's it.
Once you've ADB'd the massive nandroid backup, you should be out of the woods
Click to expand...
Click to collapse
After pushing the folder to my device I receive "protocol failure", so the push isn't working unfortunately.
Flashnova said:
I'm not too sure where that option is located, would you know how to get there?
Click to expand...
Click to collapse
On Win7, go to Start Menu, use the search function at the bottom that says "Search programs and files" and type "Device Manager".
Or go to Start Menu>Control Panel>Hardware and Sound; and under "Devices and printers" you will see Device Manager.
Flashnova said:
After pushing the folder to my device I receive "protocol failure", so the push isn't working unfortunately.
Click to expand...
Click to collapse
You aren't going to be able to write to the memory when its still corrupt.
redpoint73 said:
On Win7, go to Start Menu, use the search function at the bottom that says "Search programs and files" and type "Device Manager".
Or go to Start Menu>Control Panel>Hardware and Sound; and under "Devices and printers" you will see Device Manager.
Click to expand...
Click to collapse
Device manager does not provide a format option. Perhaps you mean disk manager? If I do format it will I have to somehow reinstall the android system?
Flashnova said:
Device manager does not provide a format option. Perhaps you mean disk manager? If I do format it will I have to somehow reinstall the android system?
Click to expand...
Click to collapse
I've often read it described as Device Manager. Can't personally say from experience as I've never actually had to do it myself, but seen this described on XDA quite a few times. If the option comes up in Disk Management, that should be fine, too.
Formatting internal storage should not affect the Android OS, as its a separate partition (note how Windows is only reading the internal storage as around 25 GB of the total 32 GB). But you have to re-install a ROM anyway, as you presently do not have one installed.

Categories

Resources