import java.util.Iterator;
import java.util.Map;
+import org.tizen.common.core.application.ProfileInfo;
import org.tizen.dynamicanalyzer.common.HostResult;
import org.tizen.dynamicanalyzer.communicator.BaseCommunicator;
import org.tizen.dynamicanalyzer.communicator.CommunicatorUtils;
private DeviceStatusInfo statusInfo = null;
+ private String platformName = null;
+
/*** for version 3.0 */
private int remotePort = -1;
private Socket controlSock = null;
return pkgInfoHash.get(pkgId);
}
+ public String getPlatformName() {
+ if (platformName == null) {
+ platformName = ProfileInfo.getPlatformName(device); // mobile-2.3
+ // device.getPlatformInfo().getProfileName(); // mobile
+
+ if (platformName == null) {
+ platformName = CommonConstants.EMPTY;
+ }
+ }
+
+ return platformName;
+ }
+
public boolean isEmulator() {
if (device != null) {
if (device.getSerialNumber().contains(CommonConstants.EMULATOR)) {
import java.util.Map;
import java.util.Set;
-import org.tizen.common.core.application.ProfileInfo;
import org.tizen.dynamicanalyzer.common.AnalyzerConstants;
import org.tizen.dynamicanalyzer.common.Global;
import org.tizen.dynamicanalyzer.common.path.PathManager;
import org.tizen.dynamicanalyzer.nl.ConfigureLabels;
import org.tizen.dynamicanalyzer.util.CommonUtil;
import org.tizen.dynamicanalyzer.util.Logger;
-import org.tizen.sdblib.IDevice;
public class SettingDataManager {
DeviceInfo currentDevice = Global.getCurrentDeviceInfo();
if (currentDevice != null) {
- IDevice device = currentDevice.getIDevice();
- String profileName = ProfileInfo.getPlatformName(device); // mobile-2.3
- // device.getPlatformInfo().getProfileName(); // mobile
-
+ String profileName = currentDevice.getPlatformName();
+
if (profileName != null && !(profileName.isEmpty())) {
if (isTarget(profileName)) {
return map.get(profileName);