[GUIDE] Android 11 GSI With GApps and Root (magisk)

Search This thread

Marcos8760

Senior Member
Aug 12, 2019
75
19
Google Pixel 3
Razer Phone 2
Tried it with a USB 2,0 hub same issue. I am trying this all in my Surface bc thats all I have at work could that be the issue?

Ok try doing fastboot devices in a cmd or powershell window inside the folder and make sure that the phone is detected. you should see the serial number.

If you get the serial number but the flash all.bat doesnt work, follow these instructions.

1. look up "environment variables" in your start menu.
2. click on "Edit the system environment variables"
3. click on environment variables at the bottom of the window
4. on the system variables category, double click on the "path" variable.
5. click on new, then click browse.
6. navigate to your platform tools folder and press ok on everything.

now it should work.
 

DracShadows

Member
Sep 3, 2021
12
1
Ok try doing fastboot devices in a cmd or powershell window inside the folder and make sure that the phone is detected. you should see the serial number.

If you get the serial number but the flash all.bat doesnt work, follow these instructions.

1. look up "environment variables" in your start menu.
2. click on "Edit the system environment variables"
3. click on environment variables at the bottom of the window
4. on the system variables category, double click on the "path" variable.
5. click on new, then click browse.
6. navigate to your platform tools folder and press ok on everything.

now it shou

Ok try doing fastboot devices in a cmd or powershell window inside the folder and make sure that the phone is detected. you should see the serial number.

If you get the serial number but the flash all.bat doesnt work, follow these instructions.

1. look up "environment variables" in your start menu.
2. click on "Edit the system environment variables"
3. click on environment variables at the bottom of the window
4. on the system variables category, double click on the "path" variable.
5. click on new, then click browse.
6. navigate to your platform tools folder and press ok on everything.

now it should work.
I think i screwed something up. How do i flash back to stock so i can start again?
 

DracShadows

Member
Sep 3, 2021
12
1

Attachments

  • Capture.PNG
    Capture.PNG
    71.8 KB · Views: 24

Marcos8760

Senior Member
Aug 12, 2019
75
19
Google Pixel 3
Razer Phone 2
Im getting an error that the device isnt Play Protect Certified
run these here commands in your terminal of choice

adb root

adb shell

sqlite3 /data/data/com.google.android.gsf/databases/gservices.db "select * from main where name = \"android_id\";"

you might somehow need to get into your settings to enable rooted debugging

after you get that string of numbers, put it in here

run all these commands while fully booted
 

Thunder21582

New member
Sep 23, 2019
3
0
Hey

So after 2 days of trying to figure this all out, I cant get twrp to mount /system or /data and when it boots up its not play protected so i cant use it at all(i dont care for magisk), so i tried the Lineage and it boots up no problem but I dont have WiFi. what am i doing wrong? or what am i missing

any help would be helpfull

p.s.
I did do boot unlocked, and unlock critical, and the adb root doesent work eather.
 

Marcos8760

Senior Member
Aug 12, 2019
75
19
Google Pixel 3
Razer Phone 2
Hey

So after 2 days of trying to figure this all out, I cant get twrp to mount /system or /data and when it boots up its not play protected so i cant use it at all(i dont care for magisk), so i tried the Lineage and it boots up no problem but I dont have WiFi. what am i doing wrong? or what am i missing

any help would be helpfull

p.s.
I did do boot unlocked, and unlock critical, and the adb root doesent work eather.
Maybe format data?
 

BACATCHER

Member
Mar 10, 2016
9
0
HTC One (M9)
LG V20
Hey

So after 2 days of trying to figure this all out, I cant get twrp to mount /system or /data and when it boots up its not play protected so i cant use it at all(i dont care for magisk), so i tried the Lineage and it boots up no problem but I dont have WiFi. what am i doing wrong? or what am i missing

any help would be helpfull

p.s.
I did do boot unlocked, and unlock critical, and the adb root doesent work eather.

Hey

So after 2 days of trying to figure this all out, I cant get twrp to mount /system or /data and when it boots up its not play protected so i cant use it at all(i dont care for magisk), so i tried the Lineage and it boots up no problem but I dont have WiFi. what am i doing wrong? or what am i missing

any help would be helpfull

p.s.
I did do boot unlocked, and unlock critical, and the adb root doesent work eather.
First and foremost try formatting data. So you can do this in TWRP where you confirm it by typing "yes", or you can use fastboot and type in "fastboot format userdata"
I assume you tried this already and it didn't work, so the next step is..

Boot into TWRP and swipe to allow modifications, click on wipe, then advanced wipe. Next check ONLY System and then click on "change or repair file system".
Once again click Change File System, and select ext 4 and swipe to change it. Reboot into TWRP again and you should be able to mount it. Do the same steps for data and you should be able to mount that aswell.
 

Thunder21582

New member
Sep 23, 2019
3
0
finally got it working(ish) now im getting the same issue as DracShadows, I registered the device with google and im getting still its not play protected.

Edit: after about 45 minutes I had play protection working and it's all good. Finally on Android 11
 
Last edited:

Top Liked Posts

  • There are no posts matching your filters.
  • 5
    DON'T DO THIS ON A RAZER PHONE 1 OR IT WILL BE OMEGA BRICKED! ONLY DO THIS ON A RAZER PHONE 2!

    This was just an experiment to see if i could cobble together some GSI install guides (that on their own are kinda confusing) to make something moderately more cohesive and understandable. Here's my moderately usable guide!

    -----------------------------------------------------------------
    VIDEO!
    -----------------------------------------------------------------
    -----------------------------------------------------------------
    Things that work and don't work:
    -----------------------------------------------------------------

    This section will update periodically as issues arise or fixes arise for said issues.

    Note: Things that work: Bluetooth*, all sensors, audio, LTE/SIM/phone stuff, 120hz (you need to go into the settings > Phh treble settings > Misc features > Force FPS > [email protected])

    Things that probably work: N/A

    Things that don't work for some reason: SafteyNet with Magisk. All modules that I've used work tho...??! Verizon.

    Remember, you can always flash back to stock if something doesn't work properly.

    -----------------------------------------------------------------
    FIXES!!!
    -----------------------------------------------------------------

    AUDIO FIX!!! GO TO Phh Treble Settings > Qualcomm features > Use alternate audio policy.
    Bluetooth audio stops working with this enabled. Disable it for Bluetooth audio. The audio fix doesn't apply to Bluetooth audio ether way.

    BLUETOOTH FIX!!! Download a root file browser from the google play store and allow it to have root access. Delete BluetoothCommonRes.apk which is found in the overlay folder which is found in the vendor folder. After you delete BluetoothCommonRes.apk, rename the RazerAuraBluetoothRes.apk to BluetoothCommonRes.apk.

    -----------------------------------------------------------------
    Important notes
    -----------------------------------------------------------------

    THIS IS ASSUMING YOU HAVE ALREADY UNLOCKED THE BOOTLOADER OF YOUR DEVICE AND HAVE GOTTEN A SERIAL NUMBER OUTPUT FROM CMD AFTER TYPING IN "fastboot devices" AND MAKE SURE YOU HAVE TYPED IN "fastboot flashing unlock" AND "fastboot flashing unlock-critical".

    ***NOTE: I AM NOT RESPONSIBLE FOR ANY HARD BRICKED DEVICES OR ANGRY PARENTS. PLEASE DO NOT COME BACK AT ME SAYING I AM STUPID AND BRICKED YOUR PHONE. YOU DECIDED TO DO THIS. PLEASE PROCEED WITH CAUTION AND DON'T SKIM***

    ANOTHER IMPORTANT NOTE: The stock firmware is actually really good for unbricking devices. Razer made it easy to fix your bricked device. So basically, if you can get in to fastboot mode, (which you basically always can do) you can unbrick your device super easily.

    AGAIN JUST PLEASE, MAKE SURE TO FOLLOW ALL THESE INSTRUCTIONS CAREFULLY AND DONT SKIM OR ELSE YOU MIGHT BREAK SOMETHING!!!

    -----------------------------------------------------------------
    Introduction
    -----------------------------------------------------------------

    This is a quick and easy guide for how to install Android 11 on the Razer Phone 2. I'm kind of a noob here myself but I did this and it worked flawlessly. (also if you do run into any issues PLEASE don't count on me for troubleshooting tips (I'm not that great at that))

    -----------------------------------------------------------------
    Pre-requisites/Downloads
    -----------------------------------------------------------------

    Get the factory firmware for your phone. It's a good failsafe in case of a bootloop or a bad case of the phone not booting up. Download it here: P-SMR6-RC001-RZR-201022 (latest build at the time of writing)

    Extract this with 7zip or WinRar (or windows. You will need 7zip or WinRar for the rest of this)

    First you need the actual GSI. Get the latest version. (Make sure its not a pre-release). system-roar-arm64-ab-vndklite-gapps.img.xz is the version that you should get. The vndklite release will allow you to modify the system partition making it possible to get magisk. Note: If you want magisk, MAKE SURE TO COMPLETELY follow the magisk section of this guide aswell or else magisk will NOT install correctly and will NOT work.

    This version also has GApps. It will give you Gmail, the google play store, google play services, etc.

    Use 7zip or WinRar to extract this.

    Your also gonna need the Trinity Kernel (v2). This gives you TWRP and I'm pretty sure you also need this to have the ability to boot up the phone (I may be wrong but it's required.)

    use 7zip or WinRar to extract this.

    You will also need this zip file made by arter97 I don't really know what it does but you need it. here is the download: Download.

    Don't extract this.

    Put all these in a known folder that you can access later.

    Alright. Now that we're done with the downloads, time to test to make sure your ready to put this on your phone.

    -----------------------------------------------------------------
    Making sure your computer is ready
    -----------------------------------------------------------------

    First things first. Go open your platform tools folder, shift-right click and open a PowerShell, or command prompt window there. Shut down your Razer phone 2 and turn it back on with the power and volume down buttons.
    Plug it into your PC and type in
    Code:
    fastboot devices
    you should end up with the serial number of the device. if you don't, follow Razer's instructions on how to install USB drivers and then come back here. Link to PDF.
    If you get a serial number, close that and flash stock firmware by going into the aura-p-release-etc. folder, then opening flash_all.bat.

    When it finishes and the screen goes black, hold the power and volume down buttons again to get back in to fastboot mode.
    open back up the CMD/PowerShell platform tools window thing again.

    -----------------------------------------------------------------
    Installing/Flashing
    -----------------------------------------------------------------

    In your CMD or PowerShell window, (while in fastboot mode on the phone) type
    Code:
    fastboot flash system <file name>
    in the <file name> area, just drag and drop the system-roar-arm64-etc.img file into your command line. your command will look a little something like this:
    Code:
    fastboot flash system C:\Users\user\Desktop\system-roar-arm64-ab-gapps.img
    Wait until it says complete or something similar like done or something and has no errors.

    Then, time to flash the kernel. it should just be called boot.img.
    We will be typing in:
    Code:
    fastboot flash boot <file name>
    Do the same thing that you did for the last command which is drag and drop the boot.img file for the file name.
    Again, wait until it says done or complete and has no errors.

    After that is done, use the volume buttons to select reboot bootloader with your power button on your phone.

    Go to recovery mode and swipe where it says to swipe.

    Go to the wipe menu and then tap on format data. Type yes and then press enter/ok.

    Go back to your computer and open file explorer.

    Put the last zip file that I was talking about earlier (the f2fs thing) on the razer phone 2's internal storage. Head back to your phone, and press install.

    Scroll down until you find the zip file and press it and install it. (ignore the errors that may or may not be there) After that, go back to the TWRP home screen (with the 8 options)

    Go to the reboot menu, then reboot into recovery

    Tap on format data and type in "yes" and tap ok. click on "don't install" because you don't need the TWRP app on your phone.

    The phone will shut down. Turn it on normally and everything will work!

    ----------------------------------------------------------------------------------------------------------------------------------
    GET THESE THINGS IF YOU WANT 120Hz, GCam, and a SNAZZY RAZER LOGO.
    ----------------------------------------------------------------------------------------------------------------------------------

    To get 120Hz, you need to go into the settings > Phh treble settings > Misc features > Force FPS > [email protected].

    If you want your Razer logo to light up again, use Logo+. here is a download: Logo+ APK

    The default camera app sucks. Make sure to get GCam 7.4 from Cyanogen Mods (v8.0 is broken). you can get it here.

    Download a root file browser from the google play store and allow it to have root access. Delete BluetoothCommonRes.apk which is found in the overlay folder which is found in the vendor folder. After you delete BluetoothCommonRes.apk, rename the RazerAuraBluetoothRes.apk to BluetoothCommonRes.apk.

    -----------------------------------------------------------------
    Magisk
    -----------------------------------------------------------------
    So this part was pretty long-awaited. It half-passes SafteyNet and modules work! (at least all the modules that I've used.)

    Make sure you have the vndklite variant. That is the only way that this will work.

    1. Open up an adb/fastboot powershell/cmd/windows terminal window.
    2. Type adb root and hit enter.
    3. Type adb shell and hit enter.
    4. Type mount -o remount,rw / and hit enter.
    5. Type mv /bin/resetprop_phh /bin/phh-resetprop and hit enter.
    6. Type phh-securize.sh and hit enter.

    The phone should reboot after you approve the request (if there is one) and you are now able to install magisk!

    MAKE SURE THAT THE SUPERUSER APP IS NOT THERE AFTER RUNNING phh-securize.sh.

    Get specifically this version of Magisk. Download the zip file.

    Boot into TWRP and tap on mount, and select everything (usb storage doesn't matter in this case. it never mounts either way.)

    Transfer over your zip file via file explorer, and go back to your phone.

    Tap install, then scroll down until you find the zip file and tap it. Swipe to flash and wait. After it is done, you can reboot!

    You should see Magisk manager in your app drawer. Open that. It might ask you to install it, if so, install it. Allow apps from this source then install. Open it up. You should see that Magisk is installed. Update it and turn on Magisk hide.

    If it passes SafteyNet, it's a miracle.

    -----------------------------------------------------------------
    In case of failure
    -----------------------------------------------------------------

    If it starts bootlooping or is perpetually stuck at the razer logo, powered by android screen, go back into fastboot mode and run the flash_all.bat stock firmware thing. it will unbrick your phone automatically. Really make sure you don't skim if you try it again. If it did work (which it probably did), then have a good time with android 11!
    2
    How did you boot (into recovery/os) with the patched boot.img? its not working for me. could you possibly upload your boot.img?
    I've since gone back to stock; I can't get past that game music bug. Here are my exact steps:
    1. Flash_all back to stock MR6.
    2. Reboot to bootloader
    3. Flash the arter97 r14 kernel to boot_a and boot_b
    4. Reboot to recovery
    5. Flash LOS 18.1 to system partition
    6. Wipe --> Advanced --> Resize system partition
    7. Flash GAPPS (I used FlameGAPPS full)
    8. Install Magisk
    9. Connect computer to phone and go through the steps in the post I linked (Don't forget to mount the system partition before pulling/pushing via ADB)
    10. Reboot, make sure Magisk Manager is installed, and run securize
    11. After that reboot, everything should be good to go. Turn on Magisk hide and you'll pass SafetyNet.
    2
    The unofficial LOS GSI just got updated with supposed Magisk support. I'm going to give it a try in a few.
    Nope, Magisk doesn't work.
    1
    There is one bug that has stopped me from going GSI. On every one I've tried, there is a game music bug that is common in many of the games I own. If the volume is set to below 50%, the music will cut in and out constantly. It resolves itself if you keep media volume above 50%. It may not be a deal breaker for everyone, but it was for me, as I use my RP2 heavily for games. Other than that, GSIs work beautifully. Thanks for the comprehensive guide!
    1
    Anyone have a issue with the fingerprint scanner not working all the time.
    It is a bug with all GSIs on this phone, both 10 and 11.