[Treble][Pie]A full guide on how to install 9.0 GSI on Razer Phone on both A/B

Phreshlatinstyle

Senior Member
Sep 10, 2013
252
75
0
Ontario
the image that supposedly contains twrp and magisk doesnt. just thought id put that out there. after following steps. fastboot reboot only reboots system as if im barely starting os for the first time
 

Phreshlatinstyle

Senior Member
Sep 10, 2013
252
75
0
Ontario
Make sure to hold volume up while it's rebooting and keep it plugged in to your PC.

Sent from my Phh-Treble vanilla using Tapatalk
So I was able to boot arrow is idk how but it has constant system UI crashes. I was going to do the fixes. But I don't have twrp to flash super su to have root access. I'm back on stock recovery. I'm afraid if I flash twrp through fastboot I'll lose the os
 

patient81

Senior Member
Oct 20, 2010
75
14
28
So I was able to boot arrow is idk how but it has constant system UI crashes. I was going to do the fixes. But I don't have twrp to flash super su to have root access. I'm back on stock recovery. I'm afraid if I flash twrp through fastboot I'll lose the os
Unfortunately Arrows OS does have system UI crashes at the moment. Try pixel dust or the December version of pixel experience.

Sent from my Phh-Treble vanilla using Tapatalk
 

HO-COOH

Member
Jul 20, 2018
35
13
0
Unfortunately Arrows OS does have system UI crashes at the moment. Try pixel dust or the December version of pixel experience.
I can't boot pixel experience December build. Actually I can't boot January or February build either. I can only boot November build. Can you post a screenshot of the available /system space?
 

patient81

Senior Member
Oct 20, 2010
75
14
28
I can't boot pixel experience December build. Actually I can't boot January or February build either. I can only boot November build. Can you post a screenshot of the available /system space?
I'm actually not rooted so not sure how I can show the available system space, any ideas?

Sent from my Phh-Treble vanilla using Tapatalk
 

HO-COOH

Member
Jul 20, 2018
35
13
0
I'm actually not rooted so not sure how I can show the available system space, any ideas?

Sent from my Phh-Treble vanilla using Tapatalk
Just install Solid Explorer from Play store, it's free trial. Go in the app settings, there is an option called show root space or something alike. Oh, please post a screenshot of the android version too. Thanks a lot!
 

sinkoo1979

Senior Member
Oct 29, 2016
541
78
28
Yigo
So I was able to boot arrow is idk how but it has constant system UI crashes. I was going to do the fixes. But I don't have twrp to flash super su to have root access. I'm back on stock recovery. I'm afraid if I flash twrp through fastboot I'll lose the os
Try Descendant Rom. Only con is selfie camera not working (still testing the rom).
 

patient81

Senior Member
Oct 20, 2010
75
14
28
Just install Solid Explorer from Play store, it's free trial. Go in the app settings, there is an option called show root space or something alike. Oh, please post a screenshot of the android version too. Thanks a lot!
There you go.Screenshot_20190305-110059.jpegScreenshot_20190305-110116.jpeg

Sent from my Phh-Treble vanilla using Tapatalk
 

patient81

Senior Member
Oct 20, 2010
75
14
28
Quick question. If I decide to return to 8.1 using the latest stock system images, do I need to reflash the stock boot image to both slots first or is it ok to just hit the flashall script and let it do it's thing? Bit concerned about how the flashall batch file treats the slots. Then maybe relock the bootloader?
 

HO-COOH

Member
Jul 20, 2018
35
13
0
Quick question. If I decide to return to 8.1 using the latest stock system images, do I need to reflash the stock boot image to both slots first or is it ok to just hit the flashall script and let it do it's thing? Bit concerned about how the flashall batch file treats the slots. Then maybe relock the bootloader?
You simply run the script from Razer. It flashes all the partition back to stock, and it won't relock bootloader.
 

mellus

Member
Dec 4, 2007
16
0
0
Tried multiple android 9 GSI roms and some boots but no wifi and data (some don't even boot).
Wifi fix (works on Arrow OS) on post #4 doesn't work. After flashing twrp 3.2.1.0, the phone does not boot on any android 9 GSI roms. Anyway thanks for your work trying to make GSI work on Razer phone.
Same here. Did the "how-to" twice without any success. The device does not boot in system but in boot-loader mode (pixel_dust.img)

But thx instead for your review-
 

guillermohs9

Senior Member
Nov 30, 2015
224
50
48
Using an MR0 image on MR3 is not recommended, and using Magisk will break RIL (data connectivity) and WiFi.
If you want to run Pie GSIs, forget about using Magisk and run phh-su. Lastly, if you want your front camera and Bluetooth A2DP to work, use latest phh-gsi image v109. Using older versions than v108 is discouraged for breaking the mentioned.

Current status:
1. Cheryl specific overlays are not yet merged into phh source code because I'm a lazy assh*le. If you want your device to have Adaptive brightness, gestures, and fix the strong vibration, place the following apk inside /system/overlay or /vendor/overylay

2. Razer Power Service and NFC are faulty and will spam your logcat, which may, in the end, reduce your battery life. You need to extract [email protected] from both /system/lib and /system/lib64 from Razer's stock ROM and place them respectively into /vendor/lib and lib64. I've conveniently extracted them for you (Folder named 32's file should be extracted onto /vendor/lib and folder named 64's file should be extracted onto /vendor/lib64).
To kill NFC until we find a proper solution, go into your GSI's filesystem path /system/app/NfcNci and delete or change NfcNci.apk's filename into anything else, like NfcNci.bak.

3. Common to MSM8998, and I believe several other Qcomm based smartphones, Bluetooth In-Call audio is not working, and audio gets redirected to Earpiece.

4. Everything. Else. Works. :)

Please thank @phhusson for his amazing job in this project!

---------- Post added at 09:16 ---------- Previous post was at 09:13 ----------

As an extra, if you would like to erase your data/userdata partition without messing up with recoveries, you could just issue the following fastboot command:
Code:
fastboot format:ext4:0xc72dd3000 userdata
Where 0xc72dd3000 is the userdata partition size with FBE enabled.
If you are running a bootimage without FBE, the partition size might be 0xC72DD7000, so the command would be:
Code:
fastboot format:ext4:0xC72DD7000 userdata

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

As a result, a summary of OP would be:
0. Flash latest cheryl fastboot image just like explained in OP.
1. Download the Android 9.0 GSI of your preference.
2. Reboot into fastboot.
3. Wipe your userdata partition with:
Code:
fastboot format:ext4:0xc72dd3000 userdata
4. Flash the system image you downloaded with:
Code:
fastboot flash system IMAGENAME.img
Where IMAGENAME goes your system image name. In our bootloader, you don't need to specify the partition you want to flash, and fastboot flashing into just "system" will flash the current slot.
5. Follow the steps from 1 and 2 from the Current status section above to get all the perks to work.
Using this method I got v109 (the one bundled with microG) working with all the perks! The only thing that I thought was working but you didn't list was the front camera. Is this OK or is it supposed to work?
 

yuhacrowsqq

New member
Jun 9, 2020
3
0
0
Hi
Is this rom fix the L/R sound channel inversed problem?
The razer phone 1 play video,Game,music,stereo sound come out is Right Channel on the top,Left Channel on the bottom.Whenever rotate phone to any angle.
And most other android device is R channel on the bottom,L channel on the top.
I have a xiaomi 10,It can swap the stereo channel with the rotate angel.
I know razer phone 2 had fix this problem in official pie last year.
So is razer phone 1 get this fix in GSI?
Thank U .Sorry for my bad English.