2
0
mirror of https://gitlab.com/Nanolx/NanoDroid synced 2024-11-02 03:40:13 +00:00

Add Aurora Store and Apple nlp to setupwizard

This commit is contained in:
Vladimir Filatov 2018-11-26 15:20:08 +00:00
parent 981cd34787
commit e747d10761
2 changed files with 37 additions and 12 deletions

View File

@ -114,7 +114,12 @@ selectbox(
"None", "Install no nlp backend", 0, #-- selected.1 = 1
"Déjà Vu", "Install Déjà Vu backend", 1, #-- selected.1 = 2
"Ichnaea", "Install Mozilla backend", 0, #-- selected.1 = 3
"Both", "Install both backends", 0 #-- selected.1 = 4
"Apple", "Install Apple backend", 0, #-- selected.1 = 4
"Déjà Vu, Ichnaea", "Install Déjà Vu and Mozilla backend", 0, #-- selected.1 = 5
"Déjà Vu, Apple", "Install Déjà Vu and Apple backend", 0, #-- selected.1 = 6
"Ichnaea, Apple", "Install Mozilla and Apple backends", 0, #-- selected.1 = 7
"Déjà Vu, Ichnaea, Apple", "Install all backends", 0 #-- selected.1 = 8
);
selectbox(
@ -127,8 +132,10 @@ selectbox(
"None", "Install no Google App Store", 0, #-- selected.1 = 1
"Play Store", "Install official Play Store", 1, #-- selected.1 = 2
"Yalp Store", "Install unofficial Yalp Store", 0, #-- selected.1 = 3
"Fake Store", "Install Fake Store only", 0, #-- selected.1 = 4
"Yalp + Fake Store", "Install unofficial Yalp Store (+ Fake Store)", 0 #-- selected.1 = 5
"Aurora Store", "Install unofficial Aurora Store", 0, #-- selected.1 = 4
"Fake Store", "Install Fake Store only", 0, #-- selected.1 = 5
"Yalp + Fake Store", "Install unofficial Yalp Store (+ Fake Store)", 0, #-- selected.1 = 6
"Aurora + Fake Store", "Install unofficial Aurora Store (+ Fake Store)", 0 #-- selected.1 = 7
);

View File

@ -109,11 +109,17 @@ elif grep -q "selected.1=3" "${store_prop}"; then
ui_print " <>> setting property: nanodroid_play [Yalp Store]"
echo "nanodroid_play=2" >> "${nanodroid_setup}"
elif grep -q "selected.1=4" "${store_prop}"; then
ui_print " <>> setting property: nanodroid_play [Fake Store]"
ui_print " <>> setting property: nanodroid_play [Aurora Store]"
echo "nanodroid_play=3" >> "${nanodroid_setup}"
elif grep -q "selected.1=5" "${store_prop}"; then
ui_print " <>> setting property: nanodroid_play [Yalp + Fake Store]"
ui_print " <>> setting property: nanodroid_play [Fake Store]"
echo "nanodroid_play=4" >> "${nanodroid_setup}"
elif grep -q "selected.1=6" "${store_prop}"; then
ui_print " <>> setting property: nanodroid_play [Yalp + Fake Store]"
echo "nanodroid_play=5" >> "${nanodroid_setup}"
elif grep -q "selected.1=7" "${store_prop}"; then
ui_print " <>> setting property: nanodroid_play [Aurora + Fake Store]"
echo "nanodroid_play=6" >> "${nanodroid_setup}"
fi
if grep -q "selected.1=1" "${nlp_prop}"; then
@ -126,8 +132,20 @@ elif grep -q "selected.1=3" "${nlp_prop}"; then
ui_print " <>> setting property: nanodroid_nlpbackend [Ichnaea]"
echo "nanodroid_nlpbackend=2" >> "${nanodroid_setup}"
elif grep -q "selected.1=4" "${nlp_prop}"; then
ui_print " <>> setting property: nanodroid_nlpbackend [Déjà Vu + Ichnaea]"
ui_print " <>> setting property: nanodroid_nlpbackend [Apple]"
echo "nanodroid_nlpbackend=3" >> "${nanodroid_setup}"
elif grep -q "selected.1=5" "${nlp_prop}"; then
ui_print " <>> setting property: nanodroid_nlpbackend [Déjà Vu + Ichnaea]"
echo "nanodroid_nlpbackend=4" >> "${nanodroid_setup}"
elif grep -q "selected.1=6" "${nlp_prop}"; then
ui_print " <>> setting property: nanodroid_nlpbackend [Déjà Vu + Apple]"
echo "nanodroid_nlpbackend=5" >> "${nanodroid_setup}"
elif grep -q "selected.1=7" "${nlp_prop}"; then
ui_print " <>> setting property: nanodroid_nlpbackend [Ichnaea + Apple]"
echo "nanodroid_nlpbackend=6" >> "${nanodroid_setup}"
elif grep -q "selected.1=8" "${nlp_prop}"; then
ui_print " <>> setting property: nanodroid_nlpbackend [Déjà Vu + Ichnaea + Apple]"
echo "nanodroid_nlpbackend=7" >> "${nanodroid_setup}"
fi
if grep -q "selected.1=1" "${ug_prop}"; then