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

Search This thread

ranton1990

New member
Jan 9, 2021
4
2
If your current installation works satisfying and you only whish to update the installed apps, I propose, to not flash nanodroid, but update with f-droid.

I especially look to update microG, but the fdroid repo wont let me due to wrong signature. Is there a certain fdroid repo? Or do i have to disable signature spoofing before updating microg through fdroid? Thanks
 

kurtn

Senior Member

ranton1990

New member
Jan 9, 2021
4
2
There is a microG repo. Maybe you should disable all other repos temporarily for f-droid to find the correct com.google.android.gms


Yes i tried that, but it wont let me due to "This app has been signed with a different key". When i try to enable unsupported versions in fdroid, it tells me to uninstall the app first. Could it be because in my case the 23.0.1. installer did not install microg as an user app?
 

kurtn

Senior Member
Yes i tried that, but it wont let me due to "This app has been signed with a different key". When i try to enable unsupported versions in fdroid, it tells me to uninstall the app first. Could it be because in my case the 23.0.1. installer did not install microg as an user app?
Oops. Nanodroid installed some non-standard APP. And it's no longer part oft nanodroid repository. So you really should flash a nanodroid update.
 
  • Like
Reactions: thomasnsr
Sep 14, 2017
38
13
I tried to install the latest patcher on LOS 18.1 (Android 11) today getting this error:

Code:
- Copying zip to temp directory
- Installing NanoDroid-patcher-23.1.20210109.zip

********************************
NanoDroid                   
Framework Patcher           
Powered by DexPatcher       
23.1.20210109                   
********************************

chmod: /busybox.x86: No such file or directory
mkdir: can't create directory '/busybox': Read-only file system
ln: /busybox/busybox: No such file or directory
update-binary: line 333: /busybox.x86: not found
> preparing environment
> Android 7.0 - 10.0 (SDK 30) detected
*** LD_CONFIG_FILE=/apex/com.android.art/etc/ld.config.txt
> device architecture: arm64
> installation mode: MAGISK


++
++ services.jar status: DEODEX
++

> patching signature spoofing support

>> patching services.jar
*** BOOTCLASSPATH=/apex/com.android.art/javalib/core-oj.jar:/apex/com.android.art/javalib/core-libart.jar:/apex/com.android.art/javalib/core-icu4j.jar:/apex/com.android.art/javalib/okhttp.jar:/apex/com.android.art/javalib/bouncycastle.jar:/apex/com.android.art/javalib/apache-xml.jar:/system/framework/framework.jar:/system/framework/ext.jar:/system/framework/telephony-common.jar:/system/framework/voip-common.jar:/system/framework/ims-common.jar:/system/framework/framework-atb-backward-compatibility.jar:/apex/com.android.conscrypt/javalib/conscrypt.jar:/apex/com.android.media/javalib/updatable-media.jar:/apex/com.android.mediaprovider/javalib/framework-mediaprovider.jar:/apex/com.android.os.statsd/javalib/framework-statsd.jar:/apex/com.android.permission/javalib/framework-permission.jar:/apex/com.android.sdkext/javalib/framework-sdkextensions.jar:/apex/com.android.wifi/javalib/framework-wifi.jar:/apex/com.android.tethering/javalib/framework-tethering.jar
*** DALVIKVM_OPTS=
Error preloading public library libandroid.so: dlopen failed: library "libstatssocket.so" not found: needed by /system/lib64/libandroid_runtime.so in namespace system
Aborted

!! failed to apply patches

! Installation failed

Can someone help me please? Did I miss something? Same thing happens with busybox installed, just without the missing busybox part.
Thanks a lot :)
 

kurtn

Senior Member
I tried to install the latest patcher on LOS 18.1 (Android 11) today getting this error:

Code:
- Copying zip to temp directory
- Installing NanoDroid-patcher-23.1.20210109.zip

********************************
NanoDroid                  
Framework Patcher          
Powered by DexPatcher      
23.1.20210109                  
********************************

chmod: /busybox.x86: No such file or directory
mkdir: can't create directory '/busybox': Read-only file system
ln: /busybox/busybox: No such file or directory
update-binary: line 333: /busybox.x86: not found
> preparing environment
> Android 7.0 - 10.0 (SDK 30) detected
*** LD_CONFIG_FILE=/apex/com.android.art/etc/ld.config.txt
> device architecture: arm64
> installation mode: MAGISK


++
++ services.jar status: DEODEX
++

> patching signature spoofing support

>> patching services.jar
*** BOOTCLASSPATH=/apex/com.android.art/javalib/core-oj.jar:/apex/com.android.art/javalib/core-libart.jar:/apex/com.android.art/javalib/core-icu4j.jar:/apex/com.android.art/javalib/okhttp.jar:/apex/com.android.art/javalib/bouncycastle.jar:/apex/com.android.art/javalib/apache-xml.jar:/system/framework/framework.jar:/system/framework/ext.jar:/system/framework/telephony-common.jar:/system/framework/voip-common.jar:/system/framework/ims-common.jar:/system/framework/framework-atb-backward-compatibility.jar:/apex/com.android.conscrypt/javalib/conscrypt.jar:/apex/com.android.media/javalib/updatable-media.jar:/apex/com.android.mediaprovider/javalib/framework-mediaprovider.jar:/apex/com.android.os.statsd/javalib/framework-statsd.jar:/apex/com.android.permission/javalib/framework-permission.jar:/apex/com.android.sdkext/javalib/framework-sdkextensions.jar:/apex/com.android.wifi/javalib/framework-wifi.jar:/apex/com.android.tethering/javalib/framework-tethering.jar
*** DALVIKVM_OPTS=
Error preloading public library libandroid.so: dlopen failed: library "libstatssocket.so" not found: needed by /system/lib64/libandroid_runtime.so in namespace system
Aborted

!! failed to apply patches

! Installation failed

Can someone help me please? Did I miss something? Same thing happens with busybox installed, just without the missing busybox part.
Thanks a lot :)
Patcher is not compatible with android 11, yet.
 

starbright_

Senior Member
Apr 11, 2010
1,471
262
I add the log for the failed patcher:

Code:
Installing zip file '/sdcard1/Install/NanoDroid-patcher-23.1.20210109.zip'
Checking for Digest file...
Unmounting System...
I:Update binary zip
Verifying package compatibility...
Package doesn't contain compatibility.zip entry
I:Extracting updater binary 'META-INF/com/google/android/update-binary'
I:Zip does not contain SELinux file_contexts file in its root.
I:Legacy property environment not used in updater.
 
********************************
 NanoDroid                     
 Framework Patcher             
 Powered by DexPatcher         
 23.1.20210109                     
********************************
 
chmod: /busybox.arm: No such file or directory
/tmp/updater[21]: /busybox.arm: not found
/tmp/updater[22]: sed: not found
 INFO: #1 [SLOT]
/tmp/updater[22]: sed: not found
 INFO: #2 [SLOT]
/tmp/updater[22]: readlink: not found
/tmp/updater[22]: mount: not found
failed to mount /data!
/tmp/updater[22]: mount: not found
/tmp/updater[22]: find: not found
/tmp/updater[22]: head: not found
/tmp/updater[22]: find: not found
/tmp/updater[22]: head: not found
/tmp/updater[22]: awk: not found
...
/tmp/updater[22]: awk: not found
/tmp/updater[22]: readlink: not found
 INFO: #5 [SYSTEM_BLOCK]
/tmp/updater[22]: mkdir: not found
/tmp/updater[22]: mount: not found
/tmp/updater[22]: find: not found
/tmp/updater[22]: head: not found
/tmp/updater[22]: find: not found
/tmp/updater[22]: head: not found
/tmp/updater[22]: awk: not found
...
/tmp/updater[22]: awk: not found
/tmp/updater[22]: readlink: not found
 INFO: #7 [VENDOR_BLOCK]
/tmp/updater[22]: readlink: not found
/tmp/updater[22]: mount: not found
/tmp/updater[22]: readlink: not found
/tmp/updater[22]: mount: not found
/tmp/updater[22]: readlink: not found
 
/tmp/updater[22]: mount: not found
/tmp/updater[22]: sed: not found
/tmp/updater[22]: awk: not found
 
 INFO: #8 [prop]
/tmp/updater[22]: ls: not found
 
 !! failed to mount /system (unsupported A/B device?)
 

Setialpha

Senior Member
Jul 24, 2011
2,555
5,890
Nürnberg
www.nanolx.org
OnePlus 7T
Hi everyone,

a new bugfix release 23.1.1, Codname Zora is now availabe!

ChangeLog

Code:
## 23.1.1.20210116 "[Zora](https://memory-alpha.fandom.com/wiki/Zora_(artificial_intelligence))"

## Bug Fixes

* Installer, Uninstaller, SysTest, Patcher
  * fix bugs regarding mounting `/system` from TWRP

* Patcher
  * fix a regression causing Patcher not to be properly executed

## General Changes

* Installer, Uninstaller, SysTest, Patcher
  * improve mounting code `/system` from TWRP

* NanoDroid-Overlay
  * check whether configuration file exists before doing anything (`-x`/`--create`)

## Updates

* automatic
  * microG GmsCore (0.2.17.204714)
  * Amaze (3.5.3)
  * K-9 Mail (5.726)
  * Simple Calendar (6.11.4)
  * Tor Brower (10.0.8)

Download links

Download from Nanolx.

Bug Reporting

In case of errors, please provide
  • when installing from TWRP
    • /data/media/0/nanodroid_logs/MODID_log_INSTALLDATE
    • /data/media/0/nanodroid_logs/MODID_twrp_INSTALLDATE
    • /tmp/recovery.log
  • when installing from Magisk Manager
    • /data/media/0/nanodroid_logs/MODID_log_INSTALLDATE
    • press the save icon and post the Magisk Manager created logfile aswell
  • SysTest package logfile
  • logcat (if applicable)
 

Roberto W.

Senior Member
Dec 10, 2017
196
60
Samsung Galaxy S7
still error while mounting /system on twrp

unsupported a/b device

while installing nanodroid google.zip

using magisk works fine
 

Attachments

  • recovery.log.zip
    6 KB · Views: 7
Last edited:

K9100ii

Senior Member
Nov 8, 2018
667
1,829
Actually, no. There's something complety wrong on your Samsung device trying to setup busybox, basically the whole installer fails. I'll investigate.
The problem is that the following architecture check for which architecture busybox binary should be used (arm or x86) in the CommonInstaller script doesn't work on TWRP builds which use busybox (I got this check from the MicroG package):
Code:
setup_busybox () {
    if [[ "$(uname -m)" == a* ]]; then
        local bb_arch=arm
    else    local bb_arch=x86
    fi
[...]
When this architecture check fails, the x86 busybox binary will be used instead, which will of course not execute on devices with an ARM CPU, and causes such issues.

You need to use a TWRP build which uses toolbox instead of busybox. This has absolutely nothing to do with who manufactured your device. I tested my own build of TWRP on my Galaxy Tab A 10.1" 2016, which uses toolbox instead of busybox, and the latest nanodroid packages (I tested the MicroG and Bromite webview packages) install perfectly fine.
 

Setialpha

Senior Member
Jul 24, 2011
2,555
5,890
Nürnberg
www.nanolx.org
OnePlus 7T
The problem is that the following architecture check for which architecture busybox binary should be used (arm or x86) in the CommonInstaller script fails on TWRP builds which use busybox (I got this check from the MicroG package):
Code:
setup_busybox () {
    if [[ "$(uname -m)" == a* ]]; then
        local bb_arch=arm
    else    local bb_arch=x86
    fi
[...]
When this architecture check fails, the x86 busybox binary will be used instead, which will of course not execute on devices with an ARM CPU, and causes such issues.

You need to use a TWRP build which uses toolbox instead of busybox. This has absolutely nothing to do with who manufactured your device. I tested my own build of TWRP on my Galaxy Tab A 10.1" 2016, which uses toolbox instead of busybox, and the latest nanodroid packages (I tested the MicroG and Bromite webview packages) install perfectly fine.

I figured that out meanwhile, I'll change the checks so they work with both toolbox and busybox. I didn't know TWRP comes with different "flavours".
 

Setialpha

Senior Member
Jul 24, 2011
2,555
5,890
Nürnberg
www.nanolx.org
OnePlus 7T
The problem is that the following architecture check for which architecture busybox binary should be used (arm or x86) in the CommonInstaller script doesn't work on TWRP builds which use busybox (I got this check from the MicroG package):
Code:
setup_busybox () {
    if [[ "$(uname -m)" == a* ]]; then
        local bb_arch=arm
    else    local bb_arch=x86
    fi
[...]
When this architecture check fails, the x86 busybox binary will be used instead, which will of course not execute on devices with an ARM CPU, and causes such issues.

You need to use a TWRP build which uses toolbox instead of busybox. This has absolutely nothing to do with who manufactured your device. I tested my own build of TWRP on my Galaxy Tab A 10.1" 2016, which uses toolbox instead of busybox, and the latest nanodroid packages (I tested the MicroG and Bromite webview packages) install perfectly fine.

 

Sc4r3Crow

Senior Member
May 18, 2017
1,163
211
@Setialpha I'm using Nandroid since a couple of months and I love it (y)

Some time ago I've realized that I can't save contacts to my device anymore, that means I can't select my device as standard account for new contacts. I only have the opportunity to use either a Google account or one of my email accounts for saving them.
Is that related to the latest build of NanoDroid/MicroG or to the custom rom I'm using?

I'm not 100% sure but I think when I was using an older build of NanDroid with the same rom I'm using atm, I've been able to save contacts to device directly :unsure:
 

Top Liked Posts

  • There are no posts matching your filters.
  • 357
    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).