Skip to content

Commit 5c351b2

Browse files
committed
Fix #2343
1 parent 1e93205 commit 5c351b2

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

Diff for: mobsf/DynamicAnalyzer/views/ios/corellium_apis.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -531,11 +531,10 @@ def upload_ipa(self, ipa_file):
531531

532532
def install_ipa(self):
533533
"""Install IPA."""
534-
data = {'path': '/tmp/app.ipa'}
535534
r = requests.post(
536535
f'{self.api}/instances/{self.instance_id}/agent/v1/app/install',
537536
headers=self.headers,
538-
json=data,
537+
json={'path': '/tmp/app.ipa'},
539538
proxies=self.proxies,
540539
verify=self.verify)
541540
if r.status_code in SUCCESS_RESP:

Diff for: mobsf/StaticAnalyzer/views/android/manifest_analysis.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,10 @@ def manifest_analysis(mfxml, ns, man_data_dic, src_type, app_dir):
310310
try:
311311
target_sdk = int(man_data_dic['target_sdk'])
312312
except Exception:
313-
target_sdk = ANDROID_8_0_LEVEL
313+
if man_an_dic.get('min_sdk'):
314+
target_sdk = int(man_an_dic['min_sdk'])
315+
else:
316+
target_sdk = ANDROID_8_0_LEVEL
314317
if (target_sdk < ANDROID_9_0_LEVEL
315318
and launchmode == 'singleTask'):
316319
ret_list.append(('task_hijacking', (item,), (target_sdk,)))

0 commit comments

Comments
 (0)