yashsingh1/xdaforums huggingface dataset:
[Miscellaneous Android Development] ale5000:
Hi,

I have added Android Auto stub, it is disabled by default but you can enable it in Live setup or change default settings.

It should teorically work from Android 6 to Android 13 but currently I cannot test it.

I would like to know if someone could please test it and report back specifying also device name and Android version.

To try you should download the entire repository from: https://github.com/micro5k/microg-unofficial-installer/archive/refs/heads/main.zip

Then on Windows double click on

build.bat

while on other OSes type

./build.sh

At the end you will find the flashable zip in the output folder.

While flashing enable Live setup and choose to install Android Auto stub.

After flashing the zip, reboot, update Android Auto in Play Store or in Aurora Store and then follow the instruction on the app itself.
[Miscellaneous Android Development] Oehrly:
Android 10, Nitrogen OS, on Oneplus 3
[Miscellaneous Android Development] ale5000:
Hi, the latest code on GitHub (not released yet) support Android Auto, see the message here.
[Miscellaneous Android Development] Futazaki:
How to change from FakeStore to PlayStore? Changed it via config file but still installs FakeStore when flashed.
[Miscellaneous Android Development] ale5000:
What build do you use?

One is complete (and it have both FakeStore to PlayStore so you can choose), the other one include only open-source components (so only FakeStore no matter the choice).

If you download it from GitHub releases it is the OSS only build, the complete one is here on XDA (on first post).

If you want to build it yourself you can follow the guide here.
[Miscellaneous Android Development] drnightshadow:
ill test on old sm-a300fu(from 2015) with unofficial los 15.1 aka android 8.1 and ill report back soon ... i need working Android Auto with microG... phone is always in car.

da*m it's hot.. 38 °C ... maybe you'll wait a bit longer o_O

edit: compiling in progress.....

edit 1: Houston, we have a problem...

Connecting to www.apkmirror.com (104.19.135.58:443)
Connecting to www.apkmirror.com (104.19.135.58:443)
saving to 'C:/testing MicroG/microg-unofficial-installer-main/cache/files/variants/PlayStore-recent.apk'
'C:/testing MicroG/microg-unofficial-installer-main/cache/files/variants/PlayStore-recent.apk' saved

ERROR: The file 'C:/testing MicroG/microg-unofficial-installer-main/cache/files/variants/PlayStore-recent.apk' is corrupted.

edit 2: the main problem are download links from conf-2.sh.. 1st link...

Google Play Store 7.1.25.I-all [0] [PR] 137772785 (noarch) (nodpi) (Android 4.0+) APK Download by Google LLC - APKMirror

Google Play Store 7.1.25.I-all [0] [PR] 137772785 (noarch) (nodpi) (Android 4.0+) APK Download by Google LLC - APKMirror Free and safe Android APK downloads

www.apkmirror.com

View attachment 5666013
[Miscellaneous Android Development] ale5000:
I have fixed the links, please retry with the latest version from Github.
[Miscellaneous Android Development] drnightshadow:
ok i will .. for temp workaround i manually dl files and renamed it in cache/files/variants... all done..:p

will re-download for more testing...

edit : latest github same error .. PlayStore-recent.apk' is corrupted.

Connecting to s24.filetransfer.io (172.67.200.96:443)
saving to 'C:/testing_MicroG/microg-unofficial-installer-main/cache/files/variants/PlayStore-recent.apk'
'C:/testing_MicroG/microg-unofficial-installer-main/cache/files/variants/PlayStore-recent.apk' saved

ERROR: The file 'C:/testing_MicroG/microg-unofficial-installer-main/cache/files/variants/PlayStore-recent.apk' is corrupted.

actually it does NOT save any file at all (empty folder), no files :unsure:

This must be some win11 hiccups or busybox wget bug/script error... weird
[Miscellaneous Android Development] ale5000:
Sorry, try again the latest code from GitHub.

Since the website is changed I had to change the download code.
[Miscellaneous Android Development] drnightshadow:
I will try it again when I come back ... Weekend traveling 😁.

Edit: I got remote access to friends PC... Latest github version works 😁 👍
[Miscellaneous Android Development] ale5000:
Thanks for the tests, I would also like to know if the connection of Android Auto to the auto works correctly (since I cannot test it).
[Miscellaneous Android Development] drnightshadow:
I will do it to end of the day... I'll report at evening.

Edit: well, not working when USB is attached to car. Sorry, I think some extra files and permissions are missing. 1st pic. is without Auto Android running. 2nd is Auto Android running... Same error
[Miscellaneous Android Development] ale5000:
Latest github version contains also a file that auto-grant some permissions to Android Auto, but Android won't pick it automaticaly (if flashed without wiping data), so the procedure is:

- Flash latest zip installer (with Android Auto enabled)

- Reset permissions of all apps with: adb shell "rm -f -- /data/system/users/*/runtime-permissions.xml"

or

- Flash latest zip installer (with Android Auto enabled)

- Wipe data

I currently cannot test but it probably works.
[Miscellaneous Android Development] drnightshadow:
OK, I'll try it tomorrow when I'll be in car... Will report...

Compiling in progress... Installing latest github...

Edit: I used the second method but sadly same error like last time no USB bla bla....
[Miscellaneous Android Development] ale5000:
Could you please take a logcat while you try it in the car?

Maybe it will give a hint of the problem.

There is an app to do it without PC: https://f-droid.org/packages/com.dp.logcatapp/

After installing the app you have to grant a permission manually otherwise it won't work:
[Miscellaneous Android Development] drnightshadow:
Ok i'll send you log tonight .. super nice, thank you for using f-droid apps 👍. I don not use sign in on any google apps (so ergo no working play store)

Meanwhile you can check how to run android auto emulation in android studio (they called it google DHU - desktop head unit)... just an idea, maybe you already know that ... something like this
[Miscellaneous Android Development] drnightshadow:
Check PM... Logs are there.
[Miscellaneous Android Development] ale5000:
These seems related:

Background execution not allowed: receiving Intent { act=android.intent.action.ACTION_POWER_CONNECTED flg=0x4000010 (has extras) } to com.google.android.projection.gearhead/com.google.android.apps.auto.components.connectivity.impl.ConnectivityEventHandlerImpl$ConnectivityEventBroadcastReceiver
Background execution not allowed: receiving Intent { act=android.intent.action.ACTION_POWER_DISCONNECTED flg=0x4000010 (has extras) } to com.google.android.projection.gearhead/com.google.android.apps.auto.components.connectivity.impl.ConnectivityEventHandlerImpl$ConnectivityEventBroadcastReceiver

I have changed the xml to allow Android Auto to run in the background while in power save mode; I'm not sure if it fix the issue but it is worth trying.

It is on GitHub, could you please send logcat with the updated code (probably a data wipe is needed)?
[Miscellaneous Android Development] drnightshadow:
Wuuutt?!?! Power save mode ?!? My phone was not in power save mode... Weird! Ah yeah it's unofficial ROM, bugs expected 😵.

Ha this lines means charging while usb is connected to car HUR, charging while USB communication is running with AA, and on the end i unplug it.. than i took 2nd log and tried again with AA running on phone.

I'll recompile latest GitHub version, wipe data, install and send logs again. Easy peasy 😇. I hope we will squash all bugs and get working AA with microg... My dreams🤗

Edit: after latest github version, it's impossible to update AA stub ... Installation failed :oops: FALSE ALARM... all done

Method I used: clean flash ROM, Install Magisk and install latest MicroG.

Edit 1: check your PM, logs are there + something more 😇

Update info: I have Android Auto ver 6.9 installed. Was working on full Gapps installation.
[Miscellaneous Android Development] ale5000:
The exclusion from power save was just an attempt but failed, I need more time to try other things
[Miscellaneous Android Development] drnightshadow:
Just checking.. Any news? ... No ETA, no pressure. Just info, nothing more.
[Miscellaneous Android Development] ale5000:
Hi, I'm a bit busy, probably I will be able to do something in a couple of days.
[Miscellaneous Android Development] ale5000:
@drnightshadow

Unfortunately I haven't yet able to test it on a real auto but I have made some changes that may help.

Could you please post a logcat with the latest code when you have time?
[Miscellaneous Android Development] drnightshadow:
Ok, I'll do it soon.

Edit: check your PM, logs are there
[Miscellaneous Android Development] ale5000:
Hi, the latest code possibly improve the situation.

Could you please try it when you have time?

After flashing the zip, update to the latest version of Android Auto and try with it.

Only after we are sure that it works with the latest version then the older versions can be tried.
[Miscellaneous Android Development] drnightshadow:
Oki doki. ..compiling... etc..ill do it this weekend..
[Miscellaneous Android Development] ildar_prophet:
greetings!

anyone tried this on any Phh's GSI ROM or derivative? this is Android 11 and 12 ROMs

sometimes /system is very tight, having too little of free space. @ale5000 , does installer handle that?
[Miscellaneous Android Development] ale5000:
1) I don't know it specifically but my installer is done to be as much compatible as possible (almost universally) and it does really check everything.

If you look at the code it check the return codes pratically everyhwere and if something fail during installation it will tell you.

2) Currently there isn't a space check, but it delete previous versions and some Google apps before installing and microG is usually smaller (compared to GApps) so in most cases it doesn't matter.

But adding a free space check is in my ToDO list.
[Miscellaneous Android Development] drnightshadow:
sorry it took that long, was sick... well new logs @ale5000 check pm
[Miscellaneous Android Development] ale5000:
Don't worry, but I think the problem is currently in microG GmsCore.

I'm a bit busy in this period but I will do some tests when as soon as I have more time.
[Miscellaneous Android Development] drnightshadow:
Just bumping the thread to bring it on top.. BTW any news ( no ETA, no pressure). Hope you'll find the solution...🤗
[Miscellaneous Android Development] ale5000:
Hi,

I would like to receive some feedbacks about this utility: https://github.com/micro5k/microg-unofficial-installer/blob/main/zip-content/files/bin/minutil.sh

Does it work for you?

Is there something else that you would like to see in the utility?

@drnightshadow: No news currently but I haven't forgotten
[Miscellaneous Android Development] kurtn:
So the core feature is "Reinstall PACKAGE_NAME as if it were installed from Play Store and grant it all permissions" ?

Should it fix the error message of some apps that demand being installed by play store?
[Miscellaneous Android Development] ale5000:
Yes, it is the most important and should fix all these issues (it also work with split packages) but I plan to also add other features over time.
[Miscellaneous Android Development] ale5000:
There were an issue with the parameters parsing, if you want to test it please update to the latest one first.
[Miscellaneous Android Development] ildar_prophet:
Greetings!

Just wanted to share my little new piece of knowledge.

Problem: How to use the installer if e.g. no custom recovery available for your device?

Solution: Do it on the running

rooted

system using adb.

WARNING

:

this method is NOT extensively tested and should be treated experimental. If anything goes wrong be prepared to reflash the phone's firmware. And surely backup everything before you start

.

Steps:

0. Prepare the system:

"login" to the phone with adb, do "su"

make sure /system has enough free space. No worries if Gapps installed which will be removed →space reclaimed. Otherwise expand with lptools

remount /system to rw

1. unzip a few files from the installer zip to a temporary folder but not /sdcard. I use /mnt/obb for example:

cd /mnt/obb

unzip /sdcard/Download/microg-unofficial-installer-v1.1.0-beta-by-ale5000-OSS-signed.zip *.sh

2. In the folder above run this:

export LIVE_SETUP=0

export ZIP_FILE=/sdcard/Download/microg-unofficial-installer-v1.1.0-beta-by-ale5000-OSS-signed.zip

export INSTALL_NEWPIPE=0

export RECOVERY_PIPE=/mnt/obb/NONEXISTANT

export OUTFD=1

sh ./install.sh x /mnt/obb

It should report everything's fine.​

3. surely reboot after installation.
[Miscellaneous Android Development] ale5000:
This is going to break in the new version (not yet released), why not just extracting the main script: META-INF/com/google/android/update-binary

and executing it like this:

sh ./update-binary 3 1 "/sdcard/Download/microg-unofficial-installer-v1.1.0-beta-by-ale5000-OSS-signed.zip"
[Miscellaneous Android Development] ildar_prophet:
maybe, didn't try that. You should know better ))
[Miscellaneous Android Development] ale5000:
Still the current latest version is a bit problematic, the new version (not yet released) has gone under a big rewrite and it should behave better.

I have also added an helper script (not tested yet), so you just need to extract zip-install.sh and then use

sh ./zip-install.sh '/zip_path/zip_file_name.zip'
[Miscellaneous Android Development] ale5000:
@ildar_prophet

I have tested zip-install.sh via adb on a KitKat emulator on the PC and fixed all issues, the latest code on git should now work correctly.
[Miscellaneous Android Development] ale5000:
Released microG unofficial installer v1.2.0 beta, the link is on the first post.

Most important changes:

- Added an helper script (zip-install.sh) for the installation of the flashable zip via terminal or via ADB (recovery not needed)

- Refactored some code, now most apps can be enabled/disabled directly in the Live setup

- Installed "MinUtil" script on the device (can be used from terminal if rooted or via ADB: "adb shell minutil")

- Added a function to reinstall packages as if they were installed from Play Store in the MinUtil script

- Added a function to remove all accounts of the device in the MinUtil script

- Added a function to rescan storage in the MinUtil script

- Added a function to force GCM reconnection in the MinUtil script

- Added Android Auto stub (disabled by default, probably not working on all devices)

- Vastly improved compatibility with legacy devices

The full changelog is here.
[Miscellaneous Android Development] ale5000:
Released Google Sync add-on v1.2.0 beta, the link is on the first post.

Most important changes:

- Added support for addon.d

- Improved uninstaller

- Added an helper script (zip-install.sh) for the installation of the flashable zip via terminal or via ADB (recovery not needed)

- Refactored some code, now most apps can be enabled/disabled directly in the Live setup

The full changelog is here.
[Miscellaneous Android Development] kurtn:
Can that reinstall feature be triggered without Root? Maybe with adb root shell?
[Miscellaneous Android Development] ale5000:
Yes, it work perfectly via adb shell without root, but if you use the terminal from the phone it need root.
[Miscellaneous Android Development] Gaberiel Logan:
Hello!

I tried to flash the latest version but I'm facing this error, the same error with google addons.

There's another problem related to tingle too.

bs: microg installed revived(magisk) works fine.

Redmi Note 11 spesn running Superior OS A13 twrp 3.7 magisk 25.2
[Miscellaneous Android Development] ale5000:
Hi,

could you please retry with this and report back?

Edit: link removed
[Miscellaneous Android Development] Gaberiel Logan:
http://
[Miscellaneous Android Development] Gaberiel Logan:
Hey

This version works

Thanks
[Miscellaneous Android Development] Gaberiel Logan:
Hey!

Sorry for the late replay

This build works fine except a small issue (Bluetooth stopped working) and a problem flashing google sync
[Miscellaneous Android Development] ale5000:
The installer doesn't touch Bluetooth at all, but there may always be problems with a dirty system.

The most clean way is to flash the installer and then do a factory reset.

IMPORTANT: microG will remain but all your user data will be lost so backup them first.

PS: The Google Sync add-on use almost the same code of microG unofficial installer so it has the same problems, from time to time I sync it with microG unofficial installer and release it but I'm not ready yet for a new release (although it won't take too much time).
[Miscellaneous Android Development] Gaberiel Logan:
I've already fixed that by chance😅 but thanks

I was about to reflash the system (formatted data, wiped cach/meta data) and was looking for the flash drive where i'm putting my files, I decided to boo to system for the last time and that's it
[Miscellaneous Android Development] Gaberiel Logan:
Now all I need is google sync to get my contacts back so Please fix it
[Miscellaneous Android Development] kurtn:
Do you really want to sync with Google? You can simply download a vcf file and import it in your phone.
[Miscellaneous Android Development] Gaberiel Logan:
You're right but yeah for some reasons
[Miscellaneous Android Development] kurtn:
You can try DAVx^5 for sync
[Miscellaneous Android Development] ale5000:
New test builds, they contain the remount fixes, support for devices with dynamic partitions and live setup fixes.

EDIT: Links removed.
[Miscellaneous Android Development] drnightshadow:
Hi @ale5000 !

Just asking ... any news about AA support?

I really miss that in my car.
[Miscellaneous Android Development] dalda123:
If I replace any apk inside the zip installer with a different signed apk, will there be any problem flashing?
[Miscellaneous Android Development] ale5000:
Yes,

you need to:

- Download the sources from github (not the already ready flashable zip);

- Extract them;

- Replace the file;

- Then replace the hash (currently sha1 hash) of the replaced file from zip-content/origin/file-list.dat;

- Then build it with build.bat (Windows) or build.sh (other OS).
[Miscellaneous Android Development] dalda123:
Where do I find the sources of the "full" version? I need the sources of

"microg-unofficial-installer-v1.2.0.6-alpha" - full.​
[Miscellaneous Android Development] ale5000:
You can get the latest sources by going on the GitHub page and select Code => Download ZIP
[Miscellaneous Android Development] dalda123:
I didn't download the sources, instead I edited the already ready flashable zip.

I replaced an apk with different sign and then edited 'file-list.dat' with sha1 hash of the new apk and flashed the modified zip in recovery.

It worked.
[Miscellaneous Android Development] ale5000:
Even the zip itself have a signature that is broken by editing, but many recovery skip this check.

Instead if the recovery check the signature it will fail.
[Miscellaneous Android Development] dalda123:
Thank you for this great microG installer.

After flashing the Full alpha version 1.2.0.6 most of the things are working fine. Even with internet turned on battery consumption is almost zero when device is idle.

Before flashing I modified the version code of microG apk with a greater version number than that of the latest Google Play Services to make it look like Google Play services (actually microG) is already updated.

This way Google Play Store doesn't keep trying to update microG (gmscore). So battery consumption decreased.

But I face a problem with location accuracy. I found only 3 location modules bundled with your installer.

Would you please add one or two more location modules, because Mozilla location module never worked for me in our area (India).

I tried installing other location modules from fdroid , but sometimes they work.
[Miscellaneous Android Development] kurtn:
Bundled location providers should not give better results than installed as user app. There is no good network location provider for India. Except Google.

Suggestion: use déjà vu and map your neighborhood with open map app and enabled satellite location.
[Miscellaneous Android Development] dalda123:
I flashed minmicroG earlier. Whenever I enabled Mozilla location module it was showing wrong location. But disabling Mozilla location module and enabling other modules showing accurate location.
[Miscellaneous Android Development] kurtn:
A really accurate location is probably from your satellite receiver
[Miscellaneous Android Development] dalda123:
No, it changes according to the selection of modules from same place.
[Miscellaneous Android Development] ale5000:
I plan to add more backends in the future.

Every backend may work differently in different areas, the best thing to do is try them all and see what works best.

It depends, since on newer Android versions background execution is severely limited but many limitations can be avoided by tweaking something on the system partition.
[Miscellaneous Android Development] ale5000:
Released microG unofficial installer v1.3.0 beta, the link is on the first post.

Changelog

- Add support for mounting system partition at /mnt/system (@mjenny)

- Improve compatibility with legacy shells

- Fix remounting system as read-write

- Rewrite system mounting code

- Fix debug log path when sideloading (thanks @mjenny for the help)

- Auto-root if needed in "zip-install.sh"

- Update microG Service Core to 0.2.27.223616 (now using MapLibre)

- Add full support for automounting A/B slot partitions (thanks @mjenny for the help)

- Add full support for automounting dynamic partitions (thanks @mjenny for the help)

- Support DEBUG_LOG and FORCE_ROOT env variables in "zip-install.sh"

- Fallback to manual parsing of key events when keycheck fails, fix #5

- Support live setup under "zip-install.sh"

- Update NewPipe to 0.25.0

- Support and enable live setup on all devices

See the full changelog.

Notes

This isn't a great period, so if you want to help me you can donate to me using the "Sponsor" button at the top of this repository.

Donations will always remain optional.
[Miscellaneous Android Development] ptizz:
Hi, how to anable?

Android 13.
[Miscellaneous Android Development] ale5000:
What do you mean?

It is a flashable zip that can be installed from recovery or from adb/terminal.
[Miscellaneous Android Development] ptizz:
I installed from recovery, but "Permission to access location in the background" and "Permission to receive text messeges (sms)" are not active.

Spoiler content hidden.
[Miscellaneous Android Development] ale5000:
Strange, it worked on all phones where I have tried it.

But you can probably fix it just by using this:

adb shell "minutil -i com.google.android.gms"
[Miscellaneous Android Development] ptizz:
adb shell "minutil -i com.google.android.gms"
Reinstalling com.google.android.gms...
Failure [INSTALL_FAILED_SESSION_INVALID: Not allowed to update system package to the same versionCode]
/system/bin/minutil[360]: ${*?}: bad substitution

P.S.

Factory reset and everything started!
[Miscellaneous Android Development] ale5000:
I'm glad you have fixed the problem.
[Miscellaneous Android Development] ale5000:
New test builds with support for uninstallation.

During flashing, it will ask via LIVE SETUP if you want to "Update / reinstall" or "Uninstall" (it won't ask it on the first time).

EDIT: Links removed.
[Miscellaneous Android Development] tom.android:
Howto install by adb/ terminal.? I can't find doc.
[Miscellaneous Android Development] ale5000:
Put the zip in the microSD or in the internal memory of the phone.

Then (via adb shell or terminal):

cd /path_of_the_memory
unzip ./microg-unofficial-installer-v1.3.0-beta-by-ale5000-signed.zip zip-install.sh
sh ./zip-install.sh ./microg-unofficial-installer-v1.3.0-beta-by-ale5000-signed.zip