Skip to content

Commit

Permalink
Fix #2343
Browse files Browse the repository at this point in the history
  • Loading branch information
ajinabraham committed Mar 9, 2024
1 parent 1e93205 commit 5c351b2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 1 addition & 2 deletions mobsf/DynamicAnalyzer/views/ios/corellium_apis.py
Original file line number Diff line number Diff line change
Expand Up @@ -531,11 +531,10 @@ def upload_ipa(self, ipa_file):

def install_ipa(self):
"""Install IPA."""
data = {'path': '/tmp/app.ipa'}
r = requests.post(
f'{self.api}/instances/{self.instance_id}/agent/v1/app/install',
headers=self.headers,
json=data,
json={'path': '/tmp/app.ipa'},
proxies=self.proxies,
verify=self.verify)
if r.status_code in SUCCESS_RESP:
Expand Down
5 changes: 4 additions & 1 deletion mobsf/StaticAnalyzer/views/android/manifest_analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,10 @@ def manifest_analysis(mfxml, ns, man_data_dic, src_type, app_dir):
try:
target_sdk = int(man_data_dic['target_sdk'])
except Exception:
target_sdk = ANDROID_8_0_LEVEL
if man_an_dic.get('min_sdk'):
target_sdk = int(man_an_dic['min_sdk'])
else:
target_sdk = ANDROID_8_0_LEVEL
if (target_sdk < ANDROID_9_0_LEVEL
and launchmode == 'singleTask'):
ret_list.append(('task_hijacking', (item,), (target_sdk,)))
Expand Down

0 comments on commit 5c351b2

Please sign in to comment.