[Android General] CXZa:
Yeah, there is a little Catch22 in this deal. One has to run it in order to get the bat. Normally one could extract these things with a password if known, or try hacking them, but these are modified and packed somehow or maybe some older version is used, IDK. I could understand it if there would be anything special in them but there isn't anything such really...

Because the title of this thread says that TOAD is "The Open-Source Android Deodexer",

I'll just paste its batch file here for you... it should be alright...

@shift /0
@set b2eextd=C:\DOCUME~1\CXZa\LOCALS~1\Temp\1D.tmp\1E.tmp\extd.exe
@set extd=@call:extd
@set b2etempfile=C:\DOCUME~1\CXZa\LOCALS~1\Temp\1D.tmp\1E.tmp\20.tmp
@shift /0
@shift /0
@shift /0
@shift /0
@echo off
setlocal ENABLEDELAYEDEXPANSION
title TOAD
color 80
call :Set_Variables
goto Check_Files

::-----------------------------------------------------------------------------------------------------------------------------

:Set_Variables
set TOAD_ABI=null
for /l %%a in (1,1,20) do (
set TOAD_AvailableFile%%a=
)
set TOAD_API=null
set TOAD_Address=
set TOAD_day=
set TOAD_DeodexErrors=0
set TOAD_DeodexSuccesses=0
set TOAD_Extension=
set TOAD_FileToDeodex=0
set TOAD_Filename=
set TOAD_IncludeFramework=
set TOAD_Greeting=no
set TOAD_Hour=
set TOAD_MaxPageCount=
set TOAD_Min=
set TOAD_Month=
set TOAD_MouseColumn=
set TOAD_MouseRow=
set TOAD_NextLocation=
set TOAD_PageCount=1
set TOAD_PreviousLocation=
set TOAD_Sec=
set TOAD_SingleFile=no
set TOAD_StartDirectory=%cd%
set TOAD_temp=
set TOAD_temp2=
set TOAD_TitleLines=9
set TOAD_WindowWidth=50
set TOAD_Year=
goto :eof

::-----------------------------------------------------------------------------------------------------------------------------

:Get_Mouse_Location
if exist "%TOAD_StartDirectory%\TOAD.bat" (
del /q "%TOAD_StartDirectory%\TOAD.bat" >nul
)
for /f "tokens=1-5 delims=\ " %%a in ('%TOAD_StartDirectory%\Tool_Files\bg33 mouse') do (
set TOAD_MouseRow=%%a
set /a TOAD_MouseRow-=!TOAD_TitleLines!
set /a TOAD_MouseRow-=1
set TOAD_MouseColumn=%%b
)
goto :eof

::-----------------------------------------------------------------------------------------------------------------------------

:Set_Current_Time
for /f "tokens=1-8 delims= " %%a in ('%TOAD_StartDirectory%\tool_files\bg33 DateTime') do (
set TOAD_year=%%b
set TOAD_month=%%c
if !TOAD_month! lss 10 (
set TOAD_month=0!TOAD_month!
)
set TOAD_day=%%d
if !TOAD_day! lss 10 (
set TOAD_day=0!TOAD_day!
)
)
for /f "tokens=1-5 delims=: " %%a in ("%time%") do (
set TOAD_hour=%%a
set TOAD_min=%%b
set TOAD_sec=%%c
)
goto :eof

::-----------------------------------------------------------------------------------------------------------------------------

:Check_Files
if exist "%TOAD_StartDirectory%\Your_Files\framework\*.jar" if exist "%TOAD_StartDirectory%\Your_Files\build.prop" (goto Start_TOAD)
call Tool_Files\Display_Title 65 10
echo. Sorry, I don't have all the files I need.
echo.
echo. Please supply your "framework" folder and "build.prop",
echo. as well as any folders you want me to deodex.
echo.
echo.
echo. ^<^< TRY AGAIN ^>^>
echo.
echo. ^<^< EXIT ^>^>
:Check_Files_1
call :Get_Mouse_Location
if %TOAD_MouseRow%==6 (goto Check_Files)
if %TOAD_MouseRow%==8 (exit)
goto Check_Files_1

::-----------------------------------------------------------------------------------------------------------------------------

:Start_TOAD
call :Set_Current_Time
for /f "tokens=1,2" %%a in (Your_Files\build.prop) do (
call :Read_Build_Prop_1 ^%%a ^%%b
if !TOAD_ABI! neq null (
if !TOAD_API! neq null (
goto Read_Build_Prop_2
)
)
)
:Read_Build_Prop_1
set TOAD_temp=%1%2
if %TOAD_temp:~0,20% neq ro.build.version.sdk (
if %TOAD_temp:~0,22% neq ro.product.cpu.abilist (
goto :eof
)
)
if %TOAD_temp:~0,24%==ro.product.cpu.abilist32 (
goto :eof
) else if %TOAD_temp:~0,24%==ro.product.cpu.abilist64 (
goto :eof
)
if %TOAD_temp:~0,20%==ro.build.version.sdk (
set TOAD_API=%TOAD_temp:~20,100%
goto :eof
)
if %TOAD_temp:~0,22%==ro.product.cpu.abilist (
set TOAD_ABI=%TOAD_temp:~22,5%
)
if %TOAD_ABI%==x86 (
goto :eof
)
if %TOAD_ABI:~3,2%==32 (
goto :eof
)
if %TOAD_ABI:~3,2%==64 (
goto :eof
)
set TOAD_ABI=%TOAD_ABI:~0,3%
goto :eof
:Read_Build_Prop_2
if exist Tool_Files\FilesToDeodex* (
del Tool_Files\FilesToDeodex* /q >nul
)
echo.%TOAD_day%-%TOAD_month%-%TOAD_year%@%TOAD_hour%%TOAD_min% --- Deodexing Process Started>LOG.txt
echo.>>LOG.txt
echo.TOAD Version: 3.0.0.4>>LOG.txt
if %TOAD_API% geq 21 (echo.ABI detected as: "%TOAD_ABI%">>LOG.txt)
echo.API level detected as: "%TOAD_API%">>LOG.txt
if exist Method_Files\%TOAD_API%.bat (goto Start_Toad_4)
call Tool_Files\Display_Title %TOAD_WindowWidth% 11
if %TOAD_hour% lss 12 (echo. Good Morning^^!&set TOAD_Greeting=yes)
if %TOAD_hour%%TOAD_min% gtr 1159 if %TOAD_hour% lss 17 (echo. Good Afternoon^^!&set TOAD_Greeting=yes)
if %TOAD_hour%%TOAD_min% gtr 1659 (echo. Good Evening^^!&set TOAD_Greeting=yes)
echo.
echo. "%TOAD_API%.bat" not present>>LOG.txt
echo. It looks like I don't have a Method for
echo. deodexing that version of Android yet.
echo.
echo. Why don't you let my developer know?
echo.
echo.
echo. ^<^< EXIT ^>^>
:Start_TOAD_2
call :Get_Mouse_Location
exit
:Start_TOAD_3
set /a TOAD_API-=1
if not exist Method_Files\%TOAD_API%.bat (goto Start_TOAD_3)
:Start_TOAD_4
echo."%TOAD_API%.bat" to be used>>LOG.txt
if not exist Your_Files\app\*.* if not exist Your_Files\priv-app\*.* if not exist Your_Files\vendor\app\*.* if not exist Your_Files\vendor\priv-app\*.* if not exist Your_Files\vendor\framework\*.* (set Toad_IncludeFramework=yes&goto Start_TOAD_6)
if %TOAD_Greeting%==yes (call Tool_Files\Display_Title %TOAD_WindowWidth% 11) else (call Tool_Files\Display_Title %TOAD_WindowWidth% 13)
if %TOAD_Greeting%==no if %TOAD_hour% lss 12 (echo. Good Morning^^!&echo.)
if %TOAD_Greeting%==no if %TOAD_hour%%TOAD_min% gtr 1159 if %TOAD_hour% lss 17 (echo. Good Afternoon^^!&echo.)
if %TOAD_Greeting%==no if %TOAD_hour%%TOAD_min% gtr 1659 (echo. Good Evening^^!&echo.)
echo. Would you like me to try to deodex:
echo.
echo.
echo. ^<^< All Folders Including "framework"? ^>^>
echo.
echo. ^<^< All Folders Without "framework"? ^>^>
echo.
echo.
echo. ^<^< Individual File ^>^>
:Start_TOAD_5
call :Get_Mouse_Location
if %TOAD_Greeting%==yes (
if %TOAD_MouseRow%==4 (
set TOAD_IncludeFramework=yes
goto Start_TOAD_6
)
if %TOAD_MouseRow%==6 (
set TOAD_IncludeFramework=no
goto Start_TOAD_6
)
if %TOAD_MouseRow%==9 (
call :ChooseFiles
goto Start_TOAD_6
)
)
if %TOAD_Greeting%==no (
if %TOAD_MouseRow%==6 (
set TOAD_IncludeFramework=yes
set TOAD_Greeting=yes
goto Start_TOAD_6
)
if %TOAD_MouseRow%==8 (
set TOAD_IncludeFramework=no
set TOAD_Greeting=yes
goto Start_TOAD_6
)
if %TOAD_MouseRow%==11 (
set TOAD_Greeting=yes
call :ChooseFiles
goto Start_TOAD_6
)
)
goto Start_TOAD_5
:Start_TOAD_6
if %TOAD_Greeting%==yes (call Tool_Files\Display_Title %TOAD_WindowWidth% 15) else (call Tool_Files\Display_Title %TOAD_WindowWidth% 17)
if %TOAD_Greeting%==no if %TOAD_hour% lss 12 (echo. Good Morning^^!&echo.)
if %TOAD_Greeting%==no if %TOAD_hour%%TOAD_min% gtr 1159 if %TOAD_hour% lss 17 (echo. Good Afternoon^^!&echo.)
if %TOAD_Greeting%==no if %TOAD_hour%%TOAD_min% gtr 1659 (echo. Good Evening^^!&echo.)
echo. I think I should be able to deodex
echo. your files for you.
echo.
echo. I can use "Method_Files\%TOAD_API%.bat".
echo.
echo. Do you want me to try it?
echo.
echo. It might take some time...
echo.
echo.
echo. ^<^< YES ^>^>
echo.
echo. ^<^< NO ^>^>
:Start_TOAD_7
call :Get_Mouse_Location
if %TOAD_Greeting%==no if %TOAD_MouseRow%==13 (goto Start_TOAD_8)
if %TOAD_Greeting%==no if %TOAD_MouseRow%==15 (exit)
if %TOAD_Greeting%==yes if %TOAD_MouseRow%==11 (goto Start_TOAD_8)
if %TOAD_Greeting%==yes if %TOAD_MouseRow%==13 (exit)
goto Start_TOAD_7
:Start_TOAD_8
if not exist Tool_Files\META-INF\com\google\android\ (
mkdir Tool_Files\META-INF\com\google\android\ >nul
) else (
rmdir Tool_Files\META-INF\com\google\android\ /s/q >nul
mkdir Tool_Files\META-INF\com\google\android\ >nul
)
if not exist Tool_Files\system\*.* (
mkdir Tool_Files\system >nul
) else (
rmdir Tool_Files\system /s/q >nul
mkdir Tool_Files\system >nul
)
copy Tool_Files\deodex.zip TOAD_deodex_%TOAD_day%%TOAD_month%%TOAD_year%-%TOAD_hour%%TOAD_min%.zip >nul
call Method_Files\%TOAD_API%.bat
title TOAD
if %TOAD_DeodexSuccesses%==0 (goto Start_TOAD_9)
Tool_Files\dos2unix Tool_Files\META-INF\com\google\android\updater-script>nul 2>&1
echo.>>log.txt
echo.----------->>log.txt
echo.>>log.txt
cd Tool_Files
7za a -y -mx0 "%TOAD_StartDirectory%\TOAD_deodex_%TOAD_day%%TOAD_month%%TOAD_year%-%TOAD_hour%%TOAD_min%.zip" META-INF >>"%TOAD_StartDirectory%\LOG.txt" 2>&1
rmdir META-INF /s/q >nul
cd..
echo.>>log.txt
echo.----------->>log.txt
echo.>>log.txt
if %TOAD_DeodexErrors% neq 0 (call Tool_Files\Display_Title 58 18) else (call Tool_Files\Display_Title %TOAD_WindowWidth% 15)
echo. I've finished deodexing your files.
echo.
if %TOAD_DeodexErrors% neq 0 (
echo. Unfortunately there were some files I couldn't process,
echo. please read the "LOG.txt" file for more details.
echo.
)
echo. Flash the ZIP file I've made and
echo. give it a try.
echo.
echo. The ZIP file is called:
echo.
echo. "TOAD_deodex_%TOAD_day%%TOAD_month%%TOAD_year%-%TOAD_hour%%TOAD_min%.zip"
echo.
echo. BUT MAKE A BACKUP FIRST THOUGH^^!^^!
echo.
echo.
echo. ^<^< OK ^>^>
call :Set_Current_Time
echo.%TOAD_day%-%TOAD_month%-%TOAD_year%@%TOAD_hour%%TOAD_min% --- Deodexing Process Finished>>LOG.txt
%extd% /flashwindow "TOAD" 60 1000 FLASHW_ALL 1
call :Get_Mouse_Location
endlocal
exit
:Start_TOAD_9
del TOAD_deodex_%TOAD_day%%TOAD_month%%TOAD_year%-%TOAD_hour%%TOAD_min%.zip /q >nul
echo.>>log.txt
echo.----------->>log.txt
echo.>>log.txt
call Tool_Files\Display_Title 50 10
echo. I wasn't able to deodex any of your files!
echo.
echo. Sorry about that.
echo.
echo. Please read the "LOG.txt" file for more details.
echo.
echo.
echo. ^<^< EXIT ^>^>
call :Set_Current_Time
echo.%TOAD_day%-%TOAD_month%-%TOAD_year%@%TOAD_hour%%TOAD_min% --- Deodexing Process Finished>>LOG.txt
%extd% /flashwindow "TOAD" 60 1000 FLASHW_ALL 1
call :Get_Mouse_Location
endlocal
exit

::-----------------------------------------------------------------------------------------------------------------------------

:ChooseFiles
set TOAD_temp=0
if %TOAD_API% geq 26 (
for %%b in (app priv-app framework vendor\app vendor\priv-app vendor\framework) do (
if exist Your_Files\%%b\*.* (
for /f %%a in ('dir /ad/b/on Your_Files\%%b') do (
if %%a neq oat (
if exist Your_Files\%%b\%%a\oat\%TOAD_ABI%\*.vdex (
set TOAD_temp2=!TOAD_temp!
set /a TOAD_temp+=1
if exist Tool_Files\FilesToDeodex!TOAD_PageCount!.!TOAD_temp2! (
rename Tool_Files\FilesToDeodex!TOAD_PageCount!.!TOAD_temp2! FilesToDeodex!TOAD_PageCount!.!TOAD_temp!
)
echo.%%b\%%a\%%a.apk>>Tool_Files\FilesToDeodex!TOAD_PageCount!.!TOAD_temp!
if !TOAD_temp!==20 (
set TOAD_temp=0
set /a TOAD_PageCount+=1
)
)
)
)
)
)
for %%b in (framework vendor\framework) do (
if exist Your_Files\%%b\*.* (
for /f %%a in ('dir /b/on Your_Files\%%b\*.jar') do (
if exist Your_Files\%%b\oat\%TOAD_ABI%\%%~na.vdex (
set TOAD_temp2=!TOAD_temp!
set /a TOAD_temp+=1
if exist Tool_Files\FilesToDeodex!TOAD_PageCount!.!TOAD_temp2! (
rename Tool_Files\FilesToDeodex!TOAD_PageCount!.!TOAD_temp2! FilesToDeodex!TOAD_PageCount!.!TOAD_temp!
)
echo.%%b\%%~na.jar>>Tool_Files\FilesToDeodex!TOAD_PageCount!.!TOAD_temp!
if !TOAD_temp!==20 (
set TOAD_temp=0
set /a TOAD_PageCount+=1
)
)
)
)
)
goto ChooseFiles_1
)
if %TOAD_API% geq 23 (
for %%b in (app priv-app framework vendor\app vendor\priv-app vendor\framework) do (
if exist Your_Files\%%b\*.* (
for /f %%a in ('dir /ad/b/on Your_Files\%%b') do (
if %%a neq oat (
if exist Your_Files\%%b\%%a\oat\%TOAD_ABI%\*.odex (
set TOAD_temp2=!TOAD_temp!
set /a TOAD_temp+=1
if exist Tool_Files\FilesToDeodex!TOAD_PageCount!.!TOAD_temp2! (
rename Tool_Files\FilesToDeodex!TOAD_PageCount!.!TOAD_temp2! FilesToDeodex!TOAD_PageCount!.!TOAD_temp!
)
echo.%%b\%%a\%%a.apk>>Tool_Files\FilesToDeodex!TOAD_PageCount!.!TOAD_temp!
if !TOAD_temp!==20 (
set TOAD_temp=0
set /a TOAD_PageCount+=1
)
)
)
)
)
)
for %%b in (framework vendor\framework) do (
if exist Your_Files\%%b\*.* (
for /f %%a in ('dir /b/on Your_Files\%%b\*.jar') do (
if exist Your_Files\%%b\oat\%TOAD_ABI%\%%~na.odex (
set TOAD_temp2=!TOAD_temp!
set /a TOAD_temp+=1
if exist Tool_Files\FilesToDeodex!TOAD_PageCount!.!TOAD_temp2! (
rename Tool_Files\FilesToDeodex!TOAD_PageCount!.!TOAD_temp2! FilesToDeodex!TOAD_PageCount!.!TOAD_temp!
)
echo.%%b\%%~na.jar>>Tool_Files\FilesToDeodex!TOAD_PageCount!.!TOAD_temp!
if !TOAD_temp!==20 (
set TOAD_temp=0
set /a TOAD_PageCount+=1
)
)
)
)
)
goto ChooseFiles_1
)
if %TOAD_API% geq 21 (
for %%b in (app priv-app framework vendor\app vendor\priv-app vendor\framework) do (
if exist Your_Files\%%b\*.* (
for /f %%a in ('dir /ad/b/on Your_Files\%%b') do (
if %%a neq oat (
if exist Your_Files\%%b\%%a\%TOAD_ABI%\*.odex (
set TOAD_temp2=!TOAD_temp!
set /a TOAD_temp+=1
if exist Tool_Files\FilesToDeodex!TOAD_PageCount!.!TOAD_temp2! (
rename Tool_Files\FilesToDeodex!TOAD_PageCount!.!TOAD_temp2! FilesToDeodex!TOAD_PageCount!.!TOAD_temp!
)
echo.%%b\%%a\%%a.apk>>Tool_Files\FilesToDeodex!TOAD_PageCount!.!TOAD_temp!
if !TOAD_temp!==20 (
set TOAD_temp=0
set /a TOAD_PageCount+=1
)
)
)
)
)
)
for %%b in (framework vendor\framework) do (
if exist Your_Files\%%b\*.* (
for /f %%a in ('dir /b/on Your_Files\%%b\*.jar') do (
if exist Your_Files\%%b\%TOAD_ABI%\%%~na.odex (
set TOAD_temp2=!TOAD_temp!
set /a TOAD_temp+=1
if exist Tool_Files\FilesToDeodex!TOAD_PageCount!.!TOAD_temp2! (
rename Tool_Files\FilesToDeodex!TOAD_PageCount!.!TOAD_temp2! FilesToDeodex!TOAD_PageCount!.!TOAD_temp!
)
echo.%%b\%%~na.jar>>Tool_Files\FilesToDeodex!TOAD_PageCount!.!TOAD_temp!
if !TOAD_temp!==20 (
set TOAD_temp=0
set /a TOAD_PageCount+=1
)
)
)
)
)
goto ChooseFiles_1
)
if %TOAD_API% lss 21 (
for %%b in (app priv-app framework vendor\app vendor\priv-app vendor\framework) do (
if exist Your_Files\%%b\*.* (
for /f %%a in ('dir /b/on Your_Files\%%b\*.odex') do (
if %%a neq oat (
if exist Your_Files\%%b\%%~na.apk (
set TOAD_temp2=!TOAD_temp!
set /a TOAD_temp+=1
if exist Tool_Files\FilesToDeodex!TOAD_PageCount!.!TOAD_temp2! (
rename Tool_Files\FilesToDeodex!TOAD_PageCount!.!TOAD_temp2! FilesToDeodex!TOAD_PageCount!.!TOAD_temp!
)
echo.%%b\%%a.apk>>Tool_Files\FilesToDeodex!TOAD_PageCount!.!TOAD_temp!
if !TOAD_temp!==20 (
set TOAD_temp=0
set /a TOAD_PageCount+=1
)
)
)
)
)
)
for %%b in (framework vendor\framework) do (
if exist Your_Files\%%b\*.* (
for /f %%a in ('dir /b/on Your_Files\%%b\*.jar') do (
if exist Your_Files\%%b\%%~na.vdex (
set TOAD_temp2=!TOAD_temp!
set /a TOAD_temp+=1
if exist Tool_Files\FilesToDeodex!TOAD_PageCount!.!TOAD_temp2! (
rename Tool_Files\FilesToDeodex!TOAD_PageCount!.!TOAD_temp2! FilesToDeodex!TOAD_PageCount!.!TOAD_temp!
)
echo.%%b\%%~na.jar>>Tool_Files\FilesToDeodex!TOAD_PageCount!.!TOAD_temp!
if !TOAD_temp!==20 (
set TOAD_temp=0
set /a TOAD_PageCount+=1
)
)
)
)
)
goto ChooseFiles_1
)
:ChooseFiles_1
set TOAD_MaxPageCount=!TOAD_PageCount!
if not exist Tool_Files\FilesToDeodex* (
call Tool_Files\Display_Title %TOAD_WindowWidth% 7
echo. I wasn't able to find any suitable files!
echo.
echo. Sorry about that.
echo.
echo.
echo. ^<^< EXIT ^>^>
call :Get_Mouse_Location
endlocal
exit
)
set TOAD_PageCount=1
set TOAD_temp2=1
:ChooseFiles_2
for /l %%a in (1,1,20) do (
set TOAD_AvailableFile%%a=0
)
for /f %%a in ('dir /b/on Tool_Files\FilesToDeodex!TOAD_PageCount!.*') do (
set TOAD_temp=%%~xa
set TOAD_temp=!TOAD_temp:~1,2!
set /a TOAD_temp+=!TOAD_temp!
set /a TOAD_temp+=8
call Tool_Files\Display_Title 100 !TOAD_temp!
echo. Choose Which File You Want Me To Deodex:
echo.
echo.
set TOAD_temp=1
set TOAD_temp2=3
for /f %%b in (Tool_Files\%%a) do (
echo. ^<^< %%b ^>^>
echo.
set TOAD_AvailableFile!TOAD_temp!=%%b
set /a TOAD_temp+=1
set /a TOAD_temp2+=2
)
)
echo.
echo. ^<^< NEXT PAGE ^>^>
set /a TOAD_temp2+=1
set TOAD_NextLocation=!TOAD_temp2!
echo.
echo. ^<^< PREVIOUS PAGE ^>^>
set /a TOAD_temp2+=2
set TOAD_PreviousLocation=!TOAD_temp2!
:ChooseFiles_3
call :Get_Mouse_Location
if %TOAD_MouseRow%==3 (
if %TOAD_AvailableFile1% neq 0 (
set TOAD_FileToDeodex=!TOAD_AvailableFile1!
goto ChooseFiles_4
)
)
if %TOAD_MouseRow%==5 (
if %TOAD_AvailableFile2% neq 0 (
set TOAD_FileToDeodex=!TOAD_AvailableFile2!
goto ChooseFiles_4
)
)
if %TOAD_MouseRow%==7 (
if %TOAD_AvailableFile3% neq 0 (
set TOAD_FileToDeodex=!TOAD_AvailableFile3!
goto ChooseFiles_4
)
)
if %TOAD_MouseRow%==9 (
if %TOAD_AvailableFile4% neq 0 (
set TOAD_FileToDeodex=!TOAD_AvailableFile4!
goto ChooseFiles_4
)
)
if %TOAD_MouseRow%==11 (
if %TOAD_AvailableFile5% neq 0 (
set TOAD_FileToDeodex=!TOAD_AvailableFile5!
goto ChooseFiles_4
)
)
if %TOAD_MouseRow%==13 (
if %TOAD_AvailableFile6% neq 0 (
set TOAD_FileToDeodex=!TOAD_AvailableFile6!
goto ChooseFiles_4
)
)
if %TOAD_MouseRow%==15 (
if %TOAD_AvailableFile7% neq 0 (
set TOAD_FileToDeodex=!TOAD_AvailableFile7!
goto ChooseFiles_4
)
)
if %TOAD_MouseRow%==17 (
if %TOAD_AvailableFile8% neq 0 (
set TOAD_FileToDeodex=!TOAD_AvailableFile8!
goto ChooseFiles_4
)
)
if %TOAD_MouseRow%==19 (
if %TOAD_AvailableFile9% neq 0 (
set TOAD_FileToDeodex=!TOAD_AvailableFile9!
goto ChooseFiles_4
)
)
if %TOAD_MouseRow%==21 (
if %TOAD_AvailableFile10% neq 0 (
set TOAD_FileToDeodex=!TOAD_AvailableFile10!
goto ChooseFiles_4
)
)
if %TOAD_MouseRow%==23 (
if %TOAD_AvailableFile11% neq 0 (
set TOAD_FileToDeodex=!TOAD_AvailableFile11!
goto ChooseFiles_4
)
)
if %TOAD_MouseRow%==25 (
if %TOAD_AvailableFile12% neq 0 (
set TOAD_FileToDeodex=!TOAD_AvailableFile12!
goto ChooseFiles_4
)
)
if %TOAD_MouseRow%==27 (
if %TOAD_AvailableFile13% neq 0 (
set TOAD_FileToDeodex=!TOAD_AvailableFile13!
goto ChooseFiles_4
)
)
if %TOAD_MouseRow%==29 (
if %TOAD_AvailableFile14% neq 0 (
set TOAD_FileToDeodex=!TOAD_AvailableFile14!
goto ChooseFiles_4
)
)
if %TOAD_MouseRow%==31 (
if %TOAD_AvailableFile15% neq 0 (
set TOAD_FileToDeodex=!TOAD_AvailableFile15!
goto ChooseFiles_4
)
)
if %TOAD_MouseRow%==33 (
if %TOAD_AvailableFile16% neq 0 (
set TOAD_FileToDeodex=!TOAD_AvailableFile16!
goto ChooseFiles_4
)
)
if %TOAD_MouseRow%==35 (
if %TOAD_AvailableFile17% neq 0 (
set TOAD_FileToDeodex=!TOAD_AvailableFile17!
goto ChooseFiles_4
)
)
if %TOAD_MouseRow%==37 (
if %TOAD_AvailableFile18% neq 0 (
set TOAD_FileToDeodex=!TOAD_AvailableFile18!
goto ChooseFiles_4
)
)
if %TOAD_MouseRow%==39 (
if %TOAD_AvailableFile19% neq 0 (
set TOAD_FileToDeodex=!TOAD_AvailableFile19!
goto ChooseFiles_4
)
)
if %TOAD_MouseRow%==41 (
if %TOAD_AvailableFile20% neq 0 (
set TOAD_FileToDeodex=!TOAD_AvailableFile20!
goto ChooseFiles_4
)
)
if %TOAD_MouseRow%==%TOAD_NextLocation% (
set /a TOAD_PageCount+=1
if not exist Tool_Files\FilesToDeodex!TOAD_PageCount!.* (
set TOAD_PageCount=1
)
goto ChooseFiles_2
)
if %TOAD_MouseRow%==%TOAD_PreviousLocation% (
set /a TOAD_PageCount-=1
if not exist Tool_Files\FilesToDeodex!TOAD_PageCount!.* (
set TOAD_PageCount=!TOAD_MaxPageCount!
)
goto ChooseFiles_2
)
goto ChooseFiles_3
:ChooseFiles_4
call Tool_Files\Display_Title 100 11
echo. Do You Want Me To Try To Deodex:
echo.
echo. "%TOAD_FileToDeodex%"
echo.
echo. I will use "Method_Files\%TOAD_API%.bat".
echo.
echo.
echo. ^<^< YES ^>^>
echo.
echo. ^<^< NO ^>^>
:ChooseFiles_5
call :Get_Mouse_Location
if %TOAD_MouseRow%==7 (
goto ChooseFiles_6
)
if %TOAD_MouseRow%==9 (
goto ChooseFiles_2
)
goto ChooseFiles_5
:ChooseFiles_6
set TOAD_SingleFile=yes
for %%a in (%TOAD_FileToDeodex%) do (
set TOAD_Filename=%%~na
set TOAD_Extension=%%~xa
set TOAD_Extension=!TOAD_Extension:~1,3!
set TOAD_Address=%%~pa
)
if %TOAD_Address:~6,6%==vendor (
for /f "tokens=1-4 delims=\ " %%b in ("!TOAD_Address!") do set TOAD_Address=%%c\%%d
) else (
for /f "tokens=1-4 delims=\ " %%b in ("!TOAD_Address!") do set TOAD_Address=%%c
)
if not exist Tool_Files\META-INF\com\google\android\ (
mkdir Tool_Files\META-INF\com\google\android\ >nul
) else (
rmdir Tool_Files\META-INF\com\google\android\ /s/q >nul
mkdir Tool_Files\META-INF\com\google\android\ >nul
)
if not exist Tool_Files\system\*.* (
mkdir Tool_Files\system >nul
) else (
rmdir Tool_Files\system /s/q >nul
mkdir Tool_Files\system >nul
)
copy Tool_Files\deodex.zip TOAD_deodex_%TOAD_day%%TOAD_month%%TOAD_year%-%TOAD_hour%%TOAD_min%.zip >nul
call Method_Files\%TOAD_API%.bat
if %TOAD_DeodexErrors% neq 0 (
title TOAD
call Tool_Files\Display_Title %TOAD_WindowWidth% 8
echo. Sorry, I wasn't able to deodex your file!
echo.
echo. Please read the "LOG.txt" file for more details.
echo.
echo.
echo. ^<^< EXIT ^>^>
call :Get_Mouse_Location
endlocal
exit
)
goto overhere
if %TOAD_Extension%==apk (
if %TOAD_API% geq 21 (
:: LOLLIPOP 5.0
echo.ui_print(" Deleting 'system/%TOAD_Address%/%TOAD_Filename%/' Folder.."^);>>Tool_Files\META-INF\com\google\android\updater-script
echo.delete_recursive("/system/%TOAD_Address%/%TOAD_Filename%/"^);>>Tool_Files\META-INF\com\google\android\updater-script
echo.ui_print(" Adding Deodexed '%TOAD_Filename%.%TOAD_Extension%'.."^);>>Tool_Files\META-INF\com\google\android\updater-script
echo.package_extract_dir("system/%TOAD_Address%/%TOAD_Filename%","/system/%TOAD_Address%/%TOAD_Filename%"^);>>Tool_Files\META-INF\com\google\android\updater-script
echo.ui_print(" Setting Permissions.."^);>>Tool_Files\META-INF\com\google\android\updater-script
echo.set_perm_recursive(0, 0, 0755, 0644, "/system/%TOAD_Address%/%TOAD_Filename%"^);>>Tool_Files\META-INF\com\google\android\updater-script
goto ChooseFiles_7
)
if %TOAD_API% lss 21 (
echo.ui_print(" Deleting 'system/%TOAD_Address%/%TOAD_Filename%.odex'.."^);>>Tool_Files\META-INF\com\google\android\updater-script
echo.delete("/system/%TOAD_Address%/%TOAD_Filename%.odex/"^);>>Tool_Files\META-INF\com\google\android\updater-script
echo.ui_print(" Adding Deodexed '%TOAD_Filename%.%TOAD_Extension%'.."^);>>Tool_Files\META-INF\com\google\android\updater-script
echo.package_extract_dir("system/%TOAD_Address%/","/system/%TOAD_Address%/"^);>>Tool_Files\META-INF\com\google\android\updater-script
echo.ui_print(" Setting Permissions.."^);>>Tool_Files\META-INF\com\google\android\updater-script
echo.set_perm_recursive(0, 0, 0755, 0644, "/system/%TOAD_Address%/"^);>>Tool_Files\META-INF\com\google\android\updater-script
goto ChooseFiles_7
)
)
if %TOAD_Extension%==jar (
if %TOAD_API% geq 21 (
:: LOLLIPOP 5.0
echo.ui_print(" Deleting 'system/%TOAD_Address%/%TOAD_ABI%/%TOAD_Filename%.*'.."^);>>Tool_Files\META-INF\com\google\android\updater-script
echo.delete("/system/%TOAD_Address%/%TOAD_ABI%/%TOAD_Filename%.odex"^);>>Tool_Files\META-INF\com\google\android\updater-script
echo.ui_print(" Adding Deodexed '%TOAD_Filename%.%TOAD_Extension%'.."^);>>Tool_Files\META-INF\com\google\android\updater-script
echo.package_extract_dir("system/%TOAD_Address%/","/system/%TOAD_Address%/"^);>>Tool_Files\META-INF\com\google\android\updater-script
echo.ui_print(" Setting Permissions.."^);>>Tool_Files\META-INF\com\google\android\updater-script
echo.set_perm_recursive(0, 0, 0755, 0644, "/system/%TOAD_Address%/"^);>>Tool_Files\META-INF\com\google\android\updater-script
goto ChooseFiles_7
)
if %TOAD_API% lss 21 (
echo.ui_print(" Deleting 'system/%TOAD_Address%/%TOAD_Filename%.odex'.."^);>>Tool_Files\META-INF\com\google\android\updater-script
echo.delete("/system/%TOAD_Address%/%TOAD_Filename%.odex"^);>>Tool_Files\META-INF\com\google\android\updater-script
echo.ui_print(" Adding Deodexed '%TOAD_Filename%.%TOAD_Extension%'.."^);>>Tool_Files\META-INF\com\google\android\updater-script
echo.package_extract_dir("system/%TOAD_Address%/","/system/%TOAD_Address%/"^);>>Tool_Files\META-INF\com\google\android\updater-script
echo.ui_print(" Setting Permissions.."^);>>Tool_Files\META-INF\com\google\android\updater-script
echo.set_perm_recursive(0, 0, 0755, 0644, "/system/%TOAD_Address%/"^);>>Tool_Files\META-INF\com\google\android\updater-script
goto ChooseFiles_7
)
)
:overhere
Tool_Files\dos2unix Tool_Files\META-INF\com\google\android\updater-script>nul 2>&1
cd Tool_Files
7za a -y -mx0 "%TOAD_StartDirectory%\TOAD_deodex_%TOAD_day%%TOAD_month%%TOAD_year%-%TOAD_hour%%TOAD_min%.zip" META-INF >>"%TOAD_StartDirectory%\LOG.txt" 2>&1
rmdir META-INF /s/q >nul
cd..
title TOAD
echo.>>log.txt
echo.----------->>log.txt
echo.>>log.txt
call Tool_Files\Display_Title %TOAD_WindowWidth% 15
echo. I've finished deodexing your file.
echo.
echo. Flash the ZIP file I've made and
echo. give it a try.
echo.
echo. The ZIP file is called:
echo.
echo. "TOAD_deodex_%TOAD_day%%TOAD_month%%TOAD_year%-%TOAD_hour%%TOAD_min%.zip"
echo.
echo. BUT MAKE A BACKUP FIRST THOUGH^^!^^!
echo.
echo.
echo. ^<^< OK ^>^>
call :Set_Current_Time
echo.%TOAD_day%-%TOAD_month%-%TOAD_year%@%TOAD_hour%%TOAD_min% --- Deodexing Process Finished>>LOG.txt
%extd% /flashwindow "TOAD" 60 1000 FLASHW_ALL 1
call :Get_Mouse_Location
endlocal
exit
::-----------------------------------------------------------------------------------------------------------------------------

:extd
@set result=
@%b2eextd% "%~1" "%~2" "%~3" "%~4" "%~5" "%~6" "%~7" "%~8" "%~9" > "%b2etempfile%"
@set /p result= < "%b2etempfile%"
@del "%b2etempfile%"
@goto:eof
:extd
@set result=
@%b2eextd% "%~1" "%~2" "%~3" "%~4" "%~5" "%~6" "%~7" "%~8" "%~9" > "%b2etempfile%"
@set /p result= < "%b2etempfile%"
@del "%b2etempfile%"
@goto:eof

:extd
@set result=
@%b2eextd% "%~1" "%~2" "%~3" "%~4" "%~5" "%~6" "%~7" "%~8" "%~9" > "%b2etempfile%"
@set /p result= < "%b2etempfile%"
@del "%b2etempfile%"
@goto:eof

:extd
@set result=
@%b2eextd% "%~1" "%~2" "%~3" "%~4" "%~5" "%~6" "%~7" "%~8" "%~9" > "%b2etempfile%"
@set /p result= < "%b2etempfile%"
@del "%b2etempfile%"
@goto:eof

:extd
@set result=
@%b2eextd% "%~1" "%~2" "%~3" "%~4" "%~5" "%~6" "%~7" "%~8" "%~9" > "%b2etempfile%"
@set /p result= < "%b2etempfile%"
@del "%b2etempfile%"
@goto:eof

edit: One should open these in some VirtualBox or similar. Also maybe something like Hiren's BootCD can be used. Or both...