[Android General] Ticklefish:
I tried duplicating this with [MENTION=2949410]KnightRider2008[/MENTION]'s files but didn't have the same issue - the ZIP was made with files in. I mentioned it a few posts ago..https://xdaforums.com/showpost.php?p=77882180&postcount=137

So I'm downloading some files from a XZ2 system dump uploaded by [MENTION=5832554]iArvee[/MENTION] here: https://xdaforums.com/crossdevice-dev/sony/xz2-dump-t3767918

This isn't the Premium but that shouldn't make a difference. Once I've got the files, I'll try them out in TOAD and see what happens.

This issue is probably down to a problem with 7za.exe, which is the program that's used to create the ZIP. If it doesn't work for some reason, that would give the behaviour that's being reported. So I'll update the code to stop it from deleting the deodexed files, just in case that's what is going on.

----Edited----

So, TOAD wasn't able to process one of the files in that system dump but was able to do the rest and make a ZIP file with all the files in it.

It must be 7za that's causing the issue. I'll update the code so that the files aren't deleted and also that the log file is updated with the result of the 7za commands. That way, if I'm right and that is the problem, we'll have a better idea of what's going on.

--------

I could...but there's no need for a PM. This is the portion of code that creates the ZIP:

title TOAD (Creating ZIP)
call Tool_Files\Display_Title 50 6
echo. I've finished processing your files and
echo. I'm now making a ZIP file for you.
echo.
echo. Please wait...
mkdir Tool_Files\META-INF\com\google\android\ >nul
copy Tool_Files\updater-scriptBLANK Tool_Files\META-INF\com\google\android\updater-script >nul
if %TOAD_IncludeFramework%==yes (
echo.ui_print(" Deleting Odexed 'system/framework/' Folder.."^);>>Tool_Files\META-INF\com\google\android\updater-script
echo.delete_recursive("/system/framework"^);>>Tool_Files\META-INF\com\google\android\updater-script
echo.ui_print(" Adding Deodexed 'system/framework/' Folder.."^);>>Tool_Files\META-INF\com\google\android\updater-script
echo.package_extract_dir("system/framework","/system/framework"^);>>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/framework"^);>>Tool_Files\META-INF\com\google\android\updater-script
)
if exist Your_Files\app\*.* (
echo.ui_print(" Deleting Odexed 'system/app/' Folder.."^);>>Tool_Files\META-INF\com\google\android\updater-script
echo.delete_recursive("/system/app"^);>>Tool_Files\META-INF\com\google\android\updater-script
echo.ui_print(" Adding Deodexed 'system/app/' Folder.."^);>>Tool_Files\META-INF\com\google\android\updater-script
echo.package_extract_dir("system/app","/system/app"^);>>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/app"^);>>Tool_Files\META-INF\com\google\android\updater-script
)
if exist Your_Files\priv-app\*.* (
echo.ui_print(" Deleting Odexed 'system/priv-app/' Folder.."^);>>Tool_Files\META-INF\com\google\android\updater-script
echo.delete_recursive("/system/priv-app"^);>>Tool_Files\META-INF\com\google\android\updater-script
echo.ui_print(" Adding Deodexed 'system/priv-app/' Folder.."^);>>Tool_Files\META-INF\com\google\android\updater-script
echo.package_extract_dir("system/priv-app","/system/priv-app"^);>>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/priv-app"^);>>Tool_Files\META-INF\com\google\android\updater-script
)
if exist Your_Files\vendor\framework\*.* (
echo.ui_print(" Deleting Odexed 'system/vendor/framework/' Folder.."^);>>Tool_Files\META-INF\com\google\android\updater-script
echo.delete_recursive("/system/vendor/framework"^);>>Tool_Files\META-INF\com\google\android\updater-script
echo.ui_print(" Adding Deodexed 'system/vendor/framework/' Folder.."^);>>Tool_Files\META-INF\com\google\android\updater-script
echo.package_extract_dir("system/vendor/framework","/system/vendor/framework"^);>>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/vendor/framework"^);>>Tool_Files\META-INF\com\google\android\updater-script
)
if exist Your_Files\vendor\app\*.* (
echo.ui_print(" Deleting Odexed 'system/vendor/app/' Folder.."^);>>Tool_Files\META-INF\com\google\android\updater-script
echo.delete_recursive("/system/vendor/app"^);>>Tool_Files\META-INF\com\google\android\updater-script
echo.ui_print(" Adding Deodexed 'system/vendor/app/' Folder.."^);>>Tool_Files\META-INF\com\google\android\updater-script
echo.package_extract_dir("system/vendor/app","/system/vendor/app"^);>>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/vendor/app"^);>>Tool_Files\META-INF\com\google\android\updater-script
)
if exist Your_Files\vendor\priv-app\*.* (
echo.ui_print(" Deleting Odexed 'system/vendor/priv-app/' Folder.."^);>>Tool_Files\META-INF\com\google\android\updater-script
echo.delete_recursive("/system/vendor/priv-app"^);>>Tool_Files\META-INF\com\google\android\updater-script
echo.ui_print(" Adding Deodexed 'system/vendor/priv-app/' Folder.."^);>>Tool_Files\META-INF\com\google\android\updater-script
echo.package_extract_dir("system/vendor/priv-app","/system/vendor/priv-app"^);>>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/vendor/priv-app"^);>>Tool_Files\META-INF\com\google\android\updater-script
)
echo.run_program("/sbin/busybox", "umount", "/system"^);>>Tool_Files\META-INF\com\google\android\updater-script
echo.ui_print(" "^);>>Tool_Files\META-INF\com\google\android\updater-script
echo.ui_print(" Flashing Complete"^);>>Tool_Files\META-INF\com\google\android\updater-script
echo.ui_print(" "^);>>Tool_Files\META-INF\com\google\android\updater-script
Tool_Files\dos2unix Tool_Files\META-INF\com\google\android\updater-script>nul 2>&1
copy Tool_Files\deodex.zip TOAD_deodex_%TOAD_day%%TOAD_month%%TOAD_year%-%TOAD_hour%%TOAD_min%.zip >nul
cd Tool_Files
7za a -y -mx0 "%TOAD_StartDirectory%\TOAD_deodex_%TOAD_day%%TOAD_month%%TOAD_year%-%TOAD_hour%%TOAD_min%.zip" META-INF >nul 2>&1
rmdir META-INF /s/q >nul
cd..
rename Your_Files system >nul
if exist system\app\*.* (%TOAD_StartDirectory%\Tool_Files\7za a -y -mx0 "%TOAD_StartDirectory%\TOAD_deodex_%TOAD_day%%TOAD_month%%TOAD_year%-%TOAD_hour%%TOAD_min%.zip" system\app >nul 2>&1)
if %TOAD_IncludeFramework%==yes (%TOAD_StartDirectory%\Tool_Files\7za a -y -mx0 "%TOAD_StartDirectory%\TOAD_deodex_%TOAD_day%%TOAD_month%%TOAD_year%-%TOAD_hour%%TOAD_min%.zip" system\framework >nul 2>&1)
if exist system\priv-app\*.* (%TOAD_StartDirectory%\Tool_Files\7za a -y -mx0 "%TOAD_StartDirectory%\TOAD_deodex_%TOAD_day%%TOAD_month%%TOAD_year%-%TOAD_hour%%TOAD_min%.zip" system\priv-app >nul 2>&1)
if exist system\vendor\*.* (%TOAD_StartDirectory%\Tool_Files\7za a -y -mx0 "%TOAD_StartDirectory%\TOAD_deodex_%TOAD_day%%TOAD_month%%TOAD_year%-%TOAD_hour%%TOAD_min%.zip" system\vendor >nul 2>&1)
del system\build.prop /q >nul
if exist system\app\*.* (rmdir system\app /s/q >nul)
if exist system\framework\*.* (rmdir system\framework /s/q >nul)
if exist system\priv-app\*.* (rmdir system\priv-app /s/q >nul)
if exist system\vendor\*.* (rmdir system\vendor /s/q >nul)
attrib -r Your_Files\build.prop >nul
del system\build.prop /q >nul
rename system Your_Files >nul

The first section creates the build.prop file, based on what folders are in Your_Files, then Tool_Files\7za.exe is used to add all the relevant files to the ZIP.

My suspicion is that something is causing an issue with 7za.exe, although I can't think what.

Pie support is going to take a while, that's why I took it off the announcement.

Batch APKTool http://bursoft-portable.blogspot.com/p/blog-page_23.html can deodex Pie by using the phone via ADB to do the actual processing. This seems a bit messy to me (although if it works, it works) so my plan was to leave that until I had the existing methods working (and the ZIP file working) before tackling it.