From d1ca658c45edce78ca3ad43d8b4bcb007a6d4482 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Sat, 12 Jul 2014 13:05:41 -0700 Subject: [PATCH] Fixed bug 2638 - (Signed) Can't create signed apps in Android Pablo Mayobre When generating a signed app with SDL 2.0.3 an issue comes up, watching at the Error Log points out that the issue lies in the src/main/android/SDL_android_main.c where the process name is defined as "SDL_app", this name turns into an erroneous name so it should be changed to "app_process" --- src/main/android/SDL_android_main.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/android/SDL_android_main.c b/src/main/android/SDL_android_main.c index 31e84e7126c81..539be5e344b48 100644 --- a/src/main/android/SDL_android_main.c +++ b/src/main/android/SDL_android_main.c @@ -25,9 +25,12 @@ int Java_org_libsdl_app_SDLActivity_nativeInit(JNIEnv* env, jclass cls, jobject SDL_SetMainReady(); /* Run the application code! */ + /* Use the name "app_process" so PHYSFS_platformCalcBaseDir() works. + https://bitbucket.org/MartinFelis/love-android-sdl2/issue/23/release-build-crash-on-start + */ int status; char *argv[2]; - argv[0] = SDL_strdup("SDL_app"); + argv[0] = SDL_strdup("app_process"); argv[1] = NULL; status = SDL_main(1, argv);