yashsingh1/xdaforums huggingface dataset:
[OnePlus 5T  Guides, News, & Discussion] DoR3M3:
To begin with, I edited over the "DEODEX OR FAKEGAPPS" section, "Signature Spoofing Checker" is a BUG, so forget it saying disabled, FakeGapps is working, so use FakeGapps and you are good to go!

As far as everything else, if you follow the GUIDE 100% EXACTLY IT WORKS! I've done this for almost a year on 3 devices so far, and I just did it on 5.1.5 and 5.1.6 without any problems!

You must follow the guide, do not divert from it, like how you used Root Browser as example, you don't need to do this, and that means after the OTA with 5.1.6, the OTA update for 5.1.6 should of wiped your phone clean, then you start from there.

Personally, after the 5.1.6 OTA update, I booted into TWRP and made a BACKUP, then if you mess up, you wipe everything, Dalvik, cache, system, vendor, data and then RESTORE the backup...

P.S. I am now going to start out on 5.1.6 and do the entire Guide, then I'll come back and post the images of 5.1.6 so you'll see it was done with success... :)
[OnePlus 5T  Guides, News, & Discussion] bluegrass55:
Thank you. Looking forward to it. Will attempt again during weekend. I formatted device and installed stock 5.1.6 so no OTA.Don't want to give up especially as you've gone to some effort.
[OnePlus 5T  Guides, News, & Discussion] DoR3M3:
By the way, the apps you debloat, that ended up getting updates, now appear to you as user installed apps with the ability to uninstall them in the Settings or the App Drawer is what I meant to say, which I'll add that in. So since they turn into user installed apps, that's why you don't need anything to uninstall them...

P.S. [MENTION=4277759]bluegrass55[/MENTION] Sorry it took longer then expected, got tied up a bit with some things, anyhow it's all done and as I mentioned before FakeGapps works fine in 5.1.6, it's just a bug with the Signature Spoofing Checker, so ignore it. I did a DEODEX on my phone for 5.1.6 and here's the screen shots!

I made some changes to the post, so be sure to read it all over, and follow it step by step exactly! If you deviate just a little, it's enough to screw up the entire process and you'll have to start over, it's that picky!

P.S. I went back looking over your replies and you mentioned Xposed through TWRP, and I never mentioned installing Xposed this way. Please be sure to follow the guide and use the Magisk Module for Xposed. I'd also stick to 5.1.5, 5.1.6 hasn't been Officially released yet, just a partial rollout.
[OnePlus 5T  Guides, News, & Discussion] bluegrass55:
Please ignore my last message. Couldn't resist doing it again ( don't want to be defeated). Have Decrypted phone to see if it makes any difference.
[OnePlus 5T  Guides, News, & Discussion] bluegrass55:
Re did the install for the 4th time and wow. Phone runs so much better.

Just two questions.

1- Using Root Browser I notice that GooglePackageInstaller.apk is still present is system-priv. Since it's not included in the Debloat list am I right to assume it should be in the system?

2- Face Unlock function is still present and works. Since it needs Gapps to work does it mean I've missed something?I have checked several times and all the items in the Debloat list have been removed.
[OnePlus 5T  Guides, News, & Discussion] DoR3M3:
GooglePackageInstaller.apk what does it sound like? ;) ---> https://developer.android.com/reference/android/content/pm/PackageInstaller

If you followed the "DEBLOATING APPS SYSTEMLESSLY" then you didn't miss anything. This is all that microG mentions;

https://github.com/microg/android_packages_apps_GmsCore/wiki/Prerequisites

microG is your Gapps Google Services/Framwork now, so anything that relys on the Google Services/Framework microG is the replacement!
[OnePlus 5T  Guides, News, & Discussion] DoR3M3:
Hi Rommco05, I mentioned this in the last section;

I WANT MY GOOGLE & STAY PRIVATE TOO

Basically you just have to try with each app and play, I've had one app work, by just keeping my wifi and mobile data off while it started a few times and afterwards it was fine.
[OnePlus 5T  Guides, News, & Discussion] bluegrass55:
Google Play Services

Was patting myself on the back for a job well done on my 4th attempt but when checking for app updates via Yalp saw this available update for Google Play Services.

During the initial install steps I got this message when running the uninstall command,

java.lang.IllegalArgumentException: Unknown package: com.google.android.gms.

When everything was setup checked a few days later for app updates this popped up again.So ran the command again with result : Success

Ran the command again just now and got "Delete failed Internal error.....

It is not showing in the System application list.

Otherwise phone and all apps apart from 2 (BT Sport & CyberGhost VPN) are working. In the AFWall+ and Lua Pro log there is no trace of Play Services.
[OnePlus 5T  Guides, News, & Discussion] DoR3M3:
Before installing microG, did you Wipe the Dalvik Cache and Cache in TWRP?

So under Settings > Apps > Application List you did not see the Google Play Services?

It's best to visually check the presence for com.google.android.gms in /data/data before you installed microG.

When you install microG it creates com.google.android.gms as it's own replacement for Google, don't remove it when microG is installed, it's not going to help, unless you didn't remove it when Google was installed.

Your screen shot, the puzzle piece icon with the colors is microG not Google, same colors as the C in my Avatar too. ;)

I installed Yalp to test this, I attached a screen shot but mine says "microG Services Core", you'll notice the same icon.

So even if the output showed Unknown package: com.google.android.gms., maybe at some point in time it was there and you missed it, is all I can think, or this is a bug in Yalp, or there was some small trace left over. But in all the times I've done this, with this guide and following the steps exactly, I'm not sure how this is even possible.

I went back and edited over the post, that no matter what output response you get from the command, to also visually check /data/data.

P.S. microG will not install if Google Play Services is installed.
[OnePlus 5T  Guides, News, & Discussion] bluegrass55:
As you say it wouldn't work if Play Services was still present and yes it isn't showing in the Apps/Application list. I've included screen shot of data/data location (hopefully it is the correct location).

I'll do it again if there is a ROM update or I manage to learn Compiling >Deodex.
[OnePlus 5T  Guides, News, & Discussion] DoR3M3:
If you read the guide, I already explained there is no shorter way to accomplish this, if there was I would of made a smaller quickie guide.

This is already a simple step by step guide, each RED section is the steps to follow, one at a time in order.

You need to have some basic information in the steps because there are a lot of things going on with this process, and not complicated either, but this is not just like uninstalling an application and installing an application. You are learning how to replace the Google Framework with microG and what is needed to accomplish this, so there needs to be a little information, and not just steps.

It would help if you elaborated on what you were having problems with? Only telling me you couldn't figure it out isn't helping...

Did you start this out on a Clean/Install of OxygenOS? If you didn't miss any steps, then something was left behind, typically created with updates getting into the system, especially if you also installed and update some type of Gapp.

As long as you do this on a fresh clean rom of OxygenOS, and I do mean, like you wipe the phone, install OxygenOS and start the process, you will not end up with this problem.
[OnePlus 5T  Guides, News, & Discussion] bluegrass55:
Install Steps: Xposed Modules

I have a question in the Xposed Modules section of your install instruction.

You state "Install FakeGapps if you did not deodex the rom, and then apply the signature spoofing NanoDroid-patch!" then reboot.

So my understanding is that I install the FakeGapps Xposed module then reboot to TWRP and flash NanoDroid-Patch https://xdaforums.com/app...icrog-t3584928

Is this correct?

On a separate point.

At my 4th install attempt of your guide I had a working "Stock Oneplus" microG ROM. Went back to non microG version to test a non functioning app (BT Sport). For one reason or another despite multiple re-installs of microG setup either apps keep crashing or almost all of them want Google Play Services.Using the recommended methods I looked for " com.google.android.gms".

adb uninstall com.google.android.gms

Returns

"java.lang.IllegalArgumentException: Unknown package: com.google.android.gms"

rm -rf com.google.android.gms

Returns nothing.

Using Root Browser to search for it returns this screenshot.

I'm now on Lineage microG which surprisingly for once everything works (except BT Sport) and missing VOLTE.
[OnePlus 5T  Guides, News, & Discussion] DoR3M3:
You misread, it's one or the other;

Deodex & Nanodroid-patcher or Xposed FakeGapps by itself.

This is just a simple basic Deodex if you choose this option, which allows to avoid the Xposed module. I mention Kitchen now in the guide if you read back at the top about being a Full Deodex, which has greater customization benefits for those that understand/neeed/want a Full Deodex.

For com.google.android.gms this is mentioned in the guide about what you are seeing, so you don't have it which is good, if you are talking about at the beginning of the guide when you check to remove this...

microG is Development Software it is by no means in 100% Stable working order with everything going to work, and I will be sure to add this into the guide, so people understand this, who don't know about microgG. I wish everything worked, but hopefully if someone submits bug reports to them, things will get fixed in time.

Without knowing what apps are crashing, there's no way to know what is going on, but you seem to have a really good grasp now, so I'd assume it's just like the BT issue, not supported for the moment...

Do all the other apps besides BT have problems in LOS? I believe you said BT ran in an older version.

If the latest LOS is using the same versions, everything will run the same, unless LOS has done something different, applied patches, or using different versions etc...

P.S Original Post edit changes added;

microG is a work in progress, all Gapps will not work 100% with microG! If you are looking for everything to be perfect, it's not. microG is about freeing yourself from Google and for the Gapps that don't work, you need to willing to live with it, or find alternatives, which there are plenty of them out there!

microG is Freedom & Privacy from Google, and with it unfortunately comes sacrifice!
[OnePlus 5T  Guides, News, & Discussion] bluegrass55:
Thanks for clarifying the Nandroid Patch part.

As for the apps (all most all) crashing is a new thing. I never had an issue before even with this microG setup. For example the Guardian news app as soon as it's launched I get notification "This app will not work without Google Play Services". Then the app crashes.

They work on Lineage microG. So either my device has been rommed too often & is having a nervous breakdown or app updates are not liking this setup.

I'm going to try again now (down to 2 and a half hours start to finish) using older versions of the app. All this headache came about just for 1 app BT Sport.

Do the items in the screen shot show presence of the Google Gms?
[OnePlus 5T  Guides, News, & Discussion] DoR3M3:
So a new thing, as in the apps were working before?

If you flash the latest LOS microG, all the apps are working? Don't worry, there's no such thing as flashing it to much.

Please tell me what apps besides BT you are having problems with and I'll try to test them.

I downloaded the latest LOS microG and it shows the same apps/paths, versions, and the same signatures...

If LOS has not made any changes/patches, etc. to the ROM, then it will work too on OxygenOS.

The screen shots in the guide do not have Google Gms, otherwise microG will not install.
[OnePlus 5T  Guides, News, & Discussion] bluegrass55:
After 2 installs tonight I've finally found the cause of my issues.

I had never paid much attention to the location part of the microG instructions but for some reason decided to for the previous 4 installs.

Allow "High Accuracy Location, Wifi, Data & Google device registration needs to be ON" instructions part of your microG setup was the cause. Even allowing these and following the guide to the letter I never managed to have all 6 items ticked.

At my second attempt tonight I ignored location/data/wifi part and now have a fully working device with no app crashes or screaming for Google ( excluding BT Sport-Cyberghost) requests. I've included before and after screenshots of the same app.

Not normally up this late but had to get this poxy Google thing out of the system.
[OnePlus 5T  Guides, News, & Discussion] DoR3M3:
I read what you said, but I want to be clear, you said for this microG Setup part, you left it all off?

Make sure WiFi, Mobile data, "Location ( Mode - High Accuracy)" are all turned on in the phone before opening microG!

So you had for the Wifi/Mobile Data/Location all off, then you set up the permissions in microG?

The Location part is for the Setup and Device Registration... Device Registration is when you use Play Store, the Account, or any other Google Application that might wish to register to Google, once all the Registering is done, then you can turn it OFF, as long as you don't need to use "Location", or an application requires Location.

As far as 6 items not ticked, please take a screen shot so I can see it which one you are talking about.

So from the screen shot I see this is working now?

If the Guardian app you think worked because of keeping the network and location off, I'll test this on my phone, where I didn't do this and see if it doesn't work too.

Personally I'd rather tinker and not have an app that needs Google and find and alternative...

Remember microG is a way to circumnavigate Google and in that, sometimes requires tinkering to figure out getting something to work without Google.

I wish it all just worked but it doesn't.

I also installed the latest LOS, and the latest BT doesn't work in it, so it's not just the idea here that this is just a Play Services issue particular to BT, but this also shows us that the overall Play Services support also has the same problem in LOS, I just want you to realize that. Because the way you are doing it in this guide is the correct microG way! ;)

What is the last thing you mentioned about? --> Google thing out of the system ?

Cheers

P.S. One thing that is very clear is that we do need an update to microG, but Setialpha does release fixes quicker than microG, so it's worth a try to update microG by adding in his F-Droid repo; http://nanolx.org/fdroid/repo/
[OnePlus 5T  Guides, News, & Discussion] bluegrass55:
Yes I understand that we are tinkering with how Google and in some part Oneplus wants us to use this device and it will always be imperfect. But from my experience of using multiple devices over the years it is always the best option to use the setup from the manufacturer minus the Google stuff. Both in terms of battery and privacy.

The apps I'm using now have been a stable part of my setup for years and don't miss Google or it's location stuff (excluding BT).

As for my current setup & apps everything is working. With a custom EAS kernel (RenderZenith OP5T) device is on turbo.

Perhaps it would be a good idea to edit the microG setup title to include what you have mentioned i.e if your app needs or depends on Google registration/location setup then follow the setups.

Now to get Google Pixel camera to work.
[OnePlus 5T  Guides, News, & Discussion] DoR3M3:
Look back up at the P.S. at the end of the post, I edited it over.

Having the network off and location should not have any effect here on apps running or crashing, but I'm going to test this with the Guardian on my phone and see, and I'll let you know.

You have Location turned off on your phone, that is why it's unchecked, turn it on, then see if you get the 6 checkmarks and let me know.

P.S. For those following this post, I was given a list of applications to test, all ran fine on my device. Possibly something to do with either FakeGapps or the FakeStore...
[OnePlus 5T  Guides, News, & Discussion] bluegrass55:
I added the repo in FDroid which gives the option to upgrade but get this error.

Downloaded the zip and extracted the apks. There are 2 versions in the zip. GmsCore NanoDroid & GmsCore official. Do you know which one I should use? I'll test this on my backup devices (Nexus 5) in the next few days.

https://downloads.nanolx.org/NanoDroid/Beta/NanoDroid-microG-20.2.90.99999999.zip

As for the location thing the last box is still unticked even after your suggestion. I'm not really bothered about and it doesn't effect me. Nevertheless it would be good to have it as it should be. Just did on my N5 and it's enabled which should be as it's on Lineage microG.

The Google comment was about getting it out my system.:D
[OnePlus 5T  Guides, News, & Discussion] DoR3M3:
For the screen shot did you toggle on Expert Mode in F-Droid so that the Privileged Extension would be enabled?

If you are just going to download the zips, you'd have to check with NanoDroid to see what version that is, just do the update in F-Droid by adding in their F-Droid Repo.

After doing an update through F-Droid, you then have to follow the MICROG section of the Guide to also manually add into the system the apps in their correct locations as well as doing the permissions over...

Make sure Location is on High Accuracy then run these permissions over and reboot;

adb shell
su
pm grant com.google.android.gms android.permission.ACCESS_COARSE_LOCATION
pm grant com.google.android.gms android.permission.ACCESS_FINE_LOCATION

After you reboot check the Phone Settings > Apps > Application List > microG Services Core - Permissions and make sure Location is ON.
[OnePlus 5T  Guides, News, & Discussion] bluegrass55:
Yes the Privileged Extension was the first I checked when I got this error. It was enabled.

Location thing still the same after the adb commands and reboot.
[OnePlus 5T  Guides, News, & Discussion] DoR3M3:
Is Google device registration - Enabled? If it was, turn it off then back on, then follow everything else below.

Just turning Location back On in the phone is all that's needed to have this checked. This section in microG implies, that Location is either Disabled or not Supported.

Also before doing any of the steps below, turn Location off then back on, then go out of the Location settings, and then go back and see if microG Services Core is listed in the "Location"? If it is not listed this is the problem, it needs to be listed there, but give it a minute or two, with only Wifi on, it might take a bit to show up if it isn't there. Make sure Loction is on High Accuracy, then go to Apps > Application List > microG Services Core - Permissions, and make sure Location is also turned On.

Also turn Wifi and Mobile Data off, then turn Wifi back on, only test for now with the Wifi.

The Name of the Game in microG, anything you are working on, related to the phone, as it stands for the moment, "Location" you have to just play with everything like I am showing related to Location in the phone, sometimes this is all it takes, just tuning things on and off.

Also the UnifiedNlP Settings in microG for the backends, uncheck them and then check them, this disables and enables the backends over.

Next if the problems still persist follow the GMS PROBLEMS section, but look to make sure in /data/data com.google.android.gms is removed, then wipe the Dalvik cache and cache in twrp, reboot and see if this helps.

If this doesn't help, there could be a permission problem with either microG's apps, GmsCore or GsfProxy if they weren't applied correctly, that would be the next step, to run the permissions over for both of these, and with the MICROG PERMISSIONS section, I recommend if you didn't do it before, to run these from the computer in a terminal/command prompt.

P.S. Is this the original microG from F-Droid, no updates?
[OnePlus 5T  Guides, News, & Discussion] bluegrass55:
Don't know what I did but location thing is sorted.

Yes this is the original microG from F-Droid. Managed to get past the extension privilege thing when trying to upgrade and now have this message.
[OnePlus 5T  Guides, News, & Discussion] bluegrass55:
BT Sport

I've managed to get this app working on my Nexus 5 this way.

1-Flashed normal Lineage 14.1 (non microG) without Gapps, rebooted ,done settings.

2-Flashed Magsik 18 and Nano-Droid patcher Beta 20.2.90.99999999, rebooted.

3-Flashed nano-Droid Beta 20.2.90.99999999

4-Allowed microG permissions, Installed latest version of BT Sports app and VOILA

I understand that this is not stock ROM and was already Deodex but since it didn't work with the official microG Lineage ROM your assumption that it needed a new version was correct.

https://downloads.nanolx.org/NanoDroid/Beta/NanoDroid-20.2.90.99999999.zip

https://downloads.nanolx.org/NanoDroid/Beta/NanoDroid-patcher-20.2.90.99999999.zip

Would I be correct in thinking that if I had a Deodex Oneplus Stock ROM this method would work or since it's stock even being Deodex would still require all your steps?
[OnePlus 5T  Guides, News, & Discussion] DoR3M3:
Did you tell me in IRC that you had XPrivacyLua installed? After my last reply, I forgot to mention, that something you installed might of caused this, like XPrivacyLua...

Anyhow glad it's working, I've never seen it before not working, other areas more complicated, but Location just always works.

First question, unless typo, why did you flash NanoDroid-patcher twice?

LOS is a Deodex rom, all Custom Roms are also suppose to be in a state of Deodex, that means, you just start at the guide section of where you are already Deodex and proceed from there with the guide.

On the Nexus 5 BT is working? Also what version of microG are you using?
[OnePlus 5T  Guides, News, & Discussion] bluegrass55:
This time it was a permission Network access in XprivacyLua (your "favorite" app) that was the cause of the location thing. But on previous installs Lua wasn't installed till the microG setup had finished.

Regarding the patching thing it was my error of flashing the patch twice.I had never flashed the full version of NanoDroid before as I didn't want all the extra stuff that comes with it.

Yes as I mentioned Lineage was already Deodex hence this method worked. I wonder if it would be as easy as this on Stock Deodex ROM?

And yes BT Sport app has sprang back to life and is working. I'm not sure the microG version. It's whatever that was included in the beta NanoDroid zip 20.2.90.99999999. I didn't install it separately.
[OnePlus 5T  Guides, News, & Discussion] DoR3M3:
I would stay away from XrpivacyLua and just use AFWall+.

There is NanoDroid and there is NanoDroid-microG, also if you want the latest version of microG from NanoDroid I mentioned before, after installing the official version, all you have to do is add in the Nanodroid-microG repo and update microG in F-Droid.

http://nanolx.org/fdroid/repo/

You asked about the Deodex, I mentioned it in my last reply;

LOS is a Deodex rom, all Custom Roms are also suppose to be in a state of Deodex, that means, you just start at the guide section of where you are already Deodex and proceed from there with the guide.

Open up microG and look at the bottom, it shows the version number. ;)

Cheers
[OnePlus 5T  Guides, News, & Discussion] bluegrass55:
Hallelujah- BT Sport working:D:D:D:D:D:D:D:D:D:D

I finally managed to get BT Sport app to work on the 5T by using,

FakeStore

GmsCore (official)

GsfProxy

Extracted from the latest Beta Nanodroid zip 20.2.90.99999999.MicroG version is 0.2.6.14799-dirty-118.

I had problems updating as per your instructions, so did it as a fresh install.

Now to get all the location boxes ticked again. Don't know why I keep having problems with it.

The tab tip in TWRP was very handy. Saved a lot of time.Thanks.::good: