+ Reply to Thread
Page 1 of 9 123 ... LastLast
Results 1 to 10 of 86

Thread: edit this script!!

  1. #1
    constellanation's Avatar
    constellanation is offline *sigh*... I think I'll go spend some time with the family constellanation is on a distinguished road
    Join Date
    Oct 2008
    Posts
    6,852

    Default edit this script!!


    ok so I'm getting ready for the big jf updates, and I figured I would productively pass my time by doing some new stuff.

    the first thing I decided was that I was (thanks juan for the idea) going to move my caches to the ext2 partition of my sdcard (that I created for moving apps to) instead of the fat32 portion.

    I also was going to do this through a script. as I began modifying it I chose to search for any new cache moves that may interest me. I did find this one for maps, that I haven't tested

    cd /data/data/com.google.android.apps.maps
    mkdir /sdcard/cache/files/maps
    busybox cp -a files /sdcard/cache/files/maps
    rm -R files
    ln -s /sdcard/cache/files/maps files
    the question though is how do I transfer this to my script (which will follow) and remove that extra /files inside of the cache, I would like to just have the maps one for ease of my clearing the caches script. so would someone with more knowledge then me correct any mistakes I have made.

    chmod 0777 /data/local/bin/transfer.sh

    mkdir /system/sd/cache

    rm -R /data/data/com.android.vending/cache
    mkdir /system/sd/cache/marketCache
    ln -s /system/sd/cache/marketCache /data/data/com.android.vending/cache

    rm -R /data/data/com.android.browser/cache/webviewCache
    mkdir /system/sd/cache/webviewCache
    ln -s /system/sd/cache/webviewCache /data/data/com.android.browser/cache/webviewCache


    rm -R /data/data/com.google.android.street/cache
    mkdir /system/sd/cache/streetCache
    ln -s /system/sd/cache/streetCache /data/data/com.google.android.street/cache

    rm -R /data/data/com.google.android.apps.maps
    mkdir /system/sd/cache/maps
    ln -s /system/sd/cache/maps /data/data/com.google.android.apps.maps
    thanks for your help!!!
    Last edited by constellanation; 02-05-2009 at 10:38 PM.

  2. #2
    Join Date
    Oct 2008
    Posts
    1,493

    Default Re: edit this script!!

    Just change the last line to ln -s /sdcard/cache/files/maps files

  3. #3
    constellanation's Avatar
    constellanation is offline *sigh*... I think I'll go spend some time with the family constellanation is on a distinguished road
    Join Date
    Oct 2008
    Posts
    6,852

    Default Re: edit this script!!

    so?
    rm -R /data/data/com.google.android.apps.maps
    mkdir /system/sd/cache/maps
    ln -s /system/sd/cache/files/maps files

    could you translate that last line for me as well?

  4. #4
    constellanation's Avatar
    constellanation is offline *sigh*... I think I'll go spend some time with the family constellanation is on a distinguished road
    Join Date
    Oct 2008
    Posts
    6,852

    Default Re: edit this script!!

    so I'll just think aloud here,

    ok so ln -s is a symbolic link
    and the second part is the old location and the first part is the new location?

  5. #5
    Join Date
    Oct 2008
    Posts
    1,493

    Default Re: edit this script!!

    I meant the last line of the first script.

    And actually looking at it again you'll need to change the cp command. I'm not sure if you even need to copy the existing files into the sdcard cache folder. I would just skip the copy command, rm the files, then change the symlink to what I said in my previous post.

    Although I'm not 100% sure why you care enough about a files folder inside the maps folder to begin with.

  6. #6
    constellanation's Avatar
    constellanation is offline *sigh*... I think I'll go spend some time with the family constellanation is on a distinguished road
    Join Date
    Oct 2008
    Posts
    6,852

    Default Re: edit this script!!

    ok I think I see where you're going with this.

    that first script isn't a script it was just the commands I just found for moving the map cache (which i don't remember seeing before).

    the second script is the one I am trying to do personalize, and make sure works correctly. so in effect you can completely ignore the first quote box.

  7. #7
    Join Date
    Nov 2008
    Location
    Cuba, NY 14727
    Posts
    767

    Default Re: edit this script!!

    Consty, how are any of those commands moving the files to ext2 partition....? it just seems like the same commands for moving them to the sd card as before.... which means they would end up on the fat32 partition...right?

    Edit: I noticed that it says system/sd. yea that would work i have been meaning to do this as well....
    Last edited by birdman81484; 02-05-2009 at 08:42 PM.

  8. #8
    constellanation's Avatar
    constellanation is offline *sigh*... I think I'll go spend some time with the family constellanation is on a distinguished road
    Join Date
    Oct 2008
    Posts
    6,852

    Default Re: edit this script!!

    well the old commands were /sdcard/cache/etc...
    so system/sd/cache/etc... is the file created in the moving apps to sdcard if I'm not mistaken?

    or atleast system/sd/etc... was

  9. #9
    Join Date
    Nov 2008
    Location
    Cuba, NY 14727
    Posts
    767

    Default Re: edit this script!!

    Quote Originally Posted by constellanation View Post
    well the old commands were /sdcard/cache/etc...
    so system/sd/cache/etc... is the file created in the moving apps to sdcard if I'm not mistaken?

    or atleast system/sd/etc... was
    your right. so did it work for ya?

  10. #10
    constellanation's Avatar
    constellanation is offline *sigh*... I think I'll go spend some time with the family constellanation is on a distinguished road
    Join Date
    Oct 2008
    Posts
    6,852

    Default Re: edit this script!!


    I haven't tried it because I was hoping to get some clarification on that map part (that i put together) at the end of the script (based on the cache moves) before I gave it a shot.

    i feel like it may or may not be missing something. since some of its cache/files/ are different and so forth.

+ Reply to Thread
Page 1 of 9 123 ... LastLast

Similar Threads

  1. Replies: 11
    Last Post: 02-05-2009, 09:56 PM
  2. Google? Did you edit my review on an app?
    By K.Krstnsn in forum Applications
    Replies: 15
    Last Post: 11-07-2008, 05:02 PM
  3. Edit existing code on the device?
    By flixxx in forum Developers General Chat
    Replies: 1
    Last Post: 11-03-2008, 01:02 PM

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