REAndroid / APKEditor

Powerful android apk editor - aapt/aapt2 independent
Apache License 2.0
645 stars 95 forks source link

[feature] command to decode smali only and resources only #83

Closed drakulaboy closed 5 months ago

drakulaboy commented 5 months ago

hi, as title says, can you make/add a command to baksmali smali only and a command to decompile/decode only resources, thank you!

REAndroid commented 5 months ago

Read help

java -jar APKEditor-x.x.x.jar d -help

Decodes android resources binary to readable json/xml
Options:
   -i                  input path
   -o                  output path
   -framework-version  preferred framework version number
   -framework          path of framework file (can be multiple)
   -sig                signatures directory path
   -t                  Decode types: 
                        1) json 
                        2) xml 
                        3) raw 
                        4) sig 
                       default=xml
   -res-dir            sets resource files root dir name
                       (eg. for obfuscation to move files from 'res/*' to 'r/*' 
                       or vice versa)
Flags:
   -dex            Copy raw dex files / skip smali
   -f              force delete output path
   -keep-res-path  Keeps original res/* file paths:
                    *Applies only when decoding to xml
                    *All res/* files will be placed on dir <res-files>
                    *The relative paths will be linked to values/*xml
   -split-json     splits resources.arsc into multiple parts as per type entries
                   (use this for large files)
   -vrd            validate resources dir name
                   (eg. if a drawable resource file path is 'res/abc.png' then
                   it will be moved to 'res/drawable/abc.png')

Use -dex to decompile resources only

drakulaboy commented 5 months ago

oh, i was using for help the

java -jar APKEditor.jar -h

thank you, case closed