Sunday, July 10, 2016

[Extra space on /data]Move dalvik-cache to /cache

Move dalvik-cache to /cache

import /disclaimer.md
Code:

I am not responsible for any damage done to your device/SD card/OTG cable/washing machine etc.
You are responsible for what you do.
If something brakes, it's on you!

This has only been tested on a CM13-based ROM. I have no idea how it will function on other ROMs because of the size of the dalvik-cache directory.

I have found that, on CM13-based ROMs, the dalvik-cache directory is small enough to fit in the /cache partition, giving us several MBs on /data :D

Current state: Beta
Reason: Not fully tested (on all ROMs)
Comment: Stable enough for daily use

Installation:
Download the attached zip and flash it in recovery.
Or extract the script from the zip, put it in /system/etc/init.d/ , set the permissions to 755 (rwxr-xr-x) and ownership to 0, 2000 (root, shell).

Uninstallation:
Delete /system/etc/init.d/10dc-linker and /cache/dalvik-cache

To-Do:
  • Add a size checker
  • Make suggestions

Bugs:
Found one? Let me know! :)

Changelog:
v1.0:
First release

Attached Files
File Type: zip dc-linker_v1.0.zip - [Click for QR Code] (175.9 KB)


from xda-developers http://ift.tt/29yA9MV
via IFTTT

No comments:

Post a Comment