summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoryoonki.park <yoonki.park@samsung.com>2014-05-07 17:17:26 +0900
committeryoonki.park <yoonki.park@samsung.com>2014-05-07 17:17:26 +0900
commitb999270c5e503e9c9551eade2abaa542c8337dcd (patch)
tree2756f6fb73c5dea18ea3804cd66a3219e11e0b03
parent70280caa062482d0a28f724e9203d0d48b3fa824 (diff)
downloadcommon-eplugin-b999270c5e503e9c9551eade2abaa542c8337dcd.tar.gz
common-eplugin-b999270c5e503e9c9551eade2abaa542c8337dcd.tar.bz2
common-eplugin-b999270c5e503e9c9551eade2abaa542c8337dcd.zip
[MISC] Changed the way to determine the device type
Change-Id: Ia4d911182ef2b75cd0528344064acb050fd48808 Signed-off-by: yoonki.park <yoonki.park@samsung.com>
-rw-r--r--org.tizen.common.sdblib/src/org/tizen/sdblib/DeviceConstants.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/org.tizen.common.sdblib/src/org/tizen/sdblib/DeviceConstants.java b/org.tizen.common.sdblib/src/org/tizen/sdblib/DeviceConstants.java
index 0a5a2f4fd..82d533fb4 100644
--- a/org.tizen.common.sdblib/src/org/tizen/sdblib/DeviceConstants.java
+++ b/org.tizen.common.sdblib/src/org/tizen/sdblib/DeviceConstants.java
@@ -47,8 +47,8 @@ DeviceConstants
/**
* command to get device type
*/
- static final String CMD_DEVICE_TYPE = "ls -al /dev/samsung_sdb 2>/dev/null | wc -l ";
- static final String RESULT_DEVICE_TYPE_EMULATOR = "0";
+ static final String CMD_DEVICE_TYPE = "cat /proc/cmdline | grep 'vm_name' | wc -l";
+ static final String RESULT_DEVICE_TYPE_EMULATOR = "1";
/**
* command to get user name