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

Search This thread

BACATCHER

Member
Mar 10, 2016
9
0
HTC One (M9)
LG V20
I have a question, does t-mobile work with this os? My sim is unlocked so i was just thinking about switching carriers to be able to use android 11, and i was thinking about tmobile because they have the highest data speeds and pretty much full coverage in my area.
Yes it does. I personally use T-Mobile, and it works fine no problem. I have heard of problems with Verizon on any GSI roms, but it should be able to be solved. Do me a favor, could you open your phone dialer, and type in this exactly *#*#4636#*#* it brings up your phone information. Go into Phone Information and make sure your perfered network type is for a CDMA carrier, there's a couple different options for CDMA (Verizon) so it might take some trial and error to figure out which one might work. Also change your default connection type to LTE, you can do this in the default settings drawer. Good luck.
 
May 26, 2021
16
3
Yes it does. I personally use T-Mobile, and it works fine no problem. I have heard of problems with Verizon on any GSI roms, but it should be able to be solved. Do me a favor, could you open your phone dialer, and type in this exactly *#*#4636#*#* it brings up your phone information. Go into Phone Information and make sure your perfered network type is for a CDMA carrier, there's a couple different options for CDMA (Verizon) so it might take some trial and error to figure out which one might work. Also change your default connection type to LTE, you can do this in the default settings drawer. Good luck.
I did do that, and I couldn't dial it because I had no mobile service, so i couldn't get to that setting. However, all is well, i just switched to tmobile and its working perfectly! However, I am having trouble getting bluetooth to work but i'll mess around with it. Thank you for sharing your experience though!
 

BACATCHER

Member
Mar 10, 2016
9
0
HTC One (M9)
LG V20
I did do that, and I couldn't dial it because I had no mobile service, so i couldn't get to that setting. However, all is well, i just switched to tmobile and its working perfectly! However, I am having trouble getting bluetooth to work but i'll mess around with it. Thank you for sharing your experience though!
The original post on this thread has a small guide to get Bluetooth working again near the top. I'm glad it's all working now brother. Take care!
 
May 26, 2021
16
3
The original post on this thread has a small guide to get Bluetooth working again near the top. I'm glad it's all working now brother. Take care!
I'm trying to install Magisk so I can get play protect certified, so i can factory reset and be able to log into my google account to restore my backup i made before i flashed to android 11 because apparently that is the only way to do it. Whenever i run the mv /bin/resetprop etc command i get mv: bad "..." device or resource busy. Any thoughts on this?
Edit: I realized that i am directed to two different shell directories. one i'm in is just ~#, thats when i'm in the twrp recovery mod, the other is like phh_arm64 somthing. when i do the command in ~# it just says the file doesn't exist or is missing, what I posted above is what it says in the phh shell directory. I did get it to work once but i have no clue how to make it work again.
Edit 2: I figured that the only way I could get this to work was to run those cmd's while the phone was on, so i did so before i did anything with starting up. it all went thru and rebooted, and sure thing, it has the certification, so i got my backup and i can enjoy the ever loving **** out of android 11 now!
 
Last edited:

BACATCHER

Member
Mar 10, 2016
9
0
HTC One (M9)
LG V20
I am shamefully admittedly still having trouble with bluetooth. I did what it said and it just won't stay on or discover any devices.
My bad I didn't see your last post, but I'm glad you finally got it certified. I had the same troubles trying to get it certified.

As for the BlueTooth, I forgot this guide isn't entirely accurate, I followed another one. Here's what I did.
Reboot into TWRP, and mount the vendor folder. Then go back into android, and use the specific app called "Root Browser", its the one with an eye patch, that's the only one that worked for me. Now for the two files, you HAVE to delete the original one, you cant name it (OLD) or something, you have to delete it. Then you rename the new Aura file, you have to rename it too exactly "BluetoothResCommon.apk". if you notice, the order of the words are different than from the one in this guide. the "Res" is inbetween Bluetooth and common, and is not supposed to be at the end.
I hope I explained that well enough. My apologizes for misdirecting you. Update me if you get it working!
 
May 26, 2021
16
3
My bad I didn't see your last post, but I'm glad you finally got it certified. I had the same troubles trying to get it certified.

As for the BlueTooth, I forgot this guide isn't entirely accurate, I followed another one. Here's what I did.
Reboot into TWRP, and mount the vendor folder. Then go back into android, and use the specific app called "Root Browser", its the one with an eye patch, that's the only one that worked for me. Now for the two files, you HAVE to delete the original one, you cant name it (OLD) or something, you have to delete it. Then you rename the new Aura file, you have to rename it too exactly "BluetoothResCommon.apk". if you notice, the order of the words are different than from the one in this guide. the "Res" is inbetween Bluetooth and common, and is not supposed to be at the end.
I hope I explained that well enough. My apologizes for misdirecting you. Update me if you get it working!
Hey, thank you for the detailed explanation. I renamed it to what you said, however it still isn't working. When I pair it with my pc, my pc and phone think its a bluetooh keyboard.
1625529325880.png

I'm just at a complete loss of how to troubleshoot this.
(Yes, I really did name my phone that.)
I found this in my searching for a workaround
1625530996614.png

Do you think it would be worth a try? The main reason I want BT call audio is so I can connect my phone by bluetooth to my pc so I can take calls over my pc instead of my phone.

Update: I did go through with this just to give it the benefit of the doubt and for curiousness. Turns out, after some errors and flash_all'ing and going through the whole process again, I did exactly what that says, lo and behold I was able to connect my phone to my car's bt for audio and handsfree device talking aduio! Now I'm pretty much all set after tweaking and tinkering with things just enough to get it fully functional. Thank you again for your explanations and support good sir.
 
Last edited:
  • Like
Reactions: pigjr

Marcos8760

Senior Member
Aug 12, 2019
74
19
Google Pixel 3
Razer Phone 2
I have a question, does t-mobile work with this os? My sim is unlocked so i was just thinking about switching carriers to be able to use android 11, and i was thinking about tmobile because they have the highest data speeds and pretty much full coverage in my area.
Well I currently use Mint Mobile (which runs on t-mobile) so I'd say there is about a 99% chance that it will.
 
  • Like
Reactions: starlighttonight

samszcx23

New member
Aug 8, 2021
1
0
is there ways to receive messages, because my phone wont be able to receive any incoming messages
 

DracShadows

Member
Sep 3, 2021
12
1
So I followed the guide and unlocked the boot loader but when I go to run flash_all.bat all I get is this. Any help would be appreciated
 

Attachments

  • photo_2021-09-03_17-52-28.jpg
    photo_2021-09-03_17-52-28.jpg
    46.6 KB · Views: 8

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 on if I could just get whatever GSI I want and on the Razer Phone 2 and it will just work...

    AND IT DID!

    And then I thought there weren't enough android 11 download tutorials for the Razer Phone 2 so I made a 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.