Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file not shown.
Binary file removed sootup.apk.frontend/src/main/resources/app-debug.apk
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ public void setUp() {

// Initialize the class with mock data
androidVersionInfo =
new AndroidVersionInfo(Paths.get("resources/FlowSensitivity1.apk"), "mock/jar/path");
new AndroidVersionInfo(
Paths.get("src/test/resources/FlowSensitivity1.apk"), "mock/jar/path");
}

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public class ApkToDexTest {

@BeforeAll
public static void createView() {
String apk_path_string = "resources/FlowSensitivity1.apk";
String apk_path_string = "src/test/resources/FlowSensitivity1.apk";
Path apkPath = Paths.get(apk_path_string);
String androidPlatformsPath = "";
ApkAnalysisInputLocation sootClassApkAnalysisInputLocation =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,24 +35,22 @@ public class CallGraphTest {

@BeforeAll
public static void createView() {
view = createViewForApk("resources/FlowSensitivity1.apk");
locationLeakView = createViewForApk("resources/LocationLeak1.apk");
cryptoView = createViewForApk("resources/Crypto.apk");
view = createViewForApk("src/test/resources/FlowSensitivity1.apk");
locationLeakView = createViewForApk("src/test/resources/LocationLeak1.apk");
cryptoView = createViewForApk("src/test/resources/Crypto.apk");
}

private static JavaView createViewForApk(String apkPathString) {
Path apkPath = Paths.get(apkPathString);
String androidPlatformsPath = "resources/platforms";
String androidPlatformsPath = "src/test/resources/platforms";
AndroidVersionInfo androidVersionInfo = new AndroidVersionInfo(apkPath, androidPlatformsPath);

ApkAnalysisInputLocation sootClassApkAnalysisInputLocation =
new ApkAnalysisInputLocation(
apkPath, androidVersionInfo, DexBodyInterceptors.Default.bodyInterceptors());
JavaClassPathAnalysisInputLocation classPathAnalysisInputLocation =
new JavaClassPathAnalysisInputLocation(
"resources"
+ File.separator
+ "platforms"
androidPlatformsPath
+ File.separator
+ "android-"
+ androidVersionInfo.getApi_version()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public class StaticInvokeArgsTest {

@BeforeAll
public static void createView() {
String apk_path_string = "resources/Crypto.apk";
String apk_path_string = "src/test/resources/Crypto.apk";
Path apkPath = Paths.get(apk_path_string);
String androidPlatformsPath = "";
AndroidVersionInfo androidVersionInfo = new AndroidVersionInfo(apkPath, androidPlatformsPath);
Expand Down