diff --git a/changeAppSettings.sh b/changeAppSettings.sh index fee6c7e6d..6d08abb45 100755 --- a/changeAppSettings.sh +++ b/changeAppSettings.sh @@ -496,12 +496,6 @@ else InhibitSuspend=false fi -if [ "$CreateService" = "y" ] ; then - CreateService=true -else - CreateService=false -fi - if [ "$NeedDepthBuffer" = "y" ] ; then NeedDepthBuffer=true else @@ -906,6 +900,13 @@ else HideSystemMousePointer=false fi +if [ "$CreateService" = "y" ] ; then + CreateService=true +else + CreateService=false + $SEDI "/==FOREGROUND_SERVICE==/ d" project/AndroidManifest.xml +fi + GLESLib=-lGLESv1_CM GLESVersion=-DSDL_VIDEO_OPENGL_ES_VERSION=1 @@ -927,6 +928,7 @@ else $SEDI "/==GLES3==/ d" project/AndroidManifest.xml fi + echo Patching project/src/Globals.java $SEDI "s/public static String ApplicationName = .*;/public static String ApplicationName = \"$AppShortName\";/" project/src/Globals.java $SEDI "s/public static final boolean Using_SDL_1_3 = .*;/public static final boolean Using_SDL_1_3 = $UsingSdl13;/" project/src/Globals.java diff --git a/project/AndroidManifestTemplate.xml b/project/AndroidManifestTemplate.xml index a1e15d954..0932d892c 100644 --- a/project/AndroidManifestTemplate.xml +++ b/project/AndroidManifestTemplate.xml @@ -71,6 +71,7 @@ +