diff --git a/changeAppSettings.sh b/changeAppSettings.sh index d382b4dd6..aa21b8a10 100755 --- a/changeAppSettings.sh +++ b/changeAppSettings.sh @@ -863,6 +863,7 @@ else echo Patching $F echo '// DO NOT EDIT THIS FILE - it is automatically generated, edit file under $JAVA_SRC_PATH dir' > project/src/$OUT cat $F | sed "s/^package .*;/package $AppFullName;/" >> project/src/$OUT + rm -f project/libs/android-support-v4.jar done $SEDI "s/==GOOGLEPLAYGAMESERVICES_APP_ID==/$GooglePlayGameServicesId/g" project/res/values/strings.xml SDK_DIR=`grep '^sdk.dir' project/local.properties | sed 's/.*=//'` diff --git a/project/java/Settings.java b/project/java/Settings.java index fa3a34e1e..5d83abf81 100644 --- a/project/java/Settings.java +++ b/project/java/Settings.java @@ -612,6 +612,7 @@ class Settings nativeSetEnv( "SECURE_STORAGE_DIR", p.getFilesDir().getAbsolutePath() ); nativeSetEnv( "DATADIR", Globals.DataDir ); nativeSetEnv( "UNSECURE_STORAGE_DIR", Globals.DataDir ); + SdcardAppPath.setEnv(p); nativeSetEnv( "HOME", Globals.DataDir ); nativeSetEnv( "SDCARD", Environment.getExternalStorageDirectory().getAbsolutePath() ); nativeSetEnv( "ANDROID_VERSION", String.valueOf(android.os.Build.VERSION.SDK_INT) ); @@ -705,6 +706,14 @@ class Settings return Dummy.Holder.sInstance; } public abstract String path(final Context p); + private void setEnvInternal(final Context p) + { + nativeSetEnv( "UNSECURE_STORAGE_DIR_0", Globals.DataDir ); + } + public static void setEnv(final Context p) + { + get().setEnvInternal(p); + } public String bestPath(final Context p) { return path(p); @@ -759,11 +768,25 @@ class Settings if( size > maxSize ) { maxSize = size; - ret = path.getPath(); + ret = path.getAbsolutePath(); } } return ret; }; + public void setEnvInternal(final Context p) + { + File[] paths = p.getExternalFilesDirs(null); + int index = 0; + for( File path: paths ) + { + if( path == null ) + continue; + if( !path.exists() ) + path.mkdirs(); + nativeSetEnv( "UNSECURE_STORAGE_DIR_" + index, path.getAbsolutePath() ); + index++; + } + } } private static class Dummy extends SdcardAppPath { diff --git a/project/jni/application/xserver-debian/AndroidAppSettings.cfg b/project/jni/application/xserver-debian/AndroidAppSettings.cfg index 6f7d350cf..13333887b 100644 --- a/project/jni/application/xserver-debian/AndroidAppSettings.cfg +++ b/project/jni/application/xserver-debian/AndroidAppSettings.cfg @@ -7,10 +7,10 @@ AppName="Debian" AppFullName=com.cuntubuntu # Application version code (integer) -AppVersionCode=141006 +AppVersionCode=141007 # Application user-visible version name (string) -AppVersionName="14.10.06" +AppVersionName="14.10.07" # Specify path to download application data in zip archive in the form 'Description|URL|MirrorURL^Description2|URL2|MirrorURL2^...' # If you'll start Description with '!' symbol it will be enabled by default, other downloads should be selected by user from startup config menu @@ -18,10 +18,10 @@ AppVersionName="14.10.06" # If the URL does not contain 'http://' it is treated as file from 'project/jni/application/src/AndroidData' dir - # these files are put inside .apk package by build system # Also please avoid 'https://' URLs, many Android devices do not have trust certificates and will fail to connect to SF.net over HTTPS -AppDataDownloadUrl="!!System image|:data.tar.gz:http://sourceforge.net/projects/libsdl-android/files/ubuntu/14.05.01/dist-debug-wheezy-proot-.tar.gz/download^!!XSDL data files|:data-1.tar.gz:data-1.tgz^!!XSDL fonts|:DroidSansMono.ttf:DroidSansMono.ttf^!!Postinstall script|:postinstall.sh:postinstall2.sh^!!Update|:update1.tar.gz:update1.tgz^!!Update|:update2.tar.gz:update2-.tgz" +AppDataDownloadUrl="!!System image|:data.tar.gz:http://sourceforge.net/projects/libsdl-android/files/ubuntu/14.05.01/dist-debug-wheezy-proot-.tar.gz/download^!!XSDL data files|:data-1.tar.gz:data-1.tgz^!!XSDL fonts|:DroidSansMono.ttf:DroidSansMono.ttf^!!Postinstall script|:postinstall.sh:postinstall2.sh^!!Update|:update1.tar.gz:update1.tgz^!!Update|:update2.tar.gz:update2-.tgz^!!Update|:update3.tar.gz:update3.tgz" # Reset SDL config when updating application to the new version (y) / (n) -ResetSdlConfigForThisVersion=y +ResetSdlConfigForThisVersion=n # Delete application data files when upgrading (specify file/dir paths separated by spaces) DeleteFilesOnUpgrade="%" diff --git a/project/jni/application/xserver-debian/AndroidData/update3.tgz b/project/jni/application/xserver-debian/AndroidData/update3.tgz new file mode 100644 index 000000000..a44be9316 Binary files /dev/null and b/project/jni/application/xserver-debian/AndroidData/update3.tgz differ diff --git a/project/jni/application/xserver-debian/xserver b/project/jni/application/xserver-debian/xserver index 670f48dfe..38269b698 160000 --- a/project/jni/application/xserver-debian/xserver +++ b/project/jni/application/xserver-debian/xserver @@ -1 +1 @@ -Subproject commit 670f48dfe9358e7078119998befe80a88e434977 +Subproject commit 38269b6980bccef6340f9c9f04e6e3ec059d07b0 diff --git a/todo.txt b/todo.txt index 6c2eccc4d..3a55a5a46 100644 --- a/todo.txt +++ b/todo.txt @@ -23,10 +23,6 @@ TODO, which will get actually done - SDL: sometimes the screen stays black after restoring from background. -- Debian noroot: audio support - implement PulseAudio server. - -- Debian noroot: support multiple external storage locations. - - XSDL: support Android intent x11://localhost:6000 - http://www.openintents.org/node/905 - Nvidia Shield D-Pad does not send any events (probably acts as 3-rd joystick).