mirror of
https://gitlab.com/Nanolx/NanoDroid
synced 2024-10-31 09:20:23 +00:00
CommonInstaller: migrate /data/adb/.nanodroid-list to /data/adb/NanoDroid_FileList
This commit is contained in:
parent
3f508cd808
commit
9e78b1d563
@ -8,6 +8,9 @@
|
||||
* don't register services.jar in uninstaller information for System Mode installation
|
||||
* fixes logical interferences with CommonInstaller
|
||||
|
||||
* CommonInstaller
|
||||
* migrate /data/adb/.nanodroid-list to /data/adb/NanoDroid_FileList
|
||||
|
||||
### General Changes
|
||||
|
||||
* CommonInstaller, Uninstaller
|
||||
|
@ -250,6 +250,8 @@ migrate_magisk_custom () {
|
||||
}
|
||||
|
||||
detect_mode () {
|
||||
[ -f /data/adb/.nanodroid-list ] && mv /data/adb/.nanodroid-list "${NANODROID_LIST}"
|
||||
|
||||
case "${nanodroid_forcesystem}" in
|
||||
1 )
|
||||
MODE_DETECT=forced
|
||||
@ -285,9 +287,7 @@ detect_mode () {
|
||||
ui_print " "
|
||||
|
||||
if [ "${MODE}" = "SYSTEM" ]; then
|
||||
if test -f ${NANODROID_LIST} -o \
|
||||
-f /data/adb/.nanodroid-list -o \
|
||||
-f /system/addon.d/91-nanodroid.sh; then
|
||||
if [ -f "${NANODROID_LIST}" -a "$(wc -l < "${NANODROID_LIST}")" -gt 1 ]; then
|
||||
NANODROID_UPGRADE=1
|
||||
else NANODROID_UPGRADE=0
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user