Android Community
Page 7 of 9 FirstFirst ... 5 6 7 8 9 LastLast
Results 61 to 70 of 86

Thread: edit this script!!

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

    Default Re: edit this script!!


    well a little update about the original script in question in the thread, I just ran the commands:
    #mkdir /data/local/bin
    #cp /sdcard/transfer.sh /data/local/bin
    #chmod 0755 /data/local/bin/transfer.sh
    #transfer.sh
    with the file transfer.sh on my sd. the file contains:

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

    mkdir /system/sd/cache
    cd /system/sd/cache
    mkdir /system/sd/cache/files

    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/files/maps
    ln -s /system/sd/cache/files/maps /data/data/com.google.android.apps.maps/files

    mkdir /system/sd/cache/files/myspace
    busybox cp -a /data/data/com.myspace.android/files /system/sd/cache/files/myspace
    rm -R /data/data/com.myspace.android/files
    ln -s /system/sd/cache/files/myspace/files /data/data/com.myspace.android/files
    everything seemed to work except for the maps. the folder is there. but after messing around in both satellite and nonsatellite modes, zooming around. no files! any advice?
    Last edited by constellanation; 02-06-2009 at 05:20 PM.

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

    Default Re: edit this script!!

    Quote Originally Posted by constellanation View Post
    well a little update about the original script in question in the thread, I just ran the commands:
    with the file transfer.sh on my sd. the file contains:

    everything seemed to work except for the maps. the folder is there. but after messing around in both satellite and nonsatellite modes, zooming around. no files! any advice?

    you gotta do the maps like i have listed in the post ext2 post a ways back....i did all mine the way i have them posted there and they work....i have never seen anyone do it the way you are doing it consty...are you sure they worked? maybe there is two ways to do all the other ones but only the one way to do the maps....

    anyways here it is:

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

  3. #63
    Join Date
    Jan 2009
    Location
    Behind You
    Posts
    128

    Default Re: edit this script!!

    His way works. He just deleted his "com.google.android.apps.maps" folder instead of the "com.google.android.maps/files" folder. It couldn't write the cache because the it couldn't create the cache folder "files" because "com.google.android.apps.maps" was not found.

    I don't really see why in the script everyone cd/ to the folder. Its not neccessary if you provide the full path.

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

    Default Re: edit this script!!

    it worked except for the maps... and i know there has to be a way for it to be included in the script. i guess actually i could just put it in like you said, i gotta look at it again though

  5. #65
    constellanation's Avatar
    constellanation is offline *sigh*... I think I'll go spend some time with the family
    Join Date
    Oct 2008
    Posts
    6,849

    Default

    Quote Originally Posted by facelessuser View Post
    His way works. He just deleted his "com.google.android.apps.maps" folder instead of the "com.google.android.maps/files" folder. It couldn't write the cache because the it couldn't create the cache folder "files" because "com.google.android.apps.maps" was not found.

    I don't really see why in the script everyone cd/ to the folder. Its not neccessary if you provide the full path.
    so all i got to do is add /files to the first com.android/apps.maps... ? for it to work next time?

  6. #66
    Join Date
    Jan 2009
    Location
    Behind You
    Posts
    128

    Default Re: edit this script!!

    Quote Originally Posted by constellanation View Post
    it worked except for the maps... and i know there has to be a way for it to be included in the script. i guess actually i could just put it in like you said, i gotta look at it again though
    In the future just add /files where you rm -R /data/data/com.google.android.apps.maps

    you are going to have to mkdir /data/data/com.google.android.apps.maps unless the program recreated it with the normal files cache file

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

    Default Re: edit this script!!

    consty hold up like 3 min and im gonna post a script that will move every cache for you....i need to see if this works!!!!!

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

    Default Re: edit this script!!

    Script for moving all caches to ext2 sdcard
    (This is the way the sd card comes out of the box.)
    ROOT ACCESS IS REQUIRED!

    1. Download the file below.
    2. Open the file.
    3. Click: File> Save as
    4. Change "Save as type" to "All Files"
    5. Change File Name moveallcaches.sh (simply remove the ".txt" part)
    6. Save this file on your sd card. (Unplug the USB cord from your phone now)
    7. On your phone open the "Terminal Emulator" Application
    8. Type: su
    9. Type: cd /sdcard
    10. Type: sh moveallcaches.sh

    There you go!
    Attached Files Attached Files
    Last edited by birdman81484; 02-06-2009 at 11:17 PM.

  9. #69
    constellanation's Avatar
    constellanation is offline *sigh*... I think I'll go spend some time with the family
    Join Date
    Oct 2008
    Posts
    6,849

    Default Re: edit this script!!

    well birdo, I'd try it but all four of the caches that I know how to move that I use are successfully moved to the partitioned (ext2) part of my sdcard including maps using the following script

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

    mkdir /system/sd/cache
    cd /system/sd/cache
    mkdir /system/sd/cache/files

    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/files
    mkdir /system/sd/cache/files/maps
    ln -s /system/sd/cache/files/maps /data/data/com.google.android.apps.maps/files

    mkdir /system/sd/cache/files/myspace
    busybox cp -a /data/data/com.myspace.android/files /system/sd/cache/files/myspace
    rm -R /data/data/com.myspace.android/files
    ln -s /system/sd/cache/files/myspace/files /data/data/com.myspace.android
    thanks everyone for the help!

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

    Default Re: edit this script!!


    Quote Originally Posted by constellanation View Post
    well birdo, I'd try it but all four of the caches that I know how to move that I use are successfully moved to the partitioned (ext2) part of my sdcard including maps using the following script



    thanks everyone for the help!
    I just need a guinea pig...

    our ways of writing this are totally different too....

    anyways what does the chmod 0777 do? and why does the script need to be in /data/local/bin/transfer.sh?
    also what program did you use to write you script?
    how is it is executed when you get into the terminal emulator?

Page 7 of 9 FirstFirst ... 5 6 7 8 9 LastLast

Similar Threads

  1. Replies: 11
    Last Post: 02-05-2009, 08:56 PM
  2. Google? Did you edit my review on an app?
    By K.Krstnsn in forum All About Andorid Software
    Replies: 15
    Last Post: 11-07-2008, 04:02 PM
  3. Edit existing code on the device?
    By flixxx in forum Developers Guild
    Replies: 1
    Last Post: 11-03-2008, 12: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
  •