[TREBLE][Oreo][How-To] Install any Generic System Image (GSI) on the Razer Phone

linuxct

Recognized Contributor & Social Contributor
Aug 10, 2012
2,072
5,927
203
Sheffield
Ok, however the sound was Soo loud on low I don't believe the volume up or down was working at all. I'll try again with flashing through twrp after gapps and see if that helps any.
It will be literally the same. I didn't go into fine-tuning this and I don't intend to as of right now. If you don't feel comfortable with it, edit the GSI's Mixer Paths or the Mixer Paths in the /vendor partition until it suits your needs.
 

kirschdog1

Senior Member
May 12, 2010
1,377
173
93
Saint Paul
It will be literally the same. I didn't go into fine-tuning this and I don't intend to as of right now. If you don't feel comfortable with it, edit the GSI's Mixer Paths or the Mixer Paths in the /vendor partition until it suits your needs.
Ok thanks man I really appreciate all you have done. Do you Know if there is a guide on how to do this?
 

linuxct

Recognized Contributor & Social Contributor
Aug 10, 2012
2,072
5,927
203
Sheffield
Ok thanks man I really appreciate all you have done. Do you Know if there is a guide on how to do this?
Maybe something like this would help. Try in both /system and /vendor to be sure (and if files doesn't exist, then jump to the other location).
Of course, needless to say you want to decrease the volume instead of making it go higher, so try decreasing the numbers that guide mentions.
 
  • Like
Reactions: kirschdog1

RUNNERX

Senior Member
Feb 1, 2009
321
74
0
New Orleans
A few things not working correct...
The reboot bug that gets you stuck on bootloader
Volume buttons adjusting media instead of ring
Network stays on wcdma
Works really well for something this new.
 

linuxct

Recognized Contributor & Social Contributor
Aug 10, 2012
2,072
5,927
203
Sheffield
A few things not working correct...
The reboot bug that gets you stuck on bootloader
Volume buttons adjusting media instead of ring
Network stays on wcdma
Works really well for something this new.
1. Razer's issue.
2. Volume buttons work as they should? I'm adjusting my ring button when I press them, you must have a background service that is using the multimedia one, like Snapchat.
3. Okay, same.
 

el4nimal

Senior Member
Mar 12, 2018
88
17
0
El4nimal my good man are correct, I am on rr and just found the setting of which you were referring.
May I make another query, has anyone asked if you had them on speaker phone?
No, but I wouldn't be surprised. It sounds loud when in call, even if I have the volume set to minimum. I even had the impression that adjusting the volume does not actually adjust it.
 

Haithamraid

Senior Member
May 29, 2016
80
9
8
Guys magisk still wont work with me it keeps giving me "magisk is not installed" despite installing twrp on slot b and switching to a then installing the latest beta (16.3) any help or can someone point out what mistake i have done?
 

linuxct

Recognized Contributor & Social Contributor
Aug 10, 2012
2,072
5,927
203
Sheffield
Guys magisk still wont work with me it keeps giving me "magisk is not installed" despite installing twrp on slot b and switching to a then installing the latest beta (16.3) any help or can someone point out what mistake i have done?
Can you just follow the steps in the first post and the ones described a few posts above you? Magisk is extremely picky and you need to perform the steps as described for it to work properly...
 

linuxct

Recognized Contributor & Social Contributor
Aug 10, 2012
2,072
5,927
203
Sheffield
LTE issue solved!

Thanks to @phhusson for noticing why the Hardware Overlay Picker was faulty (and @Exelios for giving him the phone), the LTE overlay now gets enabled properly and it's working as intended in the Razer Phone.
With future compilations of GSIs from him, this issue will be solved.

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

However, if you do require to solve this in your current set up, just like I did, get the /system_root/system/priv-app/HardwareOverlayPicker apk, decompile it, open the AndroidManifest.xml and add this right after the package=".........." part:
Code:
android:sharedUserId="android.uid.system"
Now recompile the apk and download a copy of SignAPK and sign the apk with the platform keys (platform.*) from Android AOSP.
You can do so by using the following command:
Code:
java -jar /path/to/signapk.jar /path/to/platform.x509.pem /path/to/platform.pk8 NameOfTheApk.apk NameOfTheApk_signed.apk
After that, push it to your system_root/system/priv-app/HardwareOverlayPicker folder, delete the old apk if needed and reboot. You should be able to choose LTE now as network mode.
Or... If you're too lazy, use this version I modded (extracted from a GSI from the 26-03-2018, so be careful since it's a bit old).
BE WARNED, NONE OF THESE STEPS ABOVE IS NEEDED IN UPCOMING VERSIONS SINCE IT'S ALREADY FIXED!!!

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

Enjoy your bug-free GSIs! @MishaalRahman
 
Last edited:

eoghan2t7

Recognized Contributor
Jan 18, 2011
4,372
2,650
253
Belfast
Thanks to @phhusson for noticing why the Hardware Overlay Picker was faulty (and @Exelios for giving him the phone), the LTE overlay now gets enabled properly and it's working as intended in the Razer Phone.
With future compilations of GSIs from him, this issue will be solved.

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

However, if you do require to solve this in your current set up, just like I did, get the /system_root/system/priv-app/HardwareOverlayPicker apk, decompile it, open the AndroidManifest.xml and add this right after the package=".........." part:

Now recompile the apk and download a copy of SignAPK and sign the apk with the platform keys (platform.*) from Android AOSP.
You can do so by using the following command:

After that, push it to your system_root/system/priv-app/HardwareOverlayPicker folder, delete the old apk if needed and reboot. You should be able to choose LTE now as network mode.
Or... If you're too lazy, use this version I modded (extracted from a GSI from the 26-03-2018, so be careful since it's a bit old).
BE WARNED, NONE OF THESE STEPS ABOVE IS NEEDED IN UPCOMING VERSIONS SINCE IT'S ALREADY FIXED!!!

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

Enjoy your bug-free [email protected]
So if I've been keeping up correctly the only issues left is the reboot bug and the 120Hz refresh rate contently on?