ANDRO icon indicating copy to clipboard operation
ANDRO copied to clipboard

Problematic Filenames in Decompiled APK Directory

Open AryanVBW opened this issue 7 months ago • 0 comments
trafficstars

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:

#!/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.

AryanVBW avatar Apr 06 '25 03:04 AryanVBW