FORUMS

Analysis & Opinion

Top Forum Discussions

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

715 posts
Thanks Meter: 243
 
By martino2k6, Senior Member on 9th October 2010, 12:28 AM
Post Reply Subscribe to Thread Email Thread
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:	4188
Size:	32.6 KB
ID:	487922   Click image for larger version

Name:	device3.jpg
Views:	3841
Size:	25.4 KB
ID:	487923  
Attached Files
File Type: txt strings.txt - [Click for QR Code] (4.8 KB, 981 views)
File Type: txt arrays.txt - [Click for QR Code] (576 Bytes, 670 views)
File Type: apk VMHeapTool_v2.4.1.apk - [Click for QR Code] (51.0 KB, 3364 views)
Last edited by martino2k6; 28th February 2012 at 09: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, 01:33 AM |#2  
Senior Member
Thanks Meter: 135
 
More
great app, wont have to manually erstart on droid inc. wont restart when pushing the button.
9th October 2010, 01:38 AM |#3  
OP Senior Member
Flag London
Thanks Meter: 243
 
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, 03:00 AM |#4  
Senior Member
Flag Central Kentucky
Thanks Meter: 1,160
 
More
Awesome, now everyone can break apps by lowering the heap below the expected 24 megs!
9th October 2010, 03:04 PM |#5  
OP Senior Member
Flag London
Thanks Meter: 243
 
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, 03:48 PM |#6  
Senior Member
Flag Bracknell
Thanks Meter: 67
 
More
The "apply" and "quit" box cover the "new heap size" box on hTC Hero
9th October 2010, 11:56 PM |#7  
OP Senior Member
Flag London
Thanks Meter: 243
 
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, 12:13 AM |#8  
OP Senior Member
Flag London
Thanks Meter: 243
 
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, 09:47 PM |#9  
Junior Member
Thanks Meter: 0
 
More
Very nicely done!!!
Thanx!!!
10th November 2010, 09:02 PM |#10  
Junior Member
Flag Sheffield, UK
Thanks Meter: 0
 
More
The app is force closing on startup on a rooted orange San Francisco (ZTE-Blade) with stock rom.

Andy.
10th November 2010, 09:04 PM |#11  
OP Senior Member
Flag London
Thanks Meter: 243
 
More
Quote:
Originally Posted by g1dtf

The app is force closing on startup on a rooted orange San Francisco (ZTE-Blade) with stock rom.

Andy.

Do any other rooted apps crash, such as Root Explorer, ROM Manager, etc?

Read More
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