[Q] Help! Dont want to brick my phone - AT&T HTC One (M8)

Well the other day i thought i bricked my phone trying to update the firmware to the 3.xx version. Long story short I fixed it by flashing a rom from an ruu using hboot had to rename the rom 0p6bimg. Somehow it magically worked. I tried flashing thru twrp but twrp could not mount internal storage and even when plugged into my computer the internal storage could not be recognized. Well anyways when i tried to update the firmware somehow i lost root. I still have s-off and super CID. I have a nandroid backup before i tried to flash the new firmware. If i attempt to restore that backup will I recieve my root again. Also the firmware on my current os is 1.58.502.1. The nandroid backup has a 2.xx version
Thanks in advance for your response

First off, you didn't brick the phone. A true brick is only fixable by opening the phone (JTAG, new motherboard, etc.). The situation of "the phone won't boot because I don't know how to recover" is not a brick. It just means you need to know the right steps to get out of the situation you are in.
Of course if you flash a stock unrooted ROM, you will lose root.
Internal storage not mounting can mean a couple things. Sometimes this is fixed by with fastboot erase cache, and install TWRP again with fastboot. Make sure its the current version. Or switching to Philz recovery may help.
Or you can try to run the RUU.exe. If the internal storage is corrupted, the RUU should fix it. Backup any personal data as the RUU will wipe the phone.
How far did you get with the firmware update? What is your hboot number and radio baseband?

thanks
i know it wasnt a true brick but usually i can just flash another rom using twrp and it will go back to normal however this time i couldnt flash through twrp because interal storage could not be mounted. BTW i lost the root before installed the stock rom according to TWRP. Using method 3 provided in this link http://forum.xda-developers.com/htc-one-m8/development/firmware-flashing-panic-attacks-t2824048 i did all the steps and when i restarted my phone it lost the rom that was installed but the bootloader showed the new firmware was installed. anyways my current hboot-3.16.0.0000, radio baseband is 1.16.21331921.LA11G.
I find it interesting that TWRP can not mount or recognize the internal storage, but when i go to settings and click storage internal storage is recognized
So will i receive my root back if i try to restore my nandroid backup that had root and firmware was something like 2.xx or do i just have to re root
i dont know how to erase cache froom fastboot or flash a recovery through

Fastboot erase cache to erase cache
Fastboot flash recovery recovery.img to flash recovery
Both of these commands can be used with adb
---------- Post added at 05:47 AM ---------- Previous post was at 05:40 AM ----------
I've included a link of information that should hold value for you....
This link is to a minimal package of adb, which has fastboot...the entire SDK is a rather large package, and not something I'd recommend for a novice user.
http://forum.xda-developers.com/showthread.php?t=2317790
Follow the link, if you have any questions..I, or someone else with adb/fastboot knowledge will be able to help you..
I give credit to the vast amount of good devs here; however, I wouldn't recommend toolkits. Its best to learn yourself

jxcorex28 said:
I've included a link of information that should hold value for you....
This link is to a minimal package of adb, which has fastboot...the entire SDK is a rather large package, and not something I'd recommend for a novice user.
http://forum.xda-developers.com/showthread.php?t=2317790
Click to expand...
Click to collapse
Great thread to get fastboot/adb going. But it should be noted, as long as the OP unlocked the bootloader by HTCDev.com (and not some other method, like sunshine), he should already have adb/fastboot installed.
---------- Post added at 10:10 AM ---------- Previous post was at 10:00 AM ----------
neal425 said:
I find it interesting that TWRP can not mount or recognize the internal storage, but when i go to settings and click storage internal storage is recognized
Click to expand...
Click to collapse
This may just be a TWRP bug, which is why I suggested to re-install TWRP, or try Philz recovery.
neal425 said:
i dont know how to erase cache froom fastboot or flash a recovery through
Click to expand...
Click to collapse
Time to learn. Fastboot and adb can get you out of a lot of jams, particularly when you can't boot the phone into OS.
The info posted in the previous response is a good start. There are a variety of good beginner guides here on XDA, if you just search. But here is just an example of a decent looking one: http://forum.xda-developers.com/showthread.php?t=2225405
Note the statement: THIS WILL TAKE 10 MINUTES OF YOUR TIME AND WILL BENEFIT YOU FOR LIFE
neal425 said:
Using method 3 provided in this link http://forum.xda-developers.com/htc-one-m8/development/firmware-flashing-panic-attacks-t2824048 i did all the steps and when i restarted my phone it lost the rom that was installed but the bootloader showed the new firmware was installed. anyways my current hboot-3.16.0.0000, radio baseband is 1.16.21331921.LA11G.
Click to expand...
Click to collapse
I think you may be confused about what firmware is. The hboot number and radio indicate you are still on software 1.x version firmware. If the firmware flash worked, the hboot number and radio would have changed. You can't look at the main version, that just tells you what ROM you have installed, which is very different from firmware.
Do you have s-off?

ok thanks, i know how to use adb just dont kno all the commands, thanks for in the info. will try again

http://forum.xda-developers.com/showthread.php?t=2141817
This link is one I've used quite frequently...
---------- Post added at 08:10 PM ---------- Previous post was at 08:10 PM ----------
Make an excel worksheet with the commands, and it'll help you

Related

I'm completely lost...help?

I have Xtreme Outcast senseless on my rezound. I want to get the Venasaur Rom v3.2.0. How do I proceed to do this? I know what i'm doing, it's just apparently there is one little mistake that i'm making. I had tried to put the newt one xxx rom on here and when i tried to flashed the boot.img in fastboot it gave me an error. I don't know what you need for the venasaur rom. Or if the same problems will occur.
Man if you want help, we're gonna need a lot more information. Please list your current config and bootloader lock status, as well as the steps you are using to try to flash and the error messages you are getting. With this info I'm sure you will find the help you are looking for.
Im guessing he got a mainver error?
If that's the case then there are some threads on how to fix that. In all honesty just s-off it makes things so much easier. Don't do something if you don't know why you are doing it, check md5 sums.
My bootloader is unlocked. i did this the day i got the rezound. Would flashing the Venasaur rom need the ICS RUU? I havent flashed it yet.
quitoxic said:
My bootloader is unlocked. i did this the day i got the rezound. Would flashing the Venasaur rom need the ICS RUU? I havent flashed it yet.
Click to expand...
Click to collapse
Try flashing the kernel in fastboot.
You don't NEED the ruu u can use it but at this point I'd wait till the official ota
I have already tried to flash in fast boot. When I try to flash I get "error boot.img can't be loaded"
What is your boot loader version, what recovery are you running. Please, please list the steps you are going through to attempt this flash. We would like to help but with the little info you are providing, you are making it very diffacult.
---------- Post added at 04:44 PM ---------- Previous post was at 04:42 PM ----------
Also I have flashed this phone a hundred times and never flashed a single ruu
my bootloader is 2.10. I havent tried to flash the venasaur rom yet because i cant get flashboot to recognize my phone. i have installed the htc drivers and still no luck. When i type adb devices my phone doesnt pop up and i think thats the problem. I just dont know how to solve it
Unzip the Rom, open the kernel folder and copy the ph98img.zip to the root of your sd card. Make sure there are no previous image files there. Then pull your battery and put it back in. Hold volume down and power untfill the phone boots to the bootloader. Select boot loader let it search and click apply update.
Well idk what has happened but after trying the same thing for hours it finally worked. For those who helped or attempted to help, thank you
strangecheese94 said:
Unzip the Rom, open the kernel folder and copy the ph98img.zip to the root of your sd card. Make sure there are no previous image files there. Then pull your battery and put it back in. Hold volume down and power untfill the phone boots to the bootloader. Select boot loader let it search and click apply update.
Click to expand...
Click to collapse
Where exactly do you mean by "root of your sd card"? I'm don't what I'm doing at all. I followed a tutorial step by step and ran into this same problem. My computer stopped connecting to my phone and it continued to give me the same error message.
gotenks42 said:
Where exactly do you mean by "root of your sd card"? I'm don't what I'm doing at all. I followed a tutorial step by step and ran into this same problem. My computer stopped connecting to my phone and it continued to give me the same error message.
Click to expand...
Click to collapse
"Root of the sdcard" refers to having the file on the main directory, like not inside a folder. Just on the card itself, where if you were to look on the sdcard which is called ext_sdcard in the phone, you would see the file without having to look inside the folder.
In addition to your post Charlie:
There is root directory and subdirectory.Hence the term root and giving root access, meaning changing any file within the system. Without root access in leymans (sp?) terms, only allowing limited read/write access to user apps.
Best way I can describe it without technicalities.

Repair HTC M8

Can anyone tell me where to get my At One M8 repairs?
I can't take it to AT&T since they will say it's been tampered. I would appreciate any advice because I couldn't get any ROM into it. Only cyanogen would work but no WiFi.
ricm68 said:
Can anyone tell me where to get my At One M8 repairs?
I can't take it to AT&T since they will say it's been tampered. I would appreciate any advice because I couldn't get any ROM into it. Only cyanogen would work but no WiFi.
Click to expand...
Click to collapse
Not enough information. What about it is "broken" requiring repair? In what way is it "tampered"?
Oh, and HTC will most likely refuse to repair it directly, telling you that if you bought it from AT&T, that AT&T needs to act as the agent for repair. You can always try to head over to HTC's website (I'm sure you can find it), find the support section, and make a support inquiry from them directly.
garyd9 said:
Not enough information. What about it is "broken" requiring repair? In what way is it "tampered"?
Oh, and HTC will most likely refuse to repair it directly, telling you that if you bought it from AT&T, that AT&T needs to act as the agent for repair. You can always try to head over to HTC's website (I'm sure you can find it), find the support section, and make a support inquiry from them directly.
Click to expand...
Click to collapse
Well I don't know how but I erased the internal memory completely and now it won't take any roms. No matter what I try in recovery it always fails. The only thing I can install is cyanogenmod. There is no wifi also.
i'll try to go to at&t or htc. I hope they don;t charge me too much to repair.
Thanks.
ricm68 said:
Well I don't know how but I erased the internal memory completely and now it won't take any roms. No matter what I try in recovery it always fails. The only thing I can install is cyanogenmod. There is no wifi also.
i'll try to go to at&t or htc. I hope they don;t charge me too much to repair.
Thanks.
Click to expand...
Click to collapse
Did you flash the google play edition ruu? If so, the phone was repartitioned, and sense will no longer "fit" on the system partition. There's a way to deal with that if that's the case...
garyd9 said:
Did you flash the google play edition ruu? If so, the phone was repartitioned, and sense will no longer "fit" on the system partition. There's a way to deal with that if that's the case...
Click to expand...
Click to collapse
I flashed the one found at the post: [RUU] att ruu 1.58.502.1 posted
Hmm.. Not sure what to suggest in that case. I'm not very familiar with the whole RUU thing myself...
Sent from my Nexus 7 using Tapatalk
Download the ota update. Extract the firmware.zip from it but don't extract firmware.zip. boot to fastboot.
Fastboot oem rebootRUU
Fastboot flash zip firmware.zip
Do it again
Fastboot flash zip firmware.zip
Fastboot reboot-bootloader
Fastboot flash recovery twrp.img
Fastboot erase cache
Load recovery
Wipe, advanced wipe
Select dalvik, cache, data, system, internal. Wipe.
Put Rom on ext sd card or
Adb push Rom.zip /sdcard/
Install zip this will obviously erase everything on your phone.
Click thanks.
Sent from my HTC One_M8 using XDA Premium 4 mobile app
ricm68 said:
Well I don't know how but I erased the internal memory completely and now it won't take any roms. No matter what I try in recovery it always fails. The only thing I can install is cyanogenmod. There is no wifi also.
i'll try to go to at&t or htc. I hope they don;t charge me too much to repair.
Thanks.
Click to expand...
Click to collapse
You don't need to repair. You just need to troubleshoot. You are throwing the baby out with the bath water, if you go for a hardware repair for what is likely a software issue that is easy to resolve.
You also need to provide more details, and be specific as possible. Namely:
What recovery and version number?
S-on or off?
What exactly have you tried to flash?
Did you factory reset in bootloader?
Do you have working adb?
What happened when you ran the RUU?
Hi redpoint73, I have twrp 2.7.1.0, unlocked, s-off.And I have adb.
I tried to ruu, then install a recovery, a stock rom and don't know how many things more and can't bring it back. They told me I should install cwm and try from there but don't know how. Please advice me on what to do and if you can, guide me step by step.
Thanks so much for your help.
ricm68 said:
Hi redpoint73, I have twrp 2.7.1.0, unlocked, s-off.And I have adb.
I tried to ruu, then install a recovery, a stock rom and don't know how many things more and can't bring it back. They told me I should install cwm and try from there but don't know how. Please advice me on what to do and if you can, guide me step by step.
Thanks so much for your help.
Click to expand...
Click to collapse
http://forum.xda-developers.com/htc-one-m8/general/vomerguides-m8-bootldr-unlock-s-off-t2800727
You wont need the whole thing but some of it might pertain to you
ricm68 said:
Hi redpoint73, I have twrp 2.7.1.0, unlocked, s-off.And I have adb.
I tried to ruu, then install a recovery, a stock rom and don't know how many things more and can't bring it back.
Click to expand...
Click to collapse
I've already asked what happened when you ran the RUU, and you didn't answer. Any error messages, etc.? This is very critical information, so its hard to help when you don't provide the answers requested (especially this one).
RUU is meant to recover the device in most cases. So if it didn't work, its very posible you have a fundamental USB connectivity issue. What response do you get when you type the adb command:
adb devices
What happens when you try to install recovery or a stock ROM? You need to give more information and specifics if you really want help.
And "don't know how many things" is not meaningful information. You need to list all the things you tried, and the results. Again, the lack of specific info makes it hard to help. I literally typed more asking you questions, than you bothered typing the answers. This does not bode well if you really want help.
You did not even answer all the questions I asked:
- What exactly have you tried to flash? (list the ROMs)
- Did you factory reset in bootloader?
ricm68 said:
They told me I should install cwm and try from there but don't know how. Please advice me on what to do and if you can, guide me step by step.
Click to expand...
Click to collapse
Who is "they"? Again, you are being too vague.
I am personally more familiar with TWRP, so I would advise staying with that if you want help from me. Nothing against CWM. But again, its just what I'm more familiar with.
redpoint73 said:
I've already asked what happened when you ran the RUU, and you didn't answer. Any error messages, etc.? This is very critical information, so its hard to help when you don't provide the answers requested (especially this one).
RUU is meant to recover the device in most cases. So if it didn't work, its very posible you have a fundamental USB connectivity issue. What response do you get when you type the adb command:
adb devices
What happens when you try to install recovery or a stock ROM? You need to give more information and specifics if you really want help.
And "don't know how many things" is not meaningful information. You need to list all the things you tried, and the results. Again, the lack of specific info makes it hard to help. I literally typed more asking you questions, than you bothered typing the answers. This does not bode well if you really want help.
You did not even answer all the questions I asked:
- What exactly have you tried to flash? (list the ROMs)
- Did you factory reset in bootloader?
Who is "they"? Again, you are being too vague.
I am personally more familiar with TWRP, so I would advise staying with that if you want help from me. Nothing against CWM. But again, its just what I'm more familiar with.
Click to expand...
Click to collapse
I Hi, thanks a lot. I did the factory reset from bootloader and tried to install Android_Revolution_HD-One_M8_5.0 and after doing the process it returns failed. Also One_M8_1.54.401.10_odexed and Jmz_M8_StockRootedOdex-ATT and I just tried with cyanogenmod 11. While I installed this in twrp recovery it said failed but when I reboo0ted in stared loading. I installed gapps and now my phone is working at least. But I still can't flash a snse rom or a gpe rom because it fails in twrp.
That's about all I can tell you. Oh, and I see it's in android 4.4.4.
ricm68 said:
I Hi, thanks a lot. I did the factory reset from bootloader and tried to install Android_Revolution_HD-One_M8_5.0 and after doing the process it returns failed. Also One_M8_1.54.401.10_odexed and Jmz_M8_StockRootedOdex-ATT and I just tried with cyanogenmod 11. While I installed this in twrp recovery it said failed but when I reboo0ted in stared loading. I installed gapps and now my phone is working at least. But I still can't flash a snse rom or a gpe rom because it fails in twrp.
That's about all I can tell you. Oh, and I see it's in android 4.4.4.
Click to expand...
Click to collapse
I don't understand how its so difficult for you to answer the basic questions I've asked multiple times now What happens when you run the RUU?
The RUU should restore the phone to full functionality, albeit with stock recovery, no root, etc. (if that is what you want).
Of course, this is not ideal if you want to install custom ROMs (which I assume is the case).
What I would try is to re-install TWRP. I'm not aware of any bugs in the newest version (which it appears you have) that would prevent flashing all the ROMs you mentioned. So maybe its just an improper install:
Re-download the latest TWRP img file. Place file in your fastboot folder. Open command prompt (navigate to the fastboot folder) and type:
fastboot erase cache
fastboot flash recovery "filename.img"
(where "filename.img" is the actual file name of the TWRP img file, with no quotes)
From there, load a ROM to your device, boot into TWRP and try flashing the ROM.
---------- Post added at 04:09 PM ---------- Previous post was at 03:10 PM ----------
Also, it is becoming apparent to me that doing a factory reset in bootloader corrupts the internal memory. My advice is to never do this (factory reset within the OS settings or in recovery if you need to).
But if the internal memory was corrupt, you shouldn't be able to load any files onto the phone (including ROMs). It seems that your internal memory is ok (you can transfer files to the phone, access them, etc)?
redpoint73 said:
I don't understand how its so difficult for you to answer the basic questions I've asked multiple times now What happens when you run the RUU?
The RUU should restore the phone to full functionality, albeit with stock recovery, no root, etc. (if that is what you want).
Of course, this is not ideal if you want to install custom ROMs (which I assume is the case).
What I would try is to re-install TWRP. I'm not aware of any bugs in the newest version (which it appears you have) that would prevent flashing all the ROMs you mentioned. So maybe its just an improper install:
Re-download the latest TWRP img file. Place file in your fastboot folder. Open command prompt (navigate to the fastboot folder) and type:
fastboot erase cache
fastboot flash recovery "filename.img"
(where "filename.img" is the actual file name of the TWRP img file, with no quotes)
From there, load a ROM to your device, boot into TWRP and try flashing the ROM.
---------- Post added at 04:09 PM ---------- Previous post was at 03:10 PM ----------
Also, it is becoming apparent to me that doing a factory reset in bootloader corrupts the internal memory. My advice is to never do this (factory reset within the OS settings or in recovery if you need to).
But if the internal memory was corrupt, you shouldn't be able to load any files onto the phone (including ROMs). It seems that your internal memory is ok (you can transfer files to the phone, access them, etc)?
Click to expand...
Click to collapse
The phone was working ok but suddenly wifi wouldn't turn on and mobile network stopped again!!!
I tried to intall android revolution but when it gets to installing the apps is says "set_perm: some changes failed". I click next and reboot and it just takes me back to recovery
redpoint73 said:
I don't understand how its so difficult for you to answer the basic questions I've asked multiple times now What happens when you run the RUU?
The RUU should restore the phone to full functionality, albeit with stock recovery, no root, etc. (if that is what you want).
Of course, this is not ideal if you want to install custom ROMs (which I assume is the case).
What I would try is to re-install TWRP. I'm not aware of any bugs in the newest version (which it appears you have) that would prevent flashing all the ROMs you mentioned. So maybe its just an improper install:
Re-download the latest TWRP img file. Place file in your fastboot folder. Open command prompt (navigate to the fastboot folder) and type:
fastboot erase cache
fastboot flash recovery "filename.img"
(where "filename.img" is the actual file name of the TWRP img file, with no quotes)
From there, load a ROM to your device, boot into TWRP and try flashing the ROM.
---------- Post added at 04:09 PM ---------- Previous post was at 03:10 PM ----------
Also, it is becoming apparent to me that doing a factory reset in bootloader corrupts the internal memory. My advice is to never do this (factory reset within the OS settings or in recovery if you need to).
But if the internal memory was corrupt, you shouldn't be able to load any files onto the phone (including ROMs). It seems that your internal memory is ok (you can transfer files to the phone, access them, etc)?
Click to expand...
Click to collapse
I did the factory reset from within cyanogenmod and it didn't wipe it. It restarted back to cyanogenmod. I copied andoid revolution to my internal memory and try to install from there.
ricm68 said:
The phone was working ok but suddenly wifi wouldn't turn on and mobile network stopped again!!!
I tried to intall android revolution but when it gets to installing the apps is says "set_perm: some changes failed". I click next and reboot and it just takes me back to recovery
Click to expand...
Click to collapse
You need to try the things I've suggested. I've made some definitive recommendations, and you seem to have ignored them. Honestly, I don't see a point in trying to help anymore, if you don't read what I'm taking the time to post; or you don't try what I've suggested.
Worst case is RUU and start over (install custom recovery again, etc.). But again, I have no idea what happened when you tried to RUU since you still haven't answered that.
You aren't going to make any progress, if you keep ignoring the advice that is given to you.
I'm doing what you told me!!!
I reinstalled twrp and tried but it failed again. Believe me, I've been doing what you suggested.
Can you please give me the steps to RUU and what ruu file to download and use. I really appreciate all you're doing for me and the time you are taking to help.
Sent from my One M8 using XDA Premium 4 mobile app
I was able to install cyanogen mod again and I am using the phone but I want to install sense again.
Sent from my One M8 using XDA Premium 4 mobile app

installing system update with a rooted M9

Hello everyone!
I've been very happy with my rooted M9 for the last few months but now a system update message on my screen and I'm trying to figure out what to do about. I seem to recall when I rooted my phone that there could be complications if I install a system update on a rooted phone (like making a Nandroid Backup) but I'm finding scarce information on the topic. Does anyone here have some advice about this?
Rom...
http://forum.xda-developers.com/showthread.php?t=3083799
Firmware...
http://forum.xda-developers.com/showthread.php?t=3073355
Follow the second link above.
You will need to restore the factory system.img using TWRP (exFAT or NTFS for external USB as file is > 4GB).
This puts the modified system (root) back to stock so the update will run successfully.
Flash the original recovery for you system version too.
Then you can accept the OTA and then root the phone again.
Thanks for the responses! I'm still uncertain about a few things so tell me if I have this right.
First I need to restore the factory image. Is that a guy named OJM is talking about on this thread? (http://forum.xda-developers.com/sprint-one-m9/general/rooting-guide-t3073004)
To restore your clean system backup to accept OTAs, you must use fastboot. If you are S-ON, you must be in download mode.
-copy your clean system.emmc.win to your adb/fastboot folder on your pc
-boot into download mode
-use cmd fastboot flash system system.emmc.win
Click to expand...
Click to collapse
In that case, what is a system.emmc.win?
Then I flash the original recovery...what are you refering to when you say "original recovery"?
After that my phone should be locked again and I can go to that second link, download the latest firmware and flash it. And then I can unlock and root my phone again.
Edit: So it looks like someone has made a guide on how to get the OTA updates (if you use the right words in your search). It looks no one done anything with it since May so maybe it still works? http://forum.xda-developers.com/one-m9/general/best-unlocking-bootloader-rooting-guide-t3087354
I would just run the official RUU, it's a one shot process will take care of everything including the radios. Much easier than messing around, just make sure you are S-OFF before you do it. When it's done just flash the latest TWRP and install your rom you will be done.
Sim-X said:
I would just run the official RUU, it's a one shot process will take care of everything including the radios. Much easier than messing around, just make sure you are S-OFF before you do it. When it's done just flash the latest TWRP and install your rom you will be done.
Click to expand...
Click to collapse
That was what I ended up doing. Had few bumps on the way but I managed to get everything working. Thanks for the help everyone!
RUU
Sim-X said:
I would just run the official RUU, it's a one shot process will take care of everything including the radios. Much easier than messing around, just make sure you are S-OFF before you do it. When it's done just flash the latest TWRP and install your rom you will be done.
Click to expand...
Click to collapse
hi sim I have a question the only thing I got to make sure is that the phone is S-OFF and nothing will happen because I read that also the bootlooder had to be lock again so I'm not sure

H850 Camera is unavailable due to no storage

I am facing here difficulties with that phone, as it says the camera is unavailable due to no storage, also it feels a little slow, even at the boot up. I already did a hardware reset without any fix. Where is there still to do, bring the device back to normal?
Did you check how much space is left on the phone?
It says 8.64 GB used of 32 GB
Available 23,36 GB
Cashed data 36.00 KB
System data 8.44 GB
It's actually all other apps too, which crashing down. It asks me if I want to close this app or want to wait. What there went wrong?
Puh, this sounds strange. I can only think of a memory failure... Maybe you can check this somehow. Or some permission problem? I would try to flash a KDZ via lgup and see if that helps...
Also this does not work, I tried two different KDZ, but it is saying "Error: KDZ file is invalid " on both. Does this mean the phone damaged?
I guess I found out the cause of this strange behavior, but I don't know how to fix this issue ?
C:\Android>adb shell /data/local/tmp/dirtycow /system/bin/applypatch /data/local/tmp/dirtycow
warning: new file size (9984) and file old size (66512) differ
Click to expand...
Click to collapse
If you flash dirty cow there is no storage. So phone is not usefull. Flash stock rom again.
I already tried that, once it said Error: Error Code = 0x2000, Fail!. MTP is not Running or just the file is invalid, however I had tried already two different files.
What I am doing wrong here?
Also one of the problems is because I can't get to the fastboot mode. I did exactly as described at the video. https://youtu.be/uB3AYkLdwCc
But it is just booting through starting the Android OS again. So how I can wipe cache to clean everything ?
Volume down + Power button until the LG logo appears on screen, leaving the power button for a second and click again, it only will give me the option of factory data reset to delete all user data (including LG and carrier apps) and rest all settings. But this won't fix the storage problem.
Another thing, which won't work is to boot the phone connected to the laptop into fastboot mode, as written here https://www.androidexplained.com/lg-g5-recovery-mode/ At the end it says no command, under the little android logo.
So how can I simply reset or load up another KDZ ?
No need to start a new thread.
It would be best, if you start telling us what you tried to do with your phone? We cannot guess what went wrong if we do not know what happened in first place. Also, do you have the right kdz, as mentioned in the other thread?
Do you have a custom recovery installed? If yes and you start to enter it, you will get the factory reset screen. You will have to answer both questions with yes to get to the custom recovery.
caesium2 said:
No need to start a new thread.
It would be best, if you start telling us what you tried to do with your phone? We cannot guess what went wrong if we do not know what happened in first place. Also, do you have the right kdz, as mentioned in the other thread?
Do you have a custom recovery installed? If yes and you start to enter it, you will get the factory reset screen. You will have to answer both questions with yes to get to the custom recovery.
Click to expand...
Click to collapse
I wanted to root the phone as it written here https://www.idroidspace.com/root-lg-g5/, and all went good until this section:
Step 10) Once the system patching is done, you need to reboot the device in recovery mode and wipe data. To do so, type the following command into a terminal running on Mac, Linux, or Windows.
adb reboot recovery
Step 11) Once you are into stock recovery, wipe the data and reboot it. It will wipe all your data and reset it to factory settings.
Click to expand...
Click to collapse
Would you be so kind and tell me which custom recovery and KDZ would work on my phone? I am using the LG G5 H850K (It came from Telstra)
If you point me out where to find a suitable KDZ, I appreciate you.
That's what the data factory reset is offering to me. What would you suggest me to do?
I think I have somehow to get into fastboot mode, but using the Minimal ADB and Fastboot tool, and enter adb reboot recovery will only give me a no command. Is ther' still any hope for my phone ?
Also because of no storage, I have no chance to install the TWRP Custom Recovery app. Google Play does not work for, plus no space and the flashcard is being ignored. So, I don't know really what to do with this phone, if it is still repairable ?
dsr250p said:
That's what the data factory reset is offering to me. What would you suggest me to do?
Click to expand...
Click to collapse
Like I said, IF you have a custom recovery, you have to enter yes to enter the recovery.
If you are able to get into fastboot mode, there is definitely hope for your phone. What about installing a custom recovery like TWRP? You could wipe your phone and install a flashable zip through it.
https://forum.xda-developers.com/lg-g5/development/recovery-team-win-recovery-project-lg-g5-t3363047
---------- Post added at 06:49 AM ---------- Previous post was at 06:44 AM ----------
So, your phone, the H850K, has an unlockable bootloader, right? So you will not be able to install a custom recovery. I guess you will have to stick to LGUP and get this working with the right KDZ file. Or did you maybe do a backup in LG Bridge?
---------- Post added at 06:53 AM ---------- Previous post was at 06:49 AM ----------
It seems that the KDZ you have is the right one. Did you try downloading it again? I has to work.
Yes, the H850K has a bootloader which is locked. Might be the reason not having access to wipe data/factory reset or wipe cache partition.
I downloaded the KDZ file again, but still it does not work. The phone is good connected to the LGUP tool, but no good with the LG Bridge. It always wants me to allow the MTP file transfer mode, which actually has been set up, just because of the flash dirty cow there is no storage. The internal space is not shown on computer. So how, under these circumstances I can flash stock rom again?
Am I correct this does mean only LG or Telstra can unlock the bootloader at this time, to make the device useful again ?
Here it is saying about the LG G4 815K nothing good, and it might effect the same to G5. Also when those phones ran out of warranty Telstra will not release the 'unlock.bin'.
With the G5 850K I am lost of luck. https://crowdsupport.telstra.com.au/t5/LG/Unlocking-Bootloader-on-LG-G4/td-p/521351
Do I have to ask Telstra to restore my phone ?
Follow this post here and you might be able to save your phone.
https://forum.xda-developers.com/showpost.php?p=70446243&postcount=69

[GUIDE] How to unbrick encrypted device on nougat with lost encryption key.

Hello everyone this is my fist guide so be kind with the formatting, i will get better as I post more. I am writing this guide, because like you, the reader, I had installed lineageOS 14.1 and set up the phone and realized there was encryption on it, and with that tried to wipe it in twrp just to find out that it only wiped the encryption key, but not the encryption itself. Don't panic, it isn't all your fault, XD. Stay calm, the last thing you need is to be freaking out, flashing random zips in hopes of fixing it. I will give credit to all of the developers whose tools i am linking at the bottom.
Now that the introductions are out of the way, time for the complimentary dose of warning.
WARNING: Doing this won't guarantee that this will fix it, as every situation can vary. I am not responsible for any bricked devices, thermal reactors coming from your phone after this, or modding before it was cool.
Assuming you can still get into fastboot first you need to gather these files if you don't have them yet.
- Minimal adb and fastboot on windows after installing just drag to desktop to add files to it
- Qualcomm fastboot drivers for axon7tool.exe and for fastboot and adb
- TWRP 3.0.4-1 official for Axon 7
- B29 rollback modded zip on the second tab
- Nougat modem and bootstack
- Tenfar's axon7root.exe (just in case you can't use fastboot. that's what i used because i don't know how to use axon7tool.exe)
- Fastboot image to get fastboot working again flash it in twrp after getting twrp installed again through axon7root.exe
- Some time because this will likely take an hour of your time, assuming you have the drivers and files already downloaded, longer if not and slow internet.
- LineageOS 14.1
- GAPPS 7.1.1 ARM 64
- almost forgot, you also need a microsd card to store the files because we will be wiping your entire internal with this, so back up your lovely dank memes or forever hold the loss.
Step 0.5. if you don't have fastboot working flash the bootloader unlock file by drakenfx to get it working again. if you don't have twrp for whatever reason go to the guide for axon7root.exe linked above and reboot to edl mode by holding all buttons down and have your phone connected to computer to know you are there. there won't be a vibration to let you know, just your computer telling you it has a connected device. now flash twrp, by first renaming the recovery to recovery.img and putting it in the adb folder along with the the root exe and do 'axon7root.exe -p (insert your com number listed in device manager) -r' (without the ' obviously) and it should send the recovery. if it doesn't see your device. make sure you have the drivers installed and make sure you have put down your com number where i left the () at
Step 1. assuming your device boots to this beautiful screen. you need to go back to twrp and drag the B29 zip from your computer to your external sd card from mtp and go to mount and mount system read-only this is very important.
Step 2. flash the B29 modded and let it go through. this will take a few minutes. if the progress bar automatically jumps to the end, you didn't go read only.
Step 3. after it finishes reboot into system and let it set up your system, you can skip through because we will be resetting again anyhow.
Step 4. reboot back to recovery. you can do this by using that pesky bl unlocked message by pressing up on volume as soon as it shows and selecting recovery. there you can see you have stock recovery, don't panic this is what we need. select wipe data factory reset and let it do it
Step 5. go back and skip set up again and reboot to bootloader where you can now 'fastboot flash recovery recovery.img' to get back twrp.
Step 6. flash the nougat bootstack and modem i had you download. after flashing that, go to wipe: Advanced wipe. Select Dalvik, system, data, cache and swipe to wipe. this will format it as ext4 which is what is required to get to lineageOS
Step 7. flash lineageos 14.1 and your gapps category and wait to let it finish. Note, you don't have to flash the modem more than once after flashing lineageos, even for updating. just after leaving B29
Step 8. reboot to make sure your encryption problem is not there
Step 9. set up phone and profit.
If you have done everything right, you shouldn't have bricked and should be back to lineageos 14.1 with no further problems. If you skipped around and got yourself bricked, congratulations because i am not the best at fixing problems, and i can try to help, but you will be at the mercy of the Best devs this community has to offer.
Now to the part where I thank all the Devs who, without their tireless time and effort, would not have made this guide possible and development into this phone in the first place. @Unjustified Dev for the lineageOS build i use as my daily driver for now; you rock dude. ^^
@DrakenFX oh god where do i begin. for the bl unlock zip, B29 modded ota, inspiration to the rest of the community, etc.
@tenfar for the axon7root.exe tool used
@sixohtew for his constant help and advice with not only this guide, but with teaching me to build android. if you are interest in learning how to compile android for any device, he can probably help. he has a very fair deal and is amazing at what he does.
Thank you all for your copious hours of time spent in the building of each great tool and to the community as a whole. Everyone, these guys are amazing, even if i have only talked to one of them. Be sure to stop by and donate.
If i have left anyone's name out, please hit me up and i will add you to the credits, and to that i apologize.
Happy flashing!
I read through your guide several times. I'm missing the point here. At which step does the decryption get removed?
gpz1100 said:
I read through your guide several times. I'm missing the point here. At which step does the decryption get removed?
Click to expand...
Click to collapse
Sorry for delayed response, it gets removed when you do the factory reset in stock recovery. For some reason TWRP can't remove it from /data in nougat but stock recovery can in B29.
Wipe->Format Data in TWRP removes all encryption from /data and /sdcard. Did you try that before reinstalling the stock recovery? I've had weird experiences in the past with stuck encryption.
QuantumFluxx said:
Wipe->Format Data in TWRP removes all encryption from /data and /sdcard. Did you try that before reinstalling the stock recovery? I've had weird experiences in the past with stuck encryption.
Click to expand...
Click to collapse
I did try it. It doesn't wipe it because there is a bug with TWRP for our phone. I would wipe and even format data and it wouldn't work. If you go to the official TWRP thread it even warns you that if you have encryption to not wipe. We had a dev who wiped and it got rid of the encryption key and not the encryption, like what happened to me. I tried to wipe so many times and had to revert. Long process but I got my phone to work again
Rip me
So I was bricked to the point where I was able to access TWRP and if I flashed any ROM, even after formatting data, I would reach a Decryption unsuccessful screen on my A2017U. I followed the guide from step 0.5, since fastboot was not working. After flashing the bootloader unlock file via TWRP, I was not able to access anything, further bricking the device. It boots within a second to a black screen, and reboots to it if I hold the power button or any combination for recovery.etc. I can not go to EDL mode; Axon7tool detects it though when it is in this state, and is able to send files successfully. However, it still stays in this black screen. Is there any way to get back to a functioning phone at this point?
Edit: It is apparently always in EDL? It shows up and is identified by my PC as QUSB_BULK...
navsterama said:
So I was bricked to the point where I was able to access TWRP and if I flashed any ROM, even after formatting data, I would reach a Decryption unsuccessful screen on my A2017U. I followed the guide from step 0.5, since fastboot was not working. After flashing the bootloader unlock file via TWRP, I was not able to access anything, further bricking the device. It boots within a second to a black screen, and reboots to it if I hold the power button or any combination for recovery.etc. I can not go to EDL mode; Axon7tool detects it though when it is in this state, and is able to send files successfully. However, it still stays in this black screen. Is there any way to get back to a functioning phone at this point?
Edit: It is apparently always in EDL? It shows up and is identified by my PC as QUSB_BULK...
Click to expand...
Click to collapse
Can you still get into recovery with power & vol+? and what happened as soon as you flashed the zip?
twilighttony said:
Can you still get into recovery with power & vol+? and what happened as soon as you flashed the zip?
Click to expand...
Click to collapse
Nope :crying:. The EDL combo and the recovery combo result in the same screen and duration of boot. After flashing the bootloader unlock file, I remember reading the script to see that it was successful and yielded a result of 1 before resulting in this screen.
navsterama said:
Nope :crying:. The EDL combo and the recovery combo result in the same screen and duration of boot. After flashing the bootloader unlock file, I remember reading the script to see that it was successful and yielded a result of 1 before resulting in this screen.
Click to expand...
Click to collapse
I am not sure what happened to that, were you originally on B15? i was simply on the modem/bootstack which allowed me to succeed in flashing that file. that could be a variable. i will be sure to look into a tool ive heard of called miflash which works through edl mode to unbrick.
navsterama said:
Nope :crying:. The EDL combo and the recovery combo result in the same screen and duration of boot. After flashing the bootloader unlock file, I remember reading the script to see that it was successful and yielded a result of 1 before resulting in this screen.
Click to expand...
Click to collapse
try this.
twilighttony said:
I am not sure what happened to that, were you originally on B15? i was simply on the modem/bootstack which allowed me to succeed in flashing that file. that could be a variable. i will be sure to look into a tool ive heard of called miflash which works through edl mode to unbrick.
Click to expand...
Click to collapse
Yea, I was on B15. Trying miFlash right now though. I'll update you when its done...:good:
navsterama said:
Yea, I was on B15. Trying miFlash right now though. I'll update you when its done...:good:
Click to expand...
Click to collapse
ok that does make sense as to why it failed. i was on the modded modem file that allowed me to install los
twilighttony said:
ok that does make sense as to why it failed. i was on the modded modem file that allowed me to install los
Click to expand...
Click to collapse
Wait...in terms of the bootstack I was also on the modded one for LOS 14.1. However, it was when the last unofficial build came out (Feb 3rd???). I tried to clean flash LOS Weekly today and thats when I ran into the dilemma of the decryption. Idk why I said yes for being on B15, for some reason that translated to generally Nougat bootstack in my head. My bad, OP.
---------- Post added at 10:47 PM ---------- Previous post was at 10:30 PM ----------
navsterama said:
Yea, I was on B15. Trying miFlash right now though. I'll update you when its done...:good:
Click to expand...
Click to collapse
Unbricked, booted up, now its on the "beautiful" screen. Thanks!
twilighttony said:
try this.
Click to expand...
Click to collapse
This is posted in the dev section. No need for external linkage.
navsterama said:
Wait...in terms of the bootstack I was also on the modded one for LOS 14.1. However, it was when the last unofficial build came out (Feb 3rd???). I tried to clean flash LOS Weekly today and thats when I ran into the dilemma of the decryption. Idk why I said yes for being on B15, for some reason that translated to generally Nougat bootstack in my head. My bad, OP.
---------- Post added at 10:47 PM ---------- Previous post was at 10:30 PM ----------
Unbricked, booted up, now its on the "beautiful" screen. Thanks!
Click to expand...
Click to collapse
glad that worked. perhaps i will edit the guide to where fastboot is added at the end as an extra. seems that if we at least have twrp we can go from there. do you still have an unlocked bl?
lafester said:
This is posted in the dev section. No need for external linkage.
Click to expand...
Click to collapse
will remember for future reference. thanks
lafester said:
This is posted in the dev section. No need for external linkage.
Click to expand...
Click to collapse
At least the poster of the blog gives credit to the original author and thread.
The method referenced at the blog is confusing though. If one is in a bricked state (edl only), they can't access developer options or even boot into android.
gpz1100 said:
At least the poster of the blog gives credit to the original author and thread.
The method referenced at the blog is confusing though. If one is in a bricked state (edl only), they can't access developer options or even boot into android.
Click to expand...
Click to collapse
If you are in edl only with an unlocked bootloader than the part of enabling bl unlock won't apply.
twilighttony said:
If you are in edl only with an unlocked bootloader than the part of enabling bl unlock won't apply.
Click to expand...
Click to collapse
Right, I understand that, but the person reading your blog won't, and thus the confusion.
This guide really needs to be stickied or higher up. Restarted my phone yesterday and it randomly got encrypted upon booting. Was locked out of everything and no keyboard was popping up to be able to put in a PIN or Password. This guide saved me. Thank you.

Categories

Resources