yashsingh1/xdaforums huggingface dataset:
[Miscellaneous Android Development] -Happy Feet-:
Hello [MENTION=5627087]ale5000[/MENTION] I try to install microg on an Lineage ROM. But I get an Bootloop.

1. My phone is an Google Pixel Sailfish

2. Lineage OS 16 https://xdaforums.com/pixel-xl/development/rom-lineage-16-0-pixels-sailfish-marlin-t3830083
[Miscellaneous Android Development] ale5000:
Hi,

your problem is probably one of the things already fixed on github.

Could you please build it yourself as explained here, flash it and report if it works?
[Miscellaneous Android Development] -Happy Feet-:
I try it.

---------- Post added at 01:53 PM ---------- Previous post was at 01:10 PM ----------

I try it. The files under *zip content zipping and then flashing. Forget it.... Its under output ??
[Miscellaneous Android Development] guillermohs9:
Will this flashable zip work on a treble a/b partitioned device with 8.1 rr?
[Miscellaneous Android Development] ale5000:
According to a recent discussion yes (with TWRP), but I cannot grant it since I don't have a device to test.

I suggest to take a backup and trying.
[Miscellaneous Android Development] guillermohs9:
I will try it in a few days and report back. I'm switching to an a/b device (kind of new to me) but it'd be nice to flash a ROM and use microg. I really don't want gapps.
[Miscellaneous Android Development] Troyzer107:
Help device not found in Find my device app

Installed correctly had a couple force closes and had to re allow permission but when I went into my Fundy device app my device isn't in the list anymore my location works and I'm signed into Google although the Google app says I need to sign in and when I do it says a account of the same name is already on this device someone please help me if someone tries to steal my phone I'm screwed lol
[Miscellaneous Android Development] johngalt1:
I don't think the Google app will work on microg (never has for me when I've tried).
[Miscellaneous Android Development] Colossus96:
Causes bootloop in android P roms. Even with clean flash.

Tried both with rom & after 1st boot. Both causes bootloop
[Miscellaneous Android Development] MusicAlleyInc:
How do I uninstall this and restore play service, live setup doesnt present me with that option, just reinstalls..i read something about a removal script...
[Miscellaneous Android Development] marcdw:
See this post...

https://xdaforums.com/showthread.php?p=75323310

If you updated any components (like the backends) from F-Droid I would uninstall those first. After running the script (and all goes well) I guess you can flash gapps.

Other method is to just dirty flash your ROM. Make sure to remove the backup script from addon.d first.

Moto G5S Plus XT1806, BootleggersROM-Shishufied, microG (NoGapps), MultiROM, XDA Legacy
[Miscellaneous Android Development] ale5000:
Actually my uninstaller will automatically remove also updates of the installed apps (at least the one inside recent versions of my installer).
[Miscellaneous Android Development] HemanthJabalpuri:
[MENTION=5627087]ale5000[/MENTION]

Thanks for microG and useful common.sh script...

In your common.sh script move_dir_content will not move contents of dirs recursively like cp -R....

So the following to be changed

move_dir_content()
{
mv -f "$1"/* "$2"/ || ui_error "Failed to move dir content from '$1' to '$2'" 102
}

to

# move_dir <src_dir> <dst_dir>
move_dir() {
if [ -d "$1" ]; then
local entry out;
find "$1" -type f | while read entry; do
out="$(echo "$entry" | sed "s|${1}|${2}|")";
mkdir -p "$(dirname "$out")";
mv -f "$entry" "$out";
done;
if [ -z "$(find "$1" -type f)" ]; then
rm -rf "$1";
rmdir "$1";
fi;
fi;
}
[Miscellaneous Android Development] ale5000:
Hi,

have you tried?

One single mv command can move an entire folder (including all its content), I need wildcard only to avoid including the main folder itself.

Example:

folder1/file1
folder1/file2
folder1/folder2/file 3
folder1/folder2/folder 3/file 3

Using mv -f "$1"/* "$2"/ is like doing:

mv -f folder1/file1 $2
mv -f folder1/file2 $2
mv -f folder1/folder2 $2 (and this include all sub-folders and files)
[Miscellaneous Android Development] HemanthJabalpuri:
I tried...yours..

But folders are not moving recursively...!

I want to use mv like package_extract_dir function of edify.....
[Miscellaneous Android Development] HemanthJabalpuri:
I tried...yours..

But folders are not moving recursively...!

I want to use mv like package_extract_dir function of edify.....

u0_a89@serranods:/ $ su
u0_a89@serranods:/ # sysrw
u0_a89@serranods:/ # find /system/tmp
/system/tmp
/system/tmp/Newfolder
/system/tmp/Newfolder/Newfile1.txt
/system/tmp/Newfile.txt
u0_a89@serranods:/ # find /system/tmp1
/system/tmp1
/system/tmp1/Newfolder
/system/tmp1/Newfolder/Newfile.txt
/system/tmp1/Newfile2.txt
u0_a89@serranods:/ # mv -f /system/tmp1/* /system/tmp/
mv: can't rename '/system/tmp1/Newfolder': Directory not empty
1|u0_a89@serranods:/ #
[Miscellaneous Android Development] ale5000:
My "move_dir_content" command expect to only "relocate" the folder content (if it is on the same disk this is fast and doesn't require a real file/folder move or overwrite but just changing the partition index) to an empty folder.

You are trying to overwrite previous content in the destination folder, in this case it is better to copy all the content to the new path and then delete the original files, I will add a new function with a different name (maybe move_overwrite_dir_content) for this soon.

PS: This make me think I should start documenting functions.
[Miscellaneous Android Development] VALRCIEL:
how to run uninstaller scrip from twrp?

my device stuck in loading
[Miscellaneous Android Development] Oehrly:
Extract uninstall.sh from the zip file and run it from the terminal in TWRP.

You might need to mount /system before. I'm not sure about that.
[Miscellaneous Android Development] VALRCIEL:
thank you :D
[Miscellaneous Android Development] 3to4:
Everything went well or almost

Thank you very much for this great application!!

I have always wanted to get rid of Google play services, but I had read in the official thread that I needed to remove gapps before installing microG. So, I was wondering what and how I should remove gapps. BUT, today somewhere in this thread you said your unofficial installer removes gapps in conflict.

So, I decided to try.

I am running TW Lollipop (rooted and deodexed) in my Galaxy Note 3.

I used Tingle to enable spoofing (framework.jar) and I just flashed your uninstaller with Philz Touch, without uninstalling or removing anything. Then, I installed UnifiedNlp. (Actually, not necessary as it installs with the unofficial installer, I learned later. So, I uninstalled it.) Everything seems to work as before like Skype lite, Whatsapp, Line light, Quickpic, Firefox, Tomtom, iGO, etc.) and Google play services is gone!!

Thank you again for your great installer!!

One thing I noticed is that the installed New Pipe is not working with error messages. So, I deleted it.

PS: My aim is to avoid using Google related applications, like sync, calendar, etc. as much as I can. So, I had deleted many (maybe more than 100 apks) from my system.
[Miscellaneous Android Development] marcdw:
[MENTION=1957696]3to4[/MENTION], If you had an older version of NewPipe, there was some kind of issue I think with Google (servers or something, don't remember). Newer versions of NewPipe work fine it seems. Maybe give it another try.

ZTE Axon 7 A2017U, AospExtended v4.6 ROM, Radioactive v2.4 Kernel, microG (NoGapps), Multiboot, XDA Legacy
[Miscellaneous Android Development] 3to4:
Thank you. New Pipe 0.16.0 is working!!
[Miscellaneous Android Development] 3to4:
Questions about UnifiedNlp

Thank you again for this great unofficial installer!!

I flashed this unofficial installer in my Galaxy Note 3 rooted and deodexed, and everything seems to work.

I just have questions about UnifiedNlp.

In the beginning, after flashing the unofficial installer, I also installed UnifiedNlp.apk. But, after some reading, it seems to me that the unofficial installer includes UnifiedNlp. So, I don't or I shouldn't install UnifiedNlp. Is this correct?

Can someone confirm this?

Another question is;

Self-Check shows all items are checked, except the last item "Network-based location enabled" I stayed both wifi and data connection "ON" for some time, but still this box is not checked.

What does this mean? Is this ok? My GPS is working.
[Miscellaneous Android Development] marcdw:
UnifiedNlp is built into microG core so yes, no need to install it separately.

With the last box it'll sometimes be checked after using something that uses location like a map or weather app. It may come and go. Also set location to High Accuracy maybe.

Moto G5S Plus XT1806, BootleggersROM-Shishufied, microG (NoGapps), MultiROM, XDA Legacy
[Miscellaneous Android Development] sherindroid:
Thanks a lot ....for this superb mod

Helped me to solve Safety Net issues
[Miscellaneous Android Development] levone1:
[MENTION=5627087]ale5000[/MENTION] (or anyone). Flashed on stock Pie Sony XZ2c and no boot. I haven't looked too much into it yet, going to mess around more, but just wanted to check in here in case anyone knows something I'm missing. Any ideas?

Thanks as always... I can post logs if anyone wants.
[Miscellaneous Android Development] levone1:
I got it working manually this way:

(presuming that you have signature spoofing enabled, and you made a backup if you are not going to be OK if things go wrong)

- Remove the following from priv-app: carrier services, g score, Google services framework, phonesky, velvet. (might be fine to keep some, test if you want)

- reboot, and you continually get fc messages about Google play services and play store, and they both still show on app list as installed. Click on app info and the Uninstall button is available. Play store Uninstalled as usual, but when I went to uninstall play services, I got a pop-up screen about 'find my device' app, ("this is a device admin app, are you sure you want to disable and uninstall it?". Click yes, and uninstall, then you go back to play services app info and press uninstall button again, and this time you get the regular uninstall confirmation screen.

- Install fdroid and enable microg repo and install all apps from it, (unless you want to use play store, then don't install the 'fake store' app, just the other 3).

- go into zip file from this thread, and install the 4 apps in the 'app' folder, (location apps and new pipe), normally, and copy files from etc and framework folders to the appropriate places, (overwrite the ones that are there already), and, if you want Play Store, and you didn't install fake store from fdroid, install play store recent app.

- open Microg settings app and set it up, and then reboot.
[Miscellaneous Android Development] Bilge656:
I tried using this installer to see if it would check UnifiedNLP in Microg's self-check. It made my phone bootloop. Pixel 2 XL LineageOS 16 Unofficial patched with NanoDroid.
[Miscellaneous Android Development] marcdw:
Since you've had issues with other setups then this installer didn't cause the bootloop. See NanoDroid thread for my quick, but probably unhelpful, findings.

LG G3 D851, Paranoid Android 7.3.1, NanoDroid, MultiROM, XDA Legacy
[Miscellaneous Android Development] MobWreker:
Failled Install: Note 2 (GT-N7100)/Stock 4.4.2/FakeGApps

I tried an install last night, after about 30 mins of pulsing Samsung Logo and blue LED my Note 2(GT-N7100)/Stock Android 4.4.2/FakeGApps booted into TWRP.

Is there anything I can do to salvage this with TWRP, will the uninstaller revert the device back to previous state, or do I need to recover?
[Miscellaneous Android Development] levone1:
Anyone ever seen this... I had Micro G all set and working fine, and I updated my official stock Pie fw to latest security patch, and then went to reinstall, and everything checks out, and seems to be installed and working fine, but when I go to sign in, the last phase hangs, and ends with some kind of 'try again' message, (after entering email, and password, and clicking 'agree'). Strange thing is that I get a notification about installing updates, and when I click it, I go to Play Store update screen, and apps update, but I can't get to any other screen, and account info in settings always shows no account added.

I've tried wiping data for all Google and MicroG apps, and removing setup wizard

Logcat shows error about BufferQueue abandoned, (see screen shot)...

Thanks
[Miscellaneous Android Development] natsousa:
I'm having the same issue. Google Pixel, Lineage 16 and I get stuck in a bootloop. The problem is I know very little of building from Github on my own. Is there a simple explanation for me to install your zip with pixel?
[Miscellaneous Android Development] CStadler:
Try removing your account, turn off automatically sync data, reboot, add account, reboot, and then you can turn it back on and see if your problem is resolved
[Miscellaneous Android Development] marcdw:
[MENTION=6283426]levone1[/MENTION], not sure but some of your symptoms sounds like what a lot of folks are dealing with. Chrome/Chromium webview v74 on microG is causing login issues. If you do have v74 try downgrading or uninstalling updates of Chrome or Google webview or Bromite webview. Logins work fine with v73 or lower.

EDIT: Ninja'd. Or what CStadler said. [emoji16]

LG G3 D851, Mahdi v2.9 ROM (4.4.4), microG (NoGApps), MultiROM, XDA Legacy
[Miscellaneous Android Development] euphore:
Cant sign my google mail account :(

I installed the script on my a3 2017, on fresh LOS 16 (pie). Selfcheck always passed.

Its possible to to Sign Youtube, but absolutely not able to sign in Gmail. (All authorizations set right..)

Im running out of ideas what to do, please help.
[Miscellaneous Android Development] Indie Zex:
I have always used older Gmail-7-6-18-release version with this micro g. Newer ones never managed to work for me. Even then, procedure is this: first install apk, then go to settings / all apps / gmail and give the app all required permissions, then open it in the end. And don't forget to disable gmail auto update on play store :)
[Miscellaneous Android Development] euphore:
Yes i will try, thanks.. But im bit confused, cause it look like most people run it without problems..?
[Miscellaneous Android Development] Indie Zex:
I honestly don't know. I'm interested to find out from someone else as well, cause I would like to use newer versions of apps too :)
[Miscellaneous Android Development] euphore:
I got a Samsung A320FL and i'm using LOS 16 (https://xdaforums.com/samsung-a-series-2017/development/rom-lineageos-16-0-t3883495)

The device is rooted with magisk. I am definitely not able to sign into Gmail. I refreshed and wiped the whole System many times, and nothings gonna work.

If I used an other email app, like Fairmail it works!, but not the Gmail App. Always ask for mail, and than tell me, the mail is already registered. (If i try to synch my Data in den Account settings, its not possible..)

Further I can log into Maps, but if i sign in, i Cant preload Maps, only if I sign out again.

Calendar is working bit strange but works. The microG Signin window opens, and if i go back, i can use my Calendar as usal.

Edit: and i cant sync contacts at all. There is no contacts menu in the account settings. Nothing. Tried everything :( sync addon ist working

Can anybody explain me, what I do wrong? I wipe dalvik,/ Cache.. everything.

Need your help guys. Thanks

EDIT 2:

After install of the google sync zip. i am able to sync contact!!!

Still no Gmail APP, but other mail apps. its allright. Cant sync Whatsapp to import Data. but okay, i do it local..
[Miscellaneous Android Development] JuniorCaesar:
did you apply signature patch? if not, you can use NanoDroid Patcher

also, you can use older versions of gmail, recent versions always failed at me
[Miscellaneous Android Development] euphore:
I use fakegapps. Signature proof is working.
[Miscellaneous Android Development] devilhopper:
Is there an unofficial uninstaller as well?
[Miscellaneous Android Development] Oswald Boelcke:
I'm not convinced if I correctly understand - if not, I apologise.

The unofficial installer zip-file contains the "uninstall.sh".
[Miscellaneous Android Development] devilhopper:
Never mind. I was able to uninstall using Link2SD.
[Miscellaneous Android Development] ale5000:
Yes, uninstall.sh is included in the zip.

Currently must be extracted and executed manually to uninstall.

Link2SD will only remove the apps but many other things will remain (and possibly causing problems, also bootloops on newer Android versions).
[Miscellaneous Android Development] ale5000:
I have released a new version now.

It doesn't yet include the fixes for the problems with the permissions that some people have but it include a lot of updates that fix many major problems including the ones related to the Google account.
[Miscellaneous Android Development] ale5000:
I have released a new version.

Can you please take a backup of your phone, try it and report if it works.
[Miscellaneous Android Development] natsousa:
Unfortunately it does not work. These are the steps I took:

1. Wipe, and install ROM with Magisk

2. Install EdXposed and enable signature spoofing via FakeGapps module

3. Flash your updated zip

4. Lineage boot screen works for a few minutes, then I got sent back to TWRP

Thank You for trying!
[Miscellaneous Android Development] rayman95:
You should try nanodroid patcher.....

Wipe and install ROM then patcher and install ale5000 zip...
[Miscellaneous Android Development] levone1:
Thanks - I have all boxes checked for the first time in a long time... I did a manual install on Sony Xperia XZ2c, latest stock Pie, with July patch...

(note: also have xposedgmscoreunifiednlp installed via EdXposed)
[Miscellaneous Android Development] niishou:
Hi, needing some help.

I'm running LineageOS 16, installed latest .zip and all boxes are checked. But when I try to log-in, it's stuck on "Just a sec..." screen forever. I tried installing from different sources (from microG.com, F-Droid and your installer) and it's always the same. This installer is the first one showing all boxes checked, others were missing the correct signature box, but it gets stuck in the same screen anyway.
[Miscellaneous Android Development] bvzpiranha:
Hi everyone!

I've a question:

once I installed microg with this installer it is possible to update with f-droid? And it'is a good thing?

Sorry for my bad english.

Thanks in advance
[Miscellaneous Android Development] marcdw:
In general, yes. If the signatures aren't different or changed. Add the microG repo and it should show updates.

https://microg.org/fdroid/repo I believe.

ZTE Axon 7 A2017U, Candy7 v5.2 ROM, Google free - no microG, MultiROM, XDA Legacy
[Miscellaneous Android Development] ale5000:
Look at the contents here.

It will tell exactly what it can be updated through F-Droid.
[Miscellaneous Android Development] NightFox029:
Hi. Is there any uninstaller for this available?

How can I remove microg and related apps from my device without reflashing the rom?
[Miscellaneous Android Development] mrrocketdog:
check post #1153. literally one page back. search is your friend [emoji3]

err on the side of kindness
[Miscellaneous Android Development] NightFox029:
Sorry about that

Thank you :)
[Miscellaneous Android Development] bvzpiranha:
Thanks for your answer!
[Miscellaneous Android Development] NightFox029:
Hello,i executed uninstall.sh on built-in terminal on my recovery,it shows deleted,but when i reboot all microg and related apps are still installed,what should i do?
[Miscellaneous Android Development] hack_rid:
Hey,

I flashed the installer zip via recovery onto my Lineage 16 (Pie) Android and now it's rebooting into recovery after it has been showing the boot animation for 5 minutes.

Is there a "uninstall" zip I could flash to remove the changes made to the system?

BR
[Miscellaneous Android Development] Oswald Boelcke:
A search in the thread led me to my own post here. Two posts farer the dev stated.
[Miscellaneous Android Development] hack_rid:
thanks for your reply.

how do I run this script?
[Miscellaneous Android Development] Oswald Boelcke:
Exactly, extract the uninstall.sh from the zip and run from terminal in TWRP.

Alternatively, it might also work if run in a terminal as root. Maybe, you've to mount /system before.

However, please be aware that I never did this myself, as I always used a different µG installer.
[Miscellaneous Android Development] hack_rid:
thanks again

after running the uninstall script, the phone still bootloops

any hint how to proceed from there?
[Miscellaneous Android Development] Oswald Boelcke:
No, unluckily not at the moment. And currently no time to search for you.
[Miscellaneous Android Development] marcdw:
A dirty flash of your ROM _should_ fix that up. Wipe system, dalvik, and cache. Then flash ROM. You won't lose any data.

By the by, you said you have Lineage 16. No signature spoofing on that ROM so microG wouldn't have worked out too well anyway.

Moto G5s Plus XT1806, OmniROM 8.1.0, NanoDroid, MultiROM, XDA Legacy
[Miscellaneous Android Development] Oehrly:
The installer sort of works with Android 10. I used it on my phone (Oneplus 3, NitrogenOS 10) BUT I had two issues:

1. The installer checks for the 'new' system-as-root partitioning with getprop 'build.system_root_image'. This did not work for me. But I think it might be an OS specific issue and it might be fine for other people.

2. The playstore version included in the installer caused some permissions issues. While the playstore was installed I could not install apps from any sources (including FDroid and apk files).

I got it working for me by creating a modified version of the installer that always assumes system-as-root. I also replaced the playstore apk in the zip with the one from the (then) newest Opengapps Beta build.

So far everything is working fine now.

[MENTION=5627087]ale5000[/MENTION]

I can provide logs for the playstore/app install permissions problem if interested.

Concerning the system-as-root check, the Magisk installer does it without the need for some build property. Maybe it's worth implementing this in the microG installer too, for beeing more independent from OS devs.
[Miscellaneous Android Development] ale5000:
The problem of permissions will be fixed later, I need some time to rewrite the code for it.

About the system_root_image problem the installer really should work, since it doesn't work on your phone it wold be nice to have the log to discover why.

When you flash the zip press the volume up, it will enable the live setup and then enable the debug log.

After that you should have a file named debug-a5k.log near the zip.
[Miscellaneous Android Development] Oehrly:
Here is the log file.

Just out of interest (I do not know very much about the topic), can you maybe give a short explanation of the permission problem? Why does the newer playstore version work and why is that not a good (enough) fix for the problem?
[Miscellaneous Android Development] alex1452:
Playstore: google play support libraries update

When I started Google Playstore from your installer, it immediately started to do a "google play support libraries update". These libraries have been downloaded and installed. Does this take away the point of microG to not use the google libraries? How can I uninstall them and what can I do to stop the installation?

Thank you,

Alex
[Miscellaneous Android Development] multiwirth:
Hey there,

i flashed this installer to my old phone running cm10 which got unuseable if play services are installed.

Google Play services got redownloaded every boot so i thought this may fix it.

But now i can´t log in to my account.

The screen size and resolution is very small and i guess this is the reason why the log in screen doesn´t fit.

After changig the dpi, i can see the log in screen but can´t interact with the text box to enter my email adress.

Is it possible to workaround this?