Fixed bug 2638 - (Signed) Can't create signed apps in Android
authorSam Lantinga <slouken@libsdl.org>
Sat, 12 Jul 2014 13:05:41 -0700
changeset 900698c808d72e20
parent 9005 ef3ef3c8da98
child 9007 515be38f3f37
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
     1.1 --- a/src/main/android/SDL_android_main.c	Fri Jul 11 22:15:34 2014 -0700
     1.2 +++ b/src/main/android/SDL_android_main.c	Sat Jul 12 13:05:41 2014 -0700
     1.3 @@ -25,9 +25,12 @@
     1.4      SDL_SetMainReady();
     1.5  
     1.6      /* Run the application code! */
     1.7 +    /* Use the name "app_process" so PHYSFS_platformCalcBaseDir() works.
     1.8 +       https://bitbucket.org/MartinFelis/love-android-sdl2/issue/23/release-build-crash-on-start
     1.9 +     */
    1.10      int status;
    1.11      char *argv[2];
    1.12 -    argv[0] = SDL_strdup("SDL_app");
    1.13 +    argv[0] = SDL_strdup("app_process");
    1.14      argv[1] = NULL;
    1.15      status = SDL_main(1, argv);
    1.16