If You place this script in (for example) /system/etc/init.d/98ngtheme and unzipped attachment: zip in \system\xbin\, You can very easy mod/theme apps.
This script query if in folder /data/app/ exist: com.fede.launcher.apk, com.fede.launcher-1.apk or com.fede.launcher-2.apk (for example: if You downloaded new version of app from Market). If Yes, the app will be modded, and moved to /system/app.
The "com.fede.launcher" name is name of LauncherPro.
In folder /system/media/themes/com.fede.launcher, You can place for example PNG images.
# Start script
THEME="zip -r";
LINK="cd /system/media/themes";
if [ -e /data/app/com.fede.launcher*.apk ]; then
if [ -e /data/app/com.fede.launcher.apk ]; then
echo "I found com.fede.launcher.apk";
/system/bin/remount rw;
$LINK/com.fede.launcher;
$THEME /data/app/com.fede.launcher.apk res;
/system/xbin/busybox mv -f /data/app/com.fede.launcher.apk /system/app/com.fede.launcher.apk;
/system/bin/remount ro;
fi;
if [ -e /data/app/com.fede.launcher\-1.apk ]; then
echo "I found com.fede.launcher-1.apk";
/system/bin/remount rw;
$LINK/com.fede.launcher;
$THEME /data/app/com.fede.launcher\-1.apk res;
/system/xbin/busybox mv -f /data/app/com.fede.launcher\-1.apk /system/app/com.fede.launcher.apk;
/system/bin/remount ro;
fi;
if [ -e /data/app/com.fede.launcher\-2.apk ]; then
echo "I found com.fede.launcher-2.apk";
/system/bin/remount rw;
$LINK/com.fede.launcher;
$THEME /data/app/com.fede.launcher\-2.apk res;
/system/xbin/busybox mv -f /data/app/com.fede.launcher\-2.apk /system/app/com.fede.launcher.apk;
/system/bin/remount ro;
fi;
fi;
# End of script
Idea, script - JankoMuz
You can easy modify other /system/apps.
With this, You don't need to add in recovery pack full framework-res.apk (but only PNGs) while theme changin'.


LinkBack URL
About LinkBacks

Reply With Quote

Bookmarks