SDL: fixed CreateForegroundService permissions on Android 29

This commit is contained in:
Sergii Pylypenko
2019-09-09 18:24:46 +03:00
parent b7084f90e1
commit ce74e0fee3
2 changed files with 9 additions and 6 deletions

View File

@@ -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

View File

@@ -71,6 +71,7 @@
<!-- ==READ_OBB== --> <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" android:maxSdkVersion="23" /> <!-- OBB file requires explicit permission before Marshmallow -->
<!-- ==RECORD_AUDIO== --> <uses-permission android:name="android.permission.RECORD_AUDIO" />
<!-- ==ADMOB== --> <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<!-- ==FOREGROUND_SERVICE== --> <uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
<!-- <uses-permission android:name="android.permission.VIBRATE"></uses-permission> --> <!-- Vibrator not supported yet by SDL -->