• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!

[MODULE/SYSTEM] NanoDroid 23.1.2.20210117 (microG, pseudo-debloat, F-Droid + apps)

Search This thread

Setialpha

Senior Member
Jul 24, 2011
2,554
5,880
Nürnberg
www.nanolx.org
OnePlus 7T
NanoDroid

NanoDroid is a installer for various OpenSource related things, most noticably microG and F-Droid. It supports direct /system installation, both devices with or without A/B partition scheme, aswell as Magisk Mode (module) installation. It also includes several tools (eg. GNU Bash, shell utilities, more), scripts, fonts, sounds and additional features (system debloating, init scripts, automatic logcat creation), aswell as a companion F-Droid Repository.

Furthermore it allows the user to do fine-graded installations using configuration files, which allow to choose what to install, or if several alternatives are available, which of them, see "Alter Installation" in the full documentation (link at the end of this post).

In order for full microG experience NanoDroid contains a modified Play Store which allows (in-)app-purchases with microG, which would normally not be possible. It also tries to remove all previously installed GApps on it's own. For ROMs without builtin signature spoofing support NanoDroid includes an on-device Patcher which tries to patch your ROM from TWRP.

Versions until 15.1 were called NanoMod, starting with 16.0 they're called NanoDroid.

NanoDroid does now have a companion F-Droid Repository for easy updates of Play Store (patched with (in-)app-purchase support) and MPV builds Repository Info-Page

Current Release

Stable: 23.1.1.20210117 "BusyCompat"
Beta: --- (---)



Supported Android Versions

NanoDroid officially supports the following Android versions:

  • 4.4 / SDK 19 (KitKat)
    • System Mode only (Magisk does not support KitKat)
  • 5.0 / SDK 21 (Lollipop)
  • 5.1 / SDK 22 (Lollipop)
  • 6.0 / SDK 23 (Marshmallow)
  • 7.0 / SDK 24 (Nougat)
  • 7.1 / SDK 25 (Nougat)
  • 8.0 / SDK 26 (Oreo)
  • 8.1 / SDK 27 (Oreo)
  • 9.0 / SDK 28 (Pie)
  • 10.0 / SDK 29
  • 11.0 / SDK 30 (R)
    • Patcher does not work from TWRP
    • Patcher works from Magisk if your ROM's services.jar already contains classes.dex
    • Deodex Instructions
earlier versions will never officially be supported (you may still report bugs, though).

Future versions will be officially supported, eventually.

Summary

NanoDroid can be installed as a Magisk Module or directly to /system, though a bit functionality is only available with Magisk. It must be installed from TWRP!

NanoDroid includes

  • microG and it's companions
    • on-device framework-patcher for microG support (signature spoofing)
  • F-Droid and it's privileged extension
    • modified Play Store to allow (in-)app-purchases with Magisk
      • alternatively Aurora Store can be installed instead
  • custom init scripts
  • pseudo-debloat feature
  • several Open Source applications
    • include replacements for the pseudo-debloated applications
    • full list of included applications
Packages

Magisk Modules

Module packages, flashing through TWRP recommended, flashing through Magisk Manager possible starting with version 22.6.91 (22.7-beta2).

  • NanoDroid: includes
    • everything mentioned in the Summary
  • NanoDroid-microG: includes
    • microG and it's companions
    • GNU Bash
    • pseudo-debloat feature
    • app stores
  • NanoDroid-fdroid: includes
    • F-Droid and it's privileged extension
  • NanoDroid-BromiteWebView: includes
    • Bromite WebView
  • NanoDroid-OsmAnd: includes
    • OpenStreetMap for Android (OsmAnd+)

Extras

Extra packages, flashing through TWRP recommended, flashing through Magisk Manager possible starting with version 22.6.91 (22.7-beta2).

  • NanoDroid-pacher: includes
    • on-device framework-patcher (signature spoofing support)
  • NanoDroid-systest: includes
    • System Test script which generates a log to aid issue reporting
  • NanoDroid-uninstaller: includes
    • uninstalls all NanoMod/NanoDroid Magisk Modules
    • uninstalls NanoMod/NanoDroid installed in System Mode
    • uninstalls NanoMod/NanoDroid-Patcher addon.d environment

The GitLab repository contains the full documentation with infos about

  • more detailed info what's included
  • detailed installation instructions
  • setup instructions for microG
  • list of known Issues (and fixes/workarounds)
  • more
>> Full Documentation
 
Last edited:

Setialpha

Senior Member
Jul 24, 2011
2,554
5,880
Nürnberg
www.nanolx.org
OnePlus 7T
In the github repository you'll find the following changes for upcoming 5.1 (no ETA)

  • updated Magisk to beta.13.170405 (which fixes the issues I had with 12.0 on Moto X Play and Galaxy S6)
  • improved nanomod-overlay script
    • the script does now have better output for -l/--list parameter (which lists all pseudo-debloated system apps)
    • the script does now have -s/--show parameter which shows all non-pseudo-debloated system apps with both apkname and label (label = the name that shows up in launcher)
      • there's no 'column' command on android, so the output is not pretty aligned, but well

Screenshots attached.
 

Attachments

  • Screenshot_20170406_202819.png
    Screenshot_20170406_202819.png
    29.1 KB · Views: 16,167
  • Screenshot_20170406_202916.png
    Screenshot_20170406_202916.png
    35 KB · Views: 15,779
Last edited:

atendedor_de_boludos

Senior Member
May 8, 2016
128
37
Piedecuesta
Suggestion

Add this for microG set up

Disable Battery Optimization, if you use Android 6 (Marshmallow) or above. Ensure that it is disabled for microG Services Core in System Settings > Battery > Menu > Battery optimization. Note that this is the case for the original Play Services, as it is required to keep a stable background connection.
 

Setialpha

Senior Member
Jul 24, 2011
2,554
5,880
Nürnberg
www.nanolx.org
OnePlus 7T
Suggestion

Add this for microG set up

Disable Battery Optimization, if you use Android 6 (Marshmallow) or above. Ensure that it is disabled for microG Services Core in System Settings > Battery > Menu > Battery optimization. Note that this is the case for the original Play Services, as it is required to keep a stable background connection.

I mentioned to ensure everything is set in 'Self Check', but I consider will re-word that paragraph to be more clear.
 

djedjy

Senior Member
Oct 16, 2011
1,277
741
Hi. I got "updater process ended with signal 4" when tried to flash this.
Using galaxy s3, with RR 5.8.2.
 

Setialpha

Senior Member
Jul 24, 2011
2,554
5,880
Nürnberg
www.nanolx.org
OnePlus 7T
Hi. I got "updater process ended with signal 4" when tried to flash this.
Using galaxy s3, with RR 5.8.2.

After flashing in TWRP connect your phone to pc and use adb to grab a log from recovery

Code:
adb pull /tmp/recovery.log

Then post recovery.log (rename to recovery.txt) file here.
 
Last edited:

Setialpha

Senior Member
Jul 24, 2011
2,554
5,880
Nürnberg
www.nanolx.org
OnePlus 7T
Will this work on my Galaxy S7 using stock ROM? I'm interested in installing microG to satify apps dependant on Google Play Services, but I couldn't get it because it needs signature spoofing, and the mods it recommended needed a deodexed ROM, which mine is not.

If your ROM is not deodexed you can't patch services.jar, so microG won't work. Anything else in the package would work, though.
 
  • Like
Reactions: saturday_night

djedjy

Senior Member
Oct 16, 2011
1,277
741
After flashing in TWRP connect your phone to pc and use adb to grab a log from recovery

Code:
adb pull /tmp/recovery.log

Then post recovery.log (rename to recovery.txt) file here.

Here:

Code:
I:operation_start: 'Flashing'
Installing zip file '/sdcard/NanoMod-5.0.20170405.zip'
Checking for MD5 file...
Skipping MD5 check: no MD5 file found
I:Zip does not contain SELinux file_contexts file in its root.
I:Legacy property environment initialized.
 <>>  <<>
 <>>  <<>< NanoMod 5.0.20170405 >
< NanoMod 5.0.20170405 > <<>  <>>
 <<>  <>>Updater process ended with signal: 4
I:Legacy property environment disabled.
I:Install took 0 second(s).
Error installing zip file '/sdcard/NanoMod-5.0.20170405.zip'
Updating partition details...
I:Data backup size is 71MB, free: 4441MB.
I:Unable to mount '/usb-otg'
I:Actual block device: '', current file system: 'vfat'
...done
I:Set page: 'flash_done'
I:operation_end - status=1
I:Set page: 'clear_vars'
I:Set page: 'main2'
I:Set page: 'advanced'
I:Set page: 'filemanagerlist'
Truncating string cache entries.
I:Set page: 'filemanageroptions'
I:Set page: 'choosedestinationfolder'
I:Set page: 'filemanagerconfirm'
I:Set page: 'filemanageraction'
I:operation_start: 'Command'
I:Running command: 'cp "/tmp/recovery.log" "/sdcard"'
 

Setialpha

Senior Member
Jul 24, 2011
2,554
5,880
Nürnberg
www.nanolx.org
OnePlus 7T
FYI on AFH you can now find a microG only Magisk Module, too. framework-patcher.sh in github repo was updated to support both modules. You can also use 'mod.sh microg' to create the microG only zip from git repo.

Link: https://www.androidfilehost.com/?a=show&w=files&flid=150729

The microG only module does support

Code:
nanomod.reinstall
nanomod.play

configuration parameters, like the full package.
 
Last edited:

Setialpha

Senior Member
Jul 24, 2011
2,554
5,880
Nürnberg
www.nanolx.org
OnePlus 7T
version 5.1.20170408 released

Version 5.1.20170408 released, with the following changes since 5.0.20170405:

Code:
5.1.20170408:
- Internal Changes
  * only copy DroidGuard.apk to /sdcard if
    'nanomod.microg' is '1' in 'nanomod-setup'
    configuration file
  * add new option 'nanomod.zelda' to 'nanomod-setup'
  configuration file, allows to control whether to
  install or not install Zelda ringtones and sounds
  * 'nanomod.play=0' now actually works and does not
    install any app store
- Variants
  * full package: microG, F-Droid & apps, pseudo-debloat
    feature, Zelda ringtones & sounds, GNU Bash, GNU Nano,
    aapt utility
  * microG package: microG only
  * framework-patcher.sh updated to support both modules
- Removed files / features
  * Effect_Tick Zelda sound
    - I admit, that one was too annoying
  * Magisk installation
  * unsu Script
    - Read: NanoMod is now only the Module, no longer
            includes Magisk itself
- nanomod-overlay Script Changes
  * parameter '-l', respectively '--list' now has
    properly formatted output
  * parameter '-r', respectively '--remove' now
    only removed exact matches from config file
  * parameter '-a', respectively '--add' now
    properly formats config file
  * new parameter '-s', respectively '--show' which
    shows all non pseudo-debloated system applications
  * new paramter '-d', respectively '--delete' which
    will remove all overrides and thus re-enable all
    applications, unlike '-r' / '--remove' this will
    not change the config file, so you can re-debloat
    using '-u' / '--update' again
- Updates
  * Play Store (7.7.09.O)
  * VLC (2.1.4~beta)
  * GNU Nano (2.7.5)
  * Substratum (631)
- Added applications
  * F-Droid Privileged Extension (0.2.2)
    - allows installation of apps using F-Droid
      without enabling 'Unknown Sources' in the
      security settings of your device

I also changed a few things in the README/first post here (for example paragraph "Installation" with download links is now almost at top, instead of bottom). Magisk is no longer installed, so this is now really a Magisk Module on it's own.
 

f41lbl0g

Senior Member
Mar 15, 2014
301
422
FYI on AFH you can now find a microG only Magisk Module, too. framework-patcher.sh in github repo was updated to support both modules. You can also use 'mod.sh microg' to create the microG only zip from git repo.

Link: https://www.androidfilehost.com/?a=show&w=files&flid=150729

The microG only module does support

Code:
nanomod.reinstall
nanomod.play

configuration parameters, like the full package.

I installed this version, but I cannot get Phonesky (play store) to have the correct signature. System is spoofing signature correctly, but somehow play store doesn't. Every tick in self check section is there, except the "Play Store (Phonesky) has correct signature" tick. The play store works fine signing in and downloading. However apps like gmail do not work. Maybe it needs to be put in priv-app?

Running Crdroid 7.1.1 (supports spoofing signature) oneplus one, latest nanomod package 0408, magisk v12
 
Last edited:

SSNJR2002

Senior Member
Jul 14, 2015
423
200
FYI on AFH you can now find a microG only Magisk Module, too. framework-patcher.sh in github repo was updated to support both modules. You can also use 'mod.sh microg' to create the microG only zip from git repo.

Link: https://www.androidfilehost.com/?a=show&w=files&flid=150729

The microG only module does support



I installed this version, but I cannot get Phonesky (play store) to have the correct signature. System is spoofing signature correctly, but somehow play store doesn't. Every tick in self check section is there, except the "Play Store (Phonesky) has correct signature" tick. The play store works fine signing in and downloading. However apps like gmail do not work. Maybe it needs to be put in priv-app?

Running Crdroid 7.1.1 (supports spoofing signature) oneplus one, latest nanomod package 0408, magisk v12
Phonesky ie play store works normally as a user app. I am using it that way (I am on normal gapps) and I have no problems.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 350
    NanoDroid

    NanoDroid is a installer for various OpenSource related things, most noticably microG and F-Droid. It supports direct /system installation, both devices with or without A/B partition scheme, aswell as Magisk Mode (module) installation. It also includes several tools (eg. GNU Bash, shell utilities, more), scripts, fonts, sounds and additional features (system debloating, init scripts, automatic logcat creation), aswell as a companion F-Droid Repository.

    Furthermore it allows the user to do fine-graded installations using configuration files, which allow to choose what to install, or if several alternatives are available, which of them, see "Alter Installation" in the full documentation (link at the end of this post).

    In order for full microG experience NanoDroid contains a modified Play Store which allows (in-)app-purchases with microG, which would normally not be possible. It also tries to remove all previously installed GApps on it's own. For ROMs without builtin signature spoofing support NanoDroid includes an on-device Patcher which tries to patch your ROM from TWRP.

    Versions until 15.1 were called NanoMod, starting with 16.0 they're called NanoDroid.

    NanoDroid does now have a companion F-Droid Repository for easy updates of Play Store (patched with (in-)app-purchase support) and MPV builds Repository Info-Page

    Current Release

    Stable: 23.1.1.20210117 "BusyCompat"
    Beta: --- (---)



    Supported Android Versions

    NanoDroid officially supports the following Android versions:

    • 4.4 / SDK 19 (KitKat)
      • System Mode only (Magisk does not support KitKat)
    • 5.0 / SDK 21 (Lollipop)
    • 5.1 / SDK 22 (Lollipop)
    • 6.0 / SDK 23 (Marshmallow)
    • 7.0 / SDK 24 (Nougat)
    • 7.1 / SDK 25 (Nougat)
    • 8.0 / SDK 26 (Oreo)
    • 8.1 / SDK 27 (Oreo)
    • 9.0 / SDK 28 (Pie)
    • 10.0 / SDK 29
    • 11.0 / SDK 30 (R)
      • Patcher does not work from TWRP
      • Patcher works from Magisk if your ROM's services.jar already contains classes.dex
      • Deodex Instructions
    earlier versions will never officially be supported (you may still report bugs, though).

    Future versions will be officially supported, eventually.

    Summary

    NanoDroid can be installed as a Magisk Module or directly to /system, though a bit functionality is only available with Magisk. It must be installed from TWRP!

    NanoDroid includes

    • microG and it's companions
      • on-device framework-patcher for microG support (signature spoofing)
    • F-Droid and it's privileged extension
      • modified Play Store to allow (in-)app-purchases with Magisk
        • alternatively Aurora Store can be installed instead
    • custom init scripts
    • pseudo-debloat feature
    • several Open Source applications
      • include replacements for the pseudo-debloated applications
      • full list of included applications
    Packages

    Magisk Modules

    Module packages, flashing through TWRP recommended, flashing through Magisk Manager possible starting with version 22.6.91 (22.7-beta2).

    • NanoDroid: includes
      • everything mentioned in the Summary
    • NanoDroid-microG: includes
      • microG and it's companions
      • GNU Bash
      • pseudo-debloat feature
      • app stores
    • NanoDroid-fdroid: includes
      • F-Droid and it's privileged extension
    • NanoDroid-BromiteWebView: includes
      • Bromite WebView
    • NanoDroid-OsmAnd: includes
      • OpenStreetMap for Android (OsmAnd+)

    Extras

    Extra packages, flashing through TWRP recommended, flashing through Magisk Manager possible starting with version 22.6.91 (22.7-beta2).

    • NanoDroid-pacher: includes
      • on-device framework-patcher (signature spoofing support)
    • NanoDroid-systest: includes
      • System Test script which generates a log to aid issue reporting
    • NanoDroid-uninstaller: includes
      • uninstalls all NanoMod/NanoDroid Magisk Modules
      • uninstalls NanoMod/NanoDroid installed in System Mode
      • uninstalls NanoMod/NanoDroid-Patcher addon.d environment

    The GitLab repository contains the full documentation with infos about

    • more detailed info what's included
    • detailed installation instructions
    • setup instructions for microG
    • list of known Issues (and fixes/workarounds)
    • more
    >> Full Documentation
    53
    I never had a look about how much users NanoDroid might have gotten meanwhile, but I checked the stats, just for fun. So, if you wanna know, I'm leaving this here.

    Just to make it clear: no personal information is stored, only basic stuff, like country of origin, Browser agent or what has been accessed, no tracking or profiling.

    All values from May 1st to May 24th, for HTTPS access only (HTTP access to my site is down to less than 5 %, so I didn't bother).

    NanoDroid (Zips):
    - Full/Stable: ~29.300 (!!)
    - Full/Beta: ~500
    - microG/Stable: ~16.500 (!!)
    - microG/Beta: ~1.000

    NanoDroid F-Droid repo:
    - F-Droid repo update checks: ~88.000
    - custom GmsCore installs: ~4.000
    - patched Play Store installs: ~3.500
    - unofficial MPV build installs: ~1.350

    Access by country (Zips):
    - unknown (unresolved, Tor, VPN, or unknown to statistic software): 52 %
    - Germany 5 %
    - Brazil 4 %

    Access by country (F-Droid):
    - unknown (unresolved, Tor, VPN, or unknown to statistic software): 30 %
    - Germany 11 %
    - Russia 4 %

    Top referers:
    - XDA
    - Miui Browser 'Hot'
    - 4PDA

    OMG, I'm working on a project which attracts more than 45.000 users (active users of course unknown). I never thought NanoDroid would become this huge.

    Thanks a lot for your ongoing support!
    42
    Hi everyone,

    I know I've been inactive for about 2 or 3 months here.

    Those who follow the git repository might already know that some groundbreaking work was going on since beginning of August.

    A new beta release 22.6.91 (= 22.7-beta2) will drop this weekend. What's to expect:

    - full support for Android 10 (many issues resolved)
    - full support for Android 10 **if deodexed** in the Patcher
    - flashing all Packages (except the Uninstaller, needs a few changes, still) through Magisk Manager, this includes the Patcher aswell (yes, yes!)
    - more. See ChangeLog.md for the full list.

    I won't go into reading the past 10+ pages, if there are any unresolved issues or questions, feel free to post them again (or in case of issues even better: create a ticket over at gitlab, with logs included).