You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
NanoDroid/doc/BuildPackage.md

2.7 KiB

Table of Contents

Created by gh-md-toc

build-package

You can create snapshots from this repository using the build-package script.

Basic Instructions

On GNU/Linux, MacOS or xBSD clone this repository and use the provided build-package script like

download required files:

  • build-package pull to download all required apks and libraries for the Full, microG and F-Droid packages

for apks downloaded from F-Droid repositories or from APK Mirror, build-package checks the SHA256 hash.

update required files:

  • build-package u-microg to update microG
  • build-package u-fdroid to update F-Droid
  • build-package u-apps to update applications
  • build-package u-swipe to update swipe libraries
  • build-package u-gsync to update Google Sync Adapters
  • build-package u-bromite to update Bromite WebView
  • build-package u-osmand to update OpenStreetMap (OsmAnd)
  • build-package u-patch to update Haystack patches
  • build-package pull to update/re-download everything

build packages:

  • build-package full to create the Full package
  • build-package microg to create the microG only package
  • build-package fdroid to create the F-Droid only package
  • build-package patcher to create the on-device framework-patcher package
  • build-package uninstaller to create the uninstaller package
  • build-package bromitewebview to create the Bromite WebView package
  • build-package osmand for the OpenStreetMap (OsmAnd) package
  • build-package systest to create the SysTest package
  • build-package google to create the Google (Sync Adapters & Swipe libraries) package
  • build-package all to create all packages at once

Additional Features

The build-package script additionally supports the following parameters:

  • check check if all files were properly downloaded
  • report create a package report
  • clean remove any untracked files from the repo (e. g. from build-package pull)
  • dalvik [.jar] prepare a jar file for use with DalvikVM (requires Android SDK)
  • ver [version] [date] change project version (if no date is given 99999999 will be used)
  • bump increment Magisk module version by 1

"Secret" parameters

  • export BP_DEBUG=1 allows seeing debug messages when repos are fetched and APKs are downloaded
  • export BP_USE_WGET=1 tells the script to use wget for downloading indices and APks