In-App Purchases with the Play Store Patch for MicroG - OnePlus 8T Questions & Answers

Hi peeps,
on my 8T I have Lineage OS 18.1 with MicroG installed. MicroG's fake store does not allow for in-app purchases so I thought about replacing it with a patched version of the Play Store that would allow exactly that.
My question would be if anyone has achieved this or has another means of making in-app purchases with Lineage OS and MicroG.
Here's a description of what I have tried so far:
So I have found this patch from the MicroG dev. However, I noticed that the patch newest patch is for version 20.9 of the Play Store which is pretty old. Trying to patch the recent version 25.6.14 (and 25.5.33) failed with the following error message:
Code:
Detected Play Store:
APK: Phonesky-25.6.14.apk
VER: 82561410 [25.6.14-21]
[1] Unpacking APK
[2] Patching APK
[3] Repacking APK
brut.androlib.AndrolibException: brut.common.BrutException: could not exec (exit code = 1): [/tmp/brut_util_Jar_60043284154080583154029902298278840174.tmp, p, --forced-package-id, 127, --min-sdk-version, 21, --target-sdk-version, 30, --version-code, 82561410, --version-name, 25.6.14-21 [0] [PR] 376382668, --no-version-vectors, -F, /tmp/APKTOOL9191445409255452037.tmp, -e, /tmp/APKTOOL384809595961443949.tmp, -0, arsc, -I, /home/alex/.local/share/apktool/framework/1.apk, -S, /home/alex/patched_playstore/microg-phonesky-iap-support/play_25.6.14-21/res, -M, /home/alex/patched_playstore/microg-phonesky-iap-support/play_25.6.14-21/AndroidManifest.xml]
ERROR: apktool failed to repack Phonesky-25.6.14.apk
So at first, I thought this failed because of the age of the patch but then the process failed in the repacking step, not the patching step. Secondly, I saw this issue implying that somebody successfully patched a version 25 Play Store. Am I missing something?
FWIW, my apktool version is 2.5.0-1 from the Arch User Repositories built with Oracle JDK 16.
Thanks in advance for any help!
Cheers,
Alex

@Oswald Boelcke
You said you were using µG for years. May I ask whether you have ever made any in-app purchases with µG or found a way to circumvent them somehow for instance maybe by making the purchase on another device with the Play Store and downloading the app on the µG device?

tangboshi said:
@Oswald Boelcke
You said you were using µG for years. May I ask whether you have ever made any in-app purchases with µG or found a way to circumvent them somehow for instance maybe by making the purchase on another device with the Play Store and downloading the app on the µG device?
Click to expand...
Click to collapse
Affirmative, I've made multiple purchases while running µG (the last two ones last month) but also in-app purchases. I'm convinced you're aware that this doesn't work with the "regular" Google Playstore (GPS) but only with the one modified by Setalphia, the developer of Nanodroid and owner of the nanolx f-droid repo. Setalphia's GPS is the one and only Google application in my app portfolio.
Usually, I use the Aurora Store but only with the anonymous account as I won't to avoid that Google deletes my account, what would be possible by their TOR's although I've personally never heard that it happened to someone. This means I can't access my purchases via Aurora and I'm also unable to make in-app purchases; as a side effect by use of the (mod) GPS I'm able to join beta programmes on Google.
Attached are screenshots what I'm using. In case of questions, please come back to me. Thanks to your question I realised that there was a newer version of the (mod) GPS available but I'd to remove the installed one first due to different signatures; I believe the one that was installed came with the Nanodroid microG module many months ago. By the way, I've downloaded and installed the new and latest (mod) GPS version via Aurora Droid.
Last but not least, I've never explored any alternate means to retrieves purchases or make in-app ones, and didn't find such ways by accident either. Use of warez is at no time any solution for me.
Spoiler: Screenshots
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}

@Oswald Boelcke
Thanks! Could you explain how you removed the "old version"? I just want to be safe that I don't misunderstand anything. Do I simply connect via adb shell and remove the FakeStore app from /system/priv-app/ and then use Aurora Droid with the Nanodroid repo enabled to install version 20.9? Does installing GPS via Aurora Droid install it as a system app? I assume that would be necessary for it to work correctly.
Thx a bunch!

tangboshi said:
@Oswald Boelcke
Thanks! Could you explain how you removed the "old version"? I just want to be safe that I don't misunderstand anything. Do I simply connect via adb shell and remove the FakeStore app from /system/priv-app/ and then use Aurora Droid with the Nanodroid repo enabled to install version 20.9? Does installing GPS via Aurora Droid install it as a system app? I assume that would be necessary for it to work correctly.
Thx a bunch!
Click to expand...
Click to collapse
How you uninstall might be subject to the device. I use a Samsung Galaxy S8+ (SM-G955F) with LOS 16.0 and Magisk v23.0. I very, vary rarely have the requirement to use adb, and in this case I uninstalled via Titanium Backup (very important to immediately reboot into system).
For many years, I believe since my Milestone 2 times, I haven't used the FakeStore. Maybe you find a date in my very old and for a long time not updated or maintained thread here. And you're correct, after my installation of the new version of (mod) GPS from the Aurora Store, it was just a "regular" app but it's a must to have it as system app in priv-app. I just the Magisk module "Systemizer" for that; an excellent and via terminal (in my case Termux) easy to use tool.

@Oswald Boelcke
Hmm, I was not able to uninstall FakeStore via Titanium Backup. After uninstalling and rebooting it was still there. You said it was important to reboot into system. I'm not sure what you meant there, surely not boot into the bootloader or recovery, right? I simply rebooted Lineage but after that, the FakeStore was still present.
I then tried to uninstall the FakeStore by removing its directory from /system/priv-apps. That was a pretty bad mistake! The boots took very long after this. After the first reboot I lost Magisk root as well as any wireless connectivity including mobile data. Also after a few minutes, I would get a message about a kernel panic related to the Qualcomm chip. I would have to restart every minute or two. So I had to reinstall Lineage OS from recovery, get root back and restore my backups via Titanium.
So now I'm basically back to square one. Do you know where I can find a tutorial help or help for uninstalling the FakeStore without breaking stuff? (My device is a Oneplus 8T and I installed µG via the dedicated images provided by µG for Lineage)

@tangboshi
Sorry to hear about your issues. Affirmative, by reboot into system I meant reboot into your OS i.e. LOS. As said, last I used FakeStore years ago but I think the procedure should be the same as I uninstalled my (mod) Google Playstore with TB.
Spoiler: Screenshots
In TB, I first clicked the "Uninstall" button but immediately after this has finished I swipped to left for the right tab. Now I used "Force remove app (by recovery exploit)", and after that process finished I immediate reboot into my OS without doing anything before.
And just a guess that might work, too. Download the Nanodroid mircoG module and flash the module via TWRP. I assume you're familiar with the Nanodroid setup and setup file creation.

@Oswald Boelcke
Before trying to uninstall FakeStore again I wanted to make sure that I can even systemize the Play Store app. So I tried to systemize another app "Greenify" that was already installed. So I did as you suggested and downloaded the Magisk Systemizer as well as Busybox modules. However, when trying to systemize Greenify with "systemize -a com.oasisfeng.greenify" it would say that /data/app/com.oasisfeng.greenify-*/base.apk doesn't exist which is true (pm list packages -f greenify told me that the path is actually "/data/app/~~8t9mrQoJML_GlZyNU2at0g==/com.oasisfeng.greenify-K8BSBcAN9N83QhKC3sYnow==/base.apk=com.oasisfeng.greenify". Using the fully qualified path did not work either...
By the way, I can't use TWRP as no image exists for my device, unfortunately (one exists for the OnePlus 8 and the 8 Pro but not the 8T). Instead I use the Lineage OS custom recovery image.

@tangboshi
Sorry, I've to resign. I quite using Greenify when I went to Oreo as I didn't recognise any reason anymore to use it as doze worked great for me on Oreo like now on Pie.
And no experiences with Oneplus, A/B devices or lack of TWRP at all.
I really hope somebody else is able to support you.

Oswald Boelcke said:
Affirmative, I've made multiple purchases while running µG (the last two ones last month) but also in-app purchases. I'm convinced you're aware that this doesn't work with the "regular" Google Playstore (GPS) but only with the one modified by Setalphia, the developer of Nanodroid and owner of the nanolx f-droid repo. Setalphia's GPS is the one and only Google application in my app portfolio.
Usually, I use the Aurora Store but only with the anonymous account as I won't to avoid that Google deletes my account, what would be possible by their TOR's although I've personally never heard that it happened to someone. This means I can't access my purchases via Aurora and I'm also unable to make in-app purchases; as a side effect by use of the (mod) GPS I'm able to join beta programmes on Google.
Attached are screenshots what I'm using. In case of questions, please come back to me. Thanks to your question I realised that there was a newer version of the (mod) GPS available but I'd to remove the installed one first due to different signatures; I believe the one that was installed came with the Nanodroid microG module many months ago. By the way, I've downloaded and installed the new and latest (mod) GPS version via Aurora Droid.
Last but not least, I've never explored any alternate means to retrieves purchases or make in-app ones, and didn't find such ways by accident either. Use of warez is at no time any solution for me.
Click to expand...
Click to collapse
Hey Oswald, can you tell me how to get the patched play store? I' running LOS 19 atm with integrated MicroG but no working play store. I would like to install my purchased apps, but didn't find any solution for my problem yet.
Thanks in advance.

Sc4r3Crow said:
Hey Oswald, can you tell me how to get the patched play store? I' running LOS 19 atm with integrated MicroG but no working play store. I would like to install my purchased apps, but didn't find any solution for my problem yet.
Thanks in advance.
Click to expand...
Click to collapse
Hello and good morning, @Sc4r3Crow
Sorry, I've most likely to apologise. On my Samsung S8+, I'm still running LOS 16.0 and will never go above that. I've got my patched Play Store from Nanodroid but it seems to be abandonned i.e. I even don't know how old my Play Store is but it's working still fine:
Spoiler
If you like I can extract the apk with SD Maid and post it here unless @Setialpha disagrees.

Oswald Boelcke said:
Hello and good morning, @Sc4r3Crow
Sorry, I've most likely to apologise. On my Samsung S8+, I'm still running LOS 16.0 and will never go above that. I've got my patched Play Store from Nanodroid but it seems to be abandonned i.e. I even don't know how old my Play Store is but it's working still fine: If you like I can extract the apk with SD Maid and post it here unless @Setialpha disagrees.
Click to expand...
Click to collapse
Hey @Oswald Boelcke, thanks for your reply.
I would appreciate that if you provide me the referring apk of the latest patched play store.
The last time I've used a working play store in combination with MicroG was some months ago while using MinMicroG, maybe an apk of the store could also be extracted from there, idk.
It would help me a lot if you help me with my issue, so thanks in advance
Greetings, Sc4r3Crow

Related

[CLOSED][APP MOD] Google Maps navigation

{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Quote brut.all " I have started this project about 1.5 years ago,( but I don't have time recently, so I don't port my changes to newer versions of Google Maps. Some Chinese guys do that for me ;-)"
This map is for the country that cant use navigation on google map. It has been hacked and can be used by any country now.
Installation for root:
1. In Titanium Backup, select Maps and make a backup.
2. Select Maps and wipe data, then uninstall.
3. Select Street View and wipe data, then uninstall.
4. Install Google Maps6.7.0-ownhere-signed.apk.
5. Go to market, and reinstall street view.(download it from the second post).
Or
1.Uninstall maps from Titanium Backup.
2.Install maps from the Market.
3.Uninstall it normally (not from Titanium).
4.Install the re-signed version.
or ADB
first uninstall Maps from /system/app
HTML:
adb remount
adb push /Google maps6.7.0-ownhere.apk /system/app
Note:
For those who get the "Login Failed" message Pull down the status bar and press all three triangles and give permission then closing maps.
If you don't get the three warning triangles
1. Install original maps from market.
2. Sign in and join latititude
3. Back up maps in titanium, app and data.
4. Wipe date and uninstall maps
5. Install resign version. DO NOT RUN, reboot right after installing.
6. After reboot, go to titanium and restore DATA only.
I'm not going to post any more links to ownhere-maps . After a lawyer representing google contacted me on G+ and then later call me and we had a little talk ,we came to the conclusion that I'm not going to spread anymore modified maps . I'm not going get on the wrong side off Google .. And I'm considering closing the thread .
Admin Edit: These Maps apk files have been removed due to a copyright infringement complaint from Google. Please do not post any more Google Maps apk's
How to get navigasion voice in your own language​
1. Download Classic Text To Speech Engine from the marked.https://market.android.com/details?id=com.svox.classic&feature=search_result
2. After installation, open to select the language you want (USD 2.99) to download.
3. Go to Android Settings -> Voice Input & Output -> Text-to-Speech settings, activate SvoxClassic at the bottom of the screen, then select SvoxClassic as the Default Engine.
Notes:
- Google Navigation requires that the Text-to-Speech voice matches the phone language. You can change the phone language in Android Settings -> Language & keyboard -> Select language.
Jayman007 said:
Would anyone like to share how the maps.apk is changed to allow navigation to work in all countries. I'm sure this forum would benefit from this info so that more ppl could help on getting the latest release out when google releases it.
Click to expand...
Click to collapse
santhoshar said:
Do somebody please tell me how to unlock the google maps for navigation?
Click to expand...
Click to collapse
1) Download a working version of the hacked map, its corresponding original version and the latest map version.
2) Extract from all apks their classes.dex.
3) Disassemble the classes.dex (hack, original & new) using*baksmali . This will create a folder of disassembled files for each classes.dex, viz., hfolder, ofolder & nfolder respectively.
4) Use a diff tool such as meld (in ubuntu) to find the differences in hfolder & ofolder.
5) Port the diff (i.e., modified parts) in hfolder to nfolder. Please make sure that they are the same file when porting (i.e., most of the other codes should match).
6) If you realise that the hacked file does not corresponds to the new file (i.e., same file name or file does not exists in nfolder), look for some codes (in the hacked file) that can uniquely identify it and search in the folder, using tools such as grep or find.
7) Copy all files in brut folder to nfolder.
8) Edit the files in brut folder of nfolder such that the references (some function calls to the map classes) in them point to the correct classes/files in nfolder.
9) Once all modifications are ported, assemble it using*smali *which will create a dex file. Name it as classes.dex.
10) Replace the classes.dex of the new map apk with the newly assembled classes.dex.
11) Resign the apk.
------------------------------------------------------------------
Her is google street view.apk
wow..love it..many thanks...
Is this safe? Maps has permission to do everything.
I don't want to be paranoid but these days..
Rockwell_ said:
Is this safe? Maps has permission to do everything.
I don't want to be paranoid but these days..
Click to expand...
Click to collapse
yeah it's pretty safe the worst thing that could happen this is that it doesn't work properly . then you can always install the regular Maps from marked
It's nothing new, I'm really surprised you didn't know about it: http://forum.xda-developers.com/showthread.php?t=630887 . I have started this project about 1.5 years ago, but I don't have time recently, so I don't port my changes to newer versions of Google Maps. Some Chinese guys do that for me ;-)
Actually this is written on the page linked by you:
Version of Google Maps [Brut] famous xda-developers forum is currently only developed to v4.6.0
Click to expand...
Click to collapse
Brut.all said:
It's nothing new, I'
m really surprised you didn't know about it: http://forum.xda-developers.com/showthread.php?t=630887 . I have started this project about 1.5 years ago, but I don't have time recently, so I don't port my changes to newer versions of Google Maps. Some Chinese guys do that for me ;-)
Actually this is written on the page linked by you:
Click to expand...
Click to collapse
Hi brut.all
I'm a big fan of your work. all credit goes to you I've been using brut.maps for a long time. And I love it
I knew it was you thet started this project from the beginning .
Thanks
Ps: love apktool big time.
wow yes thanks.
edit: It works fine. no problems or bugs to rapotere. thanks
getting "install failed shared user incompatible" on x10, with CM 6.3
dont know how resolve it, googlin' it already
EDIT: dont know how, but i got it working and works nice
Nice. Install was easy. no problem , works great but one question.
Brut Maps 4.6 worked offline with the custom tiles we created and stored on SD in folder brut.googlemaps etc.
How does this work now offline or isn't such thing an option on this version?
Thanx for your time
I think after we "adb push /maps5.2.1-ownhere-resign.apk /system/app" .. we should also set permission right? Need?
artsol said:
Nice. Install was easy. no problem , works great but one question.
Brut Maps 4.6 worked offline with the custom tiles we created and stored on SD in folder brut.googlemaps etc.
How does this work now offline or isn't such thing an option on this version?
Thanx for your time
Click to expand...
Click to collapse
I think this verson of google maps 5.2.1 which is brut.all project. work in the same way as 4.6.0 ofline
dj- said:
I think this verson of google maps 5.2.1 which is brut.all project. work in the same way as 4.6.0 ofline
Click to expand...
Click to collapse
I tested and it doesn't. There is no Brut option in the menu.
Any clue anyone? I will stick to the old good brut if there is no offline mode
artsol said:
I tested and it doesn't. There is no Brut option in the menu.
Any clue anyone? I will stick to the old good brut if there is no offline mode
Click to expand...
Click to collapse
If you wanna use your phone/maps offline and use the old version . I guess this is not for you ..
I prefer to use my phone and maps online at all times but that's just me.
stian230 said:
If you wanna use your phone/maps offline and use the old version . I guess this is not for you ..
I prefer to use my phone and maps online at all times but that's just me.
Click to expand...
Click to collapse
Lol. same her prefer online at all times
dj- said:
Lol. same her prefer online at all times
Click to expand...
Click to collapse
I'm not sure if he means when your drive into a tunnel or something similar and lose signal, but I never have problems with it .
Sorry for being Noob. But need to know how exactly is this different from the normal Google maps ??
Thanks love it finally nav
rak007 said:
Sorry for being Noob. But need to know how exactly is this different from the normal Google maps ??
Click to expand...
Click to collapse
It's for us that don't live in the usa so we can use navigation in google maps
^^ Thanks for clarification. It will help me too in that case
Btw is the navigation voice guided or just on-screen ??

[DEV][TOOL] Shadow53's Flashable Zip Builder

Making flashable zip files for Android devices can be… frustrating.
For those who have never tried, here are some of the more irritations:
You use a very limited scripting language called edify to write your install scripts. So limited, that some people replace the binary (update-binary) used to parse the script (updater-script) with a normal shell script that performs the installation instead. What’s the point of having update-binary and updater-script, then?
Any app installed to /system/ with bundled libraries in the apk need to have those libraries extracted in order to not crash.
Various system files need to be created to grant certain permissions to apps by default, and you need to know the syntax of each one (usually some dialect of XML).
If the correct permissions are not set on an installed file, it can cause the system to bootloop.
The Solution:
I’ve created a program in Go that reads entries from a configuration file and builds a flashable zip for you, while taking care of the implementation for you. The name is simple: Zip Builder.
Features:
Configuration files can be written in JSON, YAML, or TOML.
Supports Android versions since 5.0 Lollipop
Automatic generation of updater-script and an addon.d persistence script.
Automatically extracts libraries from apps being installed under /system/.
Can specify different file or app sources for different versions of Android and/or CPU architectures. updater-script will only install the files for that particular system.
Validate downloaded files with md5, sha1, and/or sha256.
F-Droid interoperability: Specify the repo URL and app’s package name, and zip-builder automatically gets the rest of the app’s information from F-Droid’s repository, including a download link for the latest version of the app.
Remove any files you specify, e.g. apps that you are replacing with your own version or apps/files you just don’t want on your system.
Standalone binaries available for Mac OS X, Linux, and Windows. Android binaries (to use in a terminal app) coming soon.
Linux binaries may be usable with Termux on Android, though this is not tested or supported.
Links
Latest release announcement
Download zip-builder
Example configuration files
Complete documentation
Zips built with this tool
EmojiOne Emojis - Replace the NotoSans emojis with the ones from EmojiOne
F-Droid installer - Includes the F-Droid privileged extension, allowing F-Droid to perform automatic installs and updates.
Hacker bundle - Includes the F-Droid builds of Termux with API, Float, and Widget addons, and Hacker's Keyboard.
Google swipe libs - Includes the swipe libraries for the AOSP keyboard. One zip for all Android versions since 5.0 on all architectures.
microG - Installs the FOSS replacement for Google Play Services, microG. Optionally install the Play Store for downloading apps, using the patched version from NanoDroid.
Google Play Store - choose between the vanilla Google Play Store or the patched one from NanoDroid.
Google Sync Adapters - install the Google sync adapters for use with microG. Install contacts sync, calendar sync, or both.
UnifiedNlp - If you want network-based location without Google Play Services or microG, install this zip. Comes with the Mozilla location backend and Nominatim geocoder backend.
No GAPPS app packs - FOSS replacements for Google Apps packages, provides basic system apps for ROMs running without Google Play Services.. There are multiple tiers of zips you can download, matching the OpenGapps flavors. Click on the link to view the contents of each zip.
microg.zip doesn't flash anything in my redmi 2 oreo aosp. log attached
kurtn said:
microg.zip doesn't flash anything in my redmi 2 oreo aosp. log attached
Click to expand...
Click to collapse
I'm currently working on polishing up a new release of a different project of mine, then I'll have time to look it over.
Per your PM, though, you said busybox wasn't in the location that the zip assumed it was. Can you search through your system and tell me which directories contain either busybox or toybox? (I believe busybox was found in two different folders when I flashed Lineage before)
Shadow53 said:
I'm currently working on polishing up a new release of a different project of mine, then I'll have time to look it over.
Per your PM, though, you said busybox wasn't in the location that the zip assumed it was. Can you search through your system and tell me which directories contain either busybox or toybox? (I believe busybox was found in two different folders when I flashed Lineage before)
Click to expand...
Click to collapse
Just have to search with the right tool. In twrp I see busybox in the expected location.
kurtn said:
Just have to search with the right tool. In twrp I see busybox in the expected location.
Click to expand...
Click to collapse
I had a little bit of time to flash a beta Oreo ROM for my phone and had no issues with things getting copied to my system correctly. If busybox is in the location that the script expects it to be, it's not obvious what the problem is.
The log you gave me seems to show that it mounted your system and data partitions correctly, detected that a folder did not exist, and then exited normally.
Have you tried an updated zip recently? A little while back I had the script output the found values for Android version and CPU architecture. It's possible it got fixed along with whatever I was working on at the time.
Re-downloaded microg.zip from @Shadow53's page. Now it works as expected.
Pushed a commit that should hopefully fix the issue @marcdw reported in the MicroG thread at https://forum.xda-developers.com/an...y-services-t3217616/post74531435#post74531435
@marcdw, I rebuilt the zips with a build containing the fix. Can you confirm that the libraries are now loading correctly? Things are working on my end, except for the patched Play Store requiring a reboot before working.
@rottenwheel do you really mean xposed? I have the impression magisk gets more attention.
@Shadow53,
I had actually edited the updater and add-on.d scripts to use the short names on most of your zips and all was good.
After work I'll start anew using your rebuilds. ?
ZTE Axon 7 A2017U, Dark ROM, microG (NoGAPPS), Tapatalk 4.9.5
rottenwheel said:
As read on the microG thread:
Although XDA community and most Android modders tend to side with Xposed-based solutions, I need to emphasize this is not the absolute case. I rather to stay away from it as much as I can, because it's given unstability to my devices as soon as I start tinkering with some modules; as soon as I get it removed from my setup, bugs are gone. I don't want to engage in unrelated discussions here, I just wanted to let you know your zip solutions have been working like a charm and many of us will miss if you lose enthusiasm about it. Keep it up and rocking. Thanks to you, getting microG onto our handsets is easier.
Click to expand...
Click to collapse
NanoMod is optionally a Magisk module and has nothing to do with Xposed, though I appreciate the sentiment.
*If* I were to lose interest in this project or in providing scripts, the code for the zip-builder is open source and contains the build recipes I use for all of the zips I provide, so it shouldn't be too hard for someone to pick up if they wanted to.
That said, I have no intention of stopping providing zips any time soon, though development on the zip-builder itself is slow because university is keeping me busy. I use my zips too, so I gotta be at least a little invested
Shadow53 said:
@marcdw, I rebuilt the zips with a build containing the fix. Can you confirm that the libraries are now loading correctly? Things are working on my end, except for the patched Play Store requiring a reboot before working.
Click to expand...
Click to collapse
Howdy sir. My apologies for not getting back. Work got in the way.
The zips work perfectly. I setup two ROMs on my Axon 7 with microg-playstore, no-gapps, and hacker. Not a single hiccup with the included apps or Play Store. All is good.
Must say again, I like the apps included in no-gapps.zip. Most of those I use and have to get manually from F-Droid.
Perfect with Dark ROM which has no apps or launcher and thus no worries of duplicate functionality (like two cameras, two calendars, etc.).
I see Firefox has replaced Lightning. Haven't used Firefox since v28 so I get to see what the new one is all about.
??
LG G3 D851, PAC-MAN LP ROM, MultiROM, Tapatalk 4.9.5
Awesome. Been looking into how to get F Droid and Micro G plus most other things to work for my sm-g900p!
Really not liking the way Google has been going.
So looking into HOW to get that this to work for me.
From what I had seen so far....
PLEASE keep working on this!!
Thank you Shadow 53!
marcdw said:
Howdy sir. My apologies for not getting back. Work got in the way.
The zips work perfectly. I setup two ROMs on my Axon 7 with microg-playstore, no-gapps, and hacker. Not a single hiccup with the included apps or Play Store. All is good.
Must say again, I like the apps included in no-gapps.zip. Most of those I use and have to get manually from F-Droid.
Perfect with Dark ROM which has no apps or launcher and thus no worries of duplicate functionality (like two cameras, two calendars, etc.).
I see Firefox has replaced Lightning. Haven't used Firefox since v28 so I get to see what the new one is all about.
??
LG G3 D851, PAC-MAN LP ROM, MultiROM, Tapatalk 4.9.5
Click to expand...
Click to collapse
I'm glad to hear that it's working for you. I'll be posting a new release on GitLab around the end of the week (yay finals...)
Regarding the no-gapps zip, most included apps also remove the AOSP equivalent if present, with a couple exceptions such as Silence for SMS not removing the default SMS app and Firefox not removing the built-in browser, both to avoid potential issues.
godofsalt said:
Awesome. Been looking into how to get F Droid and Micro G plus most other things to work for my sm-g900p!
Really not liking the way Google has been going.
So looking into HOW to get that this to work for me.
From what I had seen so far....
PLEASE keep working on this!!
Thank you Shadow 53!
Click to expand...
Click to collapse
Development of the zip builder is stalled right now, largely due to time. It works great for what I need at the moment, but I will work on bug fixes for things that come up. The zips are rebuilt every week by a cron job on the server, though packages containing the official Play Store may not get updated if opengapps updates their version (which changes the URL). I try to catch that, but I don't always have time to check.
I'm considering putting together a comprehensive gapps removal zip that should remove as much trace of Google as possible from the device, including any application data. That will take some investigation, though, and so it shouldn't be expected soon. If/when it comes, it'll largely be for removing installations by opengapps and Beans gapps, as I can't account for all differences between OEMs.
Hey no worries about updates being "stalled"!
I know what your going though believe me. Can be such a frickin headache!!! Not to mention anxiety that some poeple get this time of the year!
AM certainly glad to hear that you are still somewhat working on it though. Plus frim what I can see, this has not been out long, so I don't thing others may even know about it!
I believe they will!!!
Running paid apps having a license verification at runtime
I installed a recent LineageOS for microG (build date 11/29) on my Samsung Tablet SM-T800 (chagallwifi) and added root by flashing the zip provided by LineageOS.
I first tried Yalp Store (version 0.29, downloaded from fdroid), but then figured out that I cannot use any paid apps that make use of a license validation at runtime. However, there are some paid apps that I require.
I did some reading and it seems like the installation of the original Google PlayStore is a solution.
So here are my questions:
1) Can I get paid apps running when I install the original PlayStore as a system app following the procedure described on the blog shadow53 (sorry, cannot post the link cause I am a new user, but it is easy to find when searching for 'shadow53 android downloads')?
2) Is there anything I have to do in addition to flashing the PlayStore zip?
3) Does flashing the original PlayStore give rise to any conflict with the FakeStore that comes installed as part of microG? If so, how do I remove the FakeStore?
ebiel said:
I installed a recent LineageOS for microG (build date 11/29) on my Samsung Tablet SM-T800 (chagallwifi) and added root by flashing the zip provided by LineageOS.
I first tried Yalp Store (version 0.29, downloaded from fdroid), but then figured out that I cannot use any paid apps that make use of a license validation at runtime. However, there are some paid apps that I require.
I did some reading and it seems like the installation of the original Google PlayStore is a solution.
So here are my questions:
1) Can I get paid apps running when I install the original PlayStore as a system app following the procedure described on the blog shadow53 (sorry, cannot post the link cause I am a new user, but it is easy to find when searching for 'shadow53 android downloads')?
2) Is there anything I have to do in addition to flashing the PlayStore zip?
3) Does flashing the original PlayStore give rise to any conflict with the FakeStore that comes installed as part of microG? If so, how do I remove the FakeStore?
Click to expand...
Click to collapse
1. Yes, you will be able to check licenses at runtime with the Play Store installed.
3. Yes, they use the same package name, so having both apps installed causes a conflict. Depending on where the FakeStore is installed, the Play Store zip may recognize where it is and automatically remove it for you. You will see some output while flashing, something like "Deleting existing file /system/priv-app/Phoneksy" if it was discovered (file path may be different).
If it does not automatically remove FakeStore, find the directory it is installed in and delete it, then on next boot modify the playstore addon-d script to delete that directory. You should see where and what to change when you open the file. If you do not make this change,
2. You may have to manually remove FakeStore with the above process. You should also look at https://shadow53.com/android/no-gapps/faq/playstore-not-loading/ regarding other gotchas with getting the Play Store running and https://shadow53.com/android/no-gapps/faq/playstore-incorrect-signature/ if you use the patched version of the Play Store.
The addon.d survival script dosn't work on my rom (play store patched). I use lineageos with microg on nexus 7 (flo).
memarama said:
The addon.d survival script dosn't work on my rom (play store patched). I use lineageos with microg on nexus 7 (flo).
Click to expand...
Click to collapse
Whether addon.d stuff works depends on the ROM. Some ROMs have a backup feature during flashing but a lot do not. Does LOS support addon.d backups?
ZTE Axon 7 A2017U, Dirty Unicorns UNOFFICIAL v11.7.2 ROM, Tapatalk 4.9.5
memarama said:
The addon.d survival script dosn't work on my rom (play store patched). I use lineageos with microg on nexus 7 (flo).
Click to expand...
Click to collapse
LineageOS has addon.d sopport. Maybe you should post a recovery. Log
memarama said:
The addon.d survival script dosn't work on my rom (play store patched). I use lineageos with microg on nexus 7 (flo).
Click to expand...
Click to collapse
After installing the microG Lineage fork on my own device to test, I realized that the Play Store zip marks FakeStore as something to remove on initial installation, but not across system updates. The addon.d script doesn't re-remove FakeStore.
Try downloading the latest version of the zip and installing it. FakeStore should stay uninstalled now.
In other news, I've decided to make my no-gapps zip into multiple, similar to the various OpenGapps zips. This means a larger selection of open source apps that can be installed, including some more replacements for AOSP apps. I'm working through a couple bugs right now potentially related to these zips, then I'll add an update with more details.

[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.

[2022-07-03] [v0.5.1] Universal Android Debloater

Universal Android Debloater
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
This is a complete rewrite in Rust of the UAD bash script.
DISCLAIMER : Use this software at your own risk. I am not responsible for anything that could happen to your phone.​
Summary
I try to maintain a universal tool which removes bloatwares on any Android phones by using ADB.
The main goal is to improve battery performance and privacy by removing unnecessary and obscure system apps. This can also contribute to improve security by reducing the attack surface.
Packages are as well documented as possible in order to provide a better understanding of what you can delete or not. The worst thing which could happen is removing an essential system package needed during boot causing then an unfortunate bootloop. After about 5 failed system boots, the phone will automatically reboot in recovery mode and you'll have to perform a FACTORY RESET. So make a backup first!
In any case, you can NOT brick your device with this script ! That's the main thing, right ?
Features
Uninstall/Disable and Restore/Enable system packages
Multi-user support (e.g apps in work profiles)
Export/Import your selection in uad_exported_selection.txt
Multi-device support: you can connect multiple phones at the same time
All your actions are logged so you never forget what you've done
NB : System apps cannot really be uninstalled without root (see the FAQ)
Universal debloat lists
GFAM (Google/Facebook/Amazon/Microsoft)
AOSP
Manufacturers (OEM)
Mobile carriers
Qualcomm / Mediatek / Miscellaneous
Manufacturers debloat lists
Asus
LG
Google
Fairphone
Huawei
Motorola
Nokia
OnePlus
Oppo
Samsung
Sony
Xiaomi
Mobile carriers debloat lists
French carriers: SFR / Orange / Free / Bouygues
US carriers: T-mobile / Verizon / AT&T / Sprint
German carriers: Telekom
UK: EE
How to use
Newbie guide
Acknowledgement
@orelta (his samsung root debloat script motivated me to start this project)
@skylot (developer of the Jadx software)
@Esther (maintainer of the Bazaar platform)
All the awesome contributors to this project!
Reserved
How to contribute
See here
How to report bugs
Open an issue on Github. I rarely respond on this XDA thread.
Nice approach. Has someone tried to debloat Google play services? Up till now I install GApps free custom ROMs on my phones.
I try extreme google debloat on Samsung A3 2017. First check was OK. Debloater 2.1 with standard settings GFAM worked fine. Factory reset completely restored all the bloatware.
Second try:
Install f-droid and hacker's keyboard before install
$ adb push F-Droid.apk /storage/emulated/0
$ adb push org.pocketworkstation.pckeyboard_1041001.apk /storage/emulated/0
Replace all #"com.google with "com.google in /lists/Google.sh
Debloat GFAM
Reboot is OK. Playstore still there, but can be deactivated. Samsung_bloat can't be debloated.
Sometimes I get the message Google play services has stopped.
F-Droid can install apps. They run.
Galaxy store can't get deactivated.
Edit: debloating webview was no good idea. I've got many crashes of antennapod app. Restoring helped.
Noob solution: copy Samsung list into Google list and debloat GFAM. Looks good. Only headlines are now says four times Samsung.
GMS debloat fails with some device policy error.
Next noob trick
$ adb shell
a3y17lte:/ $ pm uninstall com.google.android.gms
Failure [DELETE_FAILED_DEVICE_POLICY_MANAGER]
a3y17lte:/ $ pm disable-user com.google.android.gms
Package com.google.android.gms new state: disabled-user
Hi, thank you for this nice thread, exactly what I was looking for.
Possibly a solution for google play services:
I did deactivated the Google play services on Samsung a20 without computer by entering settings app, then "biometric and security" then "other security settings" then "device admin apps" and unselect "find my device", then head over apps in settings and "show system apps, then search for Google play services and now it can be disabled,
For samsung apps you can deactivate it by deactivating "galaxy store"
Perhaps the user must do that before running the code.
HOPE you can manage to translate that into your code language, and integrate it into your script, so we can all enjoy it.
Thank you very much, worked like a charm.
w1nst0n_fr said:
Universal Android Debloater
@xgouchet (developer of the Stanley app)
[/LIST]
[/LEFT]​
Click to expand...
Click to collapse
Hi, I encountered a very small problem today when i tried to share a video to another phone through Wi-Fi Direct, I can't share with wifi Direct, the only available option is bluetooth (see attachment), do you how can I solve this ?​
Maybeyou said:
Hi, I encountered a very small problem today when i tried to share a video to another phone through Wi-Fi Direct, I can't share with wifi Direct, the only available option is bluetooth (see attachment), do you how can I solve this ?
Click to expand...
Click to collapse
Search your "debloated packages" list for wifi related stuff and restore that. Or make sure both devices are i the same wlan and use an app like TrebleShot or KDE connect
Sorry for the wait!
I'm glad you find my project useful !
kurtn said:
Nice approach. Has someone tried to debloat Google play services? Up till now I install GApps free custom ROMs on my phones.
Click to expand...
Click to collapse
I don't understand your question. If you want to debloat Google Play Services why installing Gapps in the first place ?
kurtn said:
Install f-droid and hacker's keyboard before install [...]
Reboot is OK. Playstore still there, but can be deactivated. Samsung_bloat can't be debloated.
Sometimes I get the message Google play services has stopped. [...]
Edit: debloating webview was no good idea. I've got many crashes of antennapod app. Restoring helped.
Click to expand...
Click to collapse
Small tip : you can directly do
Code:
$ adb install F-droid.apk
There was a pretty nasty bug in v2.1 which prevented using the "manufacturer lists". Use v2.2.1 (or, better, wait for the v2.3 which should be released within the week!)
If you have the message `Google Play Services has stopped` it means you didn't uninstall the package. Did you uninstall some Google packages in the advanced debloat section ?
Regarding the Google Webview you can uninstall it but a lot of apps will no longer work correctly or even open. Bromite WebView is a good and more private alternative if you really need a Webview (which is a kind of mini web browser for apps which need to display web content btw)
kurtn said:
Looks good. Only headlines are now says four times Samsung.
GMS debloat fails with some device policy error.
Click to expand...
Click to collapse
Maybeyou said:
Hi, thank you for this nice thread, exactly what I was looking for.
Possibly a solution for google play services:
I did deactivated the Google play services on Samsung a20 without computer by entering settings app, then "biometric and security" then "other security settings" then "device admin apps" and unselect "find my device", then head over apps in settings and "show system apps, then search for Google play services and now it can be disabled,
For samsung apps you can deactivate it by deactivating "galaxy store"
Perhaps the user must do that before running the code.
HOPE you can manage to translate that into your code language, and integrate it into your script, so we can all enjoy it.
Click to expand...
Click to collapse
@Maybeyou is right. You need to uncheck Find My Device from the Device admin apps before trying to uninstall the Google Play Services.
I already mentioned this in the Google.sh file and a script can't do it. It's something you need to do ! I assume a user will read the package description I wrote in the advanced debloat section before doing anything.
Maybeyou said:
Hi, I encountered a very small problem today when i tried to share a video to another phone through Wi-Fi Direct, I can't share with wifi Direct, the only available option is bluetooth (see attachment), do you how can I solve this ?
Click to expand...
Click to collapse
Mhm... I delete Wifi-direct by default but I'm gonna change this behavior for the next version.
Restore com.samsung.android.allshare.service.fileshare to get Wifi-direct back
@w1nst0n_fr thank you. My first post was not about debloating custom rom from GApps. It was a general question: is the debloater an alternative approach to get a 99% Google free phone. My answer: yes, but you need some luck. You can't know how your phone perfoms afterwards. For custom rom there are tons of reports for each device.
w1nst0n_fr said:
Sorry for the wait!
I'm glad you find my project useful !
Mhm... I delete Wifi-direct by default but I'm gonna change this behavior for the next version.
Restore com.samsung.android.allshare.service.fileshare to get Wifi-direct back
Click to expand...
Click to collapse
Yes this is a great project for me, and I did restore com.samsung.android.allshare.service.fileshare and now wifi Direct is working again. Thanks mate, keep up this great work brother
kurtn said:
@w1nst0n_fr thank you. My first post was not about debloating custom rom from GApps. It was a general question: is the debloater an alternative approach to get a 99% Google free phone. My answer: yes, but you need some luck. You can't know how your phone performs afterwards. For custom rom there are tons of reports for each device.
Click to expand...
Click to collapse
Oh ! I misread you first post actually. You were talking about Gapps free phone. I understand better now!
IMO the most reliable and safest way to get a 99% Google free phone is to install an AOSP custom ROM without Gapps. For the 1% left you need to tinker with DNS, WebView, GPS... (this guide is not bad)
I insist on AOSP custom ROM because a stock-based custom ROM has the same issues as my script. The thing is it is not always possible to unlock the bootloader or to find an AOSP ROM for one's device. This why I created this script.
What is really tedious and not always simple is to document all the packages. There is a LOT of system packages whose the exact function is hard to determine and the consequence of their uninstallation very obscure. When I have the apk I can at least try to reverse-engineer to make some assumptions but it isn't bulletproof.
Maybeyou said:
Yes this is a great project for me, and I did restore com.samsung.android.allshare.service.fileshare and now wifi Direct is working again. Thanks mate, keep up this great work brother
Click to expand...
Click to collapse
Thanks.
w1nst0n_fr said:
Oh ! I misread you first post actually. You were talking about Gapps free phone. I understand better now!
IMO the most reliable and safest way to get a 99% Google free phone is to install an AOSP custom ROM without Gapps. For the 1% left you need to tinker with DNS, WebView, GPS... (this guide is not bad)
I insist on AOSP custom because a stock-based custom ROM has the same issues as my script. The thing is it is not always possible to unlock the bootloader or to find an AOSP ROM for his/her device. This why I created this script.
What is really tedious and not always simple is to document all the packages. There are a LOT of system packages whose the exact function is hard to determine and the consequence of their uninstallation very obscure. When I have the apk I can at least try to reverse-engineer to make some assumptions but it isn't bulletproof.
Thanks.
Click to expand...
Click to collapse
Nice promotion! "Hey this is second best" I see quite some advantages over aosp rom.
Better hardware support like camera or graphics acceleration.
Better security due to locked boot loader and latest patches in proprietary components.
Better stability - no hobbyists mess around.
hi developer
can u pls screenshot or youtube record the process please? im abit lost with the whole thing. i am aware how to use adb n remove manually bloatwares. unless u could provide the whole lists of bloatwares?
rameshhelp said:
hi developer
can u pls screenshot or youtube record the process please? im abit lost with the whole thing. i am aware how to use adb n remove manually bloatwares. unless u could provide the whole lists of bloatwares?
Click to expand...
Click to collapse
Download zip from link in OP. There are human readable files inside
I did "install WSL (Windows Subsystem for Linux) in order to be able to use bash scripts and Install ADB. If you want ADB support everywhere on your PC, you need to add the path of the ADB folder in the system variables"
When i use bash app: bash debloat_script.sh and get error "debloat_script.sh: line 112: adb: command not found"
Plz help me, tnx
netcrk said:
I did "install WSL (Windows Subsystem for Linux) in order to be able to use bash scripts and Install ADB. If you want ADB support everywhere on your PC, you need to add the path of the ADB folder in the system variables"
When i use bash app: bash debloat_script.sh and get error "debloat_script.sh: line 112: adb: command not found"
Plz help me, tnx
Click to expand...
Click to collapse
At some point it's easier to run a real Linux system. Dual boot or live usb stick.
- hi guys, i would like to share this exported txt file from 'debloater' which i installed as a magisk module to debloat a samsung phone, in essence debloater works in the same way as the script in the main thread ( thanks @w1nst0n_fr ) other than it can be used locally in termux.
- it took me a while to get the phone to a stable state with multiple tries but i eventually managed to do it.
- I've managed to debloat most of samsung/google junk out including but not limited to google apps, i hope this will help

Pixel 3 (Blueline) + Lineage 17.1 + OpenGapps Nano + Magisk + AdGuard + Google Family Link

I have two Pixel 3 devices that I am trying to set up with minimal Google presence for the kids. Pretty much the only Google service I want is the Play Store so I can use my existing library. The kids' accounts are already set up on Family Link, so in order to use the Play Store I have to use Family Link. That is my problem. Configuring Family Link fails in a loop on the last step while activating device administrator. Tried everything I can think of and looking for any advice from here.
I'm unlocked and have Lineage 17.1 and OpenGapps 10.0 ARM64 (I've tried Nano/Pico/Mini/Full but I want to use either Pico or Nano) and rooted
Spoiler
yeah, it took a while to find the LineageOS thread for Blueline under Crosshatch... that is the only place that it bothers to mention to use the lineage-17.1-XXXXXXX-recovery-blueline.img file as the root.img to patch with Magisk and flash. I took the long route installing Python and extratching from the payload.bin out of the Lineage zip before finding that. /facepalm
Using AdGuard https filtering requires installing a certificate, which you cannot do once FamilyLink is set up. That means the first time boot has to skip adding a Google account. Install Adguard APK and install certificate. That works fine, just adds time to each test set up.
After installing certificate, I've tried both adding the child account directly into the Play Store and sideloading the Family Link apk and signing in through it (because I dont have access to the Play Store yet to download). Either way, it goes through the log in for child's account, then logging into the adult account, then adding a device name for the child's device, selecting approved apps, and then tries to activate device manager. From there it hits the same issue others have described since 2018 with it just looping. Activating the device manager manually doesn't help.
As I understand it, there are 3 different Family Link APKs. 1) Parents 2) Kids 3) Manager. That Manager app I believe is preinstalled on most devices as a system app, but since I'm using a small package of Open Gapps it isn't there. The only freestanding APK i've found is from APKPure of version 1.0.0.257492102 dating back to 2019. And since it has to be installed as a system app to be a device manager, I have to have root to install it. Still doesn't work.
Any other ideas I could try?
LineageOS Official
LineageOS XDA
OpenGapps
Magisk
Misc Family Link posts from XDA & Google Forums 1, 2, 3, 4
maghig said:
I have two Pixel 3 devices that I am trying to set up with minimal Google presence for the kids. Pretty much the only Google service I want is the Play Store so I can use my existing library. The kids' accounts are already set up on Family Link, so in order to use the Play Store I have to use Family Link. That is my problem. Configuring Family Link fails in a loop on the last step while activating device administrator. Tried everything I can think of and looking for any advice from here.
I'm unlocked and have Lineage 17.1 and OpenGapps 10.0 ARM64 (I've tried Nano/Pico/Mini/Full but I want to use either Pico or Nano) and rooted
Spoiler
yeah, it took a while to find the LineageOS thread for Blueline under Crosshatch... that is the only place that it bothers to mention to use the lineage-17.1-XXXXXXX-recovery-blueline.img file as the root.img to patch with Magisk and flash. I took the long route installing Python and extratching from the payload.bin out of the Lineage zip before finding that. /facepalm
Using AdGuard https filtering requires installing a certificate, which you cannot do once FamilyLink is set up. That means the first time boot has to skip adding a Google account. Install Adguard APK and install certificate. That works fine, just adds time to each test set up.
After installing certificate, I've tried both adding the child account directly into the Play Store and sideloading the Family Link apk and signing in through it (because I dont have access to the Play Store yet to download). Either way, it goes through the log in for child's account, then logging into the adult account, then adding a device name for the child's device, selecting approved apps, and then tries to activate device manager. From there it hits the same issue others have described since 2018 with it just looping. Activating the device manager manually doesn't help.
As I understand it, there are 3 different Family Link APKs. 1) Parents 2) Kids 3) Manager. That Manager app I believe is preinstalled on most devices as a system app, but since I'm using a small package of Open Gapps it isn't there. The only freestanding APK i've found is from APKPure of version 1.0.0.257492102 dating back to 2019. And since it has to be installed as a system app to be a device manager, I have to have root to install it. Still doesn't work.
Any other ideas I could try?
LineageOS Official
LineageOS XDA
OpenGapps
Magisk
Misc Family Link posts from XDA & Google Forums 1, 2, 3, 4
Click to expand...
Click to collapse
If it helps, you don't need to install the AdGuard APK for ad filtering. I am on the stock ROM, and I go to Settings, Network, Private DNS, select "Private DNS provider hostnaame", and enter dns.adguard.com. I believe Lineage has a similar setting.

Categories

Resources