-
Notifications
You must be signed in to change notification settings - Fork 30
Open
Description
Description
Certain files in the decompiled APK directory contain special characters or spaces that cause build failures when attempting to recompile. Specifically, files like "# Code Citations.md" within the smali directory cause APK build errors.
Current Behavior
When running the build command, files with names containing special characters or spaces produce errors:
W: Unknown file type, ignoring: ANDRO-webpannel/app/factory/decompiled/smali/com/etechd/l3mon/# Code Citations.md
Expected Behavior
All files in the decompiled directory should have valid names that don't interfere with the APK building process.
Reproduction Steps
- Decompile an APK using the system
- Inspect the decompiled directory for files with special characters
- Attempt to build the APK
Proposed Fix
Create a cleanup script that automatically removes or renames problematic files before the build process:
#!/bin/bash
DECOMPILED_DIR="/path/to/decompiled"
# Remove files with problematic names
find "$DECOMPILED_DIR" -name "# *" -type f -delete
find "$DECOMPILED_DIR" -name "* *" -type f | while read file; do
new_name=$(echo "$file" | sed 's/ /_/g')
mv "$file" "$new_name"
doneAdditional Context
These problematic filenames are likely introduced during the decompilation process or from source control comments in the original APK.
Metadata
Metadata
Assignees
Labels
No labels