Lg G flex T-mobile D959 soft bricked - LG G Flex

Hey guys, any help you could give me with my problem would be great. Basically, i tried to flash cyanogenmod 11 unofficial on my d959 g flex and it didn't work. unfortunately, i had created backups with twrp recovery, but had cwm on at the time and no cwm backup. I try to send the stock 1.5gb zip over with adb push or adb sideload, but neither is ever successful(stops after 1gb). basically need a way to flash a twrp.zip in cwm to restore my phone recovery to twrp, then I can restore my phone using my twrp backup. Any ideas? I've got the twrp.img file that the Freedom flex app downloaded before, and found a recoveryinstaller.zip that i have put it in and have thought about flashing that to my phone, but don't want to brick it further.

I lost where you replied to what I said about the otg cable but you're halfway right.
Try this.
Download Flash_img. and extract it from the zip file to a location on your computer. We extracted it to the main C drive (not in any folder) and will use that in the next steps.
Copy the recovery image for your phone to a convenient location on your computer, preferably with a short path. We will be placing it on the C Drive directly (not in any folder) and using that in the next steps.
Note: The recovery image should have .img extension. If it is in a zip file, extract the .img file from it.
Enable USB debugging mode on your device from Menu > Settings > Applications > Development.
Connect your device to your computer via USB.
Open a Command Prompt window on your computer and enter the following commands:
adb push c:\flash_image /sdcard/
adb push c:\recovery.img /sdcard/
adb shell
su
mount -o remount, rw /system
cp /sdcard/flash_image /system/bin
cd /system/bin
chmod 777 flash_image
flash_image recovery /sdcard/recovery.img
This will first transfer flash_image and recovery.img to your phone. Then it will copy flash_image to the /system/bin folder of your Android device and make it executable. Finally, it will flash the custom recovery image to your device using flash_image.
Note that we used c:\flash_image and c:\recovery.img in the first two lines as we had these files extracted at the root of our C drive. If you extracted the files elsewhere, use the appropriate paths and if your recovery image has a different name, use the appropriate name.
Reboot your device once the process is finished and you’re done. You may exit adb and the Command Prompt window on your computer by entering ‘exit’ twice.
Here is the "bumped" twrp.img
https://docs.google.com/file/d/0B2OabWtEBQcpVjZGb2ppT083OGs/edit?usp=docslist_api
Here is the flash.img that you need to extract on your PC
https://docs.google.com/file/d/0B2OabWtEBQcpcmowamtnUVY1YU0/edit?usp=docslist_api
---------- Post added at 12:13 PM ---------- Previous post was at 12:10 PM ----------
If you can get into download mode try opening cmd and
Fastboot flash recovery " then drag and drop the twrp.img that I just posted the link for here with out the quotations". It doesn't matter what you name it in this case. This is the easiest way to me.

Related

[Q] Cant flash ClockworkMod Recovery (cannot open for read: No such file or directory

When i type the dd if=/data/recovery.img of=/block/mmcblk0p6 bs=4096 to flash over the clockworkmod, into my command promt it says 'cannot open for read: No such file or directory' and i dont know what im doing wrong.
I mean everything else seemed to workout fine. i downloaded the recovery image it said to save it but it was already saved to my computer after i downloaded it so i dont know if this could be the problem.
Then i used the adb push recovery.img/data command to push the recovery image to my phone, i think this might be where i messed up. After i put in the command a long list of text pops up on the command prompt. It starts out showing 'Android Debug Bridge version 1.0.26' then is followed by a long list of adb commands. Idk know if this is what its supposed to show.
Next i did the adb shell, su, dd if=/dev/block/mmcblk0p6 of=/sdcard/mmcblk0p6.backup bs=4096 command and that worked fine it said 2560+0 records out, 2560+0 records in 10485760 bites transfered in 0.413 secs and i actually found that file on my sdcard. So i think i did that right.
Next i tried to use the command 'dd if=/data/recovery.img of=/block/mmcblk0p6 bs=4096' and like i said earlier it just says 'cannot open for read: No such file or directory'
Lastly i tried the rm /data/recovery.img command and it said rm failed for /data/recovery.img, No such file or directory in the command prompt.
Im sorry i am new at this but i thought i followed the directions perfectly and any help anyone could give me would be greatly appreciated.
First off, before someone else says it, you shouldn't start a new thread for something we already have a topic for. But anyways,
Sounds to me like recovery.img never got pushed to /data. Not sure if its a typo in your post but 'adb push recover.img/data' should be 'adb push recovery.img /data'. The space is important. On your phone use a root file explorer and go to your /data partition and see if recovery.img is there. You may need to either change permissions for /data or just put recovery.img on your sdcard and move it to /data with a root explorer.
Sent from my LG-P925 using Tapatalk
Well im sorry im new to this kind of thing, i didnt want to make anyone mad i just wanted some help and i apologize if ive ticked somone off. How would i change the permissions for the data? And could you tell me how to use the root explorer to put the recovery image in the right place? Again i appreciate any help you can offer.
Is recover.img in the same folder as adb? Because the instructions assume your recovery.img is in the same folder you are working from. So if you have to cd to your adb folder to use adb then recovery.img should be in that folder as well. Look at your cmd window, whatever directory/ folder it says you are in that is where you should put recovery.img.
If you saw a bunch of commands it means the .img did not go through your command did not work. You dont have the recovery.img in /data either put the file on your sdcard and use a root explorer to move it to /data or try the adb push again, you most likely made a typo or something.
You would put recovery.img on your sdcard through your computer. Open root explorer and navigate to your sdcard, long press on the recovery.img select move, go to/ data on the root of the phone, not the one on either sdcard it MUST be /data not /mnt/sdcard/data or anything like that once there paste file to /data and finish up in adb shell.
Alright i copied the recovery image to the /data folder and finished up in command prompt and everything worked out like it was supposed to. what was i supposed to do next to put it into cwm recovery mode? I held power, volume down, 3d button but i just went into normal recovery mode. then i went to rom manager to try and put it into cwm recovery that way but it just rebooted my phone. And when i went back into the /data folder i couldnt find the recovery image there anymore and i did a search on my root explorer and couldnt find it anywhere.
Hold vol down + 3D + power when lg logo appears release power but keep vol down +3D held down until recovery pops up. If you still don't boot into cwm try flashing recovery.img again. Do NOT use rom manager at all to install cwm on this phone.
Well ive tried to take the recovery image from the sd card to the /data folder but when i run 'rm /data/recovery.img' on the command prompt then reboot my phone, i turn it off then try and put it in recovery mode but its just regular recovery mode not cwm recovery mode. And everytime i run the 'rm /data/recovery.img' when my phone boots back up the recovery image is no longer in the /data folder or anywhere. But if i dont run the 'rm /data/recovery.img' after moving the recovery image to the /data folder it stays in the folder. Is it supposed to dissapear from the /data folder?
And i tried putting the recovery image in the same folder as abd which is the platform tools folder then flash it over and i got the same message. (cannot open for read: No such file or directory.)
Im sorry for all the questions and I am thankful for your help. I feel like i cant be the only person having this problem, well i hope im not that would make me feel really stupid. Thanks.
powers.jereme said:
Well ive tried to take the recovery image from the sd card to the /data folder but when i run 'rm /data/recovery.img' on the command prompt then reboot my phone, i turn it off then try and put it in recovery mode but its just regular recovery mode not cwm recovery mode. And everytime i run the 'rm /data/recovery.img' when my phone boots back up the recovery image is no longer in the /data folder or anywhere. But if i dont run the 'rm /data/recovery.img' after moving the recovery image to the /data folder it stays in the folder. Is it supposed to dissapear from the /data folder?
And i tried putting the recovery image in the same folder as abd which is the platform tools folder then flash it over and i got the same message. (cannot open for read: No such file or directory.)
Im sorry for all the questions and I am thankful for your help. I feel like i cant be the only person having this problem, well i hope im not that would make me feel really stupid. Thanks.
Click to expand...
Click to collapse
rm is the command to remove. So yes, recovery.img is supposed to disappear after that command. Put it back on /data and run the whole process from the CWM thread again making sure you do every step. Sounds like you may have accidentally skipped a step.
Sent from my LG-P925 using Tapatalk
Double post.
Ugh...keep selecting quote instead of edit on Tapatalk...Triple post...
Alright ill try that again, so i should put the file back on the /data folder and then still do the step where you try to flash over cwm from the cwm thread, even though its already there? Thanks
powers.jereme said:
Alright ill try that again, so i should put the file back on the /data folder and then still do the step where you try to flash over cwm from the cwm thread, even though its already there? Thanks
Click to expand...
Click to collapse
Yea just do it all again. Worst case is you flash cwm back over cwm
Sent from my LG-P925 using Tapatalk
I got it to work Urabewe was right i just needed to put the recovery image in the correct folder and everything worked perfect. Thanks guys.

[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.

[Q] .zip won't copy to root

I've flashed multiple ROMs before but this is the first time I'm experiencing this issue. I download the .zip I want to my PC, connect my HTC One to my computer and copy the file to the root of the SD. I boot into recovery but the .zip doesn't show up.
Has anyone has this problem before?
Thanks for the help in advance.
Maybe is in another folder.
With adb, try to use the command:
Code:
adb push name_rom.zip /data/media/
and check if you can see the zip, if not, try
Code:
adb push name_rom.zip /sdcard/
p.s. The rom will be in the same folder of adb

recovery/fastboot only (need rom on phone)HELP PLS

I flashed a new recovery twrp 2.6.3.3 to flash android revolution rom... I am new to this recovery so I made an error of deleting formatting the internal storage and in turn the android rev zip I wanted to flash.. so now im stuck in recovery with no rom to flash..and no backup to flash or restore.
I can access fastboot and I tried doing fastboot flash zip rom.zip said remote not allowed:failed...
this twrp wont mount the phone on my pc so I can drop the zip on the phone and flash it.
removable storage shows on my pc but it says please insert removable storage when I click it
I also went to mount on twrp and put the x throu system cache and data.. and tried without the x.. usb-otg is non selectable..but I don't even know what that is.. either way I still cant get access on my computer to drop the zip..
so is there any quick way I can get a darn zip transferred to my phone so I can flash it throu twrp.?
any help would be great
thanks
matthewstice said:
I flashed a new recovery twrp 2.6.3.3 to flash android revolution rom... I am new to this recovery so I made an error of deleting formatting the internal storage and in turn the android rev zip I wanted to flash.. so now im stuck in recovery with no rom to flash..and no backup to flash or restore.
I can access fastboot and I tried doing fastboot flash zip rom.zip said remote not allowed:failed...
this twrp wont mount the phone on my pc so I can drop the zip on the phone and flash it.
removable storage shows on my pc but it says please insert removable storage when I click it
I also went to mount on twrp and put the x throu system cache and data.. and tried without the x.. usb-otg is non selectable..but I don't even know what that is.. either way I still cant get access on my computer to drop the zip..
so is there any quick way I can get a darn zip transferred to my phone so I can flash it throu twrp.?
any help would be great
thanks
Click to expand...
Click to collapse
I think you just need an OTG cable... download and copy ROM of your choice, copy it to a USB drive, then mount the USB drive to your phone using OTG cable (available in most electronics stores for something like $2)
Once the USB is mounted, go into recovery, click install, and at the top there should be a menu that lets you choose between internal sdcard and OTG. Click OTG, and you'll be able to choose the ROM to install on the USB drive.
There's a way to "push" the files to your phone when it's hooked up through USB cable to the PC, but that's a bit more complicated. You can google or search on the forums (how to push files to HTC ONE)
Ya I googled..pushed zip over fastboot as I heard adb won't work..or is that wrong? just dont know if i did it right.. fastboot flash zip yourrom.zip..I'll give that other option a try but I guess I need a USB drive..and a cord.
Thanks
Sent from my LG-P769 using xda app-developers app
Go to recovery and adb push rom,zip /data/media
matthewstice said:
Ya I googled..pushed zip over fastboot as I heard adb won't work..or is that wrong? just dont know if i did it right.. fastboot flash zip yourrom.zip..I'll give that other option a try but I guess I need a USB drive..and a cord.
Click to expand...
Click to collapse
No, that's not right for flashing a custom ROM. That would be for flashing a ROM from HTC. They're both distributed as .zip, but are different formats. @SaHiLzZ got the right answer, but I'll explain it a little further:
- Install/configure ADB (you probably already did this if you can run fastboot).
- Boot the phone to recovery
- I would run two commands just for a little added safety:
Code:
adb shell mkdir /data/media
adb shell mkdir /data/media/0
Then the key command:
Code:
adb push name-of-ROM.zip /data/media/0/
Make sure the ROM is in the present shell directory on your computer, or type the full path to the ROM. The transfer takes a few minutes. The procedure is identical on Linux/OSX/Windows.
Now the ROM is on your phone, and you can install in TWRP.
Easiest way is 2 buy a USB OTG cable and put the ROM in the USB storage
fenstre said:
No, that's not right for flashing a custom ROM. That would be for flashing a ROM from HTC. They're both distributed as .zip, but are different formats. @SaHiLzZ got the right answer, but I'll explain it a little further:
- Install/configure ADB (you probably already did this if you can run fastboot).
- Boot the phone to recovery
- I would run two commands just for a little added safety:
Code:
adb shell mkdir /data/media
adb shell mkdir /data/media/0
Then the key command:
Code:
adb push name-of-ROM.zip /data/media/0/
Make sure the ROM is in the present shell directory on your computer, or type the full path to the ROM. The transfer takes a few minutes. The procedure is identical on Linux/OSX/Windows.
Now the ROM is on your phone, and you can install in TWRP.
Click to expand...
Click to collapse
Adb push myrom.zip /data/media/0
Waited 5 min then
Failed to copy "myrom.Zip" to /data/media/0/: Is a directory
Not working.. Want to get this work in over adb as I don't want to go out an buy a cord and USB drive
First I'll try
Adb push myrom.zip /data/media
I notice the ROM zip showing on the data/media directory on the phone..but something seems to be interrupting and failing the transfer before its completed
Second attempt worked...thank you..I'm back in business
Sent from my LG-P769 using xda app-developers app
Wonderful!

All In One (HTC One Mini 2 Stock Files)

Hers the links for the Files
HTC One Mini 2 original Backup
TWRP 2.7.1.1 and TWRP 2.8.1 thanks to @u-ra
Recovery 2.16 thanks to @djluisbento
SuperUser 2.02
This are the files i use on mine HtC with no problems
Install any Custom Recovery with Fastboot:
For this method to work, you must have ADB and fastboot installed on your computer.
Copy the recovery image to a convenient location on your computer, preferably with a short path. We will be placing it on the C Drive directly (not in any folder) and using that in the next steps.
Note: The recovery image should have .img extension. If it is in a zip file, extract the .img file from it before proceeding.
While your device is powered on and booted in Android normally, connect it to your computer via USB and
Connect your device to your computer via USB and wait till you see ‘fastboot USB’ on the screen.
Launch Command Prompt and type the following command:
fastboot flash recovery c:\recovery.img
Note that we have used c:\recovery.img as we the image extracted at the root of our C drive and renamed it to recovery.img. If you extracted the file elsewhere, use the appropriate path and if your recovery image has a different name, use the appropriate name or rename it to recovery.img first.
Wait for the process to finish and reboot your device once it’s done.
Using the recovery file
Download backup file from link above
Send to phone via sd card or TWRP adb push (google it) and (do not unzip or change file name)
Use TWRP to install from backup.
Super User
Download backup file from link above
Send to phone via sd card or TWRP adb push (google it) and (do not unzip or change file name)
Use TWRP to install zip file.

Categories

Resources