yashsingh1/xdaforums huggingface dataset:
[OnePlus 5T  Guides, News, & Discussion] Bradl79:
if you still have the nandroid backup, do this.

videos may not load

try this 1st

link: [Utility][All in one][Tool]Backup Extractor| Dexer| signer| Rom maker| Apktool

xda: [Win] [Multi tool] [all in one][2.0] Recovery backup extractor, apktool,Mod.

[YOUTUBE]http://www.youtube.com/watch?v=uHj5aSM30J8[/YOUTUBE]

if not then try this

link: how to extract twrp backup file

[YOUTUBE]http://youtu.be/vLwPAZ93QnQ[/YOUTUBE]
[OnePlus 5T  Guides, News, & Discussion] stylz3:
I was able to get to 5.02 from OB3. I downloaded the full zip for 5.0.3 and flashed in recovery and did a full wipe. Then I unlocked bootloader and rooted.
[OnePlus 5T  Guides, News, & Discussion] Raagh:
Since i updated my banking apps dont give the option to unlock with the fingerprint. Not even reinstalling the app and signing the hole process again. Anyone had that?
[OnePlus 5T  Guides, News, & Discussion] Dazed No More:
That's awesome, way to take the initiative :good:
[OnePlus 5T  Guides, News, & Discussion] 63holdenolden:
I have the same issue too, I thought it must have been an Oreo issue with my banks app as it was working with fingerprint on Nougat
[OnePlus 5T  Guides, News, & Discussion] tcat007:
You can do some nice things with K-klock. No longer miss status bar options with a custom ROM.
[OnePlus 5T  Guides, News, & Discussion] xgerryx:
Anyone having problems with parallel apps since updating to stable? I can finally get it to create a second version but then it never loads. Only the original does.
[OnePlus 5T  Guides, News, & Discussion] Jamie_oppo:
Magisk hide the app. Worked for me
[OnePlus 5T  Guides, News, & Discussion] bboy2143:
Are the new gestures in this update?
[OnePlus 5T  Guides, News, & Discussion] sgbmad:
Thanks ;)

But, If I already have the bootloader unlocked then I would not need to unlock it again, true?
[OnePlus 5T  Guides, News, & Discussion] appileh:
Did a upgrade from Nougat to Oreo.. So Blue SPARK Recovery V68 -> ROM->MAGSIK And cleared the cache etc.. However My Nova launcher is very unressponsive and sometimes i have lag in my scrolling (like my phone settings). Someone?

Fixed the above question, solution: deleted Malware Bytes.

DO they even test it before they go to Production, also sound RINGER is crackling omg.
[OnePlus 5T  Guides, News, & Discussion] Raagh:
My phone is not rooted..
[OnePlus 5T  Guides, News, & Discussion] aprilmop:
Guys, I've tried to download the update file on 1st page and update from the system updater (no root user). The phone was booting up and it says upgrading, do not turn off the device bla..bla..bla, then it rebooted to home screen, and it still the same OS (7.1.1). I've tried couple times but no luck.

any idea?

thank you.
[OnePlus 5T  Guides, News, & Discussion] 3lMghraby:
hey I just got my phone and updaed to oos v4.7.6 can I manually flash the OTA 5.0.3 directly

when I check for system updates I get you're up to date
[OnePlus 5T  Guides, News, & Discussion] Jamie_oppo:
Yeah smart lock doesn't work well on nougat. Try upgrade to oreo and try again?
[OnePlus 5T  Guides, News, & Discussion] stylz3:
I believe you don't. I just unlocked mine because it was never unlocked before.
[OnePlus 5T  Guides, News, & Discussion] Raagh:
What? I am on oreo thats the problem. The fingerprint for banking apps stopped working after the update
[OnePlus 5T  Guides, News, & Discussion] Jamie_oppo:
Is ur bootloader unlock?
[OnePlus 5T  Guides, News, & Discussion] shadowkay:
Yes bro! I am having the same issue. I have to restart the phone for the WiFi too work again. It's frustrating.
[OnePlus 5T  Guides, News, & Discussion] xgaleskx:
Hello,

I was running OOS 4.7.6 with magisk root. Followed the guide to update to 5.0.3 (I did dirty flash) but couldn't reinstall magisk after flashing the update because just after flashing magisk in order to maintain root, my device wouldn't boot and kept stuck in the two dots animation.

At this moment I'm at 5.0.3 but with no root. Does anybody know how I can get back magisk root in this version?

Thank you!
[OnePlus 5T  Guides, News, & Discussion] KaiseRRUby:
After the update i've got some irritating stuff combined with my watch (Huawei Watch 1). So, on my phone i have all notification sounds disabled. My watch only vibrates, a small, gentle vibration for a notification and a bigger vibration for an incoming call. But on Oreo, the vibrations are not that gentle anymore, they went from dzz to DZZZZZZ DZZZZZZ, it annoys me. How can i change the vibration mode? On my watch the setting already is 'light'.
[OnePlus 5T  Guides, News, & Discussion] Fir3lordZuk0:
If u don't wish to root, just download opera vpn and connect to Canada region. Go to system updates and u will get 5.0.3 as OTA. Disconnect from vpn and then start download
[OnePlus 5T  Guides, News, & Discussion] semson:
I can confirm. I just did it. You probably needs to use TWRP 3.2.1-0 by codeworkx as it supports Oreo officially. Good luck.
[OnePlus 5T  Guides, News, & Discussion] senpoos:
after Magisk, Wipe Cache & Dalvik and then Reboot to Recovery - Wipe Cache & Dalvik and Reboot system
[OnePlus 5T  Guides, News, & Discussion] ozyk100:
My update didn't go so well....

I downloaded full zip 5.0.3 and dirty flashed through twrp, rooted with Magisk and all went well until I booted to system...

My navigation bar started to flicker and stutter and my keyboard was unusable so I tried to roll back nandroid of 4.7.6 nougat but forgot that it was different encryption systems in place for Nougat and Oreo. I had to wipe data and wound up doing clean install (including new twrp with adb) and now FINALLY all is well and everything is working as it should!
[OnePlus 5T  Guides, News, & Discussion] senpoos:
Install Codeworxx TWRP for Oreo 8.0 and Magisk, Wipe Cache & Dalvik and then Reboot to Recovery - Wipe Cache & Dalvik and Reboot system
[OnePlus 5T  Guides, News, & Discussion] mannulko:
Will twrp blue spark recovery work?
[OnePlus 5T  Guides, News, & Discussion] Hallux_:
Yes it works.

Enviado desde mi ONEPLUS A5010 mediante Tapatalk
[OnePlus 5T  Guides, News, & Discussion] senpoos:
The latest one will work, as we know he is great developer for long time. I was using his twrp and kernel but now shifted to Boeffla Kernel my favourite from OnePlus one
[OnePlus 5T  Guides, News, & Discussion] Raagh:
No its not. Just updated to oreo and stopped working. That sucks
[OnePlus 5T  Guides, News, & Discussion] xgaleskx:
If anyone else has experienced this issue, I finally managed to install magisk again. After flashing the official 5.0.3 OTA, I flashed codeworkxx TWRP for Android 8.0 through fastboot, then I flashed the magisk uninstaller, cleaned cache and dalvik, rebooted, reflashed magisk, cleaned cache and dalvik again and system rebooted.

I now have 5.0.3 with magisk working perfectly.
[OnePlus 5T  Guides, News, & Discussion] motopig:
I am bootloader unlocked, rooted with Magisk and TWRP flashed.

Today mine applied the OTA by itself IN THE MIDDLE OF THE DAY! Not the way I wanted it to, not to mention I lost root and TWRP in the process. :mad: I don't know if it's because something touched the screen and triggered the "apply" button.

But, to my surprise, everything worked, except lost root and TWRP. Now I need to get an Oreo-based TWRP and get back in the game. No reason to believe Magisk would not work.

... NOPE! Kinda soft bricked on the next reboot after getting Magisk in. Trying again with the full 5.0.3 zip.
[OnePlus 5T  Guides, News, & Discussion] funnoam:
Here we go again !

It's time for NCNO !

Nice Changelogs for Nice OTAs

Sick of OnePlus lack of informations (who needs changelog anyway ?), decided to make my own.

As you can see below, no new features but an OTA focused on security.

OnePlus is also completely rebuilding the Widevine framework inside the ROM.

Edit : I've made a new thread for all my OTA analysis ! Check it out !

https://xdaforums.com/oneplus-5t/how-to/official-ota-analysis-ncno-nice-t3745431

How to interpret :

Small change ==> Small modification inside the app/librarie/config file

Updated ==> File/App completely different or rebuild

5.0.2 ==> 5.0.3

- Small change in camera libraries

- Small change in WLAN drivers

- Small change in network drivers

- Small change in PDF libraries

- Small change in Settings app

- Small change in Contacts app

- Revamped Widevine files & libraries

// Removed libwvdrm_L3.so, libWVStreamControlAPI_L3.so, com.google.widevine.software.drm

// Added new Widevine firmware files (widevine.mdt / widevine.b00-07)

- Removed liboemcrypto (Encryption libraries)

- Removed mkey apk

- Updated Media DRM Server

- Updated OPMms

- Updated OPSkin

- Updated OPSafe

- Updated OPOnlineConfig

- Updated OPBackup

- Updated OPDeviceManager

- Updated services framework

- Updated ART framework

- Updated boot framework

- Updated EngineeringMode app

- Added firmware files cppf.mdt / cppf.b00-07 (Encryption related)

Kernel version : 4.4-G1802022353

OnePlus is really shy about their updates :angel:
[OnePlus 5T  Guides, News, & Discussion] Tiago A:
What changed on qs?
[OnePlus 5T  Guides, News, & Discussion] rjstefani:
What version of Magisk are you all using for OOS 5.0.3?
[OnePlus 5T  Guides, News, & Discussion] Bradl79:
Magisk 15.3 and Magisk Manager 5.5.5
[OnePlus 5T  Guides, News, & Discussion] BigBrosMo:
When you rebooted after flashing the uninstaller I assume you had to reflash codeworkxx again from fastboot before trying to flash magisk again? I tried switching to codeworkxx too but can't get to boot after flashing magisk.
[OnePlus 5T  Guides, News, & Discussion] Dazed No More:
I would be too if I released update after update that didnt fix basic, yet integral functionality issues :laugh:
[OnePlus 5T  Guides, News, & Discussion] l0veysingh:
Purely insane battey after Oreo for me
[OnePlus 5T  Guides, News, & Discussion] xgaleskx:
Yes, that's it. After flashing again codeworkx I flashed magisk 15.3, cleaned cache and dalvik, recovery rebooted, cleaned cache and dalvik again and then system rebooted. That worked for me!
[OnePlus 5T  Guides, News, & Discussion] BigBrosMo:
I finally got it... Various combinations of reflashing the uninstaller and magisk and wiping caches over and over again. Codeworx universal too. Not sure what exactly, but got it working!
[OnePlus 5T  Guides, News, & Discussion] BigBrosMo:
So... Now that I've got Oreo and magisk running, for some reason I can't get my hotspot to work. First it says 5ghz isn't available in this country (I am in Thailand now, but used 5ghz hotspot no problem when I first got here from Canada) but even if I try to enable it on 2.4ghz it looks like it's trying to turn it on but stays grey and says "turning hotspot on" but doesn't actually do it.

Thoughts? (and how can I override 5ghz restrictions?)
[OnePlus 5T  Guides, News, & Discussion] surr3a1:
My experience with the update:

I updated using the official process and the VPN. I had TWRP and Magisk but I lost them since I didn't flash from recovery.

I downloaded the TWRP for 8.0 and Magisk 15.3 beta.

I booted into fastboot and flashed the recovery using the ABT tool from the PC.

Unplug the cable and got directly into TWRP.

Flashed Magisk from recovery and everything is back to normal. I wiped cache and dalvik after the flash.

I have the TWRP and magisk working. Even my modules were applied automatically on boot.

Cheers!
[OnePlus 5T  Guides, News, & Discussion] Chaplan:
Makes no sense.

blu_spark TWRP is working as intended with Oreo.

Fastlane style as reported here by many users.

Yes.
[OnePlus 5T  Guides, News, & Discussion] Amit Kataria:
How to install stable oreo update from over open beta 3?

Dear All,

Pls guide me, how should i insatll stable version of Oxygen OS 5.0.3 if i have already on the Open beta 3?

I have tried downloading and installing OOS based on nougat to downgrade and also tried flashing OOS 5.0.3 but both got failed.

Pls help me to get out of the beta version to Stable one.

Thanks in advance :):):):):)
[OnePlus 5T  Guides, News, & Discussion] Micheal86:
Yes.

blu_spark TWRP is working in Oreo.
[OnePlus 5T  Guides, News, & Discussion] Chaplan:
Easiest bullet proof case scenario:

- Go into TWRP (latest blu_spark is highly recommended).

- Perform a factory reset (Wipes /data but you keep your internal storage intact, backing it up somewhere else is advisable anyway).

- From advanced Wipe - Wipe system.

- Flash OOS 5.0.3 full zip.

- Boot android stock (You will be back to stock recovery after this).

- Use fastboot to reflash TWRP.

- Root and mod what you need from this step further on.

You loose your apps Data this way, but Dirty flashing Stable branch over Beta is not a good solution.

You could also go back to a 4.7.6 Nandroid (in case you have one) and update from there, that's how I ditched OB3 in favour of Stable 5.0.3, FYI. :victory:
[OnePlus 5T  Guides, News, & Discussion] BullHorn7:
Is this an actual Oreo build or did they do that meme again where they put Oreo UI elements on top of Nougat, like they did with the OP5 a few months ago?
[OnePlus 5T  Guides, News, & Discussion] Chaplan:
They actually put Nougat UI elements on top of Oreo.

The UI is very similar to Nougat, but then this is OOS not AOSP.

It's Oreo, there is no mistake there, 8.0 with one nifty feature introduced on 8.1. We can hide those nag notifications.

Check the SS. ?
[OnePlus 5T  Guides, News, & Discussion] BullHorn7:
Thanks. I was worried because of this report a month ago: https://www.reddit.com/r/oneplus/comments/7iydl8/oneplus_allegedly_kept_711_firmware_in_its_oreo/

Anyway, there's many pages here of people complaining about soft-bricking and issues updating and/or maintaining root.

This is how I upgraded from 4.7.6 with official TWRP and Magisk to 5.0.2 with Codeworkx TWRP and Magisk:

1. Enter Bootloader

2. Flash Codeworkx TWRP

3. Enter TWRP

4. Wipe Dalvik

5. Flash the Rom and Magisk

6. Wipe Dalvik

7. Reboot from TWRP into Bootloader

8. Flash TWRP again for good measure

9. Done
[OnePlus 5T  Guides, News, & Discussion] ddaharu:
Hey guys! I got a OP5 but just curious to see the redesigned notification quick settings. Can anyone share how it looks?
[OnePlus 5T  Guides, News, & Discussion] KOLIOSIS:
Fast-forward to the 1:55 mark:

https://www.youtube.com/embed/Bb1rXhIRByA
[OnePlus 5T  Guides, News, & Discussion] ddaharu:
Thanks. It's pretty cool. Are gestures included in this official build as well?
[OnePlus 5T  Guides, News, & Discussion] KOLIOSIS:
Just the tap & draw gestures,the navigation gestures are gone on stable Oreo.
[OnePlus 5T  Guides, News, & Discussion] inwithyou:
Why aren't any Bluetooth audio equalizer settings like in Nought? This is dumb... I'm now forced to install another Magisk module :rolleyes:

What is the best solution overcoming this?
[OnePlus 5T  Guides, News, & Discussion] hotrod8:
Thanks 1+!
[OnePlus 5T  Guides, News, & Discussion] Erulogos:
n00b questions...

So my wife got the update notice from OnePlus today, and I know my days are numbered before my phone becomes a pest about installing the latest and greatest. I'm unlocked and rooted and trying to get ahead of the game.

I'm on OOS 4.7.6, with TWRP 3.2.1-1 (I'll call it vanilla, DL from twrp.me,) and SuperSu 2.82 SR5.

My phone came with 4.7.2 and I unlocked, TWRPed and rooted it before checking for updates, I was able to dirty flash the full 4.7.6 using TWRP with no pain and re-root.

Now on to the questions:

Dirty flash from 4.7.6 to 5.0.3 (using the full fat update,) yea or nay? I'd rather not have to re-setup a phone I just got two months ago (MFA token generators are a pain to reinstall,) but I'd also rather not brick (soft or otherwise) my phone, so I'm looking for the lesser evil here.

Can anyone explain why the TWRPs recommended up thread are seemingly older versions? Also why go with, I guess a fork, rather than straight from the maker TWRP?

For the 4.x series of OOS, SuperSu or Magisk were options for root. Will only Magisk work on 5.x or is there some other reason to shun the venerable SuperSu now?
[OnePlus 5T  Guides, News, & Discussion] Dior DNA:
- Dirty flash from 4.7.6 to 5.0.3 (using the full fat update) is possible (many did so).

- Official TWRP might work (I used it too up to 4.7.6, just like you),

Someone who used it to upgrade raise a hand.

But, for all certainty, myself I switched to twrp-3.2.1-0-oreo-8.0-codeworkx-dumpling for upgrade.

It works just fine.

- AFAIK nobody so far mentioned to root 5.0.3 with SuperSU (I did so up to Nougat, just like you)

Magisk 15.3 roots 5.0.3 just fine.

success
[OnePlus 5T  Guides, News, & Discussion] KaiseRRUby:
Anyone having the same issue as me and having an idea how to fix it?

Summary: how can i change the vibration intensity on my watch, as this changed on the Oreo update it must be related to the OP5T?
[OnePlus 5T  Guides, News, & Discussion] rainin:
I've done a dirty flash to Oreo from v4.7.6 without any issues. Just been experiencing one small inconvenience which is that unable to download anything over WiFi with the inbuilt Download Manager, whether it is downloading apps or files from any browser. Using Mobile Data or a VPN works and allows downloads to work without any issues. Tried clearing the cache, data etc for Download Manager, Play Store etc. Also, re-registered my Google Account as well, however, still have an issue with downloading apps over WiFi.

Any solutions?
[OnePlus 5T  Guides, News, & Discussion] Macusercom:
I noticed I can't show the battery percentage on the lockscreen and the battery quick settings tile seems to have disappeared. Any chance of fixing these things?
[OnePlus 5T  Guides, News, & Discussion] tcat007:
My lockscreen.
[OnePlus 5T  Guides, News, & Discussion] Fir3lordZuk0:
I was sceptical about 5.0.3 battery backup but after couple of charges I am happy, check screen.

My normal use:

9gag

Google app

Xda

Gmail (3 accounts always syncing)

WhatsApp

Newsstand

YouTube (limited streaming)

No gaming

Telegram

Amazon

Flipkart

Slack

Some more apps which I occasionally use
[OnePlus 5T  Guides, News, & Discussion] SoulkeepHL:
Adding my 2 cents, Official TWRP 3.2.1-0/3.2.1-1 wasn't prompting me for an encryption PIN/Pattern, so it couldn't see the internal storage. Tried twrp-3.2.1-0-oreo-8.0-codeworkx-dumpling instead, and it worked just fine for me.
[OnePlus 5T  Guides, News, & Discussion] tibosee:
Has any of you experienced this problem?

I don't know how to fix it, it happened many times, even with reset, new firmware, beta and stable.

Never tried custom ROM, only blu-spark kernel once and Franko last time.

Now I am stock, just upgraded to OB3 to test, if it's not working, I am thinking of downgrading to Nougat.

https://youtu.be/EwULSBhXUXw
[OnePlus 5T  Guides, News, & Discussion] bjf182:
4.7.6 to 5.0.3 Magisk

I was on 4.7.6 rooted with Magisk. Downloaded the various files and began my upgraded to 5.0.3. As others have reported, I was able to get to Oreo, but would getting the spinning dots loop after installing Magisk and rebooting. Attempted a couple different approaches based on the feedback here (changing recoveries, etc.) with no luck.

I was about to clean wipe, but noticed another poster said they had success after a combination of the Magisk uninstall script. Figured it was worth a shot.

- Flashed recovery (blu_spark 8.69)

- Backed up boot/data

- Flashed Magisk uninstall *.zip, ended in error

- Rebooted, back to stock recovery

- Flashed recovery

- Restored boot

And here is where I think I got it:

- Flashed Magisk install

- Flashed Magisk uninstall *.zip, ended with success

- Flashed Magisk install again

On this boot, it came right back up (dots spun maybe 4/8 times) and I retained blu_spark recovery.

Thanks to the prior poster who suggested the uninstall script might be in play, and I hope this helps someone else in the same boat. Didn't require I clean flash. I have root. Seems to working fine.
[OnePlus 5T  Guides, News, & Discussion] Dior DNA:
Thanks for experience with uninstall script!

One question: did you initially flash 5.0.3 and Magisk in one go from recovery or did you boot system in between both?

have a nice day
[OnePlus 5T  Guides, News, & Discussion] bjf182:
I initially flashed them together in one go.
[OnePlus 5T  Guides, News, & Discussion] tcat007:
I had no problem flashing from a custom ROM. Wiped caches, system, and data, flashed 5.0.3, booted back to recovery, flashed 15.3 and no verity, rebooted and setup. Only takes an extra 15-20 minutes setting up clean.
[OnePlus 5T  Guides, News, & Discussion] Erulogos:
Official 3.2.1-1 prompts me for my pattern on 4.7.6, did yours fail after flashing 5.0.3 or did it never prompt you?

---------- Post added at 01:23 AM ---------- Previous post was at 01:18 AM ----------

I haven't seen anyone mention 'no verity' as part of the upgrade process, is that required for root, or just to make life easier?
[OnePlus 5T  Guides, News, & Discussion] tcat007:
No verity it's only required if you want to stay decrypted from a custom ROM. No need going OOS to OOS. By the way, used Blu-spark 5.69.
[OnePlus 5T  Guides, News, & Discussion] FMXP:
There are 3 different codeworkx TWRPs to choose from: universal, 8.0, and 8.1. Which one do I use for OOS 5.0.3 upgrade?
[OnePlus 5T  Guides, News, & Discussion] BigBrosMo:
I had best luck using universal. It's the latest of the 3 as well. 8.1 is for, well, android 8.1

5.0.3 is android 8.0
[OnePlus 5T  Guides, News, & Discussion] vk_singh:
i m on beta 3 how to update to official 5.0.3
[OnePlus 5T  Guides, News, & Discussion] shail139:
Mobile Hot-Spot connecting but showing no internet on stock rooted 5.0.3

Post flashing elemental EX Kernel latest one, Its working fine
[OnePlus 5T  Guides, News, & Discussion] rainin:
Any solutions that I could try for this? Would appreciate some help on this. Thanks!
[OnePlus 5T  Guides, News, & Discussion] padhu1989:
Today morning I un-installed magisk using Magisk uninstaller.. after uninstalling it, twrp also gone.. is it mandatory to root to have custom recovery?

Or is there any other way?
[OnePlus 5T  Guides, News, & Discussion] VictorLapin:
Clean flash?
[OnePlus 5T  Guides, News, & Discussion] BigBrosMo:
Does anyone have a suggestion for how to get my hotspot to connect without clean flashing? I tried a couple dirty flashes of 5.0.3 but no joy. Hotspot hangs on trying to enable
[OnePlus 5T  Guides, News, & Discussion] rainin:
Thanks for the response Victor. Anything apart from Clean Flashing? Is there any other System App whose Data control the OOS Download Manager?
[OnePlus 5T  Guides, News, & Discussion] badmonopoly:
Unfortunately, no bueno. It always bootloops. Nougat for the foreseeable future until Oreo custom roms are better :/
[OnePlus 5T  Guides, News, & Discussion] Macusercom:
I fixed it by using GravityBox. Now I can have the battery quick settings tile as well as the battery percentage on the lockscreen. Before I could only see the percentage on the lockscreen when charging my phone.
[OnePlus 5T  Guides, News, & Discussion] Nosferatu.:
Did a 100% clean install. Didn't think this could better than OB2 but wow it is!!!

Bluetooth is perfect pairs and plays instantly. I used to have issues coming from dirty flashes on the beta end. Clean beta 2 was good but now it's great!

I've said it before I'll say it again. Clean flash with full wipe of device is the way to go!

Anyways, out of curiosity, when coming from OB2 I am wondering why this happened before the full wipe. I removed pin and fingerprints but dirty flashing OOS 5.03 it punted back to recovery. I'm assuming a decryption issue but why if PIN and prints removed. Want to know for future reference.
[OnePlus 5T  Guides, News, & Discussion] xgerryx:
Is the little mini bluetooth battery icon in the status bar working for people on stable? Where is the setting for that? Can't find it for the life of me.
[OnePlus 5T  Guides, News, & Discussion] tsktsk999:
Hi guys, if I have a new op5t, instead of updating to the latest 5.0.3 via OTA, can i download the full zip file over here and install to my phone?

Afterwhich, I can proceed on to unlock BL, install TWRP and root?

And when do I clear the cache and dalvik?