Skip to content

I have a problem trying to run this code #1

@RideDi

Description

@RideDi

Hello, I am very interested in the Fuzz way of this Android project, but I am facing some problems when running it.

As written in the Readme, I packaged this project with the APK I needed to test and generated a new APK, but when I try to run this new APK in a virtual machine with the following command, Dalvik doesn't seem to recognize that I've added it in the code

    -Xbootclasspath:/system/framework/core.jar:/system/framework/ext.jar:/system/framework/framework.jar:/system/framework/android.policy.jar:/system/framework/services.jar \
    -classpath /sdcard/your.apk javafuzz.JavaFuzz -c class.to.Test -v -m

Here is the problem,due to the reason that the libdvm.so shared library cannot be used above Android 6.0, I chose Android 6.0 and Android 4.4 to try, but the same error occurred.

Unable to locate class 'javafuzz.JavaFuzz'
java.lang.NoClassDefFoundError: javafuzz.JavaFuzz
        at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.ClassNotFoundException: Didn't find class "javafuzz.JavaFuzz" on path: DexPathList[[],nativeLibraryDirectories=[/system/lib]]
        at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:497)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:457)
        ... 1 more
java.lang.NoClassDefFoundError: javafuzz.JavaFuzz
        at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.ClassNotFoundException: Didn't find class "javafuzz.JavaFuzz" on path: DexPathList[[],nativeLibraryDirectories=[/system/lib]]
        at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:497)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:457)

I would like to know how this problem arises, and what is the best way to solve it. At the same time, if there is a way to run this Fuzz program in versions higher than Android 6.0, I am looking forward to your reply, thank you very much @thypon

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions