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.