[Android Themes] :
I:Set page: 'themecheck'
I:operation_start: 'FileExists'
I:Set page: 'theme_settings'
I:operation_end - status=0
I:Set page: 'theme_color'
I:Set page: 'set_color'
I:Set page: 'theme_color'
I:operation_start: 'Command'
I:Running command: '
mkdir "/cache/twrp";
if [ -f "/sdcard/TWRP/theme/ui.zip" ];
then unzip -o "/sdcard/TWRP/theme/ui.zip" -d "/cache/twrp";
chmod 777 "/cache/twrp/zip";
cp -r /cache/twrp/images_green/* "/cache/twrp/images";
busybox mv "/cache/twrp/ui.xml" "/cache/twrp/ui_temp.xml";
busybox sed "s/#03A9F4FF/#259B24FF/g" "/cache/twrp/ui_temp.xml" > "/cache/twrp/ui_temp2.xml";
rm -f "/cache/twrp/ui_temp.xml";
busybox sed "s/#1E333DFF/#223122FF/g" "/cache/twrp/ui_temp2.xml" > "/cache/twrp/ui.xml";
rm -f "/cache/twrp/ui_temp2.xml";
cd "/cache/twrp";
./zip -0 -r "/sdcard/TWRP/theme/ui.zip" *;
cd /;
rm -r "/cache/twrp"
else
unzip -o "/int_sd/TWRP/theme/ui.zip" -d "/cache/twrp";
chmod 777 "/cache/twrp/zip";
cp -r /cache/twrp/images_green/* "/cache/twrp/images";
busybox mv "/cache/twrp/ui.xml" "/cache/twrp/ui_temp.xml";
busybox sed "s/#03A9F4FF/#259B24FF/g" "/cache/twrp/ui_temp.xml" > "/cache/twrp/ui_temp2.xml";
rm -f "/cache/twrp/ui_temp.xml";
busybox sed "s/#1E333DFF/#223122FF/g" "/cache/twrp/ui_temp2.xml" > "/cache/twrp/ui.xml";
rm -f "/cache/twrp/ui_temp2.xml";
cd "/cache/twrp";
./zip -0 -r "/int_sd/TWRP/theme/ui.zip" *;
cd /;
rm -r "/cache/twrp"
fi
'
Archive: /sdcard/TWRP/theme/ui.zip
unzip: zip flags 1 and 8 are not supported
chmod: /cache/twrp/zip: No such file or directory
cp: can't stat '/cache/twrp/images_green/*': No such file or directory
mv: can't rename '/cache/twrp/ui.xml': No such file or directory
sed: /cache/twrp/ui_temp.xml: No such file or directory
sh: ./zip: not found
I:
mkdir "/cache/twrp";
if [ -f "/sdcard/TWRP/theme/ui.zip" ];
then unzip -o "/sdcard/TWRP/theme/ui.zip" -d "/cache/twrp";
chmod 777 "/cache/twrp/zip";
cp -r /cache/twrp/images_green/* "/cache/twrp/images";
busybox mv "/cache/twrp/ui.xml" "/cache/twrp/ui_temp.xml";
busybox sed "s/#03A9F4FF/#259B24FF/g" "/cache/twrp/ui_temp.xml" > "/cache/twrp/ui_temp2.xml";
rm -f "/cache/twrp/ui_temp.xml";
busybox sed "s/#1E333DFF/#223122FF/g" "/cache/twrp/ui_temp2.xml" > "/cache/twrp/ui.xml";
rm -f "/cache/twrp/ui_temp2.xml";
cd "/cache/twrp";
./zip -0 -r "/sdcard/TWRP/theme/ui.zip" *;
cd /;
rm -r "/cache/twrp"
else
unzip -o "/int_sd/TWRP/theme/ui.zip" -d "/cache/twrp";
chmod 777 "/cache/twrp/zip";
cp -r /cache/twrp/images_green/* "/cache/twrp/images";
busybox mv "/cache/twrp/ui.xml" "/cache/twrp/ui_temp.xml";
busybox sed "s/#03A9F4FF/#259B24FF/g" "/cache/twrp/ui_temp.xml" > "/cache/twrp/ui_temp2.xml";
rm -f "/cache/twrp/ui_temp.xml";
busybox sed "s/#1E333DFF/#223122FF/g" "/cache/twrp/ui_temp2.xml" > "/cache/twrp/ui.xml";
rm -f "/cache/twrp/ui_temp2.xml";
cd "/cache/twrp";
./zip -0 -r "/int_sd/TWRP/theme/ui.zip" *;
cd /;
rm -r "/cache/twrp"
fi
process ended with RC=0
I:operation_end - status=0
I:Set page: 'rebootcheck'

[MENTION=2719389]z31s1g[/MENTION], after making my changes in the boardconfig.mk file and the recovery.fstab file this making a TWRP build I was able to resolve the issue and now TWRP points to my internal sdcard which is a good thing. The recovery.fstab must state the internal sd path as "/sdcard" and not "int_sd, internal_sd, etc, etc". I named it as "/sdcard" and apply it to the boardconfig.mk. For the external sd which was originally named "/sdcard" is now named "external_sd" and again I applied that to the boardconfig.mk file as well. Should be self explanatory. In addition, I removed that deprecated flag which would force TWRP to point to the external storage.

Now, there is still an issue with the script being used while attempting to change the themes color. So I am posting that portion of the log here and let you, [MENTION=4544860]osm0sis[/MENTION], and anyone else cipher through it to see what the culprit is.

---------- Post added at 01:34 AM ---------- Previous post was at 01:17 AM ----------

I will point out that it's the unzip command. If a user decides to modify and rezip the theme package then depending on how or what program they used to zip it up with could come in conflict when attempting to unzip. The unzip binary is lacking needed functions to handle these types of situations. One solution would be to determine the proper zipping method being applied initially to the package and insuring the users do not screw the pooch on it should they decide to get creative with the theme, or maybe compile a static unzip binary that is fully functional and not stripped down like busybox happens to be. I really haven't ran anymore experiments other than this so feel free to hack away at this :)

---------- Post added at 01:41 AM ---------- Previous post was at 01:34 AM ----------

Also, in retrospect to the script searching for "int_sd"; [MENTION=2719389]z31s1g[/MENTION], feel free to remove it. It is not needed. Up to you. :)