daily pastebin goal
78%
SHARE
TWEET

deodex.bat

huhka_com Sep 22nd, 2012 605 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. call baksmali.bat --api-level 15 -d ../framework -x %~n1.odex > "%~d1%~p1%~n1.log.txt" 2>&1
  2. if not exist "%~d1%~p1out" ( goto BATCH_ERR_END )
  3.  
  4. call smali.bat -o "%~d1%~p1classes.dex" "%~d1%~p1out"
  5.  
  6. 7z u -tzip "%~d1%~p1%~n1.apk" "%~d1%~p1classes.dex"
  7.  
  8. if exist "%~d1%~p1classes.dex" ( del "%~d1%~p1classes.dex" )
  9. if exist "%~d1%~p1out" ( rd /s /q "%~d1%~p1out" )
  10.  
  11. del "%~d1%~p1%~n1.log.txt"
  12. del "%~d1%~p1%~n1.odex"
  13.  
  14. goto BATCH_END
  15.  
  16. :BATCH_ERR_END
  17. echo ERROR!! failed deodex.
  18. echo  Cheack Error log. %~d1%~p1%~n1.log.txt
  19.  
  20. :BATCH_END
RAW Paste Data
Top