2
0
mirror of https://gitlab.com/Nanolx/NanoDroid synced 2024-10-31 09:20:23 +00:00
NanoDroid/doc/NanoDroidOverlay.md

109 lines
3.2 KiB
Markdown
Raw Normal View History

2020-09-09 18:53:54 +00:00
Table of Contents
=================
* [NanoDroid-Overlay Script](#nanodroid-overlay-script)
* [Purpose](#purpose)
* [Pseudo Debloat Feature](#pseudo-debloat-feature)
* [Force Debloat Feature](#force-debloat-feature)
* [Alter the list of pseudo-debloated applications](#alter-the-list-of-pseudo-debloated-applications)
* [Invocation](#invocation)
* [Overview](#overview)
* [Default Settings](#default-settings)
Created by [gh-md-toc](https://github.com/ekalinin/github-markdown-toc)
2018-03-15 20:27:26 +00:00
# NanoDroid-Overlay Script
2018-01-23 20:11:52 +00:00
## Purpose
The `nanodroid-overlay` Script (`novl` for short) is used by NanoDroid to handle the
2018-04-24 18:30:46 +00:00
* Pseudo Debloat Feature (Magisk Mode)
* Force Debloat Feature (System Mode)
2018-04-24 18:30:46 +00:00
### Pseudo Debloat Feature
Magisk allows apps to be magically removed upon runtime. They don't get actually removed from `/system` but they are pseudo-removed during runtime (replaced by a dummy file)
2018-04-24 18:30:46 +00:00
### Force Debloat Feature
In **System Mode**, apps are moved to `/data/media/0/nanodroid_backups/` to be restored from there if necessary.
2018-04-24 18:30:46 +00:00
### Alter the list of pseudo-debloated applications
You can pseudo-debloat applications by adding them to the `.nanodroid-overlay` configuration file on your device, in one of the following directories:
2018-04-24 18:30:46 +00:00
2019-07-01 17:13:09 +00:00
* `/data/media/0` (internal storage (TWRP))
* `/sdcard1` (internal storage (ORANGEFOX))
2018-04-24 18:30:46 +00:00
* `/external_sd` (TWRP path to SD Card (if any))
* `/data` (fallabck)
2020-11-02 19:46:33 +00:00
* `/system/addon.d/` (fallback if TWRP can't mount `/data`)
* `/tmp` (fallback if TWRP can't mount `/data`)
2018-04-24 18:30:46 +00:00
2020-09-07 18:12:50 +00:00
See the [default settings](.nanodroid-overlay) (contains instructions aswell).
2018-04-24 18:30:46 +00:00
The syntax is pretty simple:
2020-09-07 18:12:50 +00:00
* one app per line (no leading spaces)
* name must be an exact match of the **directory** of the app, **not** the app name or app id
* commented out lines (starting with #) are ignored
The following paths are searched for matching apps:
* `/system/app`
* `/system/priv-app`
* `/system/reserve`
* `/system/product/app`
* `/system/product/priv-app`
2018-04-24 18:30:46 +00:00
After you've made your changes, issue the following command on your device, either using `adb shell` or **Termux** as root:
```bash
nanodroid-overlay --update
```
2018-04-24 18:30:46 +00:00
2018-01-23 20:11:52 +00:00
## Invocation
From a terminal on your device, for example `adb shell` or `Termux` invoke the script using either
2018-01-23 20:11:52 +00:00
`nanodroid-overlay [switch] [parameter(s)]` or `novl [switch] [parameter(s)]`
2018-01-23 20:11:52 +00:00
2018-03-15 20:27:26 +00:00
## Overview
2018-01-23 20:11:52 +00:00
`-a`, `--add` [app]
add Overlay for **app** (if it exists) and add it to the config file; [app] is the name of the app's directory in `/system/app` or `/system/priv-app`
`-r`, `--remove` [app]
remove Overlay for **app** (if it exists) and remove it from the config file; [app] is the name of the app's directory in `/system/app` or `/system/priv-app`
`-s`, `--show`
show all apps that **don't** have an Overlay (slow)
`-l`, `--list`
show all apps that **do** have an Overlay
`-x`, `--create`
create Overlays from config file
`-u`, `--update`
2018-04-24 18:30:46 +00:00
**The following features are only available in Magisk Mode:**
2018-01-23 20:11:52 +00:00
remove existing Overlays and re-create them from the config file
`-c`, `--clear`
remove existing Overlays
`-g`, `--genconfig`
(re-)create config file from existing Overlays
2020-09-07 18:12:50 +00:00
## Default Settings
The applications listed in `.nanodroid-overlay` are debloated by default.