{"action":"created","issue":{"url":"https://api.github.com/repos/Sable/soot/issues/1026","repository_url":"https://api.github.com/repos/Sable/soot","labels_url":"https://api.github.com/repos/Sable/soot/issues/1026/labels{/name}","comments_url":"https://api.github.com/repos/Sable/soot/issues/1026/comments","events_url":"https://api.github.com/repos/Sable/soot/issues/1026/events","html_url":"https://github.com/Sable/soot/issues/1026","id":362722308,"node_id":"MDU6SXNzdWUzNjI3MjIzMDg=","number":1026,"title":"Extracting only specific jimple classes","user":{"login":"Jacoppy","id":22714008,"node_id":"MDQ6VXNlcjIyNzE0MDA4","avatar_url":"https://avatars3.githubusercontent.com/u/22714008?v=4","gravatar_id":"","url":"https://api.github.com/users/Jacoppy","html_url":"https://github.com/Jacoppy","followers_url":"https://api.github.com/users/Jacoppy/followers","following_url":"https://api.github.com/users/Jacoppy/following{/other_user}","gists_url":"https://api.github.com/users/Jacoppy/gists{/gist_id}","starred_url":"https://api.github.com/users/Jacoppy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jacoppy/subscriptions","organizations_url":"https://api.github.com/users/Jacoppy/orgs","repos_url":"https://api.github.com/users/Jacoppy/repos","events_url":"https://api.github.com/users/Jacoppy/events{/privacy}","received_events_url":"https://api.github.com/users/Jacoppy/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2018-09-21T18:10:56Z","updated_at":"2018-10-02T20:13:20Z","closed_at":null,"author_association":"NONE","body":"I0m trying to extract jimple files only of selected classes.\r\nI'm trying to set the classes I don't want as phantom as suggested but it doesn't produce any output... I'm trying this :\r\n```\r\nfor(Iterator<SootClass> iter = Scene.v().getApplicationClasses().snapshotIterator(); iter.hasNext();){ SootClass c = iter.next(); for (String i : dependencies){ if(c.getName().equals(i)){ System.out.println(\"NICE!\"); } else{ c.setPhantomClass(); } }\r\n```\r\n\r\nin which dependencies are the classes I want to hold.\r\nMy configs are :\r\n\r\n```\r\n public void initSoot(String apkPath){\r\n\r\n    Options.v().set_src_prec(Options.src_prec_apk);\r\n\r\n    Options.v().set_process_dir(Collections.singletonList(apkPath));\r\n\r\n    Options.v().set_output_format(Options.output_format_jimple);\r\n\r\n    Options.v().set_output_dir(\"/home/jacopo/Downloads/Instrumenter/try_jimple/\");\r\n\r\n    String androidJarPath = Scene.v().getAndroidJarPath(jarsPath, apkPath);\r\n\r\n    List<String> pathList = new ArrayList<String>();\r\n\r\n    pathList.add(apkPath);\r\n\r\n    pathList.add(androidJarPath);\r\n\r\n    Options.v().set_process_dir(pathList);\r\n\r\n    Options.v().set_force_android_jar(apkPath);\r\n\r\n    Options.v().set_keep_line_number(true);\r\n\r\n    Options.v().set_process_multiple_dex(true);\r\n\r\n    Options.v().set_allow_phantom_refs(true);\r\n\r\n    Options.v().set_whole_program(true);\r\n\r\n    Options.v().set_wrong_staticness(Options.wrong_staticness_ignore);\r\n\r\n    Options.v().set_exclude(excludePackagesList);\r\n\r\n    Options.v().set_no_bodies_for_excluded(true);\r\n\r\n\r\n    Scene.v().addBasicClass(\"java.lang.Object\", SootClass.SIGNATURES);\r\n\r\n    Scene.v().loadNecessaryClasses();\r\n\r\n    PackManager.v().runPacks();\r\n\r\n\r\n}\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/Sable/soot/issues/comments/426413703","html_url":"https://github.com/Sable/soot/issues/1026#issuecomment-426413703","issue_url":"https://api.github.com/repos/Sable/soot/issues/1026","id":426413703,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNjQxMzcwMw==","user":{"login":"Jacoppy","id":22714008,"node_id":"MDQ6VXNlcjIyNzE0MDA4","avatar_url":"https://avatars3.githubusercontent.com/u/22714008?v=4","gravatar_id":"","url":"https://api.github.com/users/Jacoppy","html_url":"https://github.com/Jacoppy","followers_url":"https://api.github.com/users/Jacoppy/followers","following_url":"https://api.github.com/users/Jacoppy/following{/other_user}","gists_url":"https://api.github.com/users/Jacoppy/gists{/gist_id}","starred_url":"https://api.github.com/users/Jacoppy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jacoppy/subscriptions","organizations_url":"https://api.github.com/users/Jacoppy/orgs","repos_url":"https://api.github.com/users/Jacoppy/repos","events_url":"https://api.github.com/users/Jacoppy/events{/privacy}","received_events_url":"https://api.github.com/users/Jacoppy/received_events","type":"User","site_admin":false},"created_at":"2018-10-02T20:13:20Z","updated_at":"2018-10-02T20:13:20Z","author_association":"NONE","body":"correctly all the class names and the same number of NICE as the size of dependencies but when I'm going to the extraction folder there is nothing, or just a single file...Maybe there is something wrong with my code? Don't know"}}
{"actor":{"display_login":"Jacoppy"}}