Permalink
Browse files

fix SU_CMDS disapearing before they find the su server

  • Loading branch information...
1 parent bc41660 commit 7e10a99109e12684a66c9b9f0640964c2fd3fb26 @JBirdVegas committed Jan 4, 2012
Showing with 8 additions and 1 deletion.
  1. +8 −1 src/com/liquid/settings/activities/BootAnims.java
@@ -38,6 +38,8 @@
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;
+import java.net.InetAddress;
+import java.net.UnknownHostException;
import java.net.URL;
import java.net.URLConnection;
@@ -727,7 +729,6 @@ private void runSuCommand(final String message){
.setPositiveButton("Yes", new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int id) {
new SuServer().execute(SU_CMDS);
- SU_CMDS = null;
}
})
.setNegativeButton("No", new DialogInterface.OnClickListener() {
@@ -773,6 +774,12 @@ protected Void doInBackground(String... script) {
Log.d(TAG, String.format("WEBPATH: {%s}", WEBPATH));
Log.d(TAG, String.format("SU_CMDS: {%s}", SU_CMDS));
+ try {
+ InetAddress i = InetAddress.getByName(WEBPATH);
+ } catch (UnknownHostException e1) {
+ e1.printStackTrace();
+ }
+
//must be full path http:// and all
URL url = new URL(WEBPATH);
String dl_path = SDCARD_PATH + "/.liquid/bootanimation.zip";

0 comments on commit 7e10a99

Please sign in to comment.