daily pastebin goal
35%
SHARE
TWEET

deodex.bat

huhka_com Sep 22nd, 2012 607 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
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top