AryanVBW / AryanVBW/ANDRO

Problematic Filenames in Decompiled APK Directory

Open
#18 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Smali
Stars
132
Forks
36
PR merge metrics
No merged PRs in 30d

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
1. Decompile an APK using the system
2. Inspect the decompiled directory for files with special characters
3. Attempt to build the APK

### Proposed Fix
Create a cleanup script that automatically removes or renames problematic files before the build process:

```bash
#!/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"
done
```

### Additional Context
These problematic filenames are likely introduced during the decompilation process or from source control comments in the original APK.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.