Code Monkey home page Code Monkey logo

microg-unofficial-installer's Introduction

microG unofficial installer

Author

ale5000

License

GPLv3.0 or later

Coverage

Description

microG unofficial installer is a flashable zip created for a simple installation of microG on Android.

This project is available on GitHub, on GitLab as well as on XDA.

Donate using Liberapay

Release

GitHub (pre-)release

See here for the instructions.

Downloads of the latest OSS release

Total OSS downloads

© 2016-2019, 2021-2024 ale5000

Code analysis

Code linting of GitHub

CodeFactor Badge

Codacy Badge

microg-unofficial-installer's People

Contributors

ale5000-git avatar dependabot[bot] avatar roobre avatar storm1ng avatar thescrabi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

microg-unofficial-installer's Issues

installation options aren't accepted from the command-line

What happened?

I install like this:

DEBUG_LOG=1 INSTALL_PLAYSTORE=0 INSTALL_NEWPIPE=0 sh ./zip-install.sh /data/local/microg-unofficial-installer-*.zip

But the INSTALL_NEWPIPE=0 is ignored and replaced by the settings.conf from inside zip.

Version

1.3.1-beta

Android version

14

Custom ROM

LOS 21

Relevant log output

...
Enabling: NewPipe
Verifying...  
/tmp/custom-setup-a5k/origin/app/NewPipe.apk
OK

[REGRESSION] zip-install.sh fails (version v1.2.0-beta)

Used to work on version https://github.com/micro5k/microg-unofficial-installer/actions/runs/3663872008
Tried both on r/o and r/w /
Also debug log is not created.

console
:/mnt/tmp/1 # DEBUG_LOG=1 INSTALL_NEWPIPE=0 sh ./zip-install.sh /sdcard/Download/microg-unofficial-installer-v1.2.0-beta-by-ale5000-OSS-signed.zip
PRELOADER 1
PRELOADER 2
Extracting 64-bit ARM BusyBox...
Extracting scripts...

Starting installation script...
---------------------------------------------------
INFO: Select the VOLUME + key to enable live setup.
Waiting input for 2 seconds...
WARNING: Key detection failed
WARNING: The '/system' partition is read-only, it will be remounted
mount: can't find /system in /proc/mounts
mount: mounting /system on /system failed: Invalid argument
ERROR: Remounting of '/system' failed
ERROR 91: Remounting of '/system' failed
ERROR: Installation script failed with error 91
ERROR 91: Installation script failed with error 91
ERROR: ZIP installation failed
91|:/mnt/tmp/1 # mount -o rw,remount /
:/mnt/tmp/1 # DEBUG_LOG=1 INSTALL_NEWPIPE=0 sh ./zip-install.sh /sdcard/Download/microg-unofficial-installer-v1.2.0-beta-by-ale5000-OSS-signed.zip
PRELOADER 1
PRELOADER 2
Extracting 64-bit ARM BusyBox...
Extracting scripts...

Starting installation script...
---------------------------------------------------
INFO: Select the VOLUME + key to enable live setup.
Waiting input for 2 seconds...
WARNING: Key detection failed
WARNING: The '/system' partition is read-only, it will be remounted
mount: can't find /system in /proc/mounts
mount: mounting /system on /system failed: Invalid argument
ERROR: Remounting of '/system' failed
ERROR 91: Remounting of '/system' failed
ERROR: Installation script failed with error 91
ERROR 91: Installation script failed with error 91
ERROR: ZIP installation failed

NewPipe

Hi,

I really enjoy your installer. Thank you very much!

I think that NewPipe should not be part of this package, because it is not MicroG related and I prefer to install it manually (if I want to use it).

Thanks,
Dominik

How could I uninstall it?

I have Android 9 and was trying to use yours script.
Unfortunately unifiednlp do not have location to test geocoder and I can't force it to do so.
Do you have some kind of uninstall zip, or should I remove every app manualy?

Sideloading results in indefititely long fallback "waiting input"

First things first, thank you a lot for creating and maintaining this microG installer. I just started integrating it into my Rom installation assistant because the latest builds of NanoDroid seem to be outdated and the maintenance a little scarce.

My application needs to sideload everything so that the user does not need to intervene. After sideloading the current version of your microG installer (on osprey), I see the message on the phone screen:

------------------------
INFO: Select the VOLUME + key to enable live sertup.
-------------------------
Waiting input for 2 seconds...

WARNING: timeout returned cmd NOT found (127)
Fallbacking to manual input parsing, waiting input...

At this point, the installation hangs indefinitely. At least it has stayed like that for almost an hour now.
Is there a way to tell the installation script that interactivity is not desired?

I have seen in your code that sideload should be detected but there is no output on the screen telling that is has been detected.

ZipSigner fixes

@ale5000-git
I saw below issues in Magisk by you.
topjohnwu/Magisk#828
topjohnwu/Magisk#932
topjohnwu/Magisk#954
Now zipsigner does not support flashable zip signing.

For fixing these issues, we can simply use my mod at https://forum.xda-developers.com/t/app-android-no-pc-sign-apk-zip-within-android.3835975/post-81324327

How it fixes these issues is, it will not re-compress at all. It will just add footer to the zip file. So it will not do any manipulations to the zip entries.

I am also wanted to update ZipSigner, but it removed flashable zip signing support. See topjohnwu/Magisk#3598

Thanks

Installing survival script failed

Hola,

when I use this installer on my Moto M 2014, I get the message:

Installing...
Instaling survival script...
ERROR: File listing failed
Done.

somehow after an update of lineage os the installed apps are then gone.

device-info.sh not detecting phone number on Samsung A21, model: SM-G991U1, OS:14

What happened?

I have several test devices that don't log the phone number and I can't figure out why.. the confusing part is I have other devices (same device/OS/SIM/etc) which show the phone number fine.

The devices in question are all Samsung A21, model: SM-G991U1, OS:14

screenshot showing about screen for device in question. I can get a screenshot of another device that is able to fetch the phone number but it looks the same. I'm just wondering what could be different that would cause 1 to work and another not to

NOTE: I can help test any ideas/suggestions -- just let me know!

image

Version

1.5

Android version

14

Custom ROM

default

Relevant log output

No response

Imei number

Script unable to find the imei number in the android 13

survival script for xposed

I'm using microg together with xposed.
However when I install an update of LOS, microG keeps be installed because of the survival script here, but xposed is something I always have to install again.

I wanted to ask if you could put an optional survivalscript in here for people who use xposed.

Volume keys are not being identified

I tested it on crdroid on android 13 and on havoc on a11 and in neither case was this app installed. How can I help debug this?
I am using a oneplus 6 (enchilada)

Update apks

There are new versions of privileged extension and gmscore.

Live setup failing

In TWRP 3.1.0 on samusng S7580 the 2 seconds delay to enable live setup are ignored. The message is displayed while flashing but the delay doesn't take place.

TWRP installation failure: error 97

---------------------------
microG unofficial installer
v1.2.0-beta
(by ale5000)
---------------------------
Boot mode: false
Recovery API ver: 3

Android API: 33
Main 64-bit CPU arch: arm64-v8a
Main 32-bit CPU arch: false
System path: /system_root/system
Priv-app path: /system_root/system/priv-app
Fake signature: true

Extracting...
unknown fuse request opcode 2016
unknown fuse request opcode 2016
unknown fuse request opcode 2016
Setting up permissions...

/tmp/custom-setup-a5k/files/app/DejaVuBackend.apk
/tmp/custom-setup-a5k/files/app/IchnaeaNlpBackend.apk
/tmp/custom-setup-a5k/files/app/NominatimGeocoderBackend.apk
/tmp/custom-setup-a5k/files/framework/com.google.android.maps.jar
Verifying... OK
Preparing...
Skipping: UnifiedNlp (legacy)
Skipping: microG Services Core (vtm-legacy)
Enabling: microG Services Core

/tmp/custom-setup-a5k/origin/priv-app/GmsCore.apk
Verifying... OK
Enabling: microG Services Framework Proxy

/tmp/custom-setup-a5k/origin/priv-app/GoogleServicesFramework.apk
Verifying... OK

/tmp/custom-setup-a5k/origin/priv-app/FakeStore.apk
Enabling: FakeStore
Verifying... OK

/tmp/custom-setup-a5k/origin/priv-app/FDroidPrivilegedExtension.apk
Enabling: F-Droid Privileged Extension
Verifying... OK
Skipping: NewPipe Legacy
Skipping: NewPipe (old)
Enabling: NewPipe

/tmp/custom-setup-a5k/origin/app/NewPipe.apk
Verifying... OK
Extracting libs...
Setting up libs permissions...
Deleting '/tmp/custom-setup-a5k/origin'....
Configuring default Android permissions...
Creating the default permissions folder...
mkdir: can't create directory '/system_root/system/etc/default-permissions': Read-only file
system
ERROR: Failed to create the dir '/system_root/system/etc/default-permissions'
ERROR 97: Failed to create the dir '/system_root/system/etc/default-permissions'
ERROR: Installation script failed with error 97
ERROR 97: Installation script failed with error 97
Updater process ended with ERROR: 97

device-info.sh results in error "-bash: @: unbound variable"

What happened?

Hi,

I found this script in a stackoverflow post and was hoping it'd print my device IMEI. I tried running it though and just get the error below:

Android device info extractor v1.5 by ale5000
-bash: @: unbound variable

I'm on a M1 Mac and my devices is a Pixel 7, Android 14

I'll try to debug but wanted to mention it in case there's some easy fix

Version

1.5

Android version

14

Custom ROM

Google

Relevant log output

No response

put releases on github

Hello @ale5000-git could you put your updates on your releases page on github. This way one can subscibe it with an rss reader, and get notified whenever you create a new version. :D

Awesome work by the way, I love this installer :)

Google Play Store keeps trying to update GmsCore in the background

I have clean flashed "microg-unofficial-installer-v1.2.0.5-alpha-by-ale5000-signed.zip" in recovery.
Everything intended is working fine.
But the Google Play Store is trying to update Google Play Services (which is MicroG GmsCore.apk) whenever I connect to the internet. It keeps trying to update in the background if I remain connected to the internet which is causing battery consumption when the device is idle.
This is because the version code of latest MicroG GsmCore.apk is lower than the latest original Google Play Services apk.
So my request is that please release a MicroG GmsCore.apk which has a greater version code than original Gms.
It would solve the problem of automatic update.
Screenshot_20230124-171505_Launcher3
-6231117963419825006_121

Can't install on 4.4.4 tablet due to missing $RANDOM generation method.

What happened?

Hi!
I'm running Alcatel Pop 8s with CM11 (KitKat 4.4.4). I know, it's ancient, but I wanted to revive it and have microG running. I'm unable to install it via sideload, because of such error:

ERROR 79: $RANDOM is not supported

Version

1.3.1-beta

Android version

4.4.4

Custom ROM

CyanogenMod 11

Relevant log output

No response

New Play services

Hello,

I get every an update Notification for the play Services. What can I do? It's installed from microg.

Magisk Rooted Android 12 Stock - Can't install by manual script or flash zip from recovery

Hello,

I have mounted RW and tried to run the install script from both local terminal and ADB Shell on Windows. Launched from either internal or external storage,I get the results below.

I have been searching XDA and SO with no solution so far. I'm sure I am doing something bone-headed, any ideas?

d2s:/ $ su
d2s:/ #
d2s:/ # mount -o rw,remount /
d2s:/ #
d2s:/ # cd /storage/2C41-653F/Repo/micro5k
d2s:/storage/2C41-653F/Repo/micro5k # sh install.sh
install.sh[38]: .: /inc/common.sh: No such file or directory

Or:

d2s:/storage/2C41-653F/Repo/micro5k # sh ./install.sh
install.sh[38]: .: /inc/common.sh: No such file or directory

Or:

d2s:/storage/2C41-653F/Repo/micro5k # su -c sh ./install.sh
install.sh[38]: .: /inc/common.sh: No such file or directory

With ADB sideload or apply update from SD, I get:

E: Signature verification failed
E: error: 21
<...>
Installation aborted.

Flashing the zip with terminal from SD fails:

Screenshot2

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.