yashsingh1/xdaforums huggingface dataset:
[OnePlus 5T  Guides, News, & Discussion] funnoam:
Yes pal it's normal. At least for now it's still a bug in TWRP or Magisk so you just need to flash it a second time and everything will work. TWRP will not be replaced by stock recovery if Magisk is installed.

That's how I flash my ROM and I have never encountered a bootloop :

Reboot to TWRP

Wipe Dalvik, Cache and System

Flash ROM

Flash Magisk (error 1)

Flash Magisk (sucess)

Flash Kernel/iYTPB/other

Reboot to System

No need to flash TWRP since the recovery is not installed during the ROM flash but only at boot without root.
[OnePlus 5T  Guides, News, & Discussion] KLit75:
Thanks four the reply! This rom forces encryption, right?Do you also flash the no_verity zip?
[OnePlus 5T  Guides, News, & Discussion] funnoam:
I never bother with encryption, never flashed any no Verity or dm verity zip... I'm on OOS. So I guess I'm encrypted like every stock phone and there's no point to decrypt anyway.
[OnePlus 5T  Guides, News, & Discussion] worldsoutro:
Thinking of it they are busy testing ob5 for the OnePlus 6
[OnePlus 5T  Guides, News, & Discussion] lmunoz023:
No news yet? I want Nav Gestures without getting in the beta rom! ???
[OnePlus 5T  Guides, News, & Discussion] tye_time:
The update will probably land this week or at the latest next week!

- sent from my 5T[emoji769]
[OnePlus 5T  Guides, News, & Discussion] osqbany:
No way they will release 8.1 before op6, that's for sure watching their op6 adverts with gestures
[OnePlus 5T  Guides, News, & Discussion] worldsoutro:
Your right. We are very soon to a release date
[OnePlus 5T  Guides, News, & Discussion] vin1jo4:
Can't search contacts

After updating to oxygen OS 5.0.4 on OnePlus 5T I can't search contacts... Whenever I type a name it shows no contacts found.. anyone else facing similar issue?

Plz help...
[OnePlus 5T  Guides, News, & Discussion] killswitx:
nope not at all, try clearing cache/data for contacts app or use DW contacts ;)
[OnePlus 5T  Guides, News, & Discussion] vin1jo4:
It worked..

But need to reboot phone after cleaning the cache..

thanks for the solution!!

Cheers..?
[OnePlus 5T  Guides, News, & Discussion] luws:
What's coming in the next update , anyone knows?
[OnePlus 5T  Guides, News, & Discussion] Nobodyslight:
I wish? honestly if we don't get an OTA in the next week I'll probably go to the beta path... Because I get slowdowns, and o get that they're trying to make it as bugless as possible, but.... It's been over a month..... I'm just disappointed at this point ?
[OnePlus 5T  Guides, News, & Discussion] andresousa90:
I was in the same the situation. The only thing I regret was not go to the beta path sooner.
[OnePlus 5T  Guides, News, & Discussion] Nobodyslight:
I've moved to it twice, and I did actually notice more bugs than stable (which is to be expected) which just bothers me; not to mention that going back to stable requires a wipe, so I thought this time I'd stick it out and wait for the stable release
[OnePlus 5T  Guides, News, & Discussion] andresousa90:
I went from last stable version to last beta version. No bugs so far. And the navigation gestures are amazing
[OnePlus 5T  Guides, News, & Discussion] Nobodyslight:
They are amazing, and that's why i hate waiting ?
[OnePlus 5T  Guides, News, & Discussion] Loneken:
Just flash Lineage yesterday
[OnePlus 5T  Guides, News, & Discussion] JD_2322:
Hi, I just upgraded to OOS 5.0.4 on my 5T. It has been rooted since day one. So, in order to upgrade, I wiped everything except internal storage, flashed the 5.0.4 full zip, and flashed blu-spark r109 kernel. After setting up, rebooted into recovery and flashed Majisk 16.0.

There's this bug in the camera that occurs only when taking vertical photos, especially when there's movement, ie. The EIS is getting kicked in. It doesn't occur while taking horizontal photos.

I have attached some samples where I've taken the same photo horizontally as well as vertically. It doesn't matter if it's low light, HDR, flash on off, pro mode or not.

Here's the link to the photos:

https://photos.app.goo.gl/wo9iFIEwqfpxs2dw1
[OnePlus 5T  Guides, News, & Discussion] BigBrosMo:
I dont know if it applies to your camera issue but anything over bluspark r102 is for 8.1 ROMs(open beta) not 8.0 (5.0.4). So u could/should expect weirdness...
[OnePlus 5T  Guides, News, & Discussion] marcinoza:
Beta 6 is ready ;)
[OnePlus 5T  Guides, News, & Discussion] mrazrmx:
Still waiting for stable 8.1. And yes, I'm using beta 06
[OnePlus 5T  Guides, News, & Discussion] lmunoz023:
I understand that they are waiting to release the OnePlus6 to show the gestures and all new stuff because of marketing. But making us (the people who do not want to "play" with betas and custom roms) with the december security patch... It is not fair...

Hope OP6 and our update is released asap.
[OnePlus 5T  Guides, News, & Discussion] iamterence:
Just run the beta, it's stable.
[OnePlus 5T  Guides, News, & Discussion] panart:
OOS 5.1.0 is rolling out (with android 8.1 and April security patch):

https://forums.oneplus.com/threads/oxygenos-5-1-0-ota-for-the-oneplus-5-5t.820118/
[OnePlus 5T  Guides, News, & Discussion] Funk Wizard:
Guys the stable OOS 5.1.0 based on 8.1 is now rolling out, the thread will be updated momentarily !!
[OnePlus 5T  Guides, News, & Discussion] Nobodyslight:
About time:rolleyes: well I am impressed that they did include features from the newer open betas and the security patches.
[OnePlus 5T  Guides, News, & Discussion] Angel_Alonso:
OOS 5.1.0 have gesture?
[OnePlus 5T  Guides, News, & Discussion] panart:
Your question has already been answered in post #1.
[OnePlus 5T  Guides, News, & Discussion] Angel_Alonso:
Oh really

lol thanks! :good:
[OnePlus 5T  Guides, News, & Discussion] ankushgautam:
Did anyone got the update for 5t??? I guess only op5 uers r getting it tyt now...even with vpn no update pops up

EDIT: JUST GOT UPDATE ON GERMANY VPN FOR 5T..DOWNLOADING FULL 1.6 GB UPDATE
[OnePlus 5T  Guides, News, & Discussion] Void_Dragon07:
will the beta users get the stable update
[OnePlus 5T  Guides, News, & Discussion] saiprasadgawde:
Of course not dude. Oneplus clearly states it
[OnePlus 5T  Guides, News, & Discussion] Void_Dragon07:
the 5.1 build is basically the beta 6 right
[OnePlus 5T  Guides, News, & Discussion] panart:
Not via OTA. From what I've read in OnePlus forum, a dirty flash from OB6 to 5.1.0 (with full zip) should be possible. Of course it's better to have a backup of data just in case.
[OnePlus 5T  Guides, News, & Discussion] saiprasadgawde:
No. OB6 is a prerelease beta software. Stable builds are tested extensively before release and are usually bugfree.
[OnePlus 5T  Guides, News, & Discussion] Void_Dragon07:
thanks dude
[OnePlus 5T  Guides, News, & Discussion] saiprasadgawde:
Dirty flash between beta and stable builds not recommended. Clean flash when switching between the two
[OnePlus 5T  Guides, News, & Discussion] Void_Dragon07:
yup gonna do that just waiting for them to update the zip
[OnePlus 5T  Guides, News, & Discussion] panart:
I have gone dirty from stable to beta many times without any issues. From beta to stable is another story (sometimes it works, sometimes it doesn't), that's why I said it's better to make a backup before trying.
[OnePlus 5T  Guides, News, & Discussion] saiprasadgawde:
Dont forget to back up all data on the phone. Encryption problems are frequent causing data wipe when switching stable to beta or vice a versa
[OnePlus 5T  Guides, News, & Discussion] panart:
Guys, they flipped the switch, OTA is live for those on 5.0.4 via VPN (Canada or Germany). For us on OB6 we should wait for full zip link.
[OnePlus 5T  Guides, News, & Discussion] Void_Dragon07:
i would dirty flash but all of my data is already backed up so got no issues since its a stable build its just better to clean flash i think anyidea when will they update the 5.1 zip
[OnePlus 5T  Guides, News, & Discussion] panart:
No idea, hopefully Funk Wizard will post the link soon.
[OnePlus 5T  Guides, News, & Discussion] Sy1ar:
OxygenOS 5.1.0
[OnePlus 5T  Guides, News, & Discussion] sshivampp:
5.1.0 Full Rom | Canada VPN

https://drive.google.com/file/d/1w8gqChZc-1AokgmbyyhjpRzcyjGzVERi/view?usp=sharing
[OnePlus 5T  Guides, News, & Discussion] Maxbmwe53:
Anybody tried dirty flash from ob6 to stable with no problems? Is it worth to try or should i stick with the ob6 since i have no issues so far?
[OnePlus 5T  Guides, News, & Discussion] Void_Dragon07:
will it work if im from india
[OnePlus 5T  Guides, News, & Discussion] sshivampp:
Yup
[OnePlus 5T  Guides, News, & Discussion] Zrbtfm:
Honestly I switched to ob from stable 2 days go and not for features... was just for security patches and to take the benefits of the custom kernels tuned for oos ob... Quite frustrated to get the stable update today which a great news... Do you think that ob will be maintained ?
[OnePlus 5T  Guides, News, & Discussion] skim234:
Stupid question time-

I am rooted on 4.7.6 (Android 7.1.1). I have Magisk installed. Can someone tell me the proper method to upgrade to either 5.0.4 (OTA) or this beta 5.1.0.?

Do I have to flash to stock recovery first? If so, can I do that directly from TWRP (the recovery I have now)? TIA
[OnePlus 5T  Guides, News, & Discussion] saiprasadgawde:
Grabbed the full 5.1 download. Uploading on mega. Slow upload on gdrive. Will share link shortly

Here it goes

https://mega.nz/#!A4snGRoZ!p5HAnqDoiY4lwQmhxy3zHF7ekMZ2MRQ8whh3KEHSMSU
[OnePlus 5T  Guides, News, & Discussion] roxdragon:
Hi. In one plus website can't find the lastest OOS 5.1.0 why?
[OnePlus 5T  Guides, News, & Discussion] pantale:
Downloaded and installed...
[OnePlus 5T  Guides, News, & Discussion] iXaidyiu:
Can anyone confirm with me if the gaps in quick setting is fixed in OOS 5.1?
[OnePlus 5T  Guides, News, & Discussion] panart:
They are the same as on OB6.
[OnePlus 5T  Guides, News, & Discussion] Adnan008:
i didnt try it but they tell its same, not fixed.
[OnePlus 5T  Guides, News, & Discussion] cutmylifein2:
Has the swipe to Google screen lag fixed in third party launchers?
[OnePlus 5T  Guides, News, & Discussion] panart:
So, I dirty flashed 5.1.0 over OB6, no issues so far (too early to say for sure). I looked for OB features in 5.1.0, I found that the "Earphone mode" and "Card package" didn't make it to 5.1.0 (which is normal as they were introduced in OB6 just a few days ago). The rest of OB features seem to have made it to 5.1.0 (unless I missed something).
[OnePlus 5T  Guides, News, & Discussion] andersonaragao:
Updating to Stable 8.1.0 from Open Beta 6 works fine!
[OnePlus 5T  Guides, News, & Discussion] NatsuDzn:
I tried in Nova and yes it has it (the lag)
[OnePlus 5T  Guides, News, & Discussion] Nobodyslight:
In ob6 it's still lagging on nova
[OnePlus 5T  Guides, News, & Discussion] Wrapp:
In 8.1 release as well (nova)
[OnePlus 5T  Guides, News, & Discussion] Nobodyslight:
Also tried the pixel launcher and same there. I'm wondering if it's related to some new framework or feature OnePlus is using that ties in with the Google play services
[OnePlus 5T  Guides, News, & Discussion] Dixi99:
Unfortiunately not

---------- Post added at 06:52 PM ---------- Previous post was at 06:51 PM ----------

Anyone got substratum working on oos 5.1?
[OnePlus 5T  Guides, News, & Discussion] SkandaH:
AFH mirror: https://www.androidfilehost.com/?fid=890129502657598286

[MENTION=5625227]Sy1ar[/MENTION] is faster this time.

:highfive:
[OnePlus 5T  Guides, News, & Discussion] Maxbmwe53:
Nope, it's still there.

---------- Post added at 07:33 PM ---------- Previous post was at 07:30 PM ----------

Try force wallpaper scrolling on nova, i heard it's the solution

---------- Post added at 07:36 PM ---------- Previous post was at 07:33 PM ----------

What launcher are you using? If you have swipe for google feed, does it lag when swiping?
[OnePlus 5T  Guides, News, & Discussion] emanuele1986:
Same problem with nova, i had the same problem when updated from 7.1.1 to 8.0. After i did clean flash and lag disappear. I have root and twrp, i downloaded full rom from last page and lag apper again. Clean flash solve It -.-

---------- Post added at 08:42 PM ---------- Previous post was at 08:41 PM ----------

Thanks no problem for me. I have phone rooted with twrp

---------- Post added at 08:43 PM ---------- Previous post was at 08:42 PM ----------

Thanks no problem for me. I have phone rooted with twrp
[OnePlus 5T  Guides, News, & Discussion] panart:
I use the stock launcher. Google feed isn't available in my country (it shows only a Google search box) so I prefer to use the stock launcher's Shelf.
[OnePlus 5T  Guides, News, & Discussion] Tefzors:
Guys I have dirty flashed from 5.0.3 to 5.1.0 and I am having issues with the notification bar appearing all the time when I click something on the main menu screen. It's driving me insane, I have no idea how to fix it. I am thinking it may be Nova Launcher interfering but I just don't understand why.
[OnePlus 5T  Guides, News, & Discussion] BigBrosMo:
Clean flash first. Then go from there.
[OnePlus 5T  Guides, News, & Discussion] mordecaix7:
can't mount /vendor

When I flashed my recovery, it says it can't mount "/vendor". However, I didn't have any issues even though it showed that error. Should I worry about that? If I should fix it, how do I do that?
[OnePlus 5T  Guides, News, & Discussion] roxdragon:
what is the difference between the 5.1.0 rom on the official website and this posted on mega?
[OnePlus 5T  Guides, News, & Discussion] mordecaix7:
I think it's just a mirror.
[OnePlus 5T  Guides, News, & Discussion] Mairo:
strange.... if I flash magisk, then I get bootloop. .. If I flash just rom then it boot fine.

edit: managed to get it boot.
[OnePlus 5T  Guides, News, & Discussion] adoe:
how? got same problem.
[OnePlus 5T  Guides, News, & Discussion] LordDeath:
You had the hidden clock setting enabled before updating and that feature is not supported anymore. Now, Nova Launcher hides that settings toggle from you but it is still applied! This causes your issue.

A workaround might be to export your launcher settings and import them again. Or clearing Nova Launcher's data...
[OnePlus 5T  Guides, News, & Discussion] AndroidGX:
Hiya!

I accidentally enabled gestures, but looks like we can't turn off this option anymore after activating it... or I'm wrong ? (can't find where) :eek:

*edit* : looks like a reboot is needed to fix this
[OnePlus 5T  Guides, News, & Discussion] brdfckr:
settings/buttons/nav bar & gesture choose fixed nav bar
[OnePlus 5T  Guides, News, & Discussion] tcat007:
Just tried coming from custom ROM. Wiped caches, system and data, flashed ROM, rebooted to TWRP, flashed magisk and no verity. Booted fine but on set up, wouldn't find any WiFi, and didn't have a keyboard to make entry. Restored previous ROM bu.
[OnePlus 5T  Guides, News, & Discussion] Bers915:
+1
[OnePlus 5T  Guides, News, & Discussion] twirtle2:
Where can I provide feedback about the navigation gestures ? In all its pretty good and comfortable to use however when using Chrome you can't action the back function due to the url bar being at the bottom. Swiping up for home and recents works fine but not Back regardless of whether you use the left or right side
[OnePlus 5T  Guides, News, & Discussion] kxf41:
Back works fine for me in chrome.
[OnePlus 5T  Guides, News, & Discussion] digitalmahdi:
I'm on 5.0.4 rooted. Anyone updated flashed magisk? Any issues should i be expecting?
[OnePlus 5T  Guides, News, & Discussion] djmeistro:
Don't do it...
[OnePlus 5T  Guides, News, & Discussion] Tunghur:
Me too, same problem

Enviado desde mi ONEPLUS A5010 mediante Tapatalk
[OnePlus 5T  Guides, News, & Discussion] Klbgr:
After 5.1.0 , bootloop with dolby atmos and v4a not processing, tried with aml and same result
[OnePlus 5T  Guides, News, & Discussion] twirtle2:
Do you have the URL bar on the bottom?

This is what happens for me:

https://drive.google.com/file/d/1pUYRRabQUVRL66n2HgWKPOJMNqN7h9If/view?usp=drivesdk

Not an issue with other apps as there's no gesture to swipe up for them
[OnePlus 5T  Guides, News, & Discussion] Chahk:
Anyone having trouble with stock dialer ignoring a setting in Google Voice app to use your GV number for outbound calls? It broke somewhere between beta 4 and 6, just wondering if that's an issue in stable as well.
[OnePlus 5T  Guides, News, & Discussion] Muntasir Mahmud Saif:
we need a working twrp for this...on my galaxy note 8 oreo i had same problem and i couldn't even flash a single thing..not even restore my previous rom... [MENTION=3208754]codeworkx[/MENTION] may look into the matter to patch the twrp to stop from being encrypted again..
[OnePlus 5T  Guides, News, & Discussion] PrabhuPappu:
i am at 4.7.6 and root with Magisk

Hello Everyone,

I am currently at 4.7.6 Rooted with Magisk and BluSpark TWRP , Can you please guide me how to Flash 5.1.0 ?
[OnePlus 5T  Guides, News, & Discussion] Neekeet:
I was able to get root working again using these steps that another user had posted for a previous update. Hope it helps anyone in need.

Flash the update the ROM in twrp > use cmd to reflash twrp > use cmd to reboot recovery > flash magisk uninstaller > flash magisk > Reboot system

I used the latest version of BluSpark TWRP

Credit goes to the user BigBrosMo

Hope this helps someone else because it sure as hell helped me
[OnePlus 5T  Guides, News, & Discussion] digitalmahdi:
Are u still able to reboot into recovery without cmd after everything is done?

---------- Post added at 05:13 AM ---------- Previous post was at 05:12 AM ----------

How's the battery life on this guy's ?
[OnePlus 5T  Guides, News, & Discussion] BigBrosMo:
Page 1. It's all there.

---------- Post added at 05:23 AM ---------- Previous post was at 05:20 AM ----------

Yes. As soon as you get Magisk installed, TWRP will stick as your recovery.

Battery life will take a couple days for people to properly provide feedback on.
[OnePlus 5T  Guides, News, & Discussion] Tunghur:
It worked! lastest official TWRP here...

Thanks! :good:
[OnePlus 5T  Guides, News, & Discussion] Mairo:
i just flashed rom, then rebooted. And then I lost twrp recovery. Then flashed twrp using adb. Then I used magisk uninstaller ( in magisk folder) and reboot. Then i downloaded latest 16.3 magisk and flashed it in twrp and this time it booted up.
[OnePlus 5T  Guides, News, & Discussion] Lebo-Wog:
HELP.

my phone is stock unrooted, only ozone layers installed.

I installed the update via OTA.

Now it says system UI stopped everytime I turn on the phone and turns off.

Please help, I CAN'T LOOSE MY DATA.
[OnePlus 5T  Guides, News, & Discussion] Xokoz:
Is the statusbar header still big and ugly?
[OnePlus 5T  Guides, News, & Discussion] HairGel:
What are the differences between OOS 5.1.0 and OOS OB6? OB6 has been stable since it came out as well as the previous OBs. So, updating from OB6 to 5.1.0 will have what benefits?
[OnePlus 5T  Guides, News, & Discussion] kristofpetho:
...yes... SIGH

5.1.0 is much smoother and lag free. Beyond that, no idea :)
[OnePlus 5T  Guides, News, & Discussion] Tefzors:
Thanks, this was the exactly the issue and I've fixed it. Why is the "hide clock" feature not supported anymore on 8.1?
[OnePlus 5T  Guides, News, & Discussion] Muntasir Mahmud Saif:
which version of codeworkx will work? april 14 version?
[OnePlus 5T  Guides, News, & Discussion] iamterence:
Can confirm. Stable 8.1.0 seems extremely, extremely smooth, more than OB6. I'm using the xXx No Limits ROM which got upgraded to 5.1.0 and using EX kernel, so maybe it's placebo, but Stable is extremely good so far.
[OnePlus 5T  Guides, News, & Discussion] randumbore:
I'm on OOS 5.0.4 with root - is it recommended that we do a clean install for 5.1.0, or is dirty flash okay? Also, will Substratum and Andromeda cause issues (i.e. should I disable it before flashing)?
[OnePlus 5T  Guides, News, & Discussion] Lebo-Wog:
Disable andromeda because it appears to have messed up my phone.

I can't anymore, it says system ui has stopped and I cant touch anything.

I tried reflashing the 8.1 update via adb but the same message appears and I cant do anything when the phone boots up.

Im trying anything to avoid loosing data, I CANT LOOOSE IT.
[OnePlus 5T  Guides, News, & Discussion] Jamoeda:
Where is the network boost? Dont find that option after update
[OnePlus 5T  Guides, News, & Discussion] mannulko:
I am currently on 5.0.4 rooted wth twrp recovery.now I want to update to 5.1 nd retain root so pls confirm my steps

1-Install full ROM .zip from twrp recovery

2- flash magisk 16.3 after that from twrp recovery

Will it work?
[OnePlus 5T  Guides, News, & Discussion] simonvfr:
I can confirm that these steps worked this morning for me (although I am using Magisk 16.0 (stable) rather than 16.3 (beta).
[OnePlus 5T  Guides, News, & Discussion] kk12002:
how to Double-tap the Recent button for app switching using gestures??
[OnePlus 5T  Guides, News, & Discussion] leo06:
I have at the bottom and is working fine, chrome gesture activates when swipe inside the screen, back activates when swipe from the outside

---------- Post added at 12:24 PM ---------- Previous post was at 12:20 PM ----------

Flash rescue.zip, located in the substratum folder in the internal storage
[OnePlus 5T  Guides, News, & Discussion] murali0007:
Rebooting issue

I m on stock rom and unrooted,applied the ota manually.Flash is successful but the device radio keeps on switching off and on and after a minute mobile restarts directly to recovery mode. :(

I tried reflashing this version and wiped cache too but no use.Tried downgrading to previous version through adb sideload but device isn't being detected in adb mode despite having all the drivers and device being detected properly when switched on.Please help.USB debugging is enabled too
[OnePlus 5T  Guides, News, & Discussion] 3dawg:
It works but safetynet is now failing for me.

EDIT: Reboot fixed it.
[OnePlus 5T  Guides, News, & Discussion] simonvfr:
Sorry you are having a problem. Safetynet is passing fine for me, after dirty flash from 5.0.4. Google Pay also working fine.
[OnePlus 5T  Guides, News, & Discussion] stankyou:
Got myself lucky flashing without any issues whatsoever. ?

Did the new camera version bump did anything to improve image quality? I haven't have the time to test it.

Sent from my OnePlus 5T
[OnePlus 5T  Guides, News, & Discussion] Zrbtfm:
Still ok in this way? Cheers
[OnePlus 5T  Guides, News, & Discussion] mordecaix7:
I wondered what was going on... should I try flashing blue spark? I'm not sure if this is normal but after flashing the update, I had stock recovery again? I think that's normal... either way, I went back to stock recovery and uninstalled magisk until I knew what to do about this issue. Would blue spark be what I need to flash instead of codeworkx for the time being? Still new to the rooting thing :good:
[OnePlus 5T  Guides, News, & Discussion] Zrbtfm:
Before your first reboot once oos and magisk flashed reflash whatever custom twrp your use as "img" ... Then you are sure to Keep it. Latest blu strk twrp working fine with encryption
[OnePlus 5T  Guides, News, & Discussion] mordecaix7:
Ok great. Thanks for the help! :highfive:

**Edit: reflashed with blu spark and everything is fine :)
[OnePlus 5T  Guides, News, & Discussion] Negotiator50:
I had the same issue. Strangely when I flashed bluespark TWRP, I do not get that error.
[OnePlus 5T  Guides, News, & Discussion] Chazy12:
Does anyone noticed a great battery drain with the 8.1?! Mine goes from 100% to 64% in less than 1hr display.. [emoji848]
[OnePlus 5T  Guides, News, & Discussion] letscheckitout:
Is the device getting detected in fastboot mode when you connect? if so Flash the Custom Recovery first.reboot to recovery, mount the internal storage and copy the data that you need.

Copy the Rom Files to the internal storage.

Wipe Dalvik/Cache/System > Install the OS > Wipe Dalvik/Cache > restart.