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
Post Reply

[APP] VM Heap Tool 2.4.1 [28/02/12]

OP martino2k6

9th October 2010, 01:28 AM   |  #1  
OP Senior Member
Flag London
Thanks Meter: 235
 
712 posts
Join Date:Joined: Jul 2009
More
Description
I wrote a small application to allow easily changing the VM heap size (no more adb pull, edit, adb push). People on CM ROMs may be familiar with a similar option, but here is a little tool for those who are not running CM. As it modifies a variable which can affect the stability of the system, be careful with how you use it More about the VM heap size is written in the application itself. And of course, if I made any mistakes or if something is incorrect please correct me.


Requirements
  • root
  • system write
  • busybox (1.17.x recommended)


Appearing In
  • Japanese Jellyfish (ZTE Blade/Orange San Francisco)
If you wish to bundle this application in your firmware feel free to, but let me know if you do and please link back to this page


Download (Android Market):



Translating VM Heap Tool
English files which can be translated have been attached (txt files), and the following fields which I will mention do not need to be translated. Once you translate something you may just attach the files in your post or add them in code tags. Of course please mention the language that you translated it to so I can appropriately add it to the application and update.

Do not translate: heapSizeUnit, aboutHeap, defaultHeap, currentHeap, version, thread, heapSizeValues. These just hold key values which should not be translated. Also please don't translate "RPLACE" inside the texts, as this is replaced inside the application on run-time.

Values are stored as
Code:
<string name="aboutHeapTitle">What is the heap?</string>
where the string's name is clearly defined, "aboutHeapTitle", and the value which should be translated is inside the <> and </> tags. Values which are used in similar situations will have a common prefix, for example:
"progress..." - used on a progress dialog to display the message
"toast..." - the little grey messages that you get at the bottom of your screen and with which you can't interact
"dialog..." - used as the title on a dialog box
and so on...

Thank you to all those who are willing to help, your contributions will be noted
Attached Thumbnails
Click image for larger version

Name:	device1.jpg
Views:	3886
Size:	32.6 KB
ID:	487922   Click image for larger version

Name:	device3.jpg
Views:	3553
Size:	25.4 KB
ID:	487923  
Attached Files
File Type: txt strings.txt - [Click for QR Code] (4.8 KB, 883 views)
File Type: txt arrays.txt - [Click for QR Code] (576 Bytes, 626 views)
File Type: apk VMHeapTool_v2.4.1.apk - [Click for QR Code] (51.0 KB, 2414 views)
Last edited by martino2k6; 28th February 2012 at 10:01 PM. Reason: Version 2.4.1 update
The Following 10 Users Say Thank You to martino2k6 For This Useful Post: [ View ]
9th October 2010, 02:33 AM   |  #2  
Senior Member
Thanks Meter: 135
 
1,530 posts
Join Date:Joined: Aug 2010
More
great app, wont have to manually erstart on droid inc. wont restart when pushing the button.
9th October 2010, 02:38 AM   |  #3  
OP Senior Member
Flag London
Thanks Meter: 235
 
712 posts
Join Date:Joined: Jul 2009
More
Quote:
Originally Posted by ACD168

great app, wont have to manually erstart on droid inc. wont restart when pushing the button.

Thanks, so the Incredible has the same problem as the Desire then... If you install ROM Manager it will restart. I'm afraid that has something to do with superuser and how the phone is rooted (correct me if I'm wrong), so some devices will restart while others will not. Sadly Google doesn't allow applications to restart the device, so it has to be done in a roundabout way which may not always work...
9th October 2010, 04:00 AM   |  #4  
Senior Member
Flag Central Kentucky
Thanks Meter: 1,117
 
7,011 posts
Join Date:Joined: Apr 2008
More
Awesome, now everyone can break apps by lowering the heap below the expected 24 megs!
9th October 2010, 04:04 PM   |  #5  
OP Senior Member
Flag London
Thanks Meter: 235
 
712 posts
Join Date:Joined: Jul 2009
More
Quote:
Originally Posted by khaytsus

Awesome, now everyone can break apps by lowering the heap below the expected 24 megs!

Yes, but I hope that most people will be smarter and try to use something like 32
The Following User Says Thank You to martino2k6 For This Useful Post: [ View ]
9th October 2010, 04:48 PM   |  #6  
Senior Member
Flag Bracknell
Thanks Meter: 61
 
469 posts
Join Date:Joined: Mar 2010
More
The "apply" and "quit" box cover the "new heap size" box on hTC Hero
10th October 2010, 12:56 AM   |  #7  
OP Senior Member
Flag London
Thanks Meter: 235
 
712 posts
Join Date:Joined: Jul 2009
More
Quote:
Originally Posted by skymera

The "apply" and "quit" box cover the "new heap size" box on hTC Hero

OK, thanks for letting me know. I'll see what I can do about it, but for now you can use your trackpad (or w/e it's called) to move the focus on the button and press it.
16th October 2010, 01:13 AM   |  #8  
OP Senior Member
Flag London
Thanks Meter: 235
 
712 posts
Join Date:Joined: Jul 2009
More
Quote:
Originally Posted by skymera

The "apply" and "quit" box cover the "new heap size" box on hTC Hero

Should be fixed now with version 1.1, as well as support for Android 1.6 and above. Apologies that it took so long.

Icon help, anyone...?
8th November 2010, 10:47 PM   |  #9  
Junior Member
Thanks Meter: 0
 
1 posts
Join Date:Joined: Oct 2010
Very nicely done!!!
Thanx!!!
10th November 2010, 10:02 PM   |  #10  
Junior Member
Flag Sheffield, UK
Thanks Meter: 0
 
10 posts
Join Date:Joined: Nov 2010
More
The app is force closing on startup on a rooted orange San Francisco (ZTE-Blade) with stock rom.

Andy.

Post Reply Subscribe to Thread

Tags
heap size, heap space, memory, performance
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes