Results 1 to 5 of 5

Thread: Easy Theming & Moving apps

777
  1. [translate]    #1
    Senior Member
    Join Date
    May 2010
    Location
    Poland
    Posts
    452

    Default Easy Theming & Moving apps

    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'.
    Attached Files Attached Files

  2. [translate]    #2
    Senior Member
    Join Date
    Jul 2010
    Location
    Philippines
    Posts
    453

    Default

    Nice concept. Also, with this method, do you think we could theme framework-res.apk by searching instead of /data partition, search sdcard for a theme folder(this means we would need to mount SD first) then do the zip-r thingie and just replicate what your script does to launcher-pra but this time with framework-res.apk.

    Do you think zip -r would do the trick for framework-res?

  3. [translate]    #3
    Senior Member
    Join Date
    May 2010
    Location
    Poland
    Posts
    452

    Default

    Quote Originally Posted by Ungaze View Post
    Nice concept. Also, with this method, do you think we could theme framework-res.apk by searching instead of /data partition, search sdcard for a theme folder(this means we would need to mount SD first) then do the zip-r thingie and just replicate what your script does to launcher-pra but this time with framework-res.apk.

    Do you think zip -r would do the trick for framework-res?
    I tested this with framework-res, but this "app" runs from begin and in standard way (while start android) modding didn't work. But You can do recovery pack for this, like I done in Jeans MIUI - Modded Theme for NextGeneration MOD 4.1.

    Miui developers moved some icons from framework-res.apk to another apk, so thanks this step, there is easy to theme android, even while working (didn't need restart).

  4. [translate]    #4
    Senior Member
    Join Date
    Jul 2010
    Location
    Philippines
    Posts
    453

    Default

    OK, so I looked into your "Jeans MIUI - Modded Theme for NextGeneration MOD 4.1.", And I have to say, it's some piece of art. Anyways, as you have mentioned, this method would not work for framework-res if I used the init.d scripting method, but if I used the "zip -r" trick form a flashable zip(which runs a script on recovery prompt or something like that) then it's doable then right?

    basically all I really needed to ask was if "zip -r" was enough for replacing pngs and maybe xmls(as long as the whole package contents stays the same) rather than decompile/recompile the framework-res(since I hate how long it takes to recompile these stuff on my pc).

    Well thanks a lot, really opened up a new window for me to start theming again. Thanks again!

  5. [translate]    #5
    Senior Member
    Join Date
    May 2010
    Location
    Poland
    Posts
    452

    Default

    Quote Originally Posted by Ungaze View Post
    OK, so I looked into your "Jeans MIUI - Modded Theme for NextGeneration MOD 4.1.", And I have to say, it's some piece of art. Anyways, as you have mentioned, this method would not work for framework-res if I used the init.d scripting method, but if I used the "zip -r" trick form a flashable zip(which runs a script on recovery prompt or something like that) then it's doable then right?
    Right.


    Quote Originally Posted by Ungaze View Post
    basically all I really needed to ask was if "zip -r" was enough for replacing pngs and maybe xmls(as long as the whole package contents stays the same) rather than decompile/recompile the framework-res(since I hate how long it takes to recompile these stuff on my pc).
    With PNGs it works. With XMLs I didn't try. But what I know, You have to recompile apk (for example framework-res.apk) to have binary XMLs (not plain text).

    Quote Originally Posted by Ungaze View Post
    Well thanks a lot, really opened up a new window for me to start theming again. Thanks again!
    You welcome.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •