final static String COMMAND_ARCHITECTURE_INFO = "uname -m";
final static String EMULATOR = "emulator";
- final static String COMMAND_DEVICE_TYPE = "[ -f /dev/samsung_sdb ] || echo " + EMULATOR;
+ final static String RESULT_EMULATOR = "0";
+ final static String COMMAND_DEVICE_TYPE = "ls -al /dev/samsung_sdb 2>/dev/null | wc -l ";
public final static String DEFAULT_APP_INSTALL_PATH = "/opt/usr/apps";
public final static String PKG_TOOL_INSTALL_PATH_COMMAND = "/usr/bin/pkgcmd -a";
public final static String PKG_TOOL_INSTALL_PATH_COMMAND_RESULT = "Tizen Application Installation Path:";
public void processNewLines(String[] lines) {
for(String line : lines) {
if(line != null) {
- if(EMULATOR.equals(line.toLowerCase())) {
+ if(RESULT_EMULATOR.equals(line)) {
mIsEmulator = true;
break;
}