Skip to content

JadxPlus: Empty APK files are processed without exceptions in SpecsJadx.decompileAPK() #13

@lm-sousa

Description

@lm-sousa

Bug Description:
When creating temporary empty files with .apk extension for testing, the SpecsJadx.decompileAPK() methods complete successfully without throwing DecompilationFailedException, despite the files being invalid APK files with zero content.

Expected Behavior:
Invalid or empty APK files should throw DecompilationFailedException with meaningful error messages.

Actual Behavior:
The method executes without exception and appears to complete successfully.

Impact:
This could allow invalid APK files to be processed silently, potentially leading to unexpected behavior downstream. It also makes error handling testing difficult.

Recommendation:
Add validation to check if the input file is a valid APK file before attempting decompilation. At minimum, check file size and basic APK structure.


This issue was identified by Copilot and needs human review.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions