INTERNAL: change executable path of appInst to /opt/apps/ 73/26973/1
authorgreatim <jaewon81.lim@samsung.com>
Tue, 2 Sep 2014 12:23:35 +0000 (21:23 +0900)
committergreatim <jaewon81.lim@samsung.com>
Tue, 2 Sep 2014 12:23:35 +0000 (21:23 +0900)
change executable path of appInst to exec path in 'pkginfo --listpkg'

Change-Id: I549bcf23279d133f3e99fc54c18054e510d9cead
Signed-off-by: greatim <jaewon81.lim@samsung.com>
org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/listeners/TableTooltipListener.java
org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/project/AppInfo.java
org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/swap/callstack/BaseCallstackManager.java
org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/swap/communicator/Communicator30.java

index 39c2c20..670c882 100644 (file)
@@ -463,7 +463,7 @@ public class TableTooltipListener implements Listener {
                } else {
                        AppInfo appInfo = AnalyzerManager.getProject().getApplicationInfo();
                        BinaryInfo binfo = AnalyzerManager.getProject().getDeviceStatusInfo()
-                                       .getBinaryInfo(appInfo.getExecPath());
+                                       .getBinaryInfo(appInfo.getExecBinaryPath());
 
                        if (binfo.getTargetBinaryPath().equals(libName)
                                        && appInfo.getAppType().contains(AppInfo.APPTYPE_CAPP)) {
@@ -575,7 +575,7 @@ public class TableTooltipListener implements Listener {
                } else {
                        AppInfo appInfo = AnalyzerManager.getProject().getApplicationInfo();
                        BinaryInfo binfo = AnalyzerManager.getProject().getDeviceStatusInfo()
-                                       .getBinaryInfo(appInfo.getExecPath());
+                                       .getBinaryInfo(appInfo.getExecBinaryPath());
 
                        if (binInfo.getID() == binfo.getID() // address belongs to c application executable
                                        && appInfo.getAppType().contains(AppInfo.APPTYPE_CAPP)) {
index fa26a64..ca14521 100644 (file)
@@ -457,8 +457,12 @@ public class AppInfo {
        public String getPackageId() {
                return properties.get(PROPERTY.PACKAGE.index);
        }
-
+       
        public String getExecPath() {
+               return properties.get(PROPERTY.EXEC.index);
+       }
+
+       public String getExecBinaryPath() {
                if (null != execPath) {
                        return execPath;
                } else {
index fd08e9f..d1d75e1 100644 (file)
@@ -200,7 +200,7 @@ public abstract class BaseCallstackManager {
        public boolean checkUserCall(String input) {
                AppInfo appInfo = AnalyzerManager.getProject().getApplicationInfo();
                BinaryInfo binfo = AnalyzerManager.getProject().getDeviceStatusInfo()
-                               .getBinaryInfo(appInfo.getExecPath());
+                               .getBinaryInfo(appInfo.getExecBinaryPath());
                if (binfo.getTargetBinaryPath().equals(input)) {
                        return true;
                }
index 75ba0db..cc20bfd 100755 (executable)
@@ -330,7 +330,7 @@ public class Communicator30 extends BaseCommunicator {
                                }
 
                                BinaryInfo binInfo = AnalyzerManager.getProject().getDeviceStatusInfo()
-                                               .getBinaryInfo(app.getExecPath());
+                                               .getBinaryInfo(app.getExecBinaryPath());
                                String temppath = binInfo.getTempBinaryPath();
                                if (temppath == null) {
                                        // this means the app binary does not exist in device
@@ -420,7 +420,7 @@ public class Communicator30 extends BaseCommunicator {
                        preMsg = ByteUtil.getByte(binCount);
 
                        for (AppInfo app : apps) {
-                               String targetPath = app.getExecPath();
+                               String targetPath = app.getExecBinaryPath();
                                paths.add(targetPath);
                                preMsg = ByteUtil.getByte(preMsg, targetPath);
                        }