[FIXED] Can't Flash TWRP XT1096 - X 2014 Q&A, Help & Troubleshooting

I've been looking around for a few hours and I just can't figure this out. I unlocked my XT1096 fine and am trying to flash TWRP via fastboot. (I tried downloading the app on my phone and running it there and it says I don't have root access, but I guess flashing it from a cmd prompt should still work?)
Anyway, I've downloaded the TWRP img that seems to be correct (twrp-3.0.2-2-victara) and I'm renaming it to just "twrp.img" per the CM install instructions. I go into fastboot, confirm my device is there, and then use the "fastboot flash recovery twrp.img command and I just get the error "error: cannot load 'twrp.img'"
I've tried a couple of other twrp image files, thinking maybe that's not really the right one, but they haven't worked either, but from everywhere I've look, the one I have been trying should certainly be the correct file.
So I've got my bootloader unlocked and my phone memory is wiped and all that, from the unlocking. But I can't for the life of me get the recovery to flash. I don't know if there's another one that's not TWRP I could use? I don't think it's a step I can bypass, and I have to have it sorted to move on to getting Cyanogen and all that.
I've only ever rooted one other phone, and that was the Droid Incredible 2, but it had that whole 1-touch unlock/root program made for it, and I can barely remember how all that worked since it was like 5 years ago.
Anyway, does anyone have any ideas on how I can fix this, and get TWRP working and CM finally running?
edit: got this fixed - see last comment. Woohoo!

You could try the TWRP Manager app or Rashr to flash the IMG.

Put twrp.img in to folder have adb install

So I don't think I can use the TWRP app because when I try to use it, it says it needs root permission and that the phone isn't rooted. I've looked for rooting directions for the XT1096 running android 5.1 and can't find any really. I've seen directions for android 6.0, or the Pure edition of my phone, and I don't know if they would work. Would they work, with a difference version of android running?
As for having adb install, that's what I've been trying. I've got the twrp.img in the same folder as adb and fastboot, which is where it's supposed to be as far as I can tell from these directions:
https://wiki.cyanogenmod.org/w/Install_CM_for_victara
I just get the error message when I try the "fastboot flash recovery twrp.img" command.

Ha, I figured it out, and it was silly. When I renamed the "twrp.img" it appeared to me as just that. When I did a dir command for that folder, it showed as "twrp.img.img" even though I didn't see it that way in file explorer. So I deleted the ".img" that I COULD see, flashed again, it worked!
Now to get on with it!
Thanks guys for the input!

asmallmammal said:
Ha, I figured it out, and it was silly. When I renamed the "twrp.img" it appeared to me as just that. When I did a dir command for that folder, it showed as "twrp.img.img" even though I didn't see it that way in file explorer. So I deleted the ".img" that I COULD see, flashed again, it worked!
Now to get on with it!
Thanks guys for the input!
Click to expand...
Click to collapse
For future reference, if you type a partial filename and hit tab in Command Prompt or Terminal, it will auto fill the rest of the filename and escape any characters needed (like a space). :good:

Related

Question about installing latest recovery

Hey guys. Right now my Hero has the old recovery image flashed to it. It's also running Fresh ROM 1.0. Now I'm going to flash the latest recovery image right now using the first method in the thread for the recovery image. So I typed "adb shell" and it brought me into the shell. Then I typed "mount -a", and I just got errors, such as "No such file or directory" or "No such device". And I'm entering those commands while I'm in the recovery on my phone. Can anyone tell me what I'm doing wrong? I also put the recovery image on my sdcard by dragging it from windows into it... I don't think ADB really has to be used to push it. But yeah can anyone help me out here? I don't want to proceed any further if I'm getting errors... my parents would be mad if I bricked my phone haha.
-Mike
mrinehart93 said:
Hey guys. Right now my Hero has the old recovery image flashed to it. It's also running Fresh ROM 1.0. Now I'm going to flash the latest recovery image right now using the first method in the thread for the recovery image. So I typed "adb shell" and it brought me into the shell. Then I typed "mount -a", and I just got errors, such as "No such file or directory" or "No such device". And I'm entering those commands while I'm in the recovery on my phone. Can anyone tell me what I'm doing wrong? I also put the recovery image on my sdcard by dragging it from windows into it... I don't think ADB really has to be used to push it. But yeah can anyone help me out here? I don't want to proceed any further if I'm getting errors... my parents would be mad if I bricked my phone haha.
-Mike
Click to expand...
Click to collapse
I did this using flashrec, I dont know how you rooted your phone, here is the link
http://zenthought.org/content/project/flashrec
install it and run it, you have to backup your current image then install the new one, pretty simple, did it on both of my hero's.
You can also use my auto-rooter (check my sig) to update you from 1.2.3 to 1.5.2. Just make sure that "i have a with google phone" is unchecked.
Haha I think I will use your method, flipz. Thanks!

Cant flash anything on a DEV G1!

Hello all.... I am working on a group project where we will be using a dev G1. The phone was shipped to a another group member and before I can get my hands on it, he decided to upgrade the firmware from 1.0 to 1.6, having very little knowledge of android beforehand and therefore he cant really tell me what exactly he did either. He followed the directions on the HTC website. As far as i can tell, I do have the 26I radio, engineering SPL and 1.6 installed currently, not sure about the recovery though (i.e. stock 1.0 or 1.6). When I got the phone, root access was gone but followed some simple steps on this website to regain it. By way of typing in "su" in terminal emulator and in ADB shell, I now also have su. However I still cant flash anything. When trying to flash cm 4.2.5 in the recovery, the system verifies it and then aborts installation. I then tried to install the Amon-RA recovery to no avail. Tried fastboot, ADP, terminal, im not sure how to access the /data/ partition on the phone and there is no option for acessing the console in the recovery menu. Installing through ADB dosnt work, no test-keys in current recovery. In fastboot it says "okay" for both sending and writing the recovery but rebooting into recovery shows that it didnt work. In terminal it says "flash_image: not found". I'm kinda lost and need some help....
All I need is cm4.2.5 on the phone with root.
Thanks in advance.....
Edit: I triple and quadruple checked the name of the recovery image when trying to install through terminal. I'm pretty sure it cant find the command "flash_image" and not the file itself. Just wanted to clarify...
You could try downgrading to RC29: http://wiki.cyanogenmod.com/index.p...ngrading_to_RC29_.28US.29_or_RC7_.28Europe.29
halr9000 said:
You could try downgrading to RC29: http://wiki.cyanogenmod.com/index.p...ngrading_to_RC29_.28US.29_or_RC7_.28Europe.29
Click to expand...
Click to collapse
Tried that, already... That method only works for the stock T-Mobile G1's which have a different SPL. The Dev G1's come with engineering SPL and I have no idea how to flash the .nbh image from that. All it does I think is enable Fastboot, I cant get it to do anything else.
This fails?
fastboot flash recovery recovery.img
Nope... No luck, it says:
sending 'recovery' <4456kb>.... OKAY
writing 'recovery' <4456kb>.... OKAY
and then I reboot using "fastboot reboot", wait till the homescreen loads, and then go back into recovery and it still shoes the the triangle and the !.....
Bump...
Anyone?? Right now we just have a reallly expensive paper-weight in our hands ANY help/thoughts/comments would be very appreciated...
This thread is meaningless since there is NO SUCH THING as a "DEV G1".
alilbitanuthin said:
Hello all.... I am working on a group project where we will be using a dev G1. The phone was shipped to a another group member and before I can get my hands on it, he decided to upgrade the firmware from 1.0 to 1.6, having very little knowledge of android beforehand and therefore he cant really tell me what exactly he did either. He followed the directions on the HTC website. As far as i can tell, I do have the 26I radio, engineering SPL and 1.6 installed currently, not sure about the recovery though (i.e. stock 1.0 or 1.6). When I got the phone, root access was gone but followed some simple steps on this website to regain it. By way of typing in "su" in terminal emulator and in ADB shell, I now also have su. However I still cant flash anything. When trying to flash cm 4.2.5 in the recovery, the system verifies it and then aborts installation. I then tried to install the Amon-RA recovery to no avail. Tried fastboot, ADP, terminal, im not sure how to access the /data/ partition on the phone and there is no option for acessing the console in the recovery menu. Installing through ADB dosnt work, no test-keys in current recovery. In fastboot it says "okay" for both sending and writing the recovery but rebooting into recovery shows that it didnt work. In terminal it says "flash_image: not found". I'm kinda lost and need some help....
All I need is cm4.2.5 on the phone with root.
Thanks in advance.....
Edit: I triple and quadruple checked the name of the recovery image when trying to install through terminal. I'm pretty sure it cant find the command "flash_image" and not the file itself. Just wanted to clarify...
Click to expand...
Click to collapse
Pretty sure there is...
http://developer.htc.com/adp.html
Bump...
anyone?
alilbitanuthin said:
Pretty sure there is...
http://developer.htc.com/adp.html
Click to expand...
Click to collapse
Do you see ANYTHING on there that says "G1"?
Answer: No you definitely do NOT.
If I remember correctly, after you use fastboot to flash the new recovery image, you can't let the phone reboot or it will overwrite the recovery with the stock recovery image
The solution would be to use fastboot to flash either Cyanogen's or Amon_RA's recovery image, and be quick here, but when you send the fastboot reboot command be holding down the home button on the phone so it will boot to the custom recovery image
lbcoder said:
Do you see ANYTHING on there that says "G1"?
Answer: No you definitely do NOT.
Click to expand...
Click to collapse
lol, no need to nitpick, about the name no less. Thats the least of my worries
As long as you get the message across...
jackslim said:
If I remember correctly, after you use fastboot to flash the new recovery image, you can't let the phone reboot or it will overwrite the recovery with the stock recovery image
The solution would be to use fastboot to flash either Cyanogen's or Amon_RA's recovery image, and be quick here, but when you send the fastboot reboot command be holding down the home button on the phone so it will boot to the custom recovery image
Click to expand...
Click to collapse
That maybe it I'll give it a try as soon as I get back home. Thanks a lot for the help!!
Thanks a lot jackslim, finally got it to work!

Deleted everything minus TWRP

I wasn't paying close attention this morning at work, decided to flash a new rom and accidentally deleted my systems partition in the wipe.
I cannot for the life of me fine my usb-otg so that is out for now. TWRP is still installed, I can fastboot and thats bout it. I do have a copy of the TWRP backup on my laptop as well as few other roms. Any suggestions?
zero visual said:
I wasn't paying close attention this morning at work, decided to flash a new rom and accidentally deleted my systems partition in the wipe.
I cannot for the life of me fine my usb-otg so that is out for now. TWRP is still installed, I can fastboot and thats bout it. I do have a copy of the TWRP backup on my laptop as well as few other roms. Any suggestions?
Click to expand...
Click to collapse
Use ADB to sideload a rom then you can transfer your TWRP backup to the device and go from there.
here is the guide to sideload
http://forum.xda-developers.com/showthread.php?t=2318497
That is exactly what I needed. Now my only problem is, Im a moron and while trying to figure an answer out I flash my stop recovery and now things are just all messed up. I tried flashing twrp again but it keeps saying it failed.
scratch that just needed to open a new cmd.
On to the sideload. Im following the instructions and Im guessing when i "adb sideload rom.zip" it doesn't say sideload next to it, it says host
got it to working.

Seemingly endless string of issues while trying to root

Hey guys, I've decided I'm going to root my Moto X Unlocked Edition. I've been following this guide: http://www.theandroidsoul.com/2014-moto-x-2nd-gen-marshmallow-root-86348/ (as well as many others) and I'm running into issue after issue.
I've managed to unlock my bootloader. I'm on step 8: "fastboot flash boot boot.img" and have tried with so many techniques but keep getting this "mismatched partition size (boot)" error after each attempt. I've tried using .img files from CMod, from the guide that I'm following, etc. I've googled the error with no useful result coming up. I'm at a loss here and really hoping someone is able to help me out. Searching is turning up nothing and I'm about to start tugging at my hair. If anyone has a one click installer that would work, please pass it along!
Thank you all very much!
Edit 4/29/16 13:01 ET: I've switched from trying to use the 'fastboot flash boot' command and started trying to use 'fastboot update <romname.zip >' with various different ROMs. I'm getting this error.
archive does not contain 'android-info.txt'
archive does not contain 'android-product.txt'
error: update package has no android-info.txt or android-product.txt
Click to expand...
Click to collapse
I'm not sure what to do now. I feel like I'm getting reckless in trying an overwhelming amount of solutions to no avail. I'm going to wait, now. I'm starting to think that these phones can't be rooted or flashed with a new ROM.
What phone version do you have, XT1095? I just tried to root my device without reading carefully and ended up softbricked...had to use fastboot to wipe everything and flash stock to recover. Seems this devices is tricky to root on Marshmallow, much harder than ones I've had in the past.
Have you tried the method here? http://forum.xda-developers.com/moto-x-2014/development/root-root-moto-x-2014-android-t3249105
Or, if you install TWRP you could just flash a pre-rooted ROM instead of rooting stock.
Thank you for the help @viper74656!
I'm struggling to even get the TWRP installed. When I try to install TWRP-3.0.0-0-victara.img, I get
cmd: getvar: partition-type:recovery
cmd: getvar:max-download-size
cmd: download:0096c000
cmd: flash:recovery
Mismatched partition size (recovery)
Click to expand...
Click to collapse
I was having this problem earlier too when I was trying to work around that. I'm going to try an alternate way of installing TWRP.
Really, all I want to do is get CMod. When I rooted my HTC Inspire 4G, it was a cakewalk... I didn't expect all this LOL
viper74656 said:
What phone version do you have, XT1095? I just tried to root my device without reading carefully and ended up softbricked...had to use fastboot to wipe everything and flash stock to recover. Seems this devices is tricky to root on Marshmallow, much harder than ones I've had in the past.
Have you tried the method here? http://forum.xda-developers.com/moto-x-2014/development/root-root-moto-x-2014-android-t3249105
Or, if you install TWRP you could just flash a pre-rooted ROM instead of rooting stock.
Click to expand...
Click to collapse
Yeah, btw, I have an xXT1095
So I managed to get TWRP installed on my XT1095 using the "WinDroid" toolkit I found somewhere on XDA. It seems to push the right fastboot commands, but I had to manually download and select an older TWRP version. Read something about our recovery partition not working with the newer versions. I still got the mismatch error, but when I rebooted into recovery TWRP was there.
I haven't ventured back to try it again after having to wipe and start over...bleh.
Twrp manager (from the playstore) is what I had to use to install recovery. Windroid wouldn't push it for some reason.
Sent from my XT1096 using XDA-Developers mobile app

How can i get my phone back to stock?

So yesterday i wanted to root my phone, but i screwed up with some things so i wanted to go back to the stock version. First i got rid of the twrp, i did this by flashing stock recovery. Everything went well, after that i locked the bootloader, this went also well. So the last thing i had to was sideload the OnePlus 3T OxygenOS 3.5.4, but here came the problem, i just could not install it, everytime i tried it just said can not read OnePlus3Oxygen_16_OTA_008_all_1606122244_e0cfc5ffc8bf411a.zip' *. I have tried renaming i have tried to put it zip.zip, the file is on the desktop so its in the same place and my phone is also regonized by the adb, i run the program as administrator still not working. I have tried re downloading it many times still not working. I have no fcking idea anymore, so guys plz help me .
TWRP is the answer
960Gaming said:
So yesterday i wanted to root my phone, but i screwed up with some things so i wanted to go back to the stock version. First i got rid of the twrp, i did this by flashing stock recovery. Everything went well, after that i locked the bootloader, this went also well. So the last thing i had to was sideload the OnePlus 3T OxygenOS 3.5.4, but here came the problem, i just could not install it, everytime i tried it just said can not read OnePlus3Oxygen_16_OTA_008_all_1606122244_e0cfc5ffc8bf411a.zip' *. I have tried renaming i have tried to put it zip.zip, the file is on the desktop so its in the same place and my phone is also regonized by the adb, i run the program as administrator still not working. I have tried re downloading it many times still not working. I have no fcking idea anymore, so guys plz help me .
Click to expand...
Click to collapse
I used the adb sideload mode on TWRP recovery and it worked for me. Also do not relock bootloader.
1)Flash TWRP
2)Advanced-> ADB Sideload
3)Open CMD on your PC-> Navigate to the directly of the OOS 3.5.4
4)Enter adb sideload <file name.zip> (Rename the file to something small to make it easy)
Hope it helps!
Painless way and will completely wipe device. http://forum.xda-developers.com/showthread.php?t=3515306
Sent from my BTV-W09 using Tapatalk

Categories

Resources