Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/system/bin/sh
- #
- # Move dalvik-cache to /cache
- #
- #
- # This program is free software; you can redistribute it and/or modify it
- # under the terms of the GNU Library General Public License as published
- # by the Free Software Foundation; either version 2, or (at your option)
- # any later version.
- #
- # This program is distributed in the hope that it will be useful,
- # but WITHOUT ANY WARRANTY; without even the implied warranty of
- # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- # GNU General Public License for more details.
- #
- # License GPLv2+: GNU GPL version 2 or later <http://gnu.org/licenses/gpl.html>
- #
- if [ ! -d /cache/dalvik-cache ]
- then
- busybox rm -rf /cache/dalvik-cache /data/dalvik-cache
- mkdir /cache/dalvik-cache /data/dalvik-cache
- fi
- busybox chown 1000:1000 /cache/dalvik-cache
- busybox chmod 0771 /cache/dalvik-cache
- # bind mount dalvik-cache so we can still boot without the sdcard
- busybox mount -o bind /cache/dalvik-cache /data/dalvik-cache
- busybox chown 1000:1000 /data/dalvik-cache
- busybox chmod 0771 /data/dalvik-cache
- # remove debugger memory dumps
- busybox rm -rf /data/tombstones/*
Advertisement
Add Comment
Please, Sign In to add comment