You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Encountering weird problems when analyzing some APK files
I am a beginner, so please forgive me if these issues are actually easy to solve. I have been stuck with these things for a long time.
Description
When I load different APK files using the following Python code, three weird problems occur that prevent the program from returning the correct results.
pysoot.errors.JythonClientException: JYTHON SOCKET CLOSED
STDOUT:
b'Soot CUSTOM: Scene created! >>> 3\n'b'Chosen APIVersion: [-1, -1, -1] --> 3\n'
STDERR:
......b'java.lang.RuntimeException: java.lang.RuntimeException: error: target android.jar (/home/yyy/Android/Sdk/platforms/android-3/android.jar) does not exist.\n'
or
pysoot.errors.JythonClientException: JYTHON SOCKET CLOSED
STDOUT:
b'Soot CUSTOM: Scene created! >>> 3\n'b'Chosen APIVersion: [63055, 28, 19] --> 63055\n'
STDERR:
......b'java.lang.RuntimeException: java.lang.RuntimeException: Required APIVersion (63055) is not available. maxAPI is: 34\n'
Problem 2: Encountered small uint that is out of range.
The output is:
pysoot.errors.JythonClientException: JYTHON SOCKET CLOSED
STDOUT:
b'Soot CUSTOM: Scene created! >>> 3\n'b'Chosen APIVersion: [29, 28, 19] --> 29\n'b"Using '/home/yyy/Android/Sdk/platforms/android-29/android.jar' as android.jar\n"b"Warning: exception while processing dex file '/home/yyy/apkfiles/testapk/Mijia/v6.0.214.apk'\n"b'Exception: org.jf.util.ExceptionWithContext: Encountered small uint that is out of range at offset 0x38\n'
STDERR:
......b'org.jf.util.ExceptionWithContext: org.jf.util.ExceptionWithContext: Encountered small uint that is out of range at offset 0x38\n'
Problem 3: The program took more than 4 hours to execute and did not return any results.
Question
Encountering weird problems when analyzing some APK files
I am a beginner, so please forgive me if these issues are actually easy to solve. I have been stuck with these things for a long time.
Description
When I load different APK files using the following Python code, three weird problems occur that prevent the program from returning the correct results.
Python code:
Problem 1: Chosen the wrong API version.
The output is:
or
Problem 2: Encountered small uint that is out of range.
The output is:
Problem 3: The program took more than 4 hours to execute and did not return any results.
Environment
OS: Ubuntu 20.04
CPU:
Architecture: x86_64
Model name: Intel(R) Xeon(R) Silver 4216 CPU @ 2.10GHz
CPU(s): 16
MEM: 128G
Python: 3.8.10
pysoot: 7.7.12.1
APK File
The text was updated successfully, but these errors were encountered: