Updated Debian noroot

This commit is contained in:
Sergii Pylypenko
2014-10-07 23:26:58 +03:00
parent 4eb83d3e61
commit 69f78f4d4e
6 changed files with 30 additions and 10 deletions

View File

@@ -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/.*=//'`

View File

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

View File

@@ -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-<ARCH>.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-<ARCH>.tgz"
AppDataDownloadUrl="!!System image|:data.tar.gz:http://sourceforge.net/projects/libsdl-android/files/ubuntu/14.05.01/dist-debug-wheezy-proot-<ARCH>.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-<ARCH>.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="%"

View File

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