Proper way to update ROM - AT&T, Rogers HTC One X, Telstra One XL

I was just wondering what steps I need to take in order to install an updated version of my rom. Currently I use the aokp jb version 4. Want to update to the new milestone. Can someone help me out with the procedure? Will I lose any data?
Sent from my One X using xda app-developers app

dan798 said:
I was just wondering what steps I need to take in order to install an updated version of my rom. Currently I use the aokp jb version 4. Want to update to the new milestone. Can someone help me out with the procedure? Will I lose any data?
Sent from my One X using xda app-developers app
Click to expand...
Click to collapse
. First thing you should do is a nand backup in recovery (so you have something to go back to if all else fails)
. backup your SD card
. move your nand backup and sd card backup to your computer (that way if your sd gets corrupted you can reformat and push your backups to your device)
. you can also backup your apps + data with something like titanium backup (although now at least in JB if you have chosen this option Google will restore your apps, does not always work for me though so beware)
! Note that Tibu is quite controversial some people love it and swear by it and some people claim that it creates lots of issues, if you decide to use it, only use it to backup/restore user apps and not system apps. I personally use the pro version since it can sync backups to my Box and Dropbox account.
in addition to all of this I backup my sms, call log and custom launcher settings (but that's just me i'm a bit paranoid and I love redundancy)
When you're staying with the same rom you typically don't have to factory reset/clean install (unless of course the dev recommends it), just wipe cache and dalvik in recovery and flash your new rom.zip (don't forget to fastboot flash the boot.img if you're on the latest hboot) in recovery.
If you do not factory reset/clean install you will not loose data fingers-crossed. if you start encountering a lot of weirdness after a dirty flash well you will have to factory reset/clean install. I like to clean install most of the time so that I don't have to try to troubleshoot a bunch of stuff when s**T goes wrong plus it's easier to get support for obvious reasons.
In this particular case Milestone release of AOKP (milestone is a "stable" release and this is the first one) I would ABSOLUTELY do a clean install and I believe Rohan requires it because of kernel changes and the likes.
Hope all this makes sense and I did not forget anything.

Crappyvate said:
. First thing you should do is a nand backup in recovery (so you have something to go back to if all else fails)
. backup your SD card
. move your nand backup and sd card backup to your computer (that way if your sd gets corrupted you can reformat and push your backups to your device)
. you can also backup your apps + data with something like titanium backup (although now at least in JB if you have chosen this option Google will restore your apps, does not always work for me though so beware)
! Note that Tibu is quite controversial some people love it and swear by it and some people claim that it creates lots of issues, if you decide to use it, only use it to backup/restore user apps and not system apps. I personally use the pro version since it can sync backups to my Box and Dropbox account.
in addition to all of this I backup my sms, call log and custom launcher settings (but that's just me i'm a bit paranoid and I love redundancy)
When you're staying with the same rom you typically don't have to factory reset/clean install (unless of course the dev recommends it), just wipe cache and dalvik in recovery and flash your new rom.zip (don't forget to fastboot flash the boot.img if you're on the latest hboot) in recovery.
If you do not factory reset/clean install you will not loose data fingers-crossed. if you start encountering a lot of weirdness after a dirty flash well you will have to factory reset/clean install. I like to clean install most of the time so that I don't have to try to troubleshoot a bunch of stuff when s**T goes wrong plus it's easier to get support for obvious reasons.
In this particular case Milestone release of AOKP (milestone is a "stable" release and this is the first one) I would ABSOLUTELY do a clean install and I believe Rohan requires it because of kernel changes and the likes.
Hope all this makes sense and I did not forget anything.
Click to expand...
Click to collapse
Sounds excellent!! Yes this helps a ton, I was not sure of what I needed to wipe if anything. Thanks!

dan798 said:
Sounds excellent!! Yes this helps a ton, I was not sure of what I needed to wipe if anything. Thanks!
Click to expand...
Click to collapse
no problem..

Could you define a clean install and the steps?

RC196 said:
Could you define a clean install and the steps?
Click to expand...
Click to collapse
Clean install: The partitions are empty
Proper steps
Wipe System
Factory Reset
Wipe Cache (Optional, Factory reset should have done it already)
Wipe Dalvik Cache (optional, I usually dont wipe and problems dont occur)

RC196 said:
Could you define a clean install and the steps?
Click to expand...
Click to collapse
1.boot into recovery (twrp)
2. go into wipe menu and hit factory reset (DO NOT FACTORY RESET in FASTBOOT) this will wipe everything so backup first (see above post
3. flash the boot.img taken from your rom.zip of choice (this is if you are on latest version of HBOOT)
4. flash your rom.zip
5. reboot in system

Crappyvate said:
1.boot into recovery (twrp)
2. go into wipe menu and hit factory reset (DO NOT FACTORY RESET in FASTBOOT) this will wipe everything so backup first (see above post
3. flash the boot.img taken from your rom.zip of choice (this is if you are on latest version of HBOOT)
4. flash your rom.zip
5. reboot in system
Click to expand...
Click to collapse
Before I did any flashing, I made a backup of my phone of the latest HTC Sense. It was only unlocked and not rooted. That back up is still there. If I wanted I could wipe and restore this backup correct? I would not have to flash anything right?

RC196 said:
Before I did any flashing, I made a backup of my phone of the latest HTC Sense. It was only unlocked and not rooted. That back up is still there. If I wanted I could wipe and restore this backup correct? I would not have to flash anything right?
Click to expand...
Click to collapse
You will have to flash the boot.IMG from your backup and then restore the backup if you want to revert back to it
Sent from my HTC One XL

absolutelygrim said:
You will have to flash the boot.IMG from your backup and then restore the backup if you want to revert back to it
Sent from my HTC One XL
Click to expand...
Click to collapse
How would I get that boot image from the backup on my phone?

RC196 said:
How would I get that boot image from the backup on my phone?
Click to expand...
Click to collapse
You have to extract the boot.IMG to your computer and flash it with fastboot. Then restore the backup
Sent from my HTC One XL

This is what is in the backup folder in TWRP.

RC196 said:
This is what is in the backup folder in TWRP.
Click to expand...
Click to collapse
You can get the boot.IMG from the ruu zip or a 2.20 stock rooted Rom, which is in the one x pinup sticky in the android development section
Edit: boot.emmc.win is the boot.IMG. just rename it to boot.IMG and flash it from fastboot
Sent from my HTC One XL

absolutelygrim said:
You can get the boot.IMG from the ruu zip or a 2.20 stock rooted Rom, which is in the one x pinup sticky in the android development section
Edit: boot.emmc.win is the boot.IMG. just rename it to boot.IMG and flash it from fastboot
Sent from my HTC One XL
Click to expand...
Click to collapse
Oh OK thanks. So I actually didn't screw this part up LOL.:laugh:

absolutelygrim said:
You can get the boot.IMG from the ruu zip or a 2.20 stock rooted Rom, which is in the one x pinup sticky in the android development section
Edit: boot.emmc.win is the boot.IMG. just rename it to boot.IMG and flash it from fastboot
Sent from my HTC One XL
Click to expand...
Click to collapse
yep just rename boot.emmc as boot.img and now you can use this on one xl http://forum.xda-developers.com/showthread.php?t=1963896
makes it a lot friendlier, you don't need to extract the boot.img from the rom.zip, the app does for you and also you don't need a computer, you can do it all from your device

Related

[Q] Switch from 4EXT to CWM ? / Flashing boot.img ? (CM10-alpha)

Hi XDA
My device before the procedure : HTC Desire S, unbranded, Bootloader locked,
HBoot 2.00.0002, S-ON, ICS stock rom via HTC RUU tool
I unlocked the bootloader via htcdev.com.
After hours of reading and testing "everything" I found here on xda (great stuff!!),
I finally managed to have a running CM10-alpha.
(http://forum.xda-developers.com/showthread.php?t=1776256 / Version 2012-09-17)
As I am new to this flashing stuff, I first tried to follow the flashing guide
on the CM-website. Was not workable because "Revolutionary" can not be used on hboot 2...
So I continued with flashing CWM-recovery and after a wipe (factory/reset/cache/dalvik),
I flashed CM10.zip and gapps.zip.
It went through without any errors, unfortunately, the device did not boot afterwards.
I found this guide :
http://forum.xda-developers.com/showthread.php?t=1525100 (CustomROM with 4EXT-recovery)
It indicates flashing "boot.img" (from the CM10 zip-file) as a last step.
Probably the most important step for this HTC device ?!
The Desire S booted CM10 without any further problems and is running since.
(I did not flash GApps.zip, just downloaded Maps and Youtube.)
I have 3 questions :
1. Is it possible to update to a newer version of 4EXT-recovery without losing
the CM10-installation ?
(e.g. 4EXT-Touch : http://forum.xda-developers.com/showthread.php?t=1377745)
2. Is it possible to switch from 4EXT to CWM-recovery without losing
the CM10-installation ? I would like to have CWM because I could then use the ROMManager App.
(e.g. http://forum.xda-developers.com/showthread.php?t=1484753)
3. If I would stick with the current 4EXT-recovery,
do I always have to flash "boot.img" as the last step before booting up the device ?
(e.g. after the next CM10-alpha release)
"fastboot flash boot boot.img"
Click to expand...
Click to collapse
Thanks so much !
CM10 is great, so much faster than HTC-stock rom ICS (with Sense 3.6) !!
CU
1) yes
2)yep
3)si
Edit: you only have to flash the boot.img when the kernel changes from cm10 to fallout yes.
Updating cm10 no, if the dev didn't change the kernel.
After a full wipe (in 4ext format everything exept SD-card) you also have to use fastboot. Because that wipes the boot.img
Thanks !
Just to recap, I can flash CWM-recovery and then do a normal bootup (with my existing CM10 installation). No further actions required !?
As the kernel will probably remain at v2.xx with the next CM10-alpha-release of nik111, I only wipe reset/factory/cache/dalvik
and then flash the new cm10.zip.
I do not think that I will format anything. But if I would, I would have to replace boot.img again.
FrolicFrog said:
Thanks !
Just to recap, I can flash CWM-recovery and then do a normal bootup (with my existing CM10 installation). No further actions required !?
As the kernel will probably remain at v2.xx with the next CM10-alpha-release of nik111, I only wipe reset/factory/cache/dalvik
and then flash the new cm10.zip.
I do not think that I will format anything. But if I would, I would have to replace boot.img again.
Click to expand...
Click to collapse
Changing recovery will not touch anything else on your device. But there were some issues reported with CWM on some ROMs.
I think one of them is a lack of /system/lib partition support, which is important if you go from a ROM that has such to a ROM without one (it will end with two conflicting /system/lib directories and the device will not boot.
Also I am not sure that CWM wipes the .android-secure directory on the SDcard which can cause issues if going from AOSP to Sense ROM
For some reason I never changed from cwm to 4ext whilst I owned a ds but I can confirm it does wipe .android-secure on the sd card
pughie said:
For some reason I never changed from cwm to 4ext whilst I owned a ds but I can confirm it does wipe .android-secure on the sd card
Click to expand...
Click to collapse
I have used it about an year ago so it is definitely improved. But there was an user with Bluetooth issues after flashing my kernel and changing the recovery solved it. Also 4EXT has a lot of minor but very useful settings over CWM. Anyway the OP can try both and stick with the one he likes more
Btw Rom Manager can be used to check for updates and ROM downloads with 4EXT if you choose "manual flash override" from the menu
Sent from my HTC Desire S
amidabuddha said:
Btw Rom Manager can be used to check for updates and ROM downloads with 4EXT if you choose "manual flash override" from the menu
Click to expand...
Click to collapse
Ah, will check on this one. Thanks !
FrolicFrog said:
As the kernel will probably remain at v2.xx with the next CM10-alpha-release of nik111, I only wipe reset/factory/cache/dalvik
and then flash the new cm10.zip.
I do not think that I will format anything. But if I would, I would have to replace boot.img again.
Click to expand...
Click to collapse
Nk111 uploaded a screenshot today, that shows kernel v3.0.16
When upgrading cm10 wiping cache & dalvic cache should be enough. If you get any problems, apps fc or something like that, do a full wipe(I use format all partitions except SD card in 4ext, after that don't forget to flash the kernel with fastboot).
Btw wipe and format is the same.
Bug in CM10 Alpha by nk11
Hello XDA,
Sorry if this question is in the wrong thread.
It is regarding the cm10 alpha port by nk111.
I got it working, save one major bug, the speaker does not produce any sound output whatsoever:
This applies to ringtones, alarm tones and music.
The sound is perfectly audible through a pair of earphones.
I followed the steps in the official thread to delete the file /system/lib/hw/audio_policy.msm7x30.so and reboot
but this only aggravates the issue by disabling all audio outputs!!!
I am running clockwork mod v5 with HTC bootlocker unlocked, S-ON.
Any help would be greatly appreciated.
c.m.b said:
Nk111 uploaded a screenshot today, that shows kernel v3.0.16
When upgrading cm10 wiping cache & dalvic cache should be enough. If you get any problems, apps fc or something like that, do a full wipe(I use format all partitions except SD card in 4ext, after that don't forget to flash the kernel with fastboot).
Btw wipe and format is the same.
Click to expand...
Click to collapse
I saw the screenshot of kernel version 3, too. And was quite excited
Thanks for the hint with wiping only cache&dalvik.

How to go back to Original OS after CM10 ROM?

Hey guys,
Is it possible for me to go back to my original OS after I upgraded to CM10 using twrp? I still want my phone to be rooted if possible.
XHaGGeNx said:
Hey guys,
Is it possible for me to go back to my original OS after I upgraded to CM10 using twrp? I still want my phone to be rooted if possible.
Click to expand...
Click to collapse
definitely. check the thread here http://forum.xda-developers.com/showthread.php?t=1671237
look under "Stock Rooted (Odexed/De-Odexed)"
you should find the rom for whatever carrier you are on (rogers in my case)
im not 100% sure but i think u should flash it from recovery.. im kinda noob so hopefully someone can chime in and help a little more
Thanks for pointing that out. I'll check it out.
XHaGGeNx said:
Thanks for pointing that out. I'll check it out.
Click to expand...
Click to collapse
NP. i actually had to put mine back to stock a few months ago but i totally forget how i did it now.. i thought my phone was bricked at that point and i was freaking out lol somehow got it working again tho i always keep a backup now just in case :|
I want to make sure I have everything covered here before I do this. I rooted my phone using TWRP & I am using CM10. I want to go back to the original OS but keep it rooted. What is the process exactly that I need to do? I went to this thread and downloaded the file that I needed. My issue is what is the process? Do I move the file onto my phone and FLASH it just like I did with the ROM? Is there anything I need to type in the CMD prompt? If someone could give me some info or point me in the right direction I would really appreciate it! :laugh:
This was my method:
- Download a stock rooted rom
- back up SMS, contacts (super backup)
- back up APS (titanium)
- shut down phone
- boot into recovery
- create backup of entire ROM
- clear cache
- clear system
- clear data
- flash stock rooted rom
- clear cache
- reboot system
- restore apps
- restore contacts/SMS
Sent from my Galaxy Nexus
mgutierrez87 said:
This was my method:
- Download a stock rooted rom
- back up SMS, contacts (super backup)
- back up APS (titanium)
- shut down phone
- boot into recovery
- create backup of entire ROM
- clear cache
- clear system
- clear data
- flash stock rooted rom
- clear cache
- reboot system
- restore apps
- restore contacts/SMS
Sent from my Galaxy Nexus
Click to expand...
Click to collapse
Sir, a million thank you's. I will do it that way, I just wanted to make sure I had everything set correctly.
I am having a problem, i followed your instructions but when I flashed the stock ROM and rebooted, it just hangs at the HTC screen with the RED lettering at the bottom. What am I missing here?
XHaGGeNx said:
I am having a problem, i followed your instructions but when I flashed the stock ROM and rebooted, it just hangs at the HTC screen with the RED lettering at the bottom. What am I missing here?
Click to expand...
Click to collapse
Before rooting, did you run the 2.20 RUU, and have the newest bootloader? if so, you need to flash the boot.img through fastboot.
If the above statement isn't the case, then try a full wipe and re-flash
mgutierrez87 said:
This was my method:
- Download a stock rooted rom
- back up SMS, contacts (super backup)
- back up APS (titanium)
- shut down phone
- boot into recovery
- create backup of entire ROM
- clear cache
- clear system
- clear data
- flash stock rooted rom
- clear cache
- reboot system
- restore apps
- restore contacts/SMS
Click to expand...
Click to collapse
To clarify, the step "clear data" is done by selecting "factory reset" in TWRP under "Wipe". Don't wipe SD. You should always factory reset when flashing a new ROM, and also wipe cache and Dalvik.
Flashing a stock rooted ROM is same as any custom ROM. If you had to flash boot.img separately when flashing CM10, you have to do it going to the stock rooted ROM also.
HTC_Phone said:
Before rooting, did you run the 2.20 RUU, and have the newest bootloader? if so, you need to flash the boot.img through fastboot.
If the above statement isn't the case, then try a full wipe and re-flash
Click to expand...
Click to collapse
+1. If you had to manually flash boot.img for CM10, you will also have to flash boot.img for your stock ROM. This sounds like your problem.
I also heard that there are some issues with flashing the stock ROM with TWRP 2.3.x--I'm not sure if this is true or not, but it's something to consider.
If you're not getting anywhere, your easiest option would be to just run the RUU. This requires you to re-lock your bootloader first, however (option available in bootloader menu). If you follow this method, you can easily re-unlock your bootloader with the same token from the first time you did it.
For more on running the RUU, see http://forum.xda-developers.com/showthread.php?t=1814217
all official twrp versions http://techerrata.com/browse/twrp2/evita
only versions worth using are 2.2.2.0 and 2.3.1.0 i would save both of them to be able to flash all roms and mods offered for the evita.

[Q] ViperS 3.1.2 + Sensation XE

Hi.
I want to switch to ViperS 3.1.2 but have few questions before I do so. I've never done it before so I'm new to this.
Does it come rooted (or do all ROMs come rooted)?
Is there any instruction on how to do it or just flash it from .zip via the recovery mode (I have CWM 5.x.x installed already)?
And are there any bugs with it such as Wi-Fi problems/tethering, or calls (speaker)?
Also, what if something goes wrong? I've got a backup of my current ROM (stock), so do I just flash that one back or try ViperS' in case it was a mistake on my side?
Lastly, I've heard some people mentioning OTA updates. I'm assuming it's done in the same way as stock ROMs, so you just need Wi-Fi/working internet and the new update will install on its own, or do I have to download the update from here and then do it myself?
Thanks!
MrCatalyst said:
Hi.
I want to switch to ViperS 3.1.2 but have few questions before I do so. I've never done it before so I'm new to this.
Does it come rooted (or do all ROMs come rooted)?
Is there any instruction on how to do it or just flash it from .zip via the recovery mode (I have CWM 5.x.x installed already)?
And are there any bugs with it such as Wi-Fi problems/tethering, or calls (speaker)?
Also, what if something goes wrong? I've got a backup of my current ROM (stock), so do I just flash that one back or try ViperS' in case it was a mistake on my side?
Lastly, I've heard some people mentioning OTA updates. I'm assuming it's done in the same way as stock ROMs, so you just need Wi-Fi/working internet and the new update will install on its own, or do I have to download the update from here and then do it myself?
Thanks!
Click to expand...
Click to collapse
Are you S-Off or S-On? If S-Off then you can flash the zip directly from recovery and if you're S-On then you gotta flash 4EXT recovery first and enable smart flash feature and then flash the zip file.
There are no major bugs in the Rom except the ones listed on the OP of the official thread. Enjoy flashing.
Sent from my HTC Sensation Z710e using xda app-developers app
I'm S-Off. I've had root earlier but I've installed SuperSU and accidentally pressed Clean SU which has pretty much wiped it. :|
Post your bootloader details to make things more clearer. Flashing a custom Rom doesn't need root access. You can flash it as you're s-off.
What Rom you're using currently? What firmware?
Sent from my HTC Sensation Z710e using xda app-developers app
I apologise for not posting, although it may be a bit too late now since I'm already installing the ROM.
So, just wanna know now - do ROMs come rooted, and if I can always go back to stock ROM as long as I have the boot.img/download stock ROM from HTC site?
MrCatalyst said:
I apologise for not posting, although it may be a bit too late now since I'm already installing the ROM.
So, just wanna know now - do ROMs come rooted, and if I can always go back to stock ROM as long as I have the boot.img/download stock ROM from HTC site?
Click to expand...
Click to collapse
Yup they come pre-rooted
Thanks for the help, everyone! Managed to install the ROM, despite being stuck in bootloop for 2 hours but it works flawlessly now.
MrCatalyst said:
I apologise for not posting, although it may be a bit too late now since I'm already installing the ROM.
So, just wanna know now - do ROMs come rooted, and if I can always go back to stock ROM as long as I have the boot.img/download stock ROM from HTC site?
Click to expand...
Click to collapse
Most roms come rooted, and the rest provide root tools so you have a choice while flashing.
To return to stock look up ruu. An ruu + s on = your device as it came.
If you had flashed Firmware-3.33 before the ROM - you would have had no "bootloops" at all! The most important thing is to have Firmware-3.33
Rom is broken , EMERGENCY , plz help
Hello everybody. I'm in a real trouble with my phone. it's very emergency , so i really need your help please. My ViperS 3.1.2 is broken and doesn't boot. i reinstalled Rom without wiping and again with update only setting but still doesn't boot.I flashed boot.img again but still... i did everything i could such as wiping cache and dalvik cache but again the same problem. the phone stays on "SENSATION" boot screen with beats audio on bottom for 20 seconds and suddenly screen become dark and phone restarts . i wiped dalvik and again "android is upgrading" starts and after it finished the phone restarts again i know if i perform a full wipe during Rom installation it will be fixed but i REALLY,REALLY,REALLY need my contacts and messages.... is there anyway i could fix my phone or make a backup of contacts and messages??? PLEEAAASSSE help me . tnx
VAHIDHAVASBEIGY said:
Hello everybody. I'm in a real trouble with my phone. it's very emergency , so i really need your help please. My ViperS 3.1.2 is broken and doesn't boot. i reinstalled Rom without wiping and again with update only setting but still doesn't boot.I flashed boot.img again but still... i did everything i could such as wiping cache and dalvik cache but again the same problem. the phone stays on "SENSATION" boot screen with beats audio on bottom for 20 seconds and suddenly screen become dark and phone restarts . i wiped dalvik and again "android is upgrading" starts and after it finished the phone restarts again i know if i perform a full wipe during Rom installation it will be fixed but i REALLY,REALLY,REALLY need my contacts and messages.... is there anyway i could fix my phone or make a backup of contacts and messages??? PLEEAAASSSE help me . tnx
Click to expand...
Click to collapse
If you made a backup before flashing you should restore it, or else flash the ROM you had before flashing.
Then use "Titanium Backup" and back up your messages (your contacts are automatically synced with your google account, unless you saved them on the phone, but you can change that with the "people" app.
after you backed your phone up, make a full wipe, and flash the new ROM. Install Titanium Backup and restore your messages backup.
Good luck.
astar26 said:
If you made a backup before flashing you should restore it, or else flash the ROM you had before flashing.
Then use "Titanium Backup" and back up your messages (your contacts are automatically synced with your google account, unless you saved them on the phone, but you can change that with the "people" app.
after you backed your phone up, make a full wipe, and flash the new ROM. Install Titanium Backup and restore your messages backup.
Good luck.
Click to expand...
Click to collapse
excuse me, you said 2 options . first is to restore backup , unfortunately i don't have backup. second is flashing the rom i had before flashing ! i didn't understand what you said... what do you mean? i don't have any backup, if you can help me to boot up phone just for 2 mins to backup my contacts! they aren't synced to my google account....
pleeeeaaaaaaaaaasssseeeee helppp meee. i am becoming crazyy because of my problem.... HELP PLZZZ :crying:
VAHIDHAVASBEIGY said:
excuse me, you said 2 options . first is to restore backup , unfortunately i don't have backup. second is flashing the rom i had before flashing ! i didn't understand what you said... what do you mean? i don't have any backup, if you can help me to boot up phone just for 2 mins to backup my contacts! they aren't synced to my google account....
Click to expand...
Click to collapse
Get a download of the ROM you had before, and you can flash it normally. If you had stock, find a download of stock ROM (although Sense 3.6 custom ROMs might actually work too).
Right
i dont had a Problem :good:
astar26 said:
Get a download of the ROM you had before, and you can flash it normally. If you had stock, find a download of stock ROM (although Sense 3.6 custom ROMs might actually work too).
Click to expand...
Click to collapse
excuse me again! you mean install another ROM without Wiping on ViperS? I am using ViperS for about 1 years, Are you sure? now i should download another ROM like Android Revolution HD for sensation and install it on my phone without performing full wipe and it can fix boot problem?
VAHIDHAVASBEIGY said:
excuse me again! you mean install another ROM without Wiping on ViperS? I am using ViperS for about 1 years, Are you sure? now i should download another ROM like Android Revolution HD for sensation and install it on my phone without performing full wipe and it can fix boot problem?
Click to expand...
Click to collapse
Oh no, I thought you wanted to flash viperS. Flash the ROM you had before flashing, whichever ROM that was (but flash that specific ROM, not a different one. My advice from the previous comment was if you came from stock ROM). If you flash the same ROM you don't have to wipe, and then you can back up your phone.
astar26 said:
Oh no, I thought you wanted to flash viperS. Flash the ROM you had before flashing, whichever ROM that was (but flash that specific ROM, not a different one. My advice from the previous comment was if you came from stock ROM). If you flash the same ROM you don't have to wipe, and then you can back up your phone.
Click to expand...
Click to collapse
ohhh , in my first post i said ( i reinstalled Rom without wiping and again ...) i mean i did your advice , but it doesn't fix my problem... :crying:
VAHIDHAVASBEIGY said:
ohhh , in my first post i said ( i reinstalled Rom without wiping and again ...) i mean i did your advice , but it doesn't fix my problem... :crying:
Click to expand...
Click to collapse
I hope you can operate adb, because the solution I found requires it.
Go to recovery, and use adbto pull the contacts database with the following command:
adb pull data/data/com.android.providers.contacts/databases/contacts.db
It might give an error for a protected directory (but I don't know since it's going to be done in recovery), if that happens, use 'adb shell' and then 'su'. then exit, and you have root access to the device (do it only if required).
Once you obtained the file, it should be on your adb folder. you need to open it with a database app which supports SQLite3 (I won't reccomend anyrhing since I've never used them. but from a quick search I found a few. and searching in the context of reading android databases would give some recommendations.).
Good luck
p.s - It's hard for me to believe this is the simplest solution. It might work, but it's not easy. So others might give better solutions.
astar26 said:
I hope you can operate adb, because the solution I found requires it.
Go to recovery, and use adbto pull the contacts database with the following command:
adb pull data/data/com.android.providers.contacts/databases/contacts.db
It might give an error for a protected directory (but I don't know since it's going to be done in recovery), if that happens, use 'adb shell' and then 'su'. then exit, and you have root access to the device (do it only if required).
Once you obtained the file, it should be on your adb folder. you need to open it with a database app which supports SQLite3 (I won't reccomend anyrhing since I've never used them. but from a quick search I found a few. and searching in the context of reading android databases would give some recommendations.).
Good luck
p.s - It's hard for me to believe this is the simplest solution. It might work, but it's not easy. So others might give better solutions.
Click to expand...
Click to collapse
tnx , if i try i can do it. i can operate adb easily . but a person said me to backup /data partition with recovery and then perform a full wipe and install viperS again then restore /data . do you have any idea abou it? can it help?

Some noob questions. :eek:

Hello XDA community,
I've rooted my HTC One X+ like 2 months ago.
I still got the latest stock ROM but I want to put a custom ROM on it.
Which is this one:
http://forum.xda-developers.com/showthread.php?t=1987885
I still got some questions about it since it will be the first time flashing a ROM, because the thread isn't really clear to me so I hope someone can help me out with a little bit more detailed guide than mentioned in the ROM thread.
1. Do I have to wipe all my data?
2. Is a dalvik wipe really needed?
I contacted the developer of the ROM he said I didn't have to but when I asked more things about it he didn't reply.
3. How to flash a boot.img?
I can't find a really good tutorial on that.
4. What's the really right order to perform this flash mentioned in above linked thread?
I hope anyone of you can help me out since most of the threads I've seen around people are *****ing about: you shouldn't do it if you don't know what you are doing blablabla.
Since I really want to learn something about it too.
Sent from my HOX+
NiZii. said:
Hello XDA community,
I've rooted my HTC One X+ like 2 months ago.
I still got the latest stock ROM but I want to put a custom ROM on it.
Which is this one:
http://forum.xda-developers.com/showthread.php?t=1987885
I still got some questions about it since it will be the first time flashing a ROM, because the thread isn't really clear to me so I hope someone can help me out with a little bit more detailed guide than mentioned in the ROM thread.
1. Do I have to wipe all my data?
2. Is a dalvik wipe really needed?
I contacted the developer of the ROM he said I didn't have to but when I asked more things about it he didn't reply.
3. How to flash a boot.img?
I can't find a really good tutorial on that.
4. What's the really right order to perform this flash mentioned in above linked thread?
I hope anyone of you can help me out since most of the threads I've seen around people are *****ing about: you shouldn't do it if you don't know what you are doing blablabla.
Since I really want to learn something about it too.
Sent from my HOX+
Click to expand...
Click to collapse
FULL WIPE is clearly recommended when you want to flash another rom. That means (/boot) /system /data /cache /dalvik. You can try it without a FULL WIPE but that will causes errors in most cases.
You need a working HTC USB cable
You need working adb/fastboot, download it from here
You need latest HTC drivers, download it from here
You need a GOOD custom recovery, download it from here
Additionally you need a flashable rom + boot.img
When you got all these we can proceed with flashing a rom
LS.xD said:
FULL WIPE is clearly recommended when you want to flash another rom. That means (/boot) /system /data /cache /dalvik. You can try it without a FULL WIPE but that will causes errors in most cases.
You need a working HTC USB cable
You need working adb/fastboot, download it from here
You need latest HTC drivers, download it from here
You need a GOOD custom recovery, download it from here
Additionally you need a flashable rom + boot.img
When you got all these we can proceed with flashing a rom
Click to expand...
Click to collapse
Hello LS.xD,
Thanks for your reply.
I am not at home at the moment.
I will be in about 4.5 or 5 hours, so I will download everything then.
I got the recovery flashed already, so I can probably skip that.
My HTC drivers are probably outdated.
Since my HTC desktop programm had to update the last time I opened it.
And I downloaded the files of the ROM too.
Sent from my HOX+
By the way LS.xD,
I got 'CWM-based Recovery v6.0.3.2'. (That's what it says in the top when I am in recovery mode)
I got three wipe options:
- wipe data/factory reset
- wipe cache partition
- wipe dalvik cache
These are all the wipes I got to perform AFTER installing the zip right? Because if you do it before you will wipe the zip file, is that right?
Sent from my HOX+
NiZii. said:
By the way LS.xD,
I got 'CWM-based Recovery v6.0.3.2'. (That's what it says in the top when I am in recovery mode)
I got three wipe options:
- wipe data/factory reset
- wipe cache partition
- wipe dalvik cache
These are all the wipes I got to perform AFTER installing the zip right? Because if you do it before you will wipe the zip file, is that right?
Sent from my HOX+
Click to expand...
Click to collapse
Its for a reason i recommended the recovery in my post. Pls install and THEN we can go on
and NO you first perform the wipe and then install a rom.
and pls uninstall HTC sync before using fastboot to flash boot.img as it will cause errors if you have htc sync installed.
LS.xD said:
Its for a reason i recommended the recovery in my post. Pls install and THEN we can go on
and NO you first perform the wipe and then install a rom.
and pls uninstall HTC sync before using fastboot to flash boot.img as it will cause errors if you have htc sync installed.
Click to expand...
Click to collapse
Okay I will do that when I am home. Thanks for the patience with me and all the help, nobody was replying in other threads so I really appreciate all your help.
Sent from my HOX+
One more question, what is a safe spot to put the ROM zip file on? So it doesn't get wiped? (HOX+ doesn't have a SD slot, just 64GB internal)
Sent from my HOX+
NiZii. said:
One more question, what is a safe spot to put the ROM zip file on? So it doesn't get wiped? (HOX+ doesn't have a SD slot, just 64GB internal)
Sent from my HOX+
Click to expand...
Click to collapse
Thats totally safe as long as you dont WIPE or FORMAT /sdcard LOL
Probably a dumb question, but if you do a factory reset your music and pictures will be deleted, why doesn't the zip file be deleted? I will test it at home though. Factory reset, put the zip file on it, then factory reset again in recovery and look if the zip file still exists on my phone.
Sent from my HOX+
NiZii. said:
Probably a dumb question, but if you do a factory reset your music and pictures will be deleted, why doesn't the zip file be deleted? I will test it at home though. Factory reset, put the zip file on it, then factory reset again in recovery and look if the zip file still exists on my phone.
Sent from my HOX+
Click to expand...
Click to collapse
MAN be patient pls. Install the recovery i suggested. Then everything will be clear and safe once you opened it. DONT perform factory reset / clear storage in bootloader mode!!!
LS.xD said:
MAN be patient pls. Install the recovery i suggested. Then everything will be clear and safe once you opened it. DONT perform factory reset / clear storage in bootloader mode!!!
Click to expand...
Click to collapse
I am sorry, I will tell you when I did..
Sent from my HOX+

install twrp without losing data

Good evening, I saw some questions similar to this one in the forum, but none had my kind of doubt.
When a new ROM comes out for both S7 and S8, I install via ODIN using the CSC HOME option, so as not to lose the data.
The problem is in the installation of TWRP whenever I install the same by ODIN, when entering the app and trying to install example no-verity ja start I get the message that the DATA folder has been corrupted and can not be mounted.
This way it only works once again doing WIPE DATA, but then I lose my data and I have to start from scratch.
Is there a way this does not happen or will it always be like this when updating a ROM?
Thank you.
costafabiof said:
Good evening, I saw some questions similar to this one in the forum, but none had my kind of doubt.
When a new ROM comes out for both S7 and S8, I install via ODIN using the CSC HOME option, so as not to lose the data.
The problem is in the installation of TWRP whenever I install the same by ODIN, when entering the app and trying to install example no-verity ja start I get the message that the DATA folder has been corrupted and can not be mounted.
This way it only works once again doing WIPE DATA, but then I lose my data and I have to start from scratch.
Is there a way this does not happen or will it always be like this when updating a ROM?
Thank you.
Click to expand...
Click to collapse
Have you tried backing up data with twrp before you wipe and copying it to your pc so you can do a full wipe then put the backup onto the phone and flash It? You can back up data folder only
godkingofcanada said:
Have you tried backing up data with twrp before you wipe and copying it to your pc so you can do a full wipe then put the backup onto the phone and flash It? You can back up data folder only
Click to expand...
Click to collapse
Good afternoon,
Thanks for the reply.
So from what I mentioned above, I do a full backup as I normally do, and I also do a separate from the DATA folder.
Then I install the ROM and TWRP, will it corrupt the DATA folder so I restore only it? Would it be this?
If so, will it work out, in relation to being a ROM different from the other?
costafabiof said:
Good afternoon,
Thanks for the reply.
So from what I mentioned above, I do a full backup as I normally do, and I also do a separate from the DATA folder.
Then I install the ROM and TWRP, will it corrupt the DATA folder so I restore only it? Would it be this?
If so, will it work out, in relation to being a ROM different from the other?
Click to expand...
Click to collapse
The main rom info needed is contained in the system folder. The data folder is application data and whatnot. Reboot into twrp and use the backup option, then copy to pc. Do a full wipe of all, pit backup of data folder and new rom on internal or sd. Go into terp and flash the rom and data folder. Do not flaah system or it will overwrite the new rom. u will restore everything even if you don't have the APK installed in your system. It will return the data, you may need to reinstall the APK. Gmail for example will return will email addresses and messages, contacts and texts will come back to what they were at backup. You should back up modem and efs and boot as well and keep them safe. What I do is I get my phone set up fully, all apps I need and any games and data and then back it up again so any issues and I restore it to a fully functional state and don't need to install tons of things
godkingofcanada said:
The main rom info needed is contained in the system folder. The data folder is application data and whatnot. Reboot into twrp and use the backup option, then copy to pc. Do a full wipe of all, pit backup of data folder and new rom on internal or sd. Go into terp and flash the rom and data folder. Do not flaah system or it will overwrite the new rom. u will restore everything even if you don't have the APK installed in your system. It will return the data, you may need to reinstall the APK. Gmail for example will return will email addresses and messages, contacts and texts will come back to what they were at backup. You should back up modem and efs and boot as well and keep them safe. What I do is I get my phone set up fully, all apps I need and any games and data and then back it up again so any issues and I restore it to a fully functional state and don't need to install tons of things
Click to expand...
Click to collapse
Good afternoon,
I'm sorry for the text I'm using Google Translate.
I believe that I did not understand correctly, because the error happens in the following way, I install a ROM, reinstall the TWRP, yes yes it corrupts the folder DATA!
If I understood mistake, I apologize.
costafabiof said:
Good afternoon,
I'm sorry for the text I'm using Google Translate.
I believe that I did not understand correctly, because the error happens in the following way, I install a ROM, reinstall the TWRP, yes yes it corrupts the folder DATA!
If I understood mistake, I apologize.
Click to expand...
Click to collapse
Is it a custom Rom or a stock rom? Also you can backup via ADB
https://forum.xda-developers.com/an...oid-sdk-adb-backup-apps-t3467560#edit68829721
godkingofcanada said:
Is it a custom Rom or a stock rom? Also you can backup via ADB
https://forum.xda-developers.com/an...oid-sdk-adb-backup-apps-t3467560#edit68829721
Click to expand...
Click to collapse
The ROM I use is provided by Samsung, with no modifications, when I install it I use the CSC option the HOME file, in order not to lose the data, and of course, I do not lose anything I only update the ROM.
The problem is that I need to reinstall TWRP after installing ROM, and when I access TWRP it has corrupted the DATA folder.
costafabiof said:
The ROM I use is provided by Samsung, with no modifications, when I install it I use the CSC option the HOME file, in order not to lose the data, and of course, I do not lose anything I only update the ROM.
The problem is that I need to reinstall TWRP after installing ROM, and when I access TWRP it has corrupted the DATA folder.
Click to expand...
Click to collapse
You can extract the samsung md5 and repack it as a zip with superrs kitchen and then flash it from twrp. Just remove the recovery.img from the extracted files before zipping it up. Then you can simply flash twrp. Then the rom and not have to worry about the fact that you are stuck in a loop of being locked out because you don't need odin for the rom and it won't overwrite your recovery. If that's too much work try using a custom Rom from xda
godkingofcanada said:
You can extract the samsung md5 and repack it as a zip with superrs kitchen and then flash it from twrp. Just remove the recovery.img from the extracted files before zipping it up. Then you can simply flash twrp. Then the rom and not have to worry about the fact that you are stuck in a loop of being locked out because you don't need odin for the rom and it won't overwrite your recovery. If that's too much work try using a custom Rom from xda
Click to expand...
Click to collapse
Thank you very much for your patience. But I'm not clear, or you do not understand.
The problem is not in the ROM, but in the TWRP installation. If I install the ROM with the option CSC HOME I do not lose anything, everything is working correctly.
When I install TWRP it corrupts the DATA folder. The problem is there!
costafabiof said:
Thank you very much for your patience. But I'm not clear, or you do not understand.
The problem is not in the ROM, but in the TWRP installation. If I install the ROM with the option CSC HOME I do not lose anything, everything is working correctly.
When I install TWRP it corrupts the DATA folder. The problem is there!
Click to expand...
Click to collapse
I was saying to use a zip rom because then you can reflash the rom without reflashing twrp. So you flash twrp, it says data error and then you flash rom from zip, which reinstall system and data but will not copy stock recovery over twrp. So you will not have to reinstall it and be stuck. Or try a different version of twrp might also help. Stock firmware overwrites recovery and the rom. You need to modify it to remove recovery from the firmware, or use a custom Rom to stop it from erasing twrp
godkingofcanada said:
I was saying to use a zip rom because then you can reflash the rom without reflashing twrp. So you flash twrp, it says data error and then you flash rom from zip, which reinstall system and data but will not copy stock recovery over twrp. So you will not have to reinstall it and be stuck. Or try a different version of twrp might also help. Stock firmware overwrites recovery and the rom. You need to modify it to remove recovery from the firmware, or use a custom Rom to stop it from erasing twrp
Click to expand...
Click to collapse
I think I understood, more or less, since I translate for Google.
But assuming I want to use normal ROM, you have to back up the DATA folder before installing the ROM and after installing the new ROM and TWRP, restore only the DATA?
Thank you again.
Yes a new rom will overwrite data, you need a backup before. You should be able to connect your phone to a linux operating system and use adb to connect and back it up, if twrp will not let you take a back up.
godkingofcanada said:
Yes a new rom will overwrite data, you need a backup before. You should be able to connect your phone to a linux operating system and use adb to connect and back it up, if twrp will not let you take a back up.
Click to expand...
Click to collapse
In my case I can back up the DATA folder by TWRP. Is there doubt, if I back up the DATA folder in one version of Android and then restore in another version, will it be compatible?
costafabiof said:
In my case I can back up the DATA folder by TWRP. Is there doubt, if I back up the DATA folder in one version of Android and then restore in another version, will it be compatible?
Click to expand...
Click to collapse
Yes it will be, marshmallow and nougat are completely compatible from the boot loader up. You can also turn your stock samsung md5 into a zip file so you do not need odin to install it. You will be able to flash it from twrp
godkingofcanada said:
Yes it will be, marshmallow and nougat are completely compatible from the boot loader up. You can also turn your stock samsung md5 into a zip file so you do not need odin to install it. You will be able to flash it from twrp
Click to expand...
Click to collapse
Again thank you very much.
I'll test it and put it here.
Note: The Thank you button is not working.
costafabiof said:
Again thank you very much.
I'll test it and put it here.
Note: The Thank you button is not working.
Click to expand...
Click to collapse
You are welcome. If you want to have a stock zip file instead of the md5 use this link.
https://forum.xda-developers.com/showthread.php?t=2387941
...
costafabiof said:
...
Click to expand...
Click to collapse
Can you not read the website?
I know what you mean. Twrp can't access the data folder because it's encrypted. But you do have to format it to gain proper access. You have to copy the files out or back them up
godkingofcanada said:
Can you not read the website?
Click to expand...
Click to collapse
I believe that because I am a new user I can not exclude publications, I already tested in CHROME and IE. In the same way I can not give THANK YOU.

Categories

Resources