Question Losing Bluetooth Pairing on custom roms - Samsung Galaxy Watch 4

When I use a custom ROM and restart the phone, I lose all my Bluetooth pairing, and need to reset the watch.
It doesn't happen on LineageOS.
I tried with PE, ArrowOS, Evolution X.

zalnaR said:
When I use a custom ROM and restart the phone, I lose all my Bluetooth pairing, and need to reset the watch.
It doesn't happen on LineageOS.
I tried with PE, ArrowOS, Evolution X.
Click to expand...
Click to collapse
Check if there is a file in your rom:
system/lib/libsecure_storage.so
system/lib64/
or
system/vendor/lib/
system/vendor/lib64/
If yes then you can try this module for Magisk root:
GitHub - 3arthur6/BluetoothLibraryPatcher
Contribute to 3arthur6/BluetoothLibraryPatcher development by creating an account on GitHub.
github.com

Spartacus500 said:
Check if there is a file in your rom:
system/lib/libsecure_storage.so
system/lib64/
or
system/vendor/lib/
system/vendor/lib64/
If yes then you can try this module for Magisk root:
GitHub - 3arthur6/BluetoothLibraryPatcher
Contribute to 3arthur6/BluetoothLibraryPatcher development by creating an account on GitHub.
github.com
Click to expand...
Click to collapse
This only works on samsung phones

zalnaR said:
When I use a custom ROM and restart the phone, I lose all my Bluetooth pairing, and need to reset the watch.
It doesn't happen on LineageOS.
I tried with PE, ArrowOS, Evolution X.
Click to expand...
Click to collapse
Try this solution which worked on my Chinese phone..
1. Go to Google play store
2. Search for Samsung wearable
3. In the play store, select uninstall, but dun close play store yet. DO NOT TOUCH WATCH4 PLUGIN.
4. After uninstall, reinstall wearable app again
5. Open wearable app and do a short 30s setup n ur watch should be back in action.

Related

[GUIDE] MicroG on OnePlus 6 (open source and ligthway alternative to Google services)

Updated and tested for Android 10 (with Omnirom)
Why MicroG?
Here is a great explanation from the official wiki itself: https://github.com/microg/android_packages_apps_GmsCore/wiki
There are different and good reasons to move away from Google services and get microG services:
1) More privacy: all Marvin's work is open source and focused on privacy. The "Google Play Services" app is probably the worst app you can have on Android when it comes to telemetry, spying, etc. It's always running tons of services to know all your comings and goings. As a side note, it's also good to not rely on Google too much.
2) More RAM available: Google Play Services use a lot of RAM when GMScore uses almost nothing.
3) More battery life, especially while idling: you'll avoid all the wakelocks related to Play Services (whether they are intentional or not)
CREDITS / Thank you:
@MaR-V-iN, for his wonderful and amazing work to free us from Google. One of the most underrated dev in the Android world.
@Setialpha , for his nanodroid module and his availability to help.
@topjohnwu for Magisk
How will your Android experience change?
Actually, not so much. If you're only interested in MicroG for the reasons 2) and 3), you can still use all Google apps, including the Play store (you need a patched version). Be aware, some apps don't work or are not working properly. Implementation status of different Android/Google services can be found here: https://github.com/microg/android_packages_apps_GmsCore/wiki/Implementation-Status
If you wonder if an app works or if you've tried and it doesn't work, just check on the issues tracker on Github or on your favorite search engine.
Now, if you want to change your habits, F-Droid will become your new best friend. It's an app store, like the Play Store, but which only delivers controlled, quality and open source apps. Both stores share many apps in common but F-Droid also has apps that the Play Store doesn't, because they're against Google policy for example. It should become your main app store as it's always good to use open source apps, for many reasons. Let's not start a debate here.
However, at least, at the beginning, it's tough to not use ANY app from the play store. For that, you should use Aurora store (whick is a fork of Yalp Store FYI). You get access all apps from Play Store. You can either use an anonymous account or use your own Google account. In the second case, you'll be able to download your paid apps. However, these won't work if they include a license check (most of them nowadays). You can nicely ask the dev if there's a workaround. Some accept, like the team behind Titanium Backup for example. Or SmartPack Kernel Manager's developer.
If you're looking for open source alternatives to the apps you usually use, I could list a few of them but this list is just great: https://github.com/offa/android-foss .
If you don't know how to replace Google services, this list is great as well: https://shadow53.com/android/no-gapps/alternatives/
You can also check on reddit like on this subreddit: https://www.reddit.com/r/fossdroid/
What ROM to use?
Any custom AOSP ROM should work, as long as :
1° it supports signature spoofing
2° it's deodexed
3° it supports alternative location backends, it's
-I wouldn't recommend any ROM that comes with gapps included. It just makes things more complicated.
On Android 10, I would highly recommend OmniROM, which offers an archive with microg prebundled, and also because it perfectly supports microG (signature spoofing, alternative location backends, etc.)
USEFUL LINKS
-MicroG thread: https://forum.xda-developers.com/android/apps-games/app-microg-gmscore-floss-play-services-t3217616
-MicroG wiki: https://github.com/microg/android_packages_apps_GmsCore/wiki
-UnifiedNlp thread (location): https://forum.xda-developers.com/android/apps-games/app-g-unifiednlp-floss-wi-fi-cell-tower-t2991544
-Nanodroid (provides packages related to open source / microG stuff): https://forum.xda-developers.com/apps/magisk/module-nanomod-5-0-20170405-microg-t3584928/ (you need to download the microG edition) + here to understand how to edit the .nanodroid-setup file: https://gitlab.com/Nanolx/NanoDroid/blob/master/doc/AlterInstallation.md#detailed-description
-microG unofficial installer (doesn't work on our device yet): https://forum.xda-developers.com/android/development/microg-unofficial-installer-t3432360
-Useful website about installing, getting packages, etc. : https://shadow53.com/android/no-gapps/setup-guide/microg/
-Great list of FOSS (open source software) apps for Android: https://github.com/offa/android-foss
-Alternative to Google apps: https://shadow53.com/android/no-gapps/alternatives/
-Personnal experience feedback: https://forum.xda-developers.com/android/general/gapps-free-samsung-galaxy-s3-lte-gt-t3553620
If you read all these threads you'll start to have a good understanding of what is microG and how to live without Google.
Prerequisites:
-OnePlus 6
-Unlocked bootloader
-TWRP installed
-A ROM supporting microG
-All files downloaded, on your device
DOWNLOAD LINKS
-OOS: https://forum.xda-developers.com/oneplus-6/how-to/official-oxygenos-5-1-5-ota-oneplus-6-t3794232
-TWRP: https://forum.xda-developers.com/on...overy-unofficial-twrp-touch-recovery-t3860815
-Magisk: https://forum.xda-developers.com/apps/magisk/official-magisk-v7-universal-systemless-t3473445
-Nanodroid: https://downloads.nanolx.org/NanoDroid/Stable/ (you need to download the microG file)
-Push Notification Tester: https://play.google.com/store/apps/details?id=com.firstrowria.pushnotificationtester
-Working Google Maps app: https://www.apkmirror.com/apk/google-inc/maps/maps-9-82-1-release/
-F-Droid: https://f-droid.org/FDroid.apk
INSTALLATION TUTORIAL
Italic = recommended, but not mandatory. Do it if something doesn't work properly
0) DON'T RESTORE your apps until everything is set up, otherwise you'll have issues with GCM (getting instant notifications from messaging apps for example)
1) Flash the custom ROM of your choice ( these instructions should work: https://privatebin.net/?42d550f9ae5df09f#imAFxWjM0gW+V9+ex+8nRyYSoSQzLPjhNXsbKIUjzqA= )
2) Flash magisk, reboot to system
3) Reboot to recovery
4) Flash Nanodroid (you need to download the microG edition, and make sure you have made the .nanodroid-setup file at the root of your internal storage, see instructions here https://github.com/Nanolx/NanoDroid/blob/master/doc/AlterInstallation.md) or you can also try MinMicroG (https://github.com/FriendlyNeighborhoodShane/MinMicroG_releases/releases).
If you choose nanodroid, update microG thhis way: https://www.reddit.com/r/MicroG/comments/fd7udr/fork_of_microg_gmscore_with_unifiednlp_working_in/
5) Reboot to system
6) Open MicroG, give it permissions if that's not already the case
7) Click on self-check. Give signature spoofing to all the empty boxed so they get ticked.
For Omni/Arrow/Aex, you can make sure it's allowed in settings/apps & notifications/apps permissions/spoof package signature. for playstore/fakestore make sure you click on the 3 dots and check system apps (if it exists).
8) Give permission to ignore batter optimizations.
9) Enable Google device registration and Google Cloud Messaging.
10) Enable Safetynet if you want
11) Click on UnifiedNlp and active the 3 backends: location backends: Mozilla+ Déjà Vu; adress lookup backends: Nominatim.
12) REBOOT
13) Open your phone app, and type this:
Now try this instead in order to manually enable device registration and connect to Google Cloud Messaging:
Code:
*#*#2432546#*#*
Code:
(old) *#*#42678278#*#*
. Nothing will appear on your screen but it can help. It's probably necessary but I prefer to make all the steps to make everything work. Sometimes logging in on your Google account through settings help. You can then log out if you don't want to use any Google account.
14) Install Push Notification Tester from Yalp Store.
15) Test the app, see if everything works. If it doesn't, ask for advice here as it should at this point. You can try to reboot one more time. Make sure that in the GCM settings you're connected since X time, otherwise something is wrong. Step 23 is the most important step to check if it doesn't work.
16) Go back to the self-check menu, now you can check the self check status and almost all boxes should be ticked. Some are not for me but GPS still works, even on Google Maps. Here is a screenshot of how it looks like for me: https://i.imgur.com/WsPX5RC.png
17) Now you can try to install the apps you want! Don't install apps that need push notifications before all these steps otherwise they might never be registered. Clean installing apps is recommended. You can try to restore them from a backup as well, but it often doesn't work. The middle ground solution is to install the app with the Yalp Store / F-droid and then restore its data with Titanium Backup for example.
18) Now you should see apps being registered in microG.
19) You can make sure your gps work with either OSM (https://f-droid.org/en/packages/net.osmand.plus/) or Google Maps (see apk mirror link earlier, the last version won't work). You should get your location without any isuses at this point.
20) Enjoy your almost Google free phone.
EXTRAS:
α) If you have issues with location, you can try this (on some custom ROMs, Google Maps finds my location but then it doesn't update and so if I move around it won't update my location. Also sometimes I need to reload the app to update my location which is quite inconvenient. It seems that doing the steps following help)
Install a terminal emulator (I recommend Termux)
Make sure your phone has root rights and type :
Code:
su
Authorize the app
Type next:
Code:
pm grant com.google.android.gms android.permission.ACCESS_FINE_LOCATION
Then
Code:
pm grant com.google.android.gms android.permission.ACCESS_COARSE_LOCATION
iii) Reboot
β) If you have issues in general, try to update Nanodroid (if you used Nanodroid, ofc) apps from F-Droid. Add this repo to F-Droid: https://www.nanolx.org/fdroid/repo/
And then make sure all your apps are updated (including microG GmsCore)
A) DroidGuard uses non-open source stuff. It's in order to pass safety net.
B) GCM is not open source either.
C) If you want google maps to work, you need to install an "old" version and not update it. You can find it here: https://www.apkmirror.com/apk/google-inc/maps/maps-9-82-1-release/. Sometimes, your location might never appear. In this case, restart a few times Maps until your position shows up.
D) You can also try to install MicroG and its dependencies as user apps. I've tried it and wasn't very happy with the results as they don't work as well being user apps. From what I've heard, everything works fince except location. So you can give it a try as well this way.
E) My personal .nanodroid-setup is this one (to understand what it does, check here: https://gitlab.com/Nanolx/NanoDroid/blob/master/doc/AlterInstallation.md#detailed-description ):
Code:
nanodroid_gmscore=0
nanodroid_play=21
nanodroid_overlay=0
nanodroid_mapsv1=1
nanodroid_gsync=0
nanodroid_swipe=1
nanodroid_forcesystem=0
nanodroid_fdroid=1
nanodroid_nlpbackend=1100
Reserved.
Very nice,
too bad that it doesn't support OOS but it's understandable.
nimrodsv said:
Very nice,
too bad that it doesn't support OOS but it's understandable.
Click to expand...
Click to collapse
Maybe it could work with nanodroid patcher for signature spoofing and then manually deodexing the ROM. It would also be necessary to remove all the Google apps. So yes I guess it's just easier to use a custom ROM as a saner base.
nimrodsv said:
Very nice,
too bad that it doesn't support OOS but it's understandable.
Click to expand...
Click to collapse
Like above, it could work. By installing xXx module and choose total gapps removal then try what he said above for spoofing. Tempted to try, but can't atm.
OOS has normally odexed system and do not support signature spoofing.
An option would be to deodex services.jar and the use the nanodroid patcher to enable signature spoofing.
I have done that for some 8.1 OOS roms but not on the latest releases.
whizeguy said:
Like above, it could work. By installing xXx module and choose total gapps removal then try what he said above for spoofing. Tempted to try, but can't atm.
Click to expand...
Click to collapse
NisseGurra said:
OOS has normally odexed system and do not support signature spoofing.
An option would be to deodex services.jar and the use the nanodroid patcher to enable signature spoofing.
I have done that for some 8.1 OOS roms but not on the latest releases.
Click to expand...
Click to collapse
Maybe I'll give a try it seems possible.
@Tomatot- I see that you've tried to working with MicroG on Omni but getting bootloops and that you will try working with it again soon.
Anything I should know before I try this on Omni? Thanks!
nimrodsv said:
@Tomatot- I see that you've tried to working with MicroG on Omni but getting bootloops and that you will try working with it again soon.
Anything I should know before I try this on Omni? Thanks!
Click to expand...
Click to collapse
I had a weird experience on Omni. At first it was working all fine with nanodroid-microG, but then I tried to change the .nanodroid-setup and it broke all my system, I was never able to make it work again on Omni. I also tried once the Nisse .zip and it didn't work either. So I can't really tell what's the pattern to make things work or not work... I really liked Omni so I'm going to try again within the next few days, with a nice clean flash and Nisse zip. I will let you know. If you're impatient and want to try, try to follow the steps from this tutorial and let me know how it goes.
Omni is a bit tricky with permissions, use the latest Nanodroid-microG from https://downloads.nanolx.org/NanoDroid/Stable/ to install on omni, it adds bit more (calendar and contacts sync etc) that i dont want tho
NisseGurra said:
Omni is a bit tricky with permissions, use the latest Nanodroid-microG from https://downloads.nanolx.org/NanoDroid/Stable/ to install on omni, it adds bit more (calendar and contacts sync etc) that i dont want tho
Click to expand...
Click to collapse
Did you manage to make your script work on Omni? I'm not interested in these extras either.
Tomatot- said:
Did you manage to make your script work on Omni? I'm not interested in these extras either.
Click to expand...
Click to collapse
Yes, but some extra work is needed: Open the zip with 7-zip and extract all item from priv-app and delete the priv-app folder from the zip.
Install rom, the modified zip and boot into system.
Install the extracted apps normally.
Use https://forum.xda-developers.com/apps/magisk/module-terminal-app-systemizer-ui-t3585851 to convert the 4 installed apps (gms, gsf, phonesky and yalp) to system apps (to priv-app).
Thats bit much but its functional on omni.
NisseGurra said:
Yes, but some extra work is needed: Open the zip with 7-zip and extract all item from priv-app and delete the priv-app folder from the zip.
Install rom, the modified zip and boot into system.
Install the extracted apps normally.
Use https://forum.xda-developers.com/apps/magisk/module-terminal-app-systemizer-ui-t3585851 to convert the 4 installed apps (gms, gsf, phonesky and yalp) to system apps (to priv-app).
Thats bit much but its functional on omni.
Click to expand...
Click to collapse
Awesome, thanks, I'll try this asap.
I will update OP but I can tell Arrow OS seems to support perfectly MicroG. And your script works directly @NisseGurra . I've noticed the location apps are a bit oudated, could you update them please? Cheers.
Thread updated with my experiences with the different custom ROMs available on our device. i've also improved instructions a little and make some steps not mandatory but recommended.
Thanks very much for this great tutorial although I've never had an OnePlus. Quite a long time ago, I tried to capture my personal way to become GApps-free from the very beginning by installing µG un to today where I always use NanoDroid. Maybe my thread contains some information useful to you?
Oswald Boelcke said:
Thanks very much for this great tutorial although I've never had an OnePlus. Quite a long time ago, I tried to capture my personal way to become GApps-free from the very beginning by installing µG un to today where I always use NanoDroid. Maybe my thread contains some information useful to you?
Click to expand...
Click to collapse
Yes I read it and it was very useful. Your thread was already included in "useful links" btw.
Updated backends microg installer (attached)
NisseGurra said:
OOS has normally odexed system and do not support signature spoofing.
An option would be to deodex services.jar and the use the nanodroid patcher to enable signature spoofing.
I have done that for some 8.1 OOS roms but not on the latest releases.
Click to expand...
Click to collapse
whizeguy said:
Like above, it could work. By installing xXx module and choose total gapps removal then try what he said above for spoofing. Tempted to try, but can't atm.
Click to expand...
Click to collapse
Bumping you again to give you some news.
So I really don't feel like going back to use Google Play services but I miss OOS for battery life and performance reasons.
However, I feel like deodexing OOS is really not optimal, see these links:
https://i.imgur.com/FRJgqVm.png
https://github.com/anestisb/vdexExtractor/issues/33
https://i.imgur.com/9Y6JBGD.png
So yeah, it's a tough choice...
Tomatot- said:
Bumping you again to give you some news.
So I really don't feel like going back to use Google Play services but I miss OOS for battery life and performance reasons.
However, I feel like deodexing OOS is really not optimal, see these links:
https://i.imgur.com/FRJgqVm.png
https://github.com/anestisb/vdexExtractor/issues/33
https://i.imgur.com/9Y6JBGD.png
So yeah, it's a tough choice...
Click to expand...
Click to collapse
Aw man.. That's just too bad :/ thanks for the update mate.

[ROM][9.0.0][beryllium] LineageOS 16.0 with MicroG

Hi folks,
LOS with MicroG has finally been released.
For people who don't know what the heck is this, it's besically LineageOS unofficial fork with built-in microG gapps implementation. That's right! It's the same LOS without Google spyware.
Some cool features of LOS with MicroG
1. Full Play Services compatibility:
This ROM has built-in microG free-as-in-freedom re-implementation of Google's proprietary Android user space apps and libraries.
This enables you to use every Google service you need without keeping another closed-source binary blob in your Android system.
2. Native F-Droid support:
LineageOS for microG comes with F-Droid already installed. You can use it to access plenty of FOSS applications
3. OTA updates like official LOS:
The ROM has OTA updates from upstream LineageOS weekly. In this way you always receive new features and security updates just few days after they are released mainline.
Installation instructions
This ROM and official LineageOS use different signing keys, so you can't flash this ROM on top of the official LineageOS. Clean installation is strongly suggested.
1. Download the ROM zip and vendor+firmware zip
2. Boot into TWRP
3. Wipe System, Data, Cache and Dalvik
4. Flash the Vendor+Firmware zip and the ROM zip
5. Flash Magisk (optional)
6. Reboot
Post-installation
First, open the "microG Settings" app and check if everything is OK in the "Self-Check" section; you will probably have to give microG some permissions, like location and file access.
1. UnifiedNlp
UnifiedNlp is the microG Network Location Provider, which provides the current location of the device without the use of the GPS. While Google's NLP can only use Google's servers for positioning, UnifiedNlp obtains the geolocation through different plugins, which interface to different services.
By default there are two plugins installed:
MozillaNlpBackend, which uses the Mozilla Location Service (online)
NominatimNlpBackend, which uses MapQuest's Nominatim service (based on OpenStreetMap) for geocoding (online)
If you want to use these plugins, go to microG Settings -> UnifiedNlp Settings, configure and enable both.
If you instead want different plugins (like the LocalGsmNlpBackend, which uses a local offline database of the GSM towers to obtain the location) you can download them in F-Droid and enable them in the same way.
Reboot and check whether UnifiedNlp is correctly set up in the "Self-Check" section of the "microG Settings" app.
2. F-Droid
You have the F-Droid Privileged Extension installed by default, why not use it? To make a good use of it go to the F-Droid Settings and enable auto updates.
3. Google Cloud Messaging
Many apps rely on the Google Cloud Messaging, a Google proprietary system to push notifications to your device. This feature is implemented in microG but, as not every user requires it, is disabled by default. If you need it, enable the "Google Device registration" and the "Google Cloud Messaging" features in the "microG Settings" app.
4. Weather service
If you want the weather features of LineageOS (like in the lock screen or in the cLock widget) you have to download a weather provider from here. Choose your favorite one, install it and configure it in cLock (or in Settings → Apps → Gear icon → Weather).
Downloads
ROM Link: https://download.lineage.microg.org/beryllium/
Vendor+Firmware: https://mirror.akhilnarang.me/MIUI/beryllium/
Twrp build: https://forum.xda-developers.com/poc...ption-t3853004
Magisk: https://github.com/topjohnwu/Magisk/releases/download/v18.1/Magisk-v18.1.zip
Find more about the project here https://lineage.microg.org/
Credits
MicroG Team
Lineage OS team
@akhilnarang for Vendor+Firmware
@vasishath for TWRP
@topjohnwu for Magisk
Disclaimer:
I'm not the developer of the ROM, neither I'm associated with the team who is behind this amazing piece of work. I am just sharing the work for everyone on XDA.
Shout out to Team MicroG for their wonderful work!!!
Sweet! Good to see official LOS microg.
Thanks for sharing brother.
how is the battery and performance someone who tried it ? and is it safe to wipe system ?
niteone said:
how is the battery and performance someone who tried it ? and is it safe to wipe system ?
Click to expand...
Click to collapse
Battery life is amazing since the notorious Google Play Services is not present on this ROM. Performance is more or less the same. The main reason people use MicroG over other GApps is because of privacy and battery.
And talking about your last question, I guess you wipe System partition everytime you do a clean flash. So yeah, it's completely safe to wipe System partition.
Rowdyy Ronnie said:
Battery life is amazing since the notorious Google Play Services is not present on this ROM. Performance is more or less the same. The main reason people use MicroG over other GApps is because of privacy and battery.
And talking about your last question, I guess you wipe System partition everytime you do a clean flash. At least that's what a vl an flash mean (wiping System, Data, Cache & Dalvik). So yeah, it's completely safe to wipe System partition.
Click to expand...
Click to collapse
Yes i tried it but cant sync my contacts because they are stored in google and other things but from my little expirience its great.i moved to the normal lineage now
niteone said:
Yes i tried it but cant sync my contacts because they are stored in google and other things but from my little expirience its great.i moved to the normal lineage now
Click to expand...
Click to collapse
You can easily get contacts.vcf file from google and just import it in your normal contacts app. Takes a minute only.
---------- Post added at 06:59 PM ---------- Previous post was at 06:57 PM ----------
OP, I will suggest to add 'Flashing DFE' also in the first post instructions, for people who don't want to get encrypted.
Interesting project, good job!
Thread cleaned!
Personal attacks will NOT be tolerated on this private development site!
Found work can be posted in NEWS sections with proper credits
If the original developer does not wish it posted they can request it be taken down
No one else has that right!
Thank you all for your cooperation
Friendly Neighborhood Moderator
Works as expected. No issues. Running it on tissot, bacon and now testing on poco! Thanks for reminding!
Sent from my Poco F1 using XDA-Developers Legacy app
Great Image verry fast Thanks MR
the ROM is awesome, but I can not get contacts and Gmail to work. The rest of apps, perfect!.
piernodoyuna said:
the ROM is awesome, but I can not get contacts and Gmail to work. The rest of apps, perfect!.
Click to expand...
Click to collapse
Because it is microg ROM. Gmail will not work.
surely, the answer could have been more elaborate. and yes, Gmail can work with microg, but in my case, I have not succeeded.
piernodoyuna said:
surely, the answer could have been more elaborate. and yes, Gmail can work with microg, but in my case, I have not succeeded.
Click to expand...
Click to collapse
Personally I don't use gmail (using K9), but maybe you will find an answer here:
https://github.com/microg/android_packages_apps_GmsCore/labels/👥 Accounts
Sent from my Poco F1 using XDA-Developers Legacy app
ydd0ras said:
Personally I don't use gmail (using K9), but maybe you will find an answer here:
https://github.com/microg/android_packages_apps_GmsCore/labels/👥 Accounts
Click to expand...
Click to collapse
Thank you very much for the reply! I think my problem is not in the mail client, but in the authentication of credentials that access my contacts, calendar events and emails. I think that this issue is not yet solved
Does 0805 build have included vendor? I can see only 5.62MB vendor.new.dat.br which is usually 280MB on official one.
For some reason i won't get the UnifiedNLP working on my Poco F1.
I did a clean install, coming from the latest MIUI global ROM and followed the post install guide on https://lineage.microg.org/. The only additional Tool i installed was the latest Version of Magisk.
**EDIT**
I reinstalled microg LineageOS without Magisk, but it still does not work.
Any suggestions?
Most probably you've hit version with support for something called Qualcomm Location. It was fixed in build on 27th November because thingy was not working well (also because it is closed source soft).
AFAIK there are two ways to fix it:
- install LOS >=2711.
- patch framework-res.apk to force use UnifirdNlp. There should be some info about procedure in a LOS thread though I'm not 100% sure.
crow6 said:
Most probably you've hit version with support for something called Qualcomm Location. It was fixed in build on 27th November because thingy was not working well (also because it is closed source soft).
AFAIK there are two ways to fix it:
- install LOS >=2711.
- patch framework-res.apk to force use UnifirdNlp. There should be some info about procedure in a LOS thread though I'm not 100% sure.
Click to expand...
Click to collapse
I will try that. Thank You!
Are ports of Lineage 17 planned? The Websites last nightly is from 2020-09-30 (los 16)

[ROM]-[10-04-2020]-[microG] Unofficial LineageOS 17 w/ microG support

Info
This thread contains unofficial custom builds of LineageOS 17 for OnePlus 7 Pro based on official LineageOS repositories & PeterCxy's repositories. This ROM has a few additions.
- Includes microG signature spoofing patch
- Removes com.qualcomm.location which interferes with UnifiedNlp
- Added option to configure the height of the back gesture in gesture navigation settings
Please note that I am not an experienced ROM developer, these are simply my own custom builds I'm sharing with you all in case anybody finds them useful.
ROM instructions
If you want to spoof signature of Phonesky you must manually grant it. Do this through a terminal emulator by running the following commands.
Code:
su
pm grant com.android.vending android.permission.FAKE_PACKAGE_SIGNATURE
There is currently an issue with microG UnifiedNlp. If you ever get the "UnifiedNlp has no last known location" error, you must re-enable UnifiedNlp backends. This must be done after every reboot and whenever this error decides to pop back up.
Installation instructions
1. Format data in TWRP
2. Flash ROM, TWRP Installer
3. Reboot > Recovery
4. Flash ROM, TWRP Installer
5. Reboot > System
6. Complete system setup
7. Reboot > Recovery
8. Flash Magisk, flash NanoDroid
9. Reboot > System
Update instructions
1. Flash ROM, TWRP Installer
2. Reboot > Recovery
3. Flash ROM, TWRP Installer
4. Reboot > Recovery
5. Flash Magisk, flash NanoDroid
6. Reboot > System
Downloads
ROM - EDIT: Links removed, no longer working on this project.
Magisk - https://forum.xda-developers.com/apps/magisk/official-magisk-v7-universal-systemless-t3473445
TWRP - https://forum.xda-developers.com/on...nt/recovery-unofficial-twrp-recovery-t3931322
NanoDroid - https://forum.xda-developers.com/apps/magisk/module-nanomod-5-0-20170405-microg-t3584928
Thanks
Special thanks to @LuK1337 and @PeterCxy for helping me out with the build process and answering all my questions
Kernel Source
https://github.com/PeterCxy/android_kernel_oneplus_sm8150
XDA:DevDB Information
LineageOS microG, ROM for the OnePlus 7 Pro
Contributors
gigatex
ROM OS Version: Android 10
Based On: LineageOS
Version Information
Status: Testing
Created 2019-08-23
Last Updated 2020-04-11
Reserved for OP.
Thank you for this! ??
Update - 30-08-2019
Changelog:
Switched to official LineageOS device repositories
Merged latest changes from LineageOS frameworks/base
Switched hosting from MEGA to Android File Host
Update instructions are in OP
Hi gigatex,
I just wanted to thank you for creating this! I've been using it as my daily driver without any issues. It's rock solid, fast and great on the battery and it's the only rom that works superbly with MicroG, without the hassle of removing Google junk.
If I were to give you one suggestion, it'd be to include links to Magisk, NanoDroid (F-Droid and MicroG packages) and perhaps TWRP. If only for user ease.
Keep up the good work and thanks again!
Doesn't the lineage team provide an official microg version around a week or so after they have an official regular build?
Thank you for this either way! I've been waiting for a microg version of this.
I don't want to sound douchy, but it's actually the MicroG team that forks the LineageOS build and pretty much does to it what gigatex did with this ROM. They will probably add support for our device in a few days, but it's great that we don't have to wait for that, thanks to this ROM.
aeonius said:
I don't want to sound douchy, but it's actually the MicroG team that forks the LineageOS build and pretty much does to it what gigatex did with this ROM. They will probably add support for our device in a few days, but it's great that we don't have to wait for that, thanks to this ROM.
Click to expand...
Click to collapse
As far as I can tell by looking at the docker repo, LineageOS for microG just takes the LineageOS frameworks/base and applies the signature spoofing patch for their builds. If this is the case they might have the same problem with UnifiedNlp as every other OnePlus 7 Pro ROM.
Lineage only merged the "NLP Combo feature" commit in the last month or so, while most other ROMs have had it for a lot longer. If anyone here flashes their build when it becomes available I'd be curious to know if UnifiedNlp works correctly on their ROM.
I'm gonna give this a go tonight. Looking forward to it. Lineage has always been my favorite since I got into the rom community. Glad I can go Google free.
Side note: anyone know of good navigation app? For obvious reasons, I'm not wanting to use Google maps.
adamokari said:
I'm gonna give this a go tonight. Looking forward to it. Lineage has always been my favorite since I got into the rom community. Glad I can go Google free.
Side note: anyone know of good navigation app? For obvious reasons, I'm not wanting to use Google maps.
Click to expand...
Click to collapse
I use OsmAnd~
https://f-droid.org/en/packages/net.osmand.plus/
gigatex said:
I use OsmAnd~
https://f-droid.org/en/packages/net.osmand.plus/
Click to expand...
Click to collapse
I've used osmand before, it's been awhile but for some reason there was something I didn't like about it. I'll give it another shot. Thanks!
This ROM is running great so far. Thank you very much for your work!
Only issue I'm having it getting the oneplus camera app. Whenever I tap the app to open it, it force closes. O can however long press on the icon and tap one of the modes in the pop up menu and it works from there. For some reason it seems to be the standard picture mode that crashes. Did anyone else have issues with it?
Edit: Double post
Sorry for all the questions, but what exactly is the proper way to set this up with microg? I've realized I'm not getting push notifications for email apps.
Basically for my install I wiped dalvik and data,
Flashed ROM and twrp
Reboot recovery and flash ROM and twrp again
Reboot to system
Reboot recovery and flash magisk and nanodroid
Then proceed to configure microg, signing into google account and enabling cloudessagimg, etc.
Any help would be greatly appreciated.
Thank you!
adamokari said:
Sorry for all the questions, but what exactly is the proper way to set this up with microg? I've realized I'm not getting push notifications for email apps.
Basically for my install I wiped dalvik and data,
Flashed ROM and twrp
Reboot recovery and flash ROM and twrp again
Reboot to system
Reboot recovery and flash magisk and nanodroid
Then proceed to configure microg, signing into google account and enabling cloudessagimg, etc.
Any help would be greatly appreciated.
Thank you!
Click to expand...
Click to collapse
As for OnePlus camera, I simply downloaded the APK in PeterCxy's thread and I'm not experiencing any crashes.
I use the same installation procedure as you. Are your apps getting registered under GCM and is your "Current State" showing as connected? Also make sure you go through the entire self check. The "System supports location provider" is the only checkbox that's supposed to be unchecked.
gigatex said:
As for OnePlus camera, I simply downloaded the APK in PeterCxy's thread and I'm not experiencing any crashes.
I use the same installation procedure as you. Are your apps getting registered under GCM and is your "Current State" showing as connected? Also make sure you go through the entire self check. The "System supports location provider" is the only checkbox that's supposed to be unchecked.
Click to expand...
Click to collapse
I'm gonna try again from stock. It says current state disconnected and no apps ever register under GCM. Not sure what the issue is.
adamokari said:
I'm gonna try again from stock. It says current state disconnected and no apps ever register under GCM. Not sure what the issue is.
Click to expand...
Click to collapse
That's definitely the issue then. Also make sure you only open apps that use GCM for the first time after completing the microG setup and GCM is connected, or the app will never get registered.
gigatex said:
That's definitely the issue then. Also make sure you only open apps that use GCM for the first time after completing the microG setup and GCM is connected, or the app will never get registered.
Click to expand...
Click to collapse
Alright I got it working. Thank you very much!
Would it be better to flash MicroG through NanoDroid or by installing the Magisk MicroG Module?
Neffarion said:
Would it be better to flash MicroG through NanoDroid or by installing the Magisk MicroG Module?
Click to expand...
Click to collapse
I don't know what's recommended, but I ended up flashing the magisk module. My reason being is that nanodroid has a ridiculous amount of extra bloat in it.

Install Google Play into China ROM for Redmi 10X

1) Access this link from your phone https://bit.ly/gapps10x
2) Download and install.
3) After all apps are install, go to settings > apps > manage apps > Search for google
4) Enable all the permissions and autostart for all the google apps
5) Download this adb tool and unzip https://androidfilehost.com/?fid=6006931924117923181
6) Download latest version of arm64 Google play service. eg this one https://www.apkmirror.com/apk/googl...-21-17-120400-316502805-android-apk-download/
7) rename to play.apk and put into same folder as your adb.exe from step 5
8) type cmd in folder address bar. Enter:
Code:
adb install -g play.apk
9) Restart and all google apps should work perfectly
Why this long story?
It is easy to download the Google service from the official xiaomi app store by searching for Google and install the app in the picture!
what about whatsapp backup?
does whatsapp recognize added gmail account to take backup ?
usually google play is in prev-app in /system
al3nkbootas said:
Why this long story?
It is easy to download the Google service from the official xiaomi app store by searching for Google and install the app in the picture!
Click to expand...
Click to collapse
the gentleman is asking about WhatsApp backup / restore i'd also like to know does it work seemlessly ?
YasuHamed said:
what about whatsapp backup?
does whatsapp recognize added gmail account to take backup ?
usually google play is in prev-app in /system
Click to expand...
Click to collapse
Working without any issues ?
---------- Post added at 10:47 PM ---------- Previous post was at 10:46 PM ----------
Noobkid77 said:
the gentleman is asking about WhatsApp backup / restore i'd also like to know does it work seemlessly ?
Click to expand...
Click to collapse
Yes it works fine
Is there any downside of running Chinese firmware for a user in Europe? I usually flash Xiaomi EU on phones from Xiaomi. However, since Redmi 10X 5G runs on a MTK-chip a EU-rom will probably not be released.
flipp0 said:
Is there any downside of running Chinese firmware for a user in Europe? I usually flash Xiaomi EU on phones from Xiaomi. However, since Redmi 10X 5G runs on a MTK-chip a EU-rom will probably not be released.
Click to expand...
Click to collapse
Looks like we'll be resigned to the Chinese variant I can't see Xiaomi releasing a global variant of this phone. It's a caveat but one we'll just have to get used to
Noobkid77 said:
Looks like we'll be resigned to the Chinese variant I can't see Xiaomi releasing a global variant of this phone. It's a caveat but one we'll just have to get used to
Click to expand...
Click to collapse
Right, because the processor from Mediatech might be late, and we might not be watching a global rom, it's possible.
Hi, i recently got the 10x 5g pro and installed google services though mi app store. Still there are some issues for example i dont get push notifications on gmail or i cant make whatsapp have access to camera.
Does anybody have to deal with these and had solved it?
Thank for any help.
update: i em on miui12.0.5 ,i installed google play services 20.50.66 , play store 23.9.35-21 and framework10-57771379. Now things work notifications come, maybe with little delay but they come on messenger apps and emails.
Of course you need to enable several app permissions, autostart, notifications and battery saver no restrictions.
May this guide works for you: https://forum.xda-developers.com/t/...ina-maybe-working-on-other-china-rom.4229883/
My devices is up to date MIUI version V12.0.5.0.RJOCNXM (Android 11), now, it is not run Play Store. Help me!
p233 said:
My devices is up to date MIUI version V12.0.5.0.RJOCNXM (Android 11), now, it is not run Play Store. Help me!
Click to expand...
Click to collapse
update to miui 12.5.2, everything is working there, except some push notifications for example gmail or whatsapp.
VD171 said:
May this guide works for you: https://forum.xda-developers.com/t/...ina-maybe-working-on-other-china-rom.4229883/
Click to expand...
Click to collapse
Thank you i will take a look. Actually i did try the safety net checker and now it passed the test. I guess installing all update i em on MIUI12.5.2 and reset my phone fixed it and i passed the safety test.
My only issue is with push notification especially on gmail since its my main email. I dont get them only when check the inbox my self. An info how to solve it?
is there a way to get google pay to work??
xdagfg said:
Thank you i will take a look. Actually i did try the safety net checker and now it passed the test. I guess installing all update i em on MIUI12.5.2 and reset my phone fixed it and i passed the safety test.
My only issue is with push notification especially on gmail since its my main email. I dont get them only when check the inbox my self. An info how to solve it?
Click to expand...
Click to collapse
You just need to install google apps by yourself.
VD171 said:
You just need to install google apps by yourself.
Click to expand...
Click to collapse
I know these:
The Open GApps Project
OpenGApps.org offers information and pre-built packages of The Open GApps Project. The Open GApps Project is an open-source effort to script the automatic generation of up-to-date Google Apps packages. All Android versions and platforms supported.
opengapps.org
OpenGApps
Download OpenGApps for free. OpenGApps daily releases. None
sourceforge.net
LiteGapps
Download LiteGapps for free. LiteGapps is a custom gapps which is ,small, friendly and complete. LiteGapps is an Custom Gapps for smartphones, tablet, desktop, free and open-source software. by providing complete, stable support and several additional features.
sourceforge.net
MagiskGApps
Download MagiskGApps for free. GApps for Magisk. Magisk GApps: Open source GApps for Magisk!
sourceforge.net

CalyxOS for Pixel 4a Sunfish

CalyxOS for Pixel 4a Sunfish
Downloading the Flasher​
Linux: xxxxxx
macOS: xxxxxx
Windows: xxxxx
SHA256:
Linux: f4e68992198868148ca2d4bd0fd40d0176da4058a188a3fdf80732d04a6c3543
macOS: 5e5542f51c1592e392114636f2e64fe9dae1cacaaf55c722822780ec5cbf9331
Windows: 0cdaf47f1c97e43c70e0fe7cfff63fcaa140799ccc494bebf6451e96cbcdda6c
Steps​
Download CalyxOS image for your pixel 4a here: xxxxxxxxxxx
Download the flasher for the Operating System you’re using from the links above
For Windows, you also need to download and install “Googles USB driver ZIP file” from xxxxxx
For installation instructions, see xxxxxxxxxxx
Place the flasher as well as the CalyxOS image into the same folder. Do not extract or rename the zip, simply copy it as-is.
Double-click the flasher to run it, and follow the steps shown on your screen.
If that doesn’t work, then you can:
Open a Terminal or Command Prompt in that directory, and then
Run the flasher using:
Linux: chmod +x ./device-flasher.linux; ./device-flasher.linux
macOS: chmod +x ./device-flasher.darwin; ./device-flasher.darwin
Windows: .\device-flasher.exe
Notes​
On some Linux distros, you may have to use sudo, i.e. sudo ./device-flasher.linux
On macOS, you may have to disable gatekeeper. See xxxxxx
On Windows, your anti-virus may falsely flag this as infected. This is because the program is written in the Go programming language, see xxxxx for more information.
This is the updated August 2021 security patch
CalyxOS does not include gapps and can not be flashed on this rom.
MicroG is included and can be enabled or disabled based on user preference.
Aurora Store replaces Google Play Store. Most Google Play Store apps supported. Google play store paid apps are NOT supported.
MicroG replaces Google Play Services.
Google Fi does work but must login to Google account.
Signature spoofing support.
MOD EDIT: Links removed
I tried to install with no success, unlocked phone but doesn't allow my to flash new OS on it, I tries CalyxOS & GrapheneOS the same way and I tried run xxxxx (MOD EDIT: Link removed) on their site but PC doesn't alow me to run it.
Is rooting on this ROM not recommended?
darashikoh said:
Is rooting on this ROM not recommended?
Click to expand...
Click to collapse
Calyx doesn't support root
adavid said:
I tried to install with no success, unlocked phone but doesn't allow my to flash new OS on it, I tries CalyxOS & GrapheneOS the same way and I tried run xxxxxx (MOD EDIT: Link removed) on their site but PC doesn't alow me to run it.
Click to expand...
Click to collapse
It is either your browser, antivirus or firewall that are blocking this installation.
First, try a different browser.
Then turn off/make an exception in your antivirus.
If that doesn't work, check firewall to see if it's being blocked.
In my case, it was the browser and the firewall blocking the download/app.
For anyone wondering... this ROM is amazing. Runs smooth/fast. No bugs that I've experienced. Battery life is good. Not a ton of features, so if that's what you're after you should probably look at Resurrection or something like that.
To anyone security/privacy-conscious looking for a good mix of security and convenience, I think this ROM hits a sweet spot.
I've tried Graphene OS and the Lineage OS with microg patch. Both were great ROMs, but Graphene is way too locked down for my purposes and lineage is a bit too insecure for my nerves.
Try it out! And while you're at it, give the Calyx Institute a look. They have a membership program that has several benefits, including an LTE hotspot with unlimited data.
Very good rom. Very good battery life!!!!!! Only thing is I can't sync gmail.
WaxysDargle said:
For anyone wondering... this ROM is amazing. Runs smooth/fast. No bugs that I've experienced. Battery life is good. Not a ton of features, so if that's what you're after you should probably look at Resurrection or something like that.
To anyone security/privacy-conscious looking for a good mix of security and convenience, I think this ROM hits a sweet spot.
I've tried Graphene OS and the Lineage OS with microg patch. Both were great ROMs, but Graphene is way too locked down for my purposes and lineage is a bit too insecure for my nerves.
Try it out! And while you're at it, give the Calyx Institute a look. They have a membership program that has several benefits, including an LTE hotspot with unlimited data.
Click to expand...
Click to collapse
did you lock your bootloader?
I installed CalyxOS on my 4a yesterday afternoon and all I can say is "Two thumbs up".
Only issue I have had so far is Signal telling me it can't find google services and the pop-up about establishing a connection (I don't remember the exact wording). I reinstalled Signal and haven't had the pop-up in awhile. Not a deal breaker by any means. I think I have this fixed now.
I'm on Visible Mobile and have had no issues with data, SMS, or calls.
I haven't flashed a phone in 7 or 8 years... The CalyxOS install was simple as pie.
sinkoo1979 said:
did you lock your bootloader?
Click to expand...
Click to collapse
No. Didn't know that was an option
Why you ask?
WaxysDargle said:
No. Didn't know that was an option
Why you ask?
Click to expand...
Click to collapse
because I locked it.
TheSayaMan said:
CalyxOS for Pixel 4a Sunfish
xxxxxxxxxx (MOD EDIT: Link removed)
Simple install. Extract link to your ADB tools folder. Double click on flash-all and let the flashing do the work on it's own.
This is the updated February 2021 security patch
CalyxOS does not include gapps and can not be flashed on this rom.
MicroG is included and can be enabled or disabled based on user preference.
Aurora Store replaces Google Play Store. Most Google Play Store apps supported. Paid apps NOT supported.
MicroG replaces Google Play Services.
Google Fi does work but must login to Google account.
Signature spoofing support.
Click to expand...
Click to collapse
Paid apps dont work as in apps like Spotify and Strava?
sruel3216 said:
Paid apps dont work as in apps like Spotify and Strava?
Click to expand...
Click to collapse
Referring to paid apps from the Google Play Store. This Rom does not have google play store or google play services.
slimbobaggins said:
Calyx doesn't support root
Click to expand...
Click to collapse
Actually that is incorrect. You can use the boot.img inside the image zip and patch it with magisk and root it.
sinkoo1979 said:
Very good rom. Very good battery life!!!!!! Only thing is I can't sync gmail.
Click to expand...
Click to collapse
No but you can always use browser to login to your gmail account.
OP updated with March security update. If you are already on January or February's of this ROM, and don't want to wipe your device, you can edit the flash-all.bat file with notepad and remove the -w before the update zip.
TheSayaMan said:
Referring to paid apps from the Google Play Store. This Rom does not have google play store or google play services.
Click to expand...
Click to collapse
Right but what do if they are installed via aorara?
sinkoo1979 said:
because I locked it.
Click to expand...
Click to collapse
Anything I need to know before locking mine?
sruel3216 said:
Right but what do if they are installed via aorara?
Click to expand...
Click to collapse
The paid apps are not available in Aorora Store.
TheSayaMan said:
The paid apps are not available in Aorora Store.
Click to expand...
Click to collapse
I see spotify in the Aorara app store. Its subscription based in the app, not paid through play store

Categories

Resources