Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
View Poll Results: Does the Script Work for You?
Yes 5 83.33%
No 1 16.67%
Multiple Choice Poll. Voters: 6. You may not vote on this poll

Post Reply

[SCRIPT] Dalvik To Cache | No Loss in performance | Extra Space In Internal Memory

OP Sahaab

22nd June 2013, 07:38 AM   |  #1  
Sahaab's Avatar
OP Recognized Contributor / Themer
Flag London ON
Thanks Meter: 3,337
 
3,608 posts
Join Date:Joined: May 2013
Donate to Me
More
Please tell me the error you get, i will help you in solving it

This is made for stock kernel, althought it will work most probably on every kernel and rom.
---------------------------------------------------------------------------------------------------------------------
-------------------------This is a Easy Way to Increase Internal Memory-------------------------
---------------------------------------------------------------------------------------------------------------------
It Moves System Apps Dalvik Cache to the Cache Partition in Your Internal Memory, with no loss in performance

Use This On Your Own Responsibility, I Will Not Be Held Responsible For Anything

I have Tested it on my Arc S and got 60mb more free, I have a total of 67 apps installed
ScreenShot:




Credits:
1.Alberto96
2.tobbbie
(both provided codes which i read and understood)


Compatibility:
It Should Be Compatible With Most Phones With a Cache Partition

Requirements:
Instructions:
  • Download The Files
  • Run 02SystemDalvikToCache Using Script Manager (Only need to run once)Run as SU
  • Put 02DalviktoCacheBoot in Your Init.D Folder and set right permissions



To Uninstall:
  • Remove The 02DalviktoCacheBoot script from init.d folder
  • Reboot to recovery And Wipe Dalvik Cache (Or you can use an app that wipes dalvik Cache)

FYI:
  • 02SystemDalviktoCache moves System Applications Dalvik Cache to the Cache partition
  • 02DalviktoCacheBoot copies Dalvik Cache from sdcard to Cache partition to prevent Bootloop
  • Ignore All Errors Given By Script Manager, They Do Not Affect The Work of The Script
  • The reason i dont have a script to move dalvik-cache of apps in sdcard is because they are usually higher than 100mb, if i need some more space, or if these scripts are used i will make a script to move sdcard apps dalvik-cache to dev folder

Download:


If You Get A Boot loop, Please Go Into Recovery, Wipe Dalvik Cache and Reboot

Warning: Please watch out that your cache partition has around 100mb limit (102mb on arc s)

Important: Please make sure to read the instructions and also the FYI section is very helpful

[SCRIPT] Dalvik To Cache

Last edited by Sahaab; 2nd July 2013 at 03:38 PM.
The Following 3 Users Say Thank You to Sahaab For This Useful Post: [ View ]
22nd June 2013, 08:41 AM   |  #2  
xange's Avatar
Senior Member
Flag Cheras, Kuala Lumpur
Thanks Meter: 132
 
238 posts
Join Date:Joined: Sep 2012
More
Great mod. But plz put there is a disadvantage of using this mod. Most phone's Cache partition only have 100mb+- size volume (my neo has 101.5mb using neo v ftf). move whole dalvik cache to cache partition is possible but it will limit the number of apps you install since cache partition is small (my phone have 185mb of dalvik cache with 212 apps including system apps installed), It will come out some error if you install more apps if the cache partition is full.

*I'm just giving an advice to put on op for using this mod. Not giving bad comment. thanks

regards.
The Following User Says Thank You to xange For This Useful Post: [ View ]
22nd June 2013, 08:52 AM   |  #3  
Sahaab's Avatar
OP Recognized Contributor / Themer
Flag London ON
Thanks Meter: 3,337
 
3,608 posts
Join Date:Joined: May 2013
Donate to Me
More
Quote:
Originally Posted by xange

Great mod. But plz put there is a disadvantage of using this mod. Most phone's Cache partition only have 100mb+- size volume (my neo has 101.5mb using neo v ftf). move whole dalvik cache to cache partition is possible but it will limit the number of apps you install since cache partition is small (my phone have 185mb of dalvik cache with 212 apps including system apps installed), It will come out some error if you install more apps if the cache partition is full.

*I'm just giving an advice to put on op for using this mod. Not giving bad comment. thanks

regards.

Thanks i will edit it
p.s i put something like it in the FYI section
Also this script only moves the dalvik cache by system apps

Edit: This will only increase the amount of apps u can install
Most system apps dalvik cache only take around 50-70mb space
I am going to make a script to move the dalvik cache of apps in the sd card (usually taking around 150mb) to the dev partition, which usually has 160mb free, but it will be really limiting, so only gonna make it per request
Last edited by Sahaab; 22nd June 2013 at 09:03 AM.
22nd June 2013, 02:53 PM   |  #4  
Sahaab's Avatar
OP Recognized Contributor / Themer
Flag London ON
Thanks Meter: 3,337
 
3,608 posts
Join Date:Joined: May 2013
Donate to Me
More
Removed DataDalviktoCache
22nd June 2013, 04:01 PM   |  #5  
Sahaab's Avatar
OP Recognized Contributor / Themer
Flag London ON
Thanks Meter: 3,337
 
3,608 posts
Join Date:Joined: May 2013
Donate to Me
More
Quote:
Originally Posted by xange

Great mod. But plz put there is a disadvantage of using this mod. Most phone's Cache partition only have 100mb+- size volume (my neo has 101.5mb using neo v ftf). move whole dalvik cache to cache partition is possible but it will limit the number of apps you install since cache partition is small (my phone have 185mb of dalvik cache with 212 apps including system apps installed), It will come out some error if you install more apps if the cache partition is full.

*I'm just giving an advice to put on op for using this mod. Not giving bad comment. thanks

regards.

I really dont think ppl will install soo many system apps as to fill the 100mb with the dalvik-cache's
22nd June 2013, 06:37 PM   |  #6  
xange's Avatar
Senior Member
Flag Cheras, Kuala Lumpur
Thanks Meter: 132
 
238 posts
Join Date:Joined: Sep 2012
More
Quote:
Originally Posted by Sahaab

I really dont think ppl will install soo many system apps as to fill the 100mb with the dalvik-cache's

The size of dalvik is depend on apps' dex file. Some may be large, some maybe small. And dalvik doesn't solely for system but both system and user's app on data and external. For me, base system apps there are 130? If install mods like cybershot, album, walkman, Google now..... You should know what is their size right? and if with games? Utilities like Google keep? Drive? It takes even more... From my experience, stock neo ftf give 135mb space at v_mtd partition. There is a kernel store dalvik at it. Which limit my apps number stuck at 190 both system and user. With data free space 250mb, that's how I learnt my lesson.

And, I like the idea moving cache to sd, I got a 32 Gb sd but dunno how to spend the space

Edit: sorry, didn't notice only moving system apps dalvik. In that case I think it is more than enough..... XD

Sent from my MT15i using xda app-developers app
Last edited by xange; 22nd June 2013 at 06:42 PM.
22nd June 2013, 06:47 PM   |  #7  
Sahaab's Avatar
OP Recognized Contributor / Themer
Flag London ON
Thanks Meter: 3,337
 
3,608 posts
Join Date:Joined: May 2013
Donate to Me
More
Quote:
Originally Posted by xange

The size of dalvik is depend on apps' dex file. Some may be large, some maybe small. And dalvik doesn't solely for system but both system and user's app on data and external. For me, base system apps there are 130? If install mods like cybershot, album, walkman, Google now..... You should know what is their size right? and if with games? Utilities like Google keep? Drive? It takes even more... From my experience, stock neo ftf give 135mb space at v_mtd partition. There is a kernel store dalvik at it. Which limit my apps number stuck at 190 both system and user. With data free space 250mb, that's how I learnt my lesson.

And, I like the idea moving cache to sd, I got a 32 Gb sd but dunno how to spend the space

Sent from my MT15i using xda app-developers app

That the awesum part of this script
It only touches the dalvik cache of apps in the system partition
I have apps like walkman, album,cybershot, and google now installed
I have 144 system apps and 67 installed apps
And sdcard is slow for storing dalvik-cache
Cache partition is faster


Edit: haha np XD
Last edited by Sahaab; 22nd June 2013 at 06:51 PM.
24th June 2013, 11:24 AM   |  #8  
Ali Iraqi's Avatar
Senior Member
Flag Stockholm
Thanks Meter: 52
 
133 posts
Join Date:Joined: May 2013
More
You rock Sahaab i got 60 mb thank you
The Following User Says Thank You to Ali Iraqi For This Useful Post: [ View ]
24th June 2013, 11:36 AM   |  #9  
Junior Member
Thanks Meter: 0
 
1 posts
Join Date:Joined: Jun 2013
Thumbs up work like a charm
Thank you it's working
24th June 2013, 11:45 AM   |  #10  
Sahaab's Avatar
OP Recognized Contributor / Themer
Flag London ON
Thanks Meter: 3,337
 
3,608 posts
Join Date:Joined: May 2013
Donate to Me
More
Quote:
Originally Posted by Ali Iraqi

You rock Sahaab i got 60 mb thank you


Quote:
Originally Posted by Aliostar

Thank you it's working

Thanx for testing guyz

Sent from my LT18i

Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes