[Razer Phone 2 Guides, News, & Discussion] Marcos8760:
I got bored so I made a HavocOS guide. Enjoy!

I am not responsible for any bad things happening to your device/angry parents because YOU messed your phone up. If it somehow broke after you did this, it's not my problem.

oh yea also I didnt make the OS. this is just a guide.

Downloads in video description.

I wanted to make this quick and simple so here's a video:

----------------------------------------------------------

Written guide:

-

Pt. 0: quick prerequisites that i forgor to write before

-

consider reading through the guide before you do it

make sure oem unlocking is enabled on your phone. if you dont know how to do that uhh here's how:

1. go to settings

2. scroll down to about

3. tap the build number until it asks for your screen lock

4. go to system

5. go to developer options

6. enable oem unlocking.

7. if its grayed out its because your phone is cringe, sorry.

-

Pt. 1: Downloads

-

Download all of these files

Google USB driver Extract with 7z or WinRar.

Platform Tools Click "Download for Windows" and extract with 7z or WinRar.

Stock Firmware Extract with 7z or WinRar.

TWRP/Kernel Don't extract this.

HavocOS Don't extract this.

-

Pt. 2: Drivers

-

How to install Android drivers:

1. Put your phone in fastboot mode (turn off your phone and turn it back on with power button and vol down.)

2. Open Device Manager on your PC.

3. Click on the dropdown for "Other Devices"

4. Find "Android"

5. Double click on "Android"

6. Click on "Update Driver"

7. Click on "Browse my computer for drivers"

8. Click on "Let me pick from a list of available drivers on my computer"

9. Double click on "Show all devices"

10. Click on "Have Disk"

11. Click on "Browse"

12. Find the usb_driver folder that you extracted earlier and in that folder, select android_winusb.inf and hit "Open"

13. Select "Android Bootloader Interface" and it "Next"

14. If there are any warnings, just press "Yes"

Drivers have been installed.

-

Pt. 3: Installing command line tools

-

How to install platform-tools systemwide.

1. Find your platform-tools folder and move it to somewhere where it can stay there forever, E.g. the root folder in your C drive (C:\). I don't recommend putting it on your desktop because that will add useless clutter.

2. Go to your start menu and look up "Environment Variables"

3. Click on "Environment Variables"

4. Scroll down on the bottom; "System Variables" section, find "Path", and double click on it

5. Click on "New"

6. Click on "Browse"

7. Navigate to your "platform-tools" folder

8. Click on platform-tools

9. Click "Ok."

10. Click "Ok."

11. Click "Ok."

12. Click "Ok."

(lol)

oh also i forgot to mention, unlock your bootloader now

steps to do that here:

1. open cmd

2. enter fastboot flashing unlock

3. hit yes on the prompt that appears on your phone

4. you might need to enter fastboot flashing unlock_critical (if cmd gives you an error saying it doesn't exist or something just kinda ignore it, i'm only putting it here just in case)

5. you should be good to continue :p

-

Pt. 4: The Installation.

-

Installing HavocOS

1. MAKE SURE THAT YOUR PHONE IS IN FASTBOOT MODE.

2. Open aura-p-release-3201

3. Run flash_all.bat (double click on it)

4. Wait until it finishes running.

5. As soon as it closes and your phone screen turns black, immediately hold the power and volume down buttons and enter fastboot mode.

6. Open Command Prompt (CMD)

7. Flash the Kernel by typing fastboot flash boot <boot.img> and replace <boot.img> with the file path to your boot.img file. (Tip: you can drag the file into CMD to put in the file path.)

8. Flash HavocOS by typing fastboot flash system <HavocOS PHH.img> and replace <HavocOS PHH.img> with the file path to the HavocOS PHH.img file. Ignore the errors.

9. Wait until everything finishes and unplug your phone (if you want to)

10. Use volume buttons to go down to "Recovery Mode"

11. Select "Recovery Mode" with your power button. (Tip: double tap the power button to get past the bootloader unlocked warning screen)

12. Swipe to allow modifications

13. Tap on wipe > format data > type "yes" > press "OK"

14. Press back until you get to the TWRP home screen

15. Tap "Reboot" > tap "Recovery" > then tap "Do not install"

16. Wait until it reboots back into recovery.

17. Follow steps 12-14, then hit "Reboot" > then hit "System"

If it doesn't boot into the setup screen, open fastboot mode and format the data once more, then reboot into system.

----------------------------------------------------------

and here are the easiest and also some of the dumbest GSI root instructions ever:

Download Magisk-v21.4.zip

1. Open TWRP and mount everything. (except for USB storage. micro sd card is optional.)

2. Put Magisk-v21.4.zip on your phone (in file explorer)

3. Open the TWRP file manager (advanced > file manager)

4. Navigate to /system/system/bin

5. Find resetprop and tap on it

6. Rename resetprop to phh-resetprop

7. tap on install

8. install Magisk-v21.4.zip

9. Boot up your phone, open magisk, and update everything.

10. Turn on MagiskHide in the settings of magisk manager.

11. Profit$ (lol)

SafetyNet should pass if you did it properly (I would find it kinda funny if you managed to mess up those easy instructions)

Alright guys, have a nice day!

p.s: I might begin work on a user-friendly auto-installer soon.