final static String EMULATOR = "emulator";
final static String COMMAND_DEVICE_TYPE = "[ -f /dev/samsung_sdb ] || echo " + EMULATOR;
public final static String DEFAULT_APP_INSTALL_PATH = "/opt/usr/apps";
- public final static String TEMPORARY_PKG_DIRECTORY = "tmp";
public final static String PKG_TOOL_INSTALL_PATH_COMMAND = "pkgcmd -a";
public final static String PKG_TOOL_INSTALL_PATH_COMMAND_RESULT = "Tizen Application Installation Path:";
public String syncPackageToDevice(String localFilePath) throws IOException, SdbCommandRejectedException, TimeoutException {
try {
String packageFileName = getFileName(localFilePath);
- String remoteFilePath = String.format("%s/%1$s", getDeveloperDirectoryPath(), packageFileName); //$NON-NLS-1$
+ String remoteFilePath = String.format("/tmp/%1$s", packageFileName); //$NON-NLS-1$
Log.d(packageFileName, String.format("Uploading %1$s onto device '%2$s'", packageFileName, getSerialNumber()));
}
return appInstallPath;
}
-
- @Override
- public String getDeveloperDirectoryPath() {
- return getAppInstallPath() + "/" + Device.TEMPORARY_PKG_DIRECTORY;
- }
class AppInstallPathReceiver extends MultiLineReceiver {
@Override
public static final String APP_ICON_INSTALL_PATH;
/**
- * @deprecated APP_INSTALL_PATH is deprecated. Use {@link IDevice#getDeveloperDirectoryPath()}.
+ * @deprecated TEMPORARY_PKG_PATH is deprecated. Use {@link #getAppTmpDirectory(IDevice)}.
*/
public static final String TEMPORARY_PKG_PATH;
+ public static final String TEMPORARY_DIR_PATH;
public static final String PKG_TOOL = "pkgcmd";
public static final String PKG_TOOL_LIST_COMMAND = PKG_TOOL + " -l | grep %s";
public static final String PKG_TOOL_REMOVE_COMMAND = PKG_TOOL + " -q -u -t %s -n %s";
GDBSERVER_CMD = TizenPlatformConstants.TOOLS_TARGET_PATH + "/gdbserver/gdbserver";
GDBSERVER_PLATFORM_CMD = TizenPlatformConstants.TOOLS_TARGET_PATH + "/gdbserver-platform/gdbserver";
APP_INSTALL_PATH = "/opt/usr/apps";
- APP_ICON_INSTALL_PATH = "shared/res";
TEMPORARY_PKG_PATH = "/opt/usr/apps/tmp/";
+ APP_ICON_INSTALL_PATH = "shared/res";
+ TEMPORARY_DIR_PATH = "/tmp";
DEBUG_COREFILE_PATH = "/opt/usr/share/crash/dump";
DEBUG_COREFILE_EXTENSION = "coredump";
DEBUG_COREFILE_EXTRACT_COMMAND = "tar -xvf %s -C %s --wildcards --no-anchored '%s'";
SIGNING_DEFAULT = true;
SIGNING_BUILD_PACKAGE = true;
}
+
+ /**
+ * Returns temporary directory that has a developer permission.
+ */
+ public static String getAppTmpDirectory(IDevice device) {
+ return device.getAppInstallPath() + TEMPORARY_DIR_PATH;
+ }
}