GloDroid / glodroid_manifest

Android port that aims to bring both user- and developer-friendly experience in using AOSP with a set of single-board computers (SBC), phones and other devices.
472 stars 66 forks source link

Install µG (microg) #126

Closed jpmeijers closed 1 year ago

jpmeijers commented 3 years ago

I have a Pinephone running GloDroid and I am trying to install microg as a replacement for Google's play services. I need this for apps that require location services.

https://microg.org/download.html

Currently I am struggling because microg requires "signature spoofing", provided by "Xposed". I tried installing Xposed Installer from f-droid, but it tells me "No matching ZIPs were found".

I do not know what to do next. Does anyone have recommendations?

hamiltonrn commented 3 years ago

Native Signature Spoofing is a very desirable feature, some LineageOS has it.

nas00 commented 3 years ago

Someone suggested magisk in another issue - and it worked .

jpmeijers commented 3 years ago

I'm a little confused by the steps provided:

1) patch boot.img with magisk app - The app is on the phone, so do I need to copy boot.img from the artifact I downloaded from Github to the phone? 2) adb reboot fastboot - ADB is running on my computer, so do I need to copy the patched boot.img back to my computer? 3) fastboot flash boot_a magisk_patched.img 4) fastboot reboot

nas00 commented 3 years ago

Yes and yes - there's a link to more detailed instructions in the same post.

jpmeijers commented 3 years ago

I scanned through the rest of the thread and can not find any instruction about this. Because the Pinephone does not want to mount as a USB storage device on my computer, I used another Android phone to do the patching of boot.img. I then followed the instructions to flash it to the Pinephone, but after that it did not want to boot. Screen is on but completely black.

I then decided to modify flash-emmc.sh to use magisk_patched.img rather than boot.img for the boot_a step. After this I see the same result as before.

My assumption is that pathing boot.img failed. Could it be because I used another android phone to do this?

nas00 commented 3 years ago

Click the word 'magisk' in the linked post. I haven't tried it for a while so will get round to checking it still works at some point.

jpmeijers commented 3 years ago

As recommended there I used the Canary build of Magisk. This time running and patching the boot.img on the Pinephone. Getting the boot.img image onto and off of the Pinephone is still very difficult. I ended up using a simple ftp server app, which seems to work if one use the SAF option.

Boot_a partition was again flashed with the patched boot.img, but again only a black screen on startup.

SourceDiver42 commented 3 years ago

So is signature spoofing still looked into or are you trying to get Magisk to install microg? There are apps that don't require the original Gapps, but they don't work if they find any trace of magisk on the system. I tgink both options should be possible.

nas00 commented 3 years ago

magisk offers signature spoofing and an option to hide itself but will probably need a user build of glodroid (https://github.com/GloDroid/glodroid_manifest/issues/97) to test those apps out.

jpmeijers commented 3 years ago

Main goal is to have working location services. To get that I want to install microg.

nas00 commented 3 years ago

So I gave it a go and confirm the magisk patched boot file doesn't work on the latest release. Seeing that people are reporting similar issues on other devices (https://github.com/topjohnwu/Magisk/issues/3722).

genofire commented 2 years ago

Maybe add preinstalled F-Droid either: https://github.com/GloDroid/glodroid_external_apks/pull/3/files

cyclone018 commented 2 years ago

I've tried to get microG to work on Android 12 but the Signature Spoofing with Edsposed and Riru with Magisk didn't work for me... Like at all. But I was able to get the original Gapps to work. With a little tweaking, a downgrade, and a registration, it works but not at a desirable state. Like almost 90% of the apps I use on a daily basis say "Not Supported" but anyway.

PXL_20220421_205846209 MP

rsglobal commented 1 year ago

LineageOS+GMS(microg) is available. See https://github.com/GloDroidCommunity/pine64-pinephone. No rebuild images for now, but they can be built from sources.