[ROM][TMO][ODEXED/DEODEXED][4.4.2][HTC 1.57 OTA] Stock+ 5/20/2014 - T-Mobile HTC One (M8)

Stock+
The mission of this ROM is to keep fairly close to the stock experience while unlocking certain features and limitations.
Furthermore my plan is to remove useless or intrusive customizations done by the manufacturer or carrier.
The kernel will have few commits, but those that are there will be for stability, battery life.
Click to expand...
Click to collapse
FEATURES
Prerooted.
Deodexed.
APNs are unlocked.
Preload data is restored.
Zipaligned.
CarrierIQ removed
**Stock kernel until I get time to pull the latest source.**
wp_mod for stock kernel thanks to @flar2
Insecure ADB (Always runs as root).
Tether Enabled
Click to expand...
Click to collapse
INSTALL
Data wipe is not required if you are coming from stock, BUT if you do wipe data do it BEFORE flashing the ROM.
Wipe /data/... or not.
Flash with TWRP.
Go into APNs and change the Default from IPV6 to IPV4.
Click to expand...
Click to collapse
Again, Thanks to @flar2 for his wp_mod.
DOWNLOAD
Latest:
HTC 1.57 OTA
OLD:
Stock+v1.01 SHA1: bc39bda6f656e323ea725f77dca0c4a3212d1044
Click to expand...
Click to collapse
Click to expand...
Click to collapse
Please do not PM me with images of farm equipment.

CHANGELOG:
1.01 -> 1.1 (unreleased)
Added init.d support.
Full write perms to external SD.
Rebuilt framework-res with the APN changes cooked in.
Email without exchange policy enforcement. (This will probably be a flashable option.)
1.0 -> 1.01
Fixed an issue with a symlink breaking wifi. Thanks to @Andromorphone for sitting on IRC for testing the fix for this with me.
1.0
Initial release.

Screenshots:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Click to expand...
Click to collapse

Thank you so much for this!!
EDIT: Are the links broken?
EDIT 2: Downloading now. Thanks again!
Sent from my HTC One M8

VolcanicSkunk said:
Thank you so much for this!!
EDIT: Are the links broken?
Sent from my HTC One_M8 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
They were indeed. It's fixed now.
Annnd It's back to bed for me. I'll repost the mega mirror in the morning.

EDIT 2: This issue was solved. Did not brick my phone. Didn't want this post to scare anyone away from a great ROM.
Think I just bricked my phone flashing this. Downloaded, confirmed hash sum, flashed via TWRP 2.7.0.2. Now phone is stuck at HTC splash screen. No amount of holding the power button will turn it off.
EDIT: Got a tip that said to hold the power and volume down buttons under a light source to try to get it to boot to bootloader. No luck.

VolcanicSkunk said:
Think I just bricked my phone flashing this. Downloaded, confirmed hash sum, flashed via TWRP 2.7.0.2. Now phone is stuck at HTC splash screen. No amount of holding the power button will turn it off.
EDIT: Got a tip that said to hold the power and volume down buttons under a light source to try to get it to boot to bootloader. No luck.
Click to expand...
Click to collapse
Hold power button and volume up, untill the phone shuts off

LIL_ROOKIE said:
Hold power button and volume up, untill the phone shuts off
Click to expand...
Click to collapse
Got pretty much the same advice in a thread I made in Q&A. Thanks for the tip though. That's exactly what I had to do. Don't know if the light source makes a difference though.
Finally got it to work. I had to hold volume up + power under a light source to get the phone to reboot. When the screen turned black I changed to the volume down while still holding the power button. This booted me to HBOOT. Then I was able to select recovery and boot there just fine. I am now restoring to my stock backup.

VolcanicSkunk said:
Got pretty much the same advice in a thread I made in Q&A. Thanks for the tip though. That's exactly what I had to do. Don't know if the light source makes a difference though.
Finally got it to work. I had to hold volume up + power under a light source to get the phone to reboot. When the screen turned black I changed to the volume down while still holding the power button. This booted me to HBOOT. Then I was able to select recovery and boot there just fine. I am now restoring to my stock backup.
Click to expand...
Click to collapse
Well, that certainly should not have happened, I am downloading from the link right now. I'll see if I can reproduce the error.
*EDIT*
So, I just did both a dirty flash, and a flash with a /data/ wipe. (A FULL data wipe, sadly.)
Phone booted fine in both cases.
Are you flashing over from a completely stock ROM?
What is your s-off satatus?
If you didn't flash from a fullty stock ROM, and did not wipe /data/ then the system was probably choking on a different SQLite schema. Doing a /data/ wipe before flashing the zip should do the trick.

Fenny said:
Well, that certainly should not have happened, I am downloading from the link right now. I'll see if I can reproduce the error.
*EDIT*
So, I just did both a dirty flash, and a flash with a /data/ wipe. (A FULL data wipe, sadly.)
Phone booted fine in both cases.
Are you flashing over from a completely stock ROM?
What is your s-off satatus?
If you didn't flash from a fullty stock ROM, and did not wipe /data/ then the system was probably choking on a different SQLite schema. Doing a /data/ wipe before flashing the zip should do the trick.
Click to expand...
Click to collapse
Hmmm.... That's strange.
I am coming from the stock operating system. I haven't restored the preload data yet. That was one of the reasons I was flashing this (so I didn't have to restore it manually). I am S-Off using Dev Unlock, TWRP + SuperSU & Root, then Firewater.
Here is my flash process:
Download from link in OP with phone to internal storage (/storage/emulated/legacy/download/)
Confirm hash using Hash Droid from Play Store
Reboot to Recovery using Quick Boot from Play Store (TWRP 2.7.0.2)
Select Wipe
Select Advanced
Checked options for system, data, Dalvik cache, cache
Slid to wipe
Repeated wipe with same options
Pressed home button
Selected Install
Chose internal memory
Navigated to /download/
Installed ROM
Since I'm at work I stopped paying attention to the screen after that since last night I had successfully flashed ViperOneM8. I didn't like the UI changes to ViperOneM8, so I restored my stock TWRP backup.

VolcanicSkunk said:
Hmmm.... That's strange.
I am coming from the stock operating system. I haven't restored the preload data yet. That was one of the reasons I was flashing this (so I didn't have to restore it manually). I am S-Off using Dev Unlock, TWRP + SuperSU & Root, then Firewater.
Here is my flash process:
Download from link in OP with phone to internal storage (/storage/emulated/legacy/download/)
Confirm hash using Hash Droid from Play Store
Reboot to Recovery using Quick Boot from Play Store (TWRP 2.7.0.2)
Select Wipe
Select Advanced
Checked options for system, data, Dalvik cache, cache
Slid to wipe
Repeated wipe with same options
Pressed home button
Selected Install
Chose internal memory
Navigated to /download/
Installed ROM
Since I'm at work I stopped paying attention to the screen after that since last night I had successfully flashed ViperOneM8. I didn't like the UI changes to ViperOneM8, so I restored my stock TWRP backup.
Click to expand...
Click to collapse
I'll try again following your process precisely. Perhaps dexopt is cowardly refusing to build the dalvik cache when /cache/ has been wiped. (This happens from time to time if there was a bad deodex.) I'll let you know how it goes.

Fenny said:
I'll try again following your process precisely. Perhaps dexopt is cowardly refusing to build the dalvik cache when /cache/ has been wiped. (This happens from time to time if there was a bad deodex.) I'll let you know how it goes.
Click to expand...
Click to collapse
Thanks so much for checking into it! I'll try it again tomorrow when I've got a lot more time on my hands. I'm just too used to flashing on the fly.

VolcanicSkunk said:
Thanks so much for checking into it! I'll try it again tomorrow when I've got a lot more time on my hands. I'm just too used to flashing on the fly.
Click to expand...
Click to collapse
Well, I did exactly the same thing as you did. I even went and downloaded the same rebooter app. The phone booted with no issue.
@Andromorphone Come back me up here. I KNOW you got it booting as well.

Whelp, I really must have done something screwy. Lol. Like I said, I'll try it again tomorrow (or late tonight if I get a chance). I'm just glad that everything works! I was hoping that no one else had the same problems I did. When I try it again I'll post back with my results. Hopefully it goes well without any hitches.

VolcanicSkunk said:
Whelp, I really must have done something screwy. Lol. Like I said, I'll try it again tomorrow (or late tonight if I get a chance). I'm just glad that everything works! I was hoping that no one else had the same problems I did. When I try it again I'll post back with my results. Hopefully it goes well without any hitches.
Click to expand...
Click to collapse
Ha! Figured it out. Disable zip signature verification. It looks like it didn't sign right but as long as the sha1 matches you should be fine.
*EDIT*
The link in the OP has a valid signature again.

Fenny said:
Well, I did exactly the same thing as you did. I even went and downloaded the same rebooter app. The phone booted with no issue.
@Andromorphone Come back me up here. I KNOW you got it booting as well.
Click to expand...
Click to collapse
indeed, flashed the initial v1.0 and subsequent version 1.01 and never had any issues booting. in fact it's working great, and very happy to be rid of carrierIQ and to have working tether.
Sent from my HTC One_M8 using Tapatalk

I am able to replicate this freeze several times.
Steps:
Downloaded ROM onto PC
Powered phone off
Ejected MicroSD card
Plugged MicroSD card into computer (USB 2.0)
Checked SHA1 hash via MD5 & SHA Checksum Utility 2.1
- Returned "SHA-1 Hash matched."
Transferred ROM to root of MicroSD card
Checked SHA1 hash again
- Returned "SHA-1 Hash matched."
Properly ejected MicroSD from PC
Reinserted MicroSD card into my M8
Booted phone and waited for it to settle
Connected phone to PC via stock USB
Confirmed Connection using "adb devices"
Rebooted phone to recovery using "adb reboot recovery"
In recovery performed the same wipe process outlined earlier
- Checked: Dalvik Cache, System, Cache, Data
- Repeated
Installed ROM from MicroSD card
Pressed Wipe Dalvik/Cache button
Phone rebooted to splash. Hung for 2+ minutes.
Rebooted to recovery via HBOOT.
Wiped again. This time included internal memory.
Installed ROM from MicroSD card
Received an Install Successful message
Pressed Reboot System
Received a warning there was no OS installed
Accidentally pressed reboot anyway
Prompted to install SuperSU since it wasn't detected (lol)
At hanging splash screen rebooted to HBOOT then recovery again
Performed single wipe
Installed from MicroSD card (again)
Install process took significantly longer than prior
Received Install Successful message
Pressed Reboot System
Screen froze while Reboot System button was highlighted
Phone booted through splash to boot animation
I am now sitting at the Welcome screen
I'm not sure if the fact that I was wiping a second time was causing some issue, but this was just a weird process. lol. After the first or second hang (I don't remember which) I exported the recovery log to the MicroSD card. I attached it to the post so hopefully it might shed some light as to what was going on.
Everything seems to have worked though. I'll go through the setup process and get back with you if there are or aren't any issues.
Thanks again for going through the same process I went through so I knew it was probably a fluke. Hopefully this is an isolated incident.
Anyway... :highfive:

VolcanicSkunk said:
*snip*
In recovery performed the same wipe process outlined earlier
- Checked: Dalvik Cache, System, Cache, Data
- Repeated
Installed ROM from MicroSD card
Pressed Wipe Dalvik/Cache button
Phone rebooted to splash. Hung for 2+ minutes.
Rebooted to recovery via HBOOT.
Wiped again. This time included internal memory.
Installed ROM from MicroSD card
Received an Install Successful message
Pressed Reboot System
Received a warning there was no OS installed
*snip*
Click to expand...
Click to collapse
Okay, I think there may be some sort of problem with TWRP and mounts/storage.
This tells me that your system partition was completely blank upon the last boot reboot:
/system | /dev/block/mmcblk0p45 | Size: 2641MB Used: 42MB Free: 2599MB Backup Size: 42MB
I have two working theories at the moment. The first is that IO was hanging when reading from your ext-sd, and then the system locked up IRQ style.
The second I think is more likely and involves the /system/ mount point. I wonder if after the second wipe, the /system/ partition was not actually mounted. It would mean that the script would flash to the tmpfs that is created for the root partition, and the files would go precisely nowhere.
The second could be proven by looking at the /data/preloads folder right after a non-booting scenario. If it exists and there are files there, then the data partiton mounted just fine, while the system partition did not.
*EDIT*
Battery is looking gooood.

Anyone not able to send or receive mms when apn switched to ip4/ip6?
Sent from my HTC One_M8 using Tapatalk

Same here
Sent from my HTC One_M8 using XDA Premium 4 mobile app

Related

[Q] Rom Manager - Failed to Seek

Anytime I try to do anything through Rom Manager (flash a ROM, nandroid backup, etc.) upon rebooting into recovery, I get a white triangle with an yellow exclamation point. After pressing the power button, the following text is revealed along with the Clockwork Recovery Menu.
Finding update package...
Opening update package...
Verifying update package...
E:failed to seek in /cache/update.zip (Invalid argument)
E:signature verification failed
Installation aborted.
If I select advanced->Reboot Recovery after receiving the error, the device reboots. After this second reboot, the process continues as it should have after the first reboot. I've tried downgrading the version of my Clockwork Recovery, but it seems to have no effect.
Any ideas?
...
I believe the standard array of initial questions would be:
1) Did you flash S-OFF?
2) Is your card FAT32 formatted
3) Try redownloading the file using a different browser (to ensure a cache doesn't deliver the same update.zip without trying)
jdmba said:
I believe the standard array of initial questions would be:
1) Did you flash S-OFF?
Click to expand...
Click to collapse
Yes.
jdmba said:
2) Is your card FAT32 formatted
Click to expand...
Click to collapse
Yes.
jdmba said:
3) Try redownloading the file using a different browser (to ensure a cache doesn't deliver the same update.zip without trying)
Click to expand...
Click to collapse
This failure isn't specific to any one file. Besides, I don't think it's a corruption of the file since it works when I select "reboot recovery" from the first failed attempt. In fact, this even happens when choosing "Backup ROM" from ROM Manager.
On a side note, I've tried wiping cache in ROM Manager as well.
Toggle Signature Verification and/or is d/l corrupt?
In CWM, have you tried toggling the on or off setting for the signature verification, as well as the other toggle?
Also, I read some superb advice here:http://http://forum.xda-developers.com/showthread.php?t=765930
check out the advice in post # 285 and see if that fixes you up.
Everyone seems to think my downloads are corrupt. That is definitely not the problem. If they were corrupt, they wouldn't function after the first reboot. They would continue to fail. Let me try explain my problem another way...
Here's my device setup...
Radio - 2.15.00.07.28
Kernel - King's BFS #4
ROM - SR Vanilla RC 2
CWM Version - 2.5.0.5
ROM Manager Version - 2.0.2.6
Here's a process I'm following...
1. Open ROM Manager
2. Clear Download Cache (Just to be sure!)
3. Select Backup Current ROM which causes reboot into recovery.
4. Receive the error which I outlined in my first post. *NOTE* I have not downloaded nor chosen to flash ANY update.zip files. *NOTE*
5. Open the advanced menu in CMW and choose "Reboot recovery" which causes the phone to reboot into recovery.
6. The backup progresses like it should have after the first reboot.
Again, the process above does not involve the use of any downloaded update.zip files. No ROMS, no Kernels, etc.
Does ROM Manager create it's own update.zip file stored in /cache to execute whatever function it needs to after reboot? It appears that might be the case.
I've attempted to reinstall ROM Manager and downgrade to an early version of CWM in ROM Manager. Neither seem to have helped.
I had the same problem trying to flash the latest leedroid
I entered recovery, de-selected signature verification and then flashed the rom through recovery mode.
Flashed normally and up to now it looks like it worked (waiting for first boot)
Hope this helped
Both signature verification and script asserts are toggled off. This is why the update.zip will flash after the second reboot into recovery and manually.
In recovery, is cache, data, or system mounted? If so, can you unmount any/ all, and reboot?
Sent from my ADR6300 using XDA App
I just started having this problem today, at least i noticed it today. It acts as if the signature verification is enabled the first try and disabled the second time. I can't find ANY way to fix this but reboot recovery and it works... If anyone finds a solution, please post.
*edit* I also noticed the "Fix Permissions" utility doesn't work in ROM Manager. Dont know if this is related or not.
PIYIRIO said:
I just started having this problem today, at least i noticed it today. It acts as if the signature verification is enabled the first try and disabled the second time. I can't find ANY way to fix this but reboot recovery and it works... If anyone finds a solution, please post.
Click to expand...
Click to collapse
Did you change anything today? I found someone in the SR ROM thread today that started having the same problem.
No, only an app and removed it. I dont know how long it has been broke since I haven't used it since SR 3.0rc1.. got tired of the reminder for rc3 and it wouldn't automagically run the install.zip.
Interesting.... Please post as this shakes out.
Sent from my ADR6300 using XDA App
I have this same issue, I think it's an issue with Rom Manager. No matter what I try to do from there (Reboot to Recovery, make backup, flash zip, etc.) I get that string of messages.
If I download a file from ROM manager to be flashed, I have to move the file to the root of the sd card before booting to recovery for it to flash correctly. I have just gotten used to doing it this way.
srt4mn said:
I have this same issue, I think it's an issue with Rom Manager. No matter what I try to do from there (Reboot to Recovery, make backup, flash zip, etc.) I get that string of messages.
If I download a file from ROM manager to be flashed, I have to move the file to the root of the sd card before booting to recovery for it to flash correctly. I have just gotten used to doing it this way.
Click to expand...
Click to collapse
Me as well
PIYIRIO said:
*edit* I also noticed the "Fix Permissions" utility doesn't work in ROM Manager. Dont know if this is related or not.
Click to expand...
Click to collapse
If you look in the OP for the SR ROMS, you'll see that a known issue. He includes a fix_permissions binary instead.
I've reached out to the developer. Hopefully we will hear from him soon.
Can you guys try clearing your download cache, and then reflashing recovery?
Possible workaround
Koush said:
Can you guys try clearing your download cache, and then reflashing recovery?
Click to expand...
Click to collapse
Cache wipe have been tried, see post #3.
I have some info that may be valuable:
This evening I rooted my Desire (SLCD) using Unrevoked 3.14 and recovery-clockwork-2.5.0.7-bravo.img I realize this is the incredible forum but hold on.. hear me out
I observed the _exact_ same behavior:
- Yellow eclamation + second reboot to recovery would run backup, also happened when selecting "Reboot Into recovery" in RomManager (RM)
- Tried DL cache wipe in RomManager,
- Tried reflash of recovery
This fixed it for me:
- Re-root via Unrevoked 3.14 using recovery-clockwork-2.5.0.1-bravo-slcd.img
- Re-flash CM (this may be optional, I don't know)
- Boot ROM and start RM just to have it tell me I need to install recovery (obviosly didn't detect my 2.5.0.1-bravo-slcd)
- Allow RM to flash 2.5.0.7-bravo via download
- Now "Backup ROM" and "Reboot to recovery" works as intended
- RM reports 2.5.0.7-bravo installed, recovery booted (via RM) is 2.5.0.7-bravo BUT recovery booted using HBOOT (back+power on Desire) is 2.5.0.1-bravo-slcd (!)
Note: Incredible users should _not_ use -bravo recovery images(!) just outlining how I made it work to help you find a solution
Koush said:
Can you guys try clearing your download cache, and then reflashing recovery?
Click to expand...
Click to collapse
Worked for me. Thanks Koush!
Sent from my ADR6300 using XDA App
Didn't work for me.. I've tried everything that I can think of. Different SD cards, i've formated /data/ /cache/ and reinstalled..
i'm using virtuous 2.7

[Q] DINC won't clear user data, after using every trick I know

So, I recently acquired an Incredible, the second one I've owned. The first one I rooted, turned S-off and installed CM7 with zero difficulties, after that I rooted/flashed my Xperia Play CDMA with all the issues that accompany that device. (after the ease with which I modded my first DINC, the hoops through which I had to jump to unlock my bootloader blew my mind)
This DINC, though, refuses to clear user data. Even after multiple wipes via CWM, and multiple updates using the PB31IMG method, user data remains. Attmepts to preform a factory reset via HBOOT result in a balck screen with a red triangle and exclamation point.
I tried to install MIUI, thinking maybe a fresh rom would fix it, but it gets stuck at the room splash screen.
I've even tried recovering a clean CM7 install from my old incredible, but it gets stuck in a bootloop at the rom splash, same story trying to flash the .zip in recovery.
I've seen a few threads that deal with a few of these symptoms, but not the issue as a whole
Thanks in advance for any answers you guys have!
Cheers
I found a solution, finally. Admittedly, it was a bit drastic, but it worked, nonetheless.
I ended up disassembling both DIncs and putting the motherboard of the working device (with the smashed screen) into the device that was unable to format /data.
It was a bit touch and go for a bit, but my new DIY refubished phone is up and running.
Thanks for the help guys!
What error do you get? Can you upload the logs from /cache/ recovery after trying to wipe?
Sent from my Galaxy Nexus using Tapatalk 2
I'm still a bit of a noob, if you could point me towards some basic instructions on how to do that, I'll post a log when i get back to the house.
Last time I tried to logcat something in recovery, I nearly bricked my phone somehow.
Edit: It either gives me the red error triangle/exclamation point if i use HBOOT, or it gives me an error when trying to format the data partition on a recovery attempt.
mattdubuc said:
I'm still a bit of a noob, if you could point me towards some basic instructions on how to do that, I'll post a log when i get back to the house.
Last time I tried to logcat something in recovery, I nearly bricked my phone somehow.
Edit: It either gives me the red error triangle/exclamation point if i use HBOOT, or it gives me an error when trying to format the data partition on a recovery attempt.
Click to expand...
Click to collapse
Re-flash CWM recovery. The red triangle is a problem with recovery most likely. You can flash the latest CWM for the incredible from the app.
If that doesn't work then pull all the files from /cache/recovery location, use a file explorer app that can read it and copy it to the /sdcard location and upload it in a zip.
tiny4579 said:
Re-flash CWM recovery. The red triangle is a problem with recovery most likely. You can flash the latest CWM for the incredible from the app.
If that doesn't work then pull all the files from /cache/recovery location, use a file explorer app that can read it and copy it to the /sdcard location and upload it in a zip.
Click to expand...
Click to collapse
The red triangle happens when you try to do a factory reset from hboot wile on cwm recovery. If you really need to do a factory reset, you will need to flash to the stock recovery first. http://dinc.does-it.net/Recoveries/Stock_4.08.605.15/PB31IMG.zip Then if it works or even if not flash back to cwm recovery http://dinc.does-it.net/Recoveries/CWM_5.0.2.0/PB31IMG.zip.
The weird thing is, that even after flashing PBG31IMG via HBOOT I'm retaining all the previous user data. I've tried formatting the internal drive, using a few different versions of the image, even manual formatting of /data via CWM, which only gives me an error. the same error as when I tried to restore a nandroid from my functioning DINC.
tiny4579 said:
If that doesn't work then pull all the files from /cache/recovery location, use a file explorer app that can read it and copy it to the /sdcard location and upload it in a zip.
Click to expand...
Click to collapse
So do i just make a .zip file out of the contents of /cache/recovery or is there something more to it?
mattdubuc said:
So do i just make a .zip file out of the contents of /cache/recovery or is there something more to it?
Click to expand...
Click to collapse
That should be fine. Try to wipe data in cwm again just so it logs it.
Sent from my Galaxy Nexus using Tapatalk 2
I'm having the same issue, even after reflashing a rom or hard reset my system is as it was before, but most apps don't work. After turning on device instantly shows many errors such as error in com.android.phone etc... While trying factory reset in Recovery (5.0.2.0) the only error that logs is "no app2sd partition found. Skipping format of /sd-ext ". What can you advise? Please help, tomorrow I'm going to another country and in this moment working phone is very needed Device S-OFF Rooted HBoot 0.92
zslashy said:
I'm having the same issue, even after reflashing a rom or hard reset my system is as it was before, but most apps don't work. After turning on device instantly shows many errors such as error in com.android.phone etc... While trying factory reset in Recovery (5.0.2.0) the only error that logs is "no app2sd partition found. Skipping format of /sd-ext ". What can you advise? Please help, tomorrow I'm going to another country and in this moment working phone is very needed Device S-OFF Rooted HBoot 0.92
Click to expand...
Click to collapse
Same error if you flash stock GB sense and factory reset from recovery? You have the errors when booting and the apps are still there?
Sent from my Nexus 7 using Tapatalk 2
Thank you for reply, I solved reset issue by installing Amon Ra recovery. But the problem with apps still exists, it looks like system is restoring back up after reboot, I can do everything with system but after reboot it's like it was before with no changes made. Additionally, it seems that the problem is with emmc, just because when I delete EVERYTHING on it, after restart all files appear again!
I'm also getting an error when I try to manually format the data partition under >mounts and storage in CWM, I'm assuming that may be to blame for retained user data?
When I run show log after running only a manual /data format it displays:
6 black groups
32768 blocks per group. 32768 fragments per group
8112 inodes per group
superblock backups stored on blocks:
32768. 98304. 163840
The filesystem already has a journal,
tune2fs 1.41.6 (30-May-2009)
Setting current mount count to 1
Failure while running mke2fs
Error formatting /data!
mtd: succesfully wrote block at 0
I:Set boot command ""
I have no idea what that means really, or even if it's pertinent.
I had to remove the user info (owner data, phone number, etc) from my inc after canceling my contract with verizon. After about 25 different attempts to wipe it, I finally found something that worked (at least for me)
Tried running the RUU, could not reboot into HBOOT (version error)
Tried the RUU again, this time starting it after manually booting the phone to HBOOT. Got a little farther than before, but still errored out. Did not work. Disconnected phone, pulled battery, rebooted to HBOOT.
Factory reset in HBOOT got me stuck on the stock recovery screen. Battery pulled, could not boot.
Flashed CWM in HBOOT (by renaming to PB31IMG.zip), was able to get into CWM recovery.
Tried to flash the 2nd GB OTA in CWM, did not take. Every option I clicked in CWM gave me about 7 errors after sitting on the logo for a moment. Battery pull, reboot. Boots into CM9. >.<
Booted to my rom, saw about 300 force closes. Tried to reflash CWM from Rom Manager, got a bunch of force closes. Updated Rom Manager from market, reflashed CWM, and this time it worked.
Rebooted to CWM, wipe data/cache/dalvik, reboot.
This time I booted in CM9, but to the initial ICS set up (click next to begin, wireframe pic of Andy)
After skipping thru initial setup, I checked Settings>About Phone>Status. My phone number was removed, network is Unknown, and all my data was removed. Activation prompt appears on each boot.
Not sure if this will help, but worth a try. I think that the HBOOT factory reset is what cleared my data, and then I just needed to fix CWM so I could get back to a working ROM.
Yeah that's what I did in june except I just got service on mine but I would think that would help getting your data out forever. If that does not work I wouldn't know what to tell u besides grab a magnet. Lol
Sent from my Droid Incredible using xda premium

Problems with /data and unintentional encryption

Hey xda mates,
I'm having a huge problem at the moment with my HTC M8 (from T-Mobile if that may help). I may have accidentally "bricked" my phone because of an error of misclicking when trying to install a new ROM and restore my settings. Something weird must have occurred after trying to restore my Device ID using Titanium Backup. After doing a suggested reboot, my phone locked itself up and seemed to have encrypted the storage, asking me for a password to unencrypt the phone. I've tried factory resetting my phone however I have huge issues when trying to reset everything.
Despite going into PhilZ's Recovery and trying to clean up all the previous data, I cannot properly accomplish it because my /data partition seems to be locked or unavailable. When specifically trying to Format /data in Recovery, it gives me an error that it cannot be mounted or accessed. I've tried installing another ROM and formatting again but nothing seems to work. Does anyone have any idea on how to fix this issue?
I would really appreciate any help or tips you guys can give me!
This happened to me yesterday running CM11. I followed the instructions in the below post and they allowed me to get my phone back to a functional state, albeit losing everything since my last backup.
http://forum.xda-developers.com/showpost.php?p=52961209&postcount=682&nocache=1&z=2188268828464220
I ended up sideloading KANGAKAT and it's been great.
http://forum.xda-developers.com/showthread.php?t=2709097
Good luck!
killcake said:
This happened to me yesterday running CM11. I followed the instructions in the below post and they allowed me to get my phone back to a functional state, albeit losing everything since my last backup.
http://forum.xda-developers.com/showpost.php?p=52961209&postcount=682&nocache=1&z=2188268828464220
I ended up sideloading KANGAKAT and it's been great.
http://forum.xda-developers.com/showthread.php?t=2709097
Good luck!
Click to expand...
Click to collapse
Oh my goodness! Thank you so much! It has worked as directed, took me a bit longer because I didn't follow the directions as is. For those of you who may also face this problem I've copied the directions down below formatted a bit more cleanly.
[with credit to user pjim]
Use the HTC Tool Kit from here. You may already have it installed because this is how you likely rooted your phone.
1: Go into Recovery and Format system.
2: Still in recovery, go to "Install Zip" then choose "Install zip from sideload"
3: Use the Toolkit to flash a ROM that could be smaller than 900mb by going into the "ADB" button and then choosing a ROM from the File Path, then clicking "Sideload"
4: Once it's finished installing, let it boot, and let your phone boot into the password screen as well.
5: Power back down and then go back into Recovery.
6: Go to the "Mounts and Storage Menu," scroll down and then select "format /data and /data/media (/sdcard)"
7: Reboot into a new clean phone.
Extra note: Make sure you always back-up your data in case of problems that arise like this! Although I have a feeling that this may have also arisen as a result of having S-ON, so maybe doing S-OFF should prevent this, though I could be wrong.
lightrapid said:
Oh my goodness! Thank you so much! It has worked as directed, took me a bit longer because I didn't follow the directions as is. For those of you who may also face this problem I've copied the directions down below formatted a bit more cleanly.
[with credit to user pjim]
Use the HTC Tool Kit from here. You may already have it installed because this is how you likely rooted your phone.
1: Go into Recovery and Format system.
2: Still in recovery, go to "Install Zip" then choose "Install zip from sideload"
3: Use the Toolkit to flash a ROM that could be smaller than 900mb by going into the "ADB" button and then choosing a ROM from the File Path, then clicking "Sideload"
4: Once it's finished installing, let it boot, and let your phone boot into the password screen as well.
5: Power back down and then go back into Recovery.
6: Go to the "Mounts and Storage Menu," scroll down and then select "format /data and /data/media (/sdcard)"
7: Reboot into a new clean phone.
Extra note: Make sure you always back-up your data in case of problems that arise like this! Although I have a feeling that this may have also arisen as a result of having S-ON, so maybe doing S-OFF should prevent this, though I could be wrong.
Click to expand...
Click to collapse
Just out of curiosity, did you flash an AOSP ROM when this encryption thing happened(As mentioned by you in first post) ? I know the second poster here did flash AOSP (Cyanogenmod)
Perhaps could have tried the suggestion in opening post here .
Oh well, good that your device works again anyways.

[SCRIPT] (Depreciated) Wipe Encrypted Data Without Wiping Internal Storage

Update: The latest TWRP is already capable of decrypting data. This method is now unnecessary and depreciated. Use factory reset in TWRP menu instead
Disclaimer: This mod will wipe your data. I am not responsible for data loss after using this mod.
I tested on my device several times, it's working for me so internal storage is always preserved, but I cannot guarantee if anything is messed up on your side. Please read the post carefully before using this mod!
Always backup your important data before modifying your phone's software!
To compensate the mistake I have done in the modified SuperSU script (I fixed it eventually though ), I decided to release a mod I consider quite useful for most people.
I've used the 10 for quite some time, and I've been messing with it from day 1.
Since the encryption is required for the phone to have proper radio signal (more info here), we are forced to keep our devices encrypted.
And because HTC uses proprietary encryption method, TWRP is unable to decrypt our data partition, which causes the recovery unable to read anything from data.
This is actually quite a big problem. If you want to full wipe and clean flash your favorite custom rom, the "Factory Reset" option in TWRP is not available, so you are forced to wipe the whole data partition, which will cause all your personal files stored in internal storage to be removed.
If you're a flashaholic like I am, you are forced not to store anything important in the phone storage because it will be wiped every time trying to clean flash a rom.
To breakthrough this inconvenience, I created this flashable zip to accomplish something similar to the "Factory Reset" option in TWRP.
Requirement: You have to use the systemless root of SuperSU to use this mod. If you want to flash the wipe script with SuperSU, flash SuperSU first, then flash the wipe script.
Important: If you have chosen "Require PIN/password/pattern to start device" in the "Secure startup" page during the initial setup, you CANNOT use this mod!
If you have to enter your PIN/password/pattern before your device booted up, this means that you have secure startup enabled. You CANNOT use this mod!
If secure startup is enabled and you flash this zip, your encryption will be messed up and you will have to format the whole data partition eventually to make your phone working again.
After flashing the mod, your data will not be wiped immediately in recovery because we cannot do so. It will wipe the data AFTER you rebooted back to system. It will reboot again after the wipe is done. If you flashed SuperSU at the same time with this mod, you will experience 2 consecutive reboot loops. This is normal behavior, don't panic.
If devs are interested in including this zip into your rom, you can use it in the same way as SuperSU:
Code:
package_extract_dir("wipe", "/tmp/wipe");
run_program("/sbin/busybox", "unzip", "/tmp/wipe/wipe.zip", "META-INF/com/google/android/*", "-d", "/tmp/wipe");
run_program("/sbin/busybox", "sh", "/tmp/wipe/META-INF/com/google/android/update-binary", "dummy", "1", "/tmp/wipe/wipe.zip");
For those who are interested in what this zip actually do, here is a brief explanation:
If secure startup is disabled, data will be decrypted as soon as the device booted up. We can only access data after it is decrypted. So our only choice is to wipe data after the device has booted up.
I created a script to wipe all data except SuperSU app, su binary image, and your internal storage.
SuperSU will automatically run scripts inside the directory /su/su.d, so after putting the script into the folder, SuperSU will the wipe script at boot time.
The problem is: su.img is also located in /data, how can we push files into the image? Fortunately, our master Chainfire has thought of this problem. The image /cache/su.img will be merged with /data/su.img during boot. So I just need to place the script into /cache/su.img, then Chainfire's script will do all the rest of the work automatically. If you're interested in the merging process, take a look at launch_daemonsu.sh in the ramdisk of a SuperSU modified boot for more details.
Is this helpful in regards to initial routing and flashing a rom or only afterwards to flash a new one?
topjohnwu said:
Disclaimer: This mod will wipe your data. I am not responsible for data loss after using this mod.
I tested on my device several times, it's working for me so internal storage is always preserved, but I cannot guarantee if anything is messed up on your side. Please read the post carefully before using this mod!
Always backup your important data before modifying your phone's software!
To compensate the mistake I have done in the modified SuperSU script (I fixed it eventually though ), I decided to release a mod I consider quite useful for most people.
I've used the 10 for quite some time, and I've been messing with it from day 1.
Since the encryption is required for the phone to have proper radio signal (more info here), we are forced to keep our devices encrypted.
And because HTC uses proprietary encryption method, TWRP is unable to decrypt our data partition, which causes the recovery unable to read anything from data.
This is actually quite a big problem. If you want to full wipe and clean flash your favorite custom rom, the "Factory Reset" option in TWRP is not available, so you are forced to wipe the whole data partition, which will cause all your personal files stored in internal storage to be removed.
If you're a flashaholic like I am, you are forced not to store anything important in the phone storage because it will be wiped every time trying to clean flash a rom.
To breakthrough this inconvenience, I created this flashable zip to accomplish something similar to the "Factory Reset" option in TWRP.
Requirement: You have to use the systemless root of SuperSU to use this mod. If you want to flash the wipe script with SuperSU, flash SuperSU first, then flash the wipe script.
Important: If you have chosen "Require PIN/password/pattern to start device" in the "Secure startup" page during the initial setup, you CANNOT use this mod!
If you have to enter your PIN/password/pattern before your device booted up, this means that you have secure startup enabled. You CANNOT use this mod!
If secure startup is enabled and you flash this zip, your encryption will be messed up and you will have to format the whole data partition eventually to make your phone working again.
After flashing the mod, your data will not be wiped immediately in recovery because we cannot do so. It will wipe the data AFTER you rebooted back to system. It will reboot again after the wipe is done. If you flashed SuperSU at the same time with this mod, you will experience 2 consecutive reboot loops. This is normal behavior, don't panic.
If devs are interested in including this zip into your rom, you can use it in the same way as SuperSU:
Code:
package_extract_dir("wipe", "/tmp/wipe");
run_program("/sbin/busybox", "unzip", "/tmp/wipe/wipe.zip", "META-INF/com/google/android/*", "-d", "/tmp/wipe");
run_program("/sbin/busybox", "sh", "/tmp/wipe/META-INF/com/google/android/update-binary", "dummy", "1", "/tmp/wipe/wipe.zip");
For those who are interested in what this zip actually do, here is a brief explanation:
If secure startup is disabled, data will be decrypted as soon as the device booted up. We can only access data after it is decrypted. So our only choice is to wipe data after the device has booted up.
I created a script to wipe all data except SuperSU app, su binary image, and your internal storage.
SuperSU will automatically run scripts inside the directory /su/su.d, so after putting the script into the folder, SuperSU will the wipe script at boot time.
The problem is: su.img is also located in /data, how can we push files into the image? Fortunately, our master Chainfire has thought of this problem. The image /cache/su.img will be merged with /data/su.img during boot. So I just need to place the script into /cache/su.img, then Chainfire's script will do all the rest of the work automatically. If you're interested in the merging process, take a look at launch_daemonsu.sh in the ramdisk of a SuperSU modified boot for more details.
Click to expand...
Click to collapse
Is the systemless one the one you patched?
Sent from my LG-H830 using XDA-Developers mobile app
stonew5082 said:
Is this helpful in regards to initial routing and flashing a rom or only afterwards to flash a new one?
Click to expand...
Click to collapse
It functions the same as "Factory Reset" in TWRP, which means it will wipe all data, but your personal files stored in internal storage will remain on the device.
StickyEyez said:
Is the systemless one the one you patched?
Sent from my LG-H830 using XDA-Developers mobile app
Click to expand...
Click to collapse
Actually you can use the original version. But I suggest you to use my patched one, in case you accidentally wiped your whole data partition (this mod will not do this), you will stay encrypted, and your data signal will be fine
Hi topjohnwu
@ jollywhitefoot suggested you might be able to help to wipe userdata from download mode.
My phone will not get passed message "Your phones is encrypted" "TO DECRYPT YOUR PHONE. ENTER YOUR SCREEN LOCK PASSWORD" I had no screen lock password... i have different passwords to decrypt . Each time i put a password in it resest phone and does factory rest and then reboots straight into Bootloader again.
Phone has no recovery " Failed to boot into recovery mode" red writing on a black screen.
Phoned has OEM Relocked ....cant fastboot or unlock bootloader again
Please can you help
tailor999 said:
Hi topjohnwu
@ jollywhitefoot suggested you might be able to help to wipe userdata from download mode.
My phone will not get passed message "Your phones is encrypted" "TO DECRYPT YOUR PHONE. ENTER YOUR SCREEN LOCK PASSWORD" I had no screen lock password... i have different passwords to decrypt . Each time i put a password in it resest phone and does factory rest and then reboots straight into Bootloader again.
Phone has no recovery " Failed to boot into recovery mode" red writing on a black screen.
Phoned has OEM Relocked ....cant fastboot or unlock bootloader again
Please can you help
Click to expand...
Click to collapse
You can try to unlock your bootloader again.
If you cannot unlock it, then I regret to say that your phone might be doomed.
Never try to relock your phone if it's not in 100% stock condition and perfectly working.
topjohnwu said:
You can try to unlock your bootloader again.
If you cannot unlock it, then I regret to say that your phone might be doomed.
Never try to relock your phone if it's not in 100% stock condition and perfectly working.
Click to expand...
Click to collapse
I have tried unlocking boot loader again. The log shows oem needs to be unlocked.
When a RUU comes out, would that help recover the phone?
Sent from my ONE A2003 using XDA-Developers mobile app
tailor999 said:
Hi topjohnwu
@ jollywhitefoot suggested you might be able to help to wipe userdata from download mode.
My phone will not get passed message "Your phones is encrypted" "TO DECRYPT YOUR PHONE. ENTER YOUR SCREEN LOCK PASSWORD" I had no screen lock password... i have different passwords to decrypt . Each time i put a password in it resest phone and does factory rest and then reboots straight into Bootloader again.
Phone has no recovery " Failed to boot into recovery mode" red writing on a black screen.
Phoned has OEM Relocked ....cant fastboot or unlock bootloader again
Please can you help
Click to expand...
Click to collapse
Assuming you have a stock recovery image..
Boot to bootloader then recovery.
Long press power for a few seconds then tap volume up.
You can then factory reset in stock recovery
LeeDroid said:
Assuming you have a stock recovery image..
Boot to bootloader then recovery.
Long press power for a few seconds then tap volume up.
You can then factory reset in stock recovery
Click to expand...
Click to collapse
Oh dam it, just seen your post a bit late. Car phone warehouse has just collected my handset :silly: - im sure they'll send it back saying ive lost warranty :crying:
tailor999 said:
Oh dam it, just seen your post a bit late. Car phone warehouse has just collected my handset :silly: - im sure they'll send it back saying ive lost warranty :crying:
Click to expand...
Click to collapse
Oh dear....
topjohnwu said:
Requirement: You have to use the systemless root of SuperSU to use this mod. If you want to flash the wipe script with SuperSU, flash SuperSU first, then flash the wipe script.
Important: If you have chosen "Require PIN/password/pattern to start device" in the "Secure startup" page during the initial setup, you CANNOT use this mod!
If you have to enter your PIN/password/pattern before your device booted up, this means that you have secure startup enabled. You CANNOT use this mod!
If secure startup is enabled and you flash this zip, your encryption will be messed up and you will have to format the whole data partition eventually to make your phone working again.
Click to expand...
Click to collapse
the thing is i have selected no for secure boot but whenever i setup a fingerprint and boot then it gets enabled again even if i had disabled it...
any way around or am i missing on something.. currently on lee's rom
SacredDeviL666 said:
the thing is i have selected no for secure boot but whenever i setup a fingerprint and boot then it gets enabled again even if i had disabled it...
any way around or am i missing on something.. currently on lee's rom
Click to expand...
Click to collapse
you're talking about something different that he is. secure boot is a pin before you ever get the system loaded. you are talking about lockscreen pin/password, which, is mandatory if you use fingerprint scanner.
jollywhitefoot said:
you're talking about something different that he is. secure boot is a pin before you ever get the system loaded. you are talking about lockscreen pin/password, which, is mandatory if you use fingerprint scanner.
Click to expand...
Click to collapse
cool thank you...
I'm confused a bit. So every time I want to clean flash a rom, I can flash this script and it will wipe everything (system, data, cache etc.) except internal storage? Would dirty flashing a rom have any affect?
Ndaoud360 said:
I'm confused a bit. So every time I want to clean flash a rom, I can flash this script and it will wipe everything (system, data, cache etc.) except internal storage? Would dirty flashing a rom have any affect?
Click to expand...
Click to collapse
+1
Ndaoud360 said:
I'm confused a bit. So every time I want to clean flash a rom, I can flash this script and it will wipe everything (system, data, cache etc.) except internal storage? Would dirty flashing a rom have any affect?
Click to expand...
Click to collapse
It will only wipe data without internal storage.
You should flash this zip after you flash a rom.
It will wipe data after the device boots up.
topjohnwu said:
It will only wipe data without internal storage.
You should flash this zip after you flash a rom.
It will wipe data after the device boots up.
Click to expand...
Click to collapse
Ok so the process would be wipe system, cache, flash rom, flash data wipe script?
Ndaoud360 said:
Ok so the process would be wipe system, cache, flash rom, flash data wipe script?
Click to expand...
Click to collapse
Why would you wipe system this will be done by the rom installation, just flash the rom then flash the script & job done
LeeDroid said:
Why would you wipe system this will be done by the rom installation, just flash the rom then flash the script & job done
Click to expand...
Click to collapse
huh? Ever since I began rooting phones, I would wipe system, data and cache before a clean flash of a rom. I guess I never knew the rom does it for you. I thought the rom just over wrote the system possibly leaving remnants of the old system which could lead to issues which is why devs advise to full wipe when switching roms.
Ndaoud360 said:
huh? Ever since I began rooting phones, I would wipe system, data and cache before a clean flash of a rom. I guess I never knew the rom does it for you. I thought the rom just over wrote the system possibly leaving remnants of the old system which could lead to issues which is why devs advise to full wipe when switching roms.
Click to expand...
Click to collapse
Ah, a full wipe is only applicable to data buddy, if a rom dev doesn't wipe system before their installation, they need a good slap with a frozen kipper.
Cache is entirely optional

[HELP] XT1794 stuck at fastboot/twrp after infinite boot anim on the latest los16

Hi everyone, I was usually providing help on this forum, now i'm the one desperate for help after some unforeseen consequences.
Bear in mind I'm kind of a noob anyway.
I have seen the message on the telegram groups for our device regarding solving the los 17 problems with the ril and camera. So i have followed the steps. I flashed the last twrp 3.4 by jarl using the official twrp app and then rebooted to recovery, wiped everything beside the internal storage and tried flashing the last los 16 zip.
And then the disaster happened. firstly the log returned error 7 so i've rebooted to recovery again and attempted to flash the same zip again without wiping anything. well the flashing worked apparently but i couldnt boot into it as it showed me an infinite boot animation.
Then i rebooted to recovery and it prompted me with a decryption key request which i didn't set before. I cancelled the prompt and I moved forward and proceeded wiping everything including the internal storage thinking that was the problem. Maybe it was maybe it wasnt, now I'm no longer prompted by any decryption key, but I was hoping i could connect to my pc through mtp, transfer some zips and flash some functional rom. Even though I enable mtp and my pc detects the phone I can't access any storage nor the internal, nor the sd card.
I tried going through multiple versions of twrp as i can still access my bootloader and i can still flash recoveries through fastboot but i feel that i'm stuck and I dont know what i should try anymore.
Before trying all this I was on an older build of los16 with the oreo firmware.
First of all, use this TWRP: https://build.twrp.me/twrp-3.4.0-0-montana.img
Second of all, do not flash TWRPSARer (if you did). Make sure the LOS16 zip isn't corrupted (which normally causes error 7), then format system, data, cache, vendor and dalvik. Reflash LOS16 and boot
JarlPenguin said:
First of all, use this TWRP: https://build.twrp.me/twrp-3.4.0-0-montana.img
Second of all, do not flash TWRPSARer (if you did). Make sure the LOS16 zip isn't corrupted (which normally causes error 7), then format system, data, cache, vendor and dalvik. Reflash LOS16 and boot
Click to expand...
Click to collapse
I wasnt using the twrp sar, i was using the exact version you linked. And I can't flash any rom because i cant get the zip inside my internal memory.
You can try using adb sideload. adb sideload path/to/zip
worked like a charm. thanks a lot, Jarl.
And this, is the story of someone who didn't want to wait long enough for the ROM to boot
Nah JK, but long boot-times normally = Force Encrypt Enabled
Some random said:
And this, is the story of someone who didn't want to wait long enough for the ROM to boot
Nah JK, but long boot-times normally = Force Encrypt Enabled
Click to expand...
Click to collapse
it might have been the problem, but if it is it should be a disclaimer for that on the los16 page. the boot time is way longer than the usual.
Aythriel said:
it might have been the problem, but if it is it should be a disclaimer for that on the los16 page. the boot time is way longer than the usual.
Click to expand...
Click to collapse
Yes, I'll make sure to note that

Categories

Resources