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

fixup Droid Guard Helper installation

This commit is contained in:
Christopher Roy Bratusek 2018-03-02 20:38:06 +01:00
parent 07030a90f3
commit 750d38ebaa
3 changed files with 8 additions and 7 deletions

View File

@ -13,6 +13,9 @@
* updated Credits section in README
* extended by FAKE_SIGNATURE permission for microG Gms Core and Play Store
* removed NewPipe from microG permissions file
* install DroidGuard Helper as system app
* fixes SafetyNet attesting CTS-Profile on several devices
* in Magisk Mode Droid Guard Helper crashes as system app, thus it will be re-installed as user app upon first boot
* Full package
* logcat init script removes all logcats older than 7 days upon reboot to prevent pollution
* nanodroid-overlay Script

View File

@ -18,4 +18,8 @@ for init in fstrim logscleaner sqlite external_sd permissions; do
tee -a "${LOGDIR}/${init}.log.${CURDATE}" &
done
# in Magisk Mode microG DroidGuard Helper needs to be installed as user app
sleep 30 && pm list packages -f | grep -q /data.*org.microg.gms.droidguard || \
pm install -r "${MODDIR}/system/priv-app/DroidGuard/DroidGuard.apk" &
"${MODDIR}/init.d/logcat" &

View File

@ -496,16 +496,10 @@ install_microg () {
ui_print " << with microG [Déjà Vu, Ichnaea, Nominatim]" ;;
esac
for app in ${NLPBACKEND} nlpBackendNominatim GmsCore GsfProxy; do
for app in ${NLPBACKEND} nlpBackendNominatim GmsCore GsfProxy DroidGuard; do
nanodroid_install_apk ${app}
done
# DroidGuard Helper as user app
mkdir -p /data/app/org.microg.gms.droidguard/
cp ${INSTALLER}/system/priv-app/DroidGuard/DroidGuard.apk \
/data/app/org.microg.gms.droidguard/base.apk
set_perm_data -r /data/app/org.microg.gms.droidguard/
nanodroid_install_file etc/permissions/features.xml
nanodroid_install_file etc/default-permissions/microg-permissions.xml
nanodroid_install_file etc/sysconfig/microg-a5k.xml