Skip to content

Commit

Permalink
Dont have to set JAVA_HOME can just install which to allow jadx start…
Browse files Browse the repository at this point in the history
…up script to find the java install
  • Loading branch information
domwhewell-sage committed Nov 11, 2024
1 parent 31c18b9 commit c0be101
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions bbot/modules/jadx.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class jadx(BaseModule):
},
{
"name": "Install latest JRE (Fedora)",
"package": {"name": ["java-latest-openjdk-headless"], "state": "present"},
"package": {"name": ["which", "java-latest-openjdk-headless"], "state": "present"},
"become": True,
"when": "ansible_facts['os_family'] == 'RedHat'",
},
Expand All @@ -56,16 +56,6 @@ class jadx(BaseModule):
"remote_src": True,
},
},
{
"name": "Set JAVA_HOME (Fedora)",
"lineinfile": {
"path": "#{BBOT_TOOLS}/jadx/bin/jadx",
"line": "JAVA_HOME=/usr",
"insertafter": "^#!",
},
"become": True,
"when": "ansible_facts['os_family'] == 'RedHat'",
},
]

allowed_file_types = ["java archive", "android application package"]
Expand Down

0 comments on commit c0be101

Please sign in to comment.