From 176b764e37de1534bddca191bebc6bde668a2dab Mon Sep 17 00:00:00 2001 From: Christopher Roy Bratusek Date: Tue, 10 Jul 2018 17:24:00 +0200 Subject: [PATCH] CommonInstaller: improve check wether installation is an upgrade (system mode) --- CommonInstaller | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CommonInstaller b/CommonInstaller index 1525887..842eff6 100644 --- a/CommonInstaller +++ b/CommonInstaller @@ -240,7 +240,7 @@ detect_mode () { ui_print " " if [ "${MODE}" = "SYSTEM"]; then - if test -f /system/etc/default-permissions/microg-permissions.xml; then + if test -f /data/adb/.nanodroid-list -o -f /system/addon.d/91-nanodroid.sh; then NANODROID_UPGRADE=1 else NANODROID_UPGRADE=0