String result = session.run(command, null);
if(!result.contains("0"))
throw new Exception(Messages.getString("ProfileLaunch.FAIL_TO_INSTALL"), new Exception("command is " + command));
+ monitor.worked(1);
- // remove old application
- command = PKG_TOOL_CMD + PKG_TOOL_REMOVE_OPTION + PACKAGE_NAME + CMD_RESULT_CHECK ;
+ // remount file system
+ command = "mount -o remount,rw /" + CMD_RESULT_CHECK;
result = session.run(command, null);
if(!result.contains("0"))
- throw new Exception(Messages.getString("ProfileLaunch.FAIL_TO_INSTALL"), new Exception("command is " + command));
- monitor.worked(1);
+ throw new Exception(Messages.getString("ProfileLaunch.FAIL_TO_INSTALL"), new Exception("command is " + command));
// install new application
command = PKG_TOOL_CMD + PKG_TOOL_INSTALL_OPTION + PACKAGE_FILENAME_ARM + CMD_RESULT_CHECK;
if(!result.contains("0"))
throw new Exception(Messages.getString("ProfileLaunch.FAIL_TO_INSTALL"), new Exception("command is " + command));
monitor.worked(1);
+
+ // remount file system
+ command = "mount -o remount,ro /" + CMD_RESULT_CHECK;
+ result = session.run(command, null);
} catch (Exception e) {
throw e;
} finally {
if(!result.contains("0"))
newCoreException(Messages.getString("ProfileLaunch.FAIL_TO_INSTALL"),
new Exception("command is " + command));
-
- // remove old application
- command = PKG_TOOL_CMD + PKG_TOOL_REMOVE_OPTION + PACKAGE_NAME + CMD_RESULT_CHECK ;
+ monitor.worked(1);
+
+ // remount file system
+ command = "mount -o remount,rw /" + CMD_RESULT_CHECK;
result = session.run(command, null);
if(!result.contains("0"))
newCoreException(Messages.getString("ProfileLaunch.FAIL_TO_INSTALL"),
new Exception("command is " + command));
- monitor.worked(1);
// install new application
command = PKG_TOOL_CMD + PKG_TOOL_INSTALL_OPTION + PACKAGE_FILENAME_ARM + CMD_RESULT_CHECK;
newCoreException(Messages.getString("ProfileLaunch.FAIL_TO_INSTALL"),
new Exception("command is " + command));
monitor.worked(1);
+
+ // remount file system
+ command = "mount -o remount,ro /" + CMD_RESULT_CHECK;
+ result = session.run(command, null);
} catch (CoreException e) {
throw e;
} catch (Exception e) {