aboutsummaryrefslogtreecommitdiff
path: root/tools/android
diff options
context:
space:
mode:
Diffstat (limited to 'tools/android')
-rw-r--r--tools/android/packaging/xbmc/src/Splash.java.in54
1 files changed, 0 insertions, 54 deletions
diff --git a/tools/android/packaging/xbmc/src/Splash.java.in b/tools/android/packaging/xbmc/src/Splash.java.in
index d720e13119..4280571cdf 100644
--- a/tools/android/packaging/xbmc/src/Splash.java.in
+++ b/tools/android/packaging/xbmc/src/Splash.java.in
@@ -35,13 +35,10 @@ import java.io.FileOutputStream;
import java.io.InputStream;
import java.io.IOException;
import java.lang.System;
-import java.util.ArrayList;
import java.util.Enumeration;
import java.util.List;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
-import java.util.regex.Matcher;
-import java.util.regex.Pattern;
import java.util.zip.ZipEntry;
import java.util.zip.ZipFile;
@@ -69,7 +66,6 @@ public class Splash extends Activity
private static final int RECORDAUDIO_RESULT_CODE = 8946;
private static final int PERMISSION_RESULT_CODE = 8947;
- private ArrayList<String> mMounts = new ArrayList<String>();
private String mErrorMsg = "";
private ProgressBar mProgress = null;
@@ -523,56 +519,6 @@ public class Splash extends Activity
fPackagePath = new File(sPackagePath);
}
- // We can't find a way to properly detect and monitor status of
- // a physical sdcard currently.
- // "External storage" points to internal flash storage on modern
- // devices and nothing else seems available.
- //
- // ParseMounts() was part of the attempts to solve the issue and is not in use currently,
- // but kept for possible future use.
- private boolean ParseMounts()
- {
- ProcessBuilder cmd;
- final Pattern reMount = Pattern.compile("^(.+?)\\s+(.+?)\\s+(.+?)\\s");
- String strMounts = "";
-
- try
- {
- String[] args = {"/system/bin/cat", "/proc/mounts"};
- cmd = new ProcessBuilder(args);
-
- Process process = cmd.start();
- InputStream in = process.getInputStream();
- byte[] re = new byte[1024];
- while (in.read(re) != -1)
- {
- strMounts = strMounts + new String(re);
- }
- in.close();
- }
- catch (IOException ex)
- {
- ex.printStackTrace();
- return false;
- }
-
- String[] Mounts = strMounts.split("\n");
- for (int i = 0; i < Mounts.length; ++i)
- {
- Log.d(TAG, "mount: " + Mounts[i]);
- Matcher m = reMount.matcher(Mounts[i]);
- if (m.find())
- {
- if (m.group(1).startsWith("/dev/block/vold") && !m.group(2).startsWith("/mnt/secure/asec"))
- {
- Log.d(TAG, "adding mount: " + m.group(2));
- mMounts.add(m.group(2));
- }
- }
- }
- return true;
- }
-
private boolean CheckPermissions()
{
boolean retVal = false;