mirror of
https://github.com/2009scape/2009Scape-mobile.git
synced 2025-12-21 09:01:56 -07:00
chmod 777 instead of 700
This commit is contained in:
parent
9f0a79176b
commit
d4a98ae147
2 changed files with 3 additions and 2 deletions
|
|
@ -972,6 +972,7 @@ public class MainActivity extends LoggableActivity implements OnTouchListener, O
|
|||
int osArchIndex = releaseContent.indexOf("OS_ARCH=\"") + 9;
|
||||
releaseContent = releaseContent.substring(osArchIndex);
|
||||
releaseContent = releaseContent.substring(0, releaseContent.indexOf("\""));
|
||||
appendlnToLog("Architecture: " + Tools.currentArch);
|
||||
if (!(releaseContent.contains(argName[0]) || releaseContent.contains(argName[1]))) {
|
||||
appendlnToLog("Architecture " + Tools.currentArch + " is incompatible with Java Runtime " + releaseContent);
|
||||
throw new RuntimeException(getString(R.string.mcn_check_fail_incompatiblearch, Tools.currentArch, releaseContent));
|
||||
|
|
@ -997,7 +998,7 @@ public class MainActivity extends LoggableActivity implements OnTouchListener, O
|
|||
Tools.getJavaArgs(this, testArgs);
|
||||
testArgs.add("-version");
|
||||
|
||||
shell.writeToProcess("chmod 700 " + Tools.homeJreDir + "/bin/java");
|
||||
shell.writeToProcess("chmod 777 " + Tools.homeJreDir + "/bin/java");
|
||||
shell.writeToProcess("set -e");
|
||||
shell.writeToProcess(testArgs.toArray(new String[0]));
|
||||
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ public class ShellProcessOperation
|
|||
}
|
||||
|
||||
public void writeToProcess(String cmd) throws IOException {
|
||||
listener.onPrintLine(" > " + cmd + "\n");
|
||||
// listener.onPrintLine(" > " + cmd + "\n");
|
||||
|
||||
DataOutputStream os = new DataOutputStream(process.getOutputStream());
|
||||
os.writeBytes(cmd + "\n");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue