[Magisk] Setialpha:
20.8.91.20190525 (21.0-beta2)

Hi all,

the second beta for version 21.0 (internal version code 20.8.91) is now available (announcement for the first beta).

Compared to the first beta this release brings one major new feature to the installer: automatic privapp-permission whitelist creation. Certain permissons for priviledged apps need to be whitelisted, else the ROM does not boot. Since Android versions vary, and sometimes also different custom ROMs expect different whitelists, the Installer now scans framework-res.apk for the list of expected whitelisted permissions and dynamically creates the whitelisting permission files during the installation. I successfully tested this with AICP 14.0 for OnePlus 5T and NitrogenOS Pie for OnePlus 3T.

So I strongly encourage to report back, whether it works. For everyone who is willing to further aid in testing I'd like to ask you to test it with a clean flash instead of just when updating (a TWRP backup is suggested).

Full ChangeLog since last stable version:

### Notes

* This release drops support for Magisk older than version 19.0!
* except the Uninstaller

### Bugfixes

* logscleaner init.d Script
* prevent the script from unintentionally removing Magisk log

* Uninstaller
* syntax fix

### General

* Installer, Uninstaller, Addon.d, Patcher
* use full `/data/media/0` path instead of `/sdcard`

* Installer
* store installation logs into `/data/media/0/nanodroid_logs` instead of `/data/adb`
* change file permissions, so they can be accessed as ordinary user
* append version to the installation logs
* for example: `NanoDroid_20.8.20190504_log_20190505-21.35.00`
* append `.log` extension to installation logs
* when updating NanoDroid in Magisk Mode make init.d logs survive it
* automatically create priv-app permission whitelist files
* simplify code

* Uninstaller
* remove `/data/media/0/nanodroid_logs` aswell

* SysTest
* store logs into `/data/media/0/nanodroid_logs` instead of `/data/media/0`
* change file permissions, so they can be accessed as ordinary user
* append date in +%Y%m%d-%H.%M.%S format to log file name
* example: 20190505-09.35.00, 20190505-21.35.00
* add check whether ROM supports Bromite WebView installation
* improve check whether Magisk is installed
* also log Magisk version
* also log whether Magisk is imageless or not
* pipe installed package checks through `sort` for nicer log result
* update mount code

* Full package
* drop OmniJAWS

* Full, microG packages
* move Aurora Store from `priv-app` to `app`, drop now useless permission file @Vavun

* Bromite WebView package
* only install Bromite WebView if ROM supports `com.android.webview`

* Scripts
* detect full path to storage instead of hardcoding `/sdcard`

* init.d Scripts
* move init.d scripts logs from `${MODDIR}/.logs` to `${MODDIR}/logs`
* change and unify time format to 24h clock for logging to "+%Y%m%d-%H.%M.%S"
* example: 20190505-09.35.00, 20190505-21.35.00
* wait for `vold.post_fs_data_done` instead of `sys.boot_completed` @Vavun
* make all init.d scripts wait until device fully booted
* only effects System Mode, already been the case for Magisk Mode before
* sort init.d logically, so that native init.d starts them successively @Vavun
* only execute load heavy scripts if battery charge is at least 15 % @Vavun

* logscleaner init.d Script
* only clean files older than 7 days
* verbose logging

* logcat init.d Script
* verbose logging of the script itself
* simplify code

* fstrim init.d Scripts
* trim `/vendor` aswell @Vavun

* external_sd init.d Script
* if `ro.build.characteristics` contains `nosdcard` abort without further action

### Updates

* automatic
* Simple Gallery (6.7.5)
* Simple Calendar (6.5.0)
* F-Droid (1.6.1)
* Termux (0.71)
* Tor Browser (60.7.1)

* manual
* Google Play (15.0.13)
* MPV (20190511-nightly)

Download links

Download from Nanolx.

Bug reporting

In case of errors, please provide

/data/media/0/MODID_log_INSTALLDATE

/data/media/0/MODID_twrp_INSTALLDATE

SysTest package logfile

logcat (if applicable)