[Android Software/Hacking General [Developers Only]] aleph.mercury:
pixel 5

using linux mint 20 as my PC

fresh flash of 04/21 official google images (https://dl.google.com/dl/android/aosp/redfin-rq2a.210405.005-factory-ddb75a1f.zip)

root phone with magisk canary v22.104

install the following 2 magisk modules

debloat

busybox

reboot

install https://xdaforums.com/attachments/mixplorer_v6-54-8-beta_b21041940-apk.5284481/

(or other explorer of your choice that will get job done)

using Mixplorer, I made a copy of the PlayStore app that was already on my phone, renamed it Phonesky.apk and parked it in /data/adb. This step is so we can use our playstore purchased apps, if you just want to use the fakestore that comes with the microg module you can skip this.

install termux or other terminal emulator or use adb from PC

I like to give abd shell su powers in case something goes wrong, do that now from your PC

now debloat GmsPrebuiltCore and PlayStore using termux or adb or whatever you like

I installed the following 2 modules from here https://xdaforums.com/t/mod-magisk-...res-for-pixel-devices-pixel-5-thread.4246253/

the v12 and v7 ones, but this is optional I think. I wanted to do them first in case the subsequent steps involving the Framework.jar altered then, I didn't want to apply them after this exercise and thereby nullify what we're trying to do. But maybe this precaution is not necessary, I'm a n00b so bear with me.

Then I installed the microg module available from the magisk repo and reboot

Your phone will now be going crazy with alerts saying stuff won't work without google play services. Just ignore them for now as best as you can. If they stop for a bit and reoccur, that's ok

go to Apps&Notifications on your phone , show all apps, and uninstall the Google Play Services app. I couldn't uninstall the PlayStore at this point, though I think its ok if you do.

I didn't have a microg app isted on my phone at this point, but using the Mixplorer I went to /system/priv-app/GmsCore I cut it to /sdcard and installed the apk there. We need to do this anyways in order to grant the location and sms permissions anyways, there's a bug currently with the magisk module not being able to install it with that capability. Now you should just have the options unchecked involving signature spoofing.

Check the PlayStore apk at this point to make sure it's able to be granted all permissions. If any are lacking or unable to be selected, do the same trick we just did to GmsCore to it by cutting /system/priv-app/Phonesky to /sdcard card, installing there, granting permissions and curtting/resinstalling back to /system/priv-app/Phonesky

If you opted to use the fakestore instead, I guess do the same thing to that instead but i'm really not sure

reboot to bootloader

I used TWRP to do the next stuff. Maybe you don't need to do it this way, but it worked for me

https://xdaforums.com/t/recovery-twrp-3-5-0_10-0-teamwin-recovery-project-redfin-testing.4240711/

fastboot boot this file (not flash! just boot)

In TWRP, mount your partitions, except data and storage you can't, but that's ok

Now I followed the rest of this guide, but I pulled over (as root on my linux mint PC) adb pull /system_root/system/framework/services.jar

do the stuff in the OP's guide and I pushed it back with adb push spoof_AVDapi30.zip /sdcard

Maybe the root isn't required on Linux, but it's what worked for me.

Boot your phone, in magisk flash the spoof_AVDapi30.zip

reboot

done