You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While running Redex on an obfuscated APK (using Dexguard, the paid version of Proguard), the following error appears:
Unexpected token - on line 11
Traceback (most recent call last):
File "/usr/local/bin/redex", line 779, in <module>
run_redex(args)
File "/usr/local/bin/redex", line 735, in run_redex
dexen)
File "/usr/local/bin/redex", line 110, in run_pass
subprocess.check_call(args, shell=True)
File "/usr/lib/python3.4/subprocess.py", line 561, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command 'redex-all --apkdir /tmp/tmp63oe7fvl.redex_extracted_apk --outdir /tmp/tmpg3lptjgm.redex_dexen --config /tmp/tmpv5tx4yjm/rewritten.config --proguard-config dexguard-config.txt -Sproguard_map=mapping.txt /tmp/tmpg3lptjgm.redex_dexen/dex0/classes.dex' returned non-zero exit status 1
UPDATE:
Line 11 of dexguard-config.txt is the first "good" line of the config file (the previous lines are comments or empty lines) and states: -dalvik
The text was updated successfully, but these errors were encountered:
I run into a similar bug in my case the problem was my proguard file. So your problem seems to be in line 11 of your dexguard-config.txt. To help Facebook you should add this line to your report.
In general I can't support DexGuard configuration files since it's closed-source and not documented as far as I can find. If you're familiar with flex and bison, you can probably modify the parser to get it working and send a PR :-).
But I should note that -P is a work-in-progress feature. It's not actually hooked up to the optimizer, so you won't lose anything by not passing it as an argument.
While running Redex on an obfuscated APK (using Dexguard, the paid version of Proguard), the following error appears:
Here's the Redex config file I'm using:
Invoked with:
redex my.apk -c my.config -m mapping.txt -P dexguard-config.txt -o out.apk
UPDATE:
Line 11 of dexguard-config.txt is the first "good" line of the config file (the previous lines are comments or empty lines) and states:
-dalvik
The text was updated successfully, but these errors were encountered: