Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,772,052 Members 40,719 Now Online
XDA Developers Android and Mobile Development Forum

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

Tip us?
 
martino2k6
Old
(Last edited by martino2k6; 28th February 2012 at 09:01 PM.) Reason: Version 2.4.1 update
#1  
Senior Member - OP
Thanks Meter 232
Posts: 711
Join Date: Jul 2009
Location: London
Default [APP] VM Heap Tool 2.4.1 [28/02/12]

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:	3800
Size:	32.6 KB
ID:	487922   Click image for larger version

Name:	device3.jpg
Views:	3463
Size:	25.4 KB
ID:	487923  
Attached Files
File Type: txt strings.txt - [Click for QR Code] (4.8 KB, 830 views)
File Type: txt arrays.txt - [Click for QR Code] (576 Bytes, 590 views)
File Type: apk VMHeapTool_v2.4.1.apk - [Click for QR Code] (51.0 KB, 2180 views)
Samsung Galaxy i7500 (CM7) -> HTC Desire (CM7) -> Samsung Galaxy S (CM9) -> Samsung Galaxy S3 (CM10.1) -> Sony Xperia ZL (stock/rooted)
Asus Transformer TF101 (CM9) -> Galaxy Tab 7.7 WiFi (stock/rooted) -> Galaxy Tab 7.7 3G (PA) + Toshiba AT201 (stock)
Font Changer - change your default system font (now works on MIUI too)
Clipboard Contents - extend your clipboard's functionality
VM Heap Tool - change the size of the heap for your device
The Following 10 Users Say Thank You to martino2k6 For This Useful Post: [ Click to Expand ]
 
ACD168
Old
#2  
Senior Member
Thanks Meter 135
Posts: 1,530
Join Date: Aug 2010
great app, wont have to manually erstart on droid inc. wont restart when pushing the button.
 
martino2k6
Old
#3  
Senior Member - OP
Thanks Meter 232
Posts: 711
Join Date: Jul 2009
Location: London
Quote:
Originally Posted by ACD168 View Post
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...
Samsung Galaxy i7500 (CM7) -> HTC Desire (CM7) -> Samsung Galaxy S (CM9) -> Samsung Galaxy S3 (CM10.1) -> Sony Xperia ZL (stock/rooted)
Asus Transformer TF101 (CM9) -> Galaxy Tab 7.7 WiFi (stock/rooted) -> Galaxy Tab 7.7 3G (PA) + Toshiba AT201 (stock)
Font Changer - change your default system font (now works on MIUI too)
Clipboard Contents - extend your clipboard's functionality
VM Heap Tool - change the size of the heap for your device
 
khaytsus
Old
#4  
Senior Member
Thanks Meter 1068
Posts: 6,877
Join Date: Apr 2008
Location: Central Kentucky
Awesome, now everyone can break apps by lowering the heap below the expected 24 megs!
AT&T LG G2 - 4.4.4, AOKP
Nexus 7 Wifi 2012 - 4.4.4, AOKP (m-kernel)
Samsung Note i717 - 4.2.2, Unofficial AOKP
Try my Alternative XDA CSS Themes (including 2010!)

--
http://theblackmoor.net
http://unlimitedphoto.com
 
martino2k6
Old
#5  
Senior Member - OP
Thanks Meter 232
Posts: 711
Join Date: Jul 2009
Location: London
Quote:
Originally Posted by khaytsus View Post
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
Samsung Galaxy i7500 (CM7) -> HTC Desire (CM7) -> Samsung Galaxy S (CM9) -> Samsung Galaxy S3 (CM10.1) -> Sony Xperia ZL (stock/rooted)
Asus Transformer TF101 (CM9) -> Galaxy Tab 7.7 WiFi (stock/rooted) -> Galaxy Tab 7.7 3G (PA) + Toshiba AT201 (stock)
Font Changer - change your default system font (now works on MIUI too)
Clipboard Contents - extend your clipboard's functionality
VM Heap Tool - change the size of the heap for your device
The Following User Says Thank You to martino2k6 For This Useful Post: [ Click to Expand ]
 
skymera
Old
#6  
Senior Member
Thanks Meter 59
Posts: 453
Join Date: Mar 2010
Location: Bracknell
The "apply" and "quit" box cover the "new heap size" box on hTC Hero
 
martino2k6
Old
#7  
Senior Member - OP
Thanks Meter 232
Posts: 711
Join Date: Jul 2009
Location: London
Quote:
Originally Posted by skymera View Post
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.
Samsung Galaxy i7500 (CM7) -> HTC Desire (CM7) -> Samsung Galaxy S (CM9) -> Samsung Galaxy S3 (CM10.1) -> Sony Xperia ZL (stock/rooted)
Asus Transformer TF101 (CM9) -> Galaxy Tab 7.7 WiFi (stock/rooted) -> Galaxy Tab 7.7 3G (PA) + Toshiba AT201 (stock)
Font Changer - change your default system font (now works on MIUI too)
Clipboard Contents - extend your clipboard's functionality
VM Heap Tool - change the size of the heap for your device
 
martino2k6
Old
#8  
Senior Member - OP
Thanks Meter 232
Posts: 711
Join Date: Jul 2009
Location: London
Quote:
Originally Posted by skymera View Post
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...?
Samsung Galaxy i7500 (CM7) -> HTC Desire (CM7) -> Samsung Galaxy S (CM9) -> Samsung Galaxy S3 (CM10.1) -> Sony Xperia ZL (stock/rooted)
Asus Transformer TF101 (CM9) -> Galaxy Tab 7.7 WiFi (stock/rooted) -> Galaxy Tab 7.7 3G (PA) + Toshiba AT201 (stock)
Font Changer - change your default system font (now works on MIUI too)
Clipboard Contents - extend your clipboard's functionality
VM Heap Tool - change the size of the heap for your device
 
Rower85
Old
#9  
Junior Member
Thanks Meter 0
Posts: 1
Join Date: Oct 2010
Very nicely done!!!
Thanx!!!
 
g1dtf
Old
#10  
Junior Member
Thanks Meter 0
Posts: 9
Join Date: Nov 2010
Location: Sheffield, UK
The app is force closing on startup on a rooted orange San Francisco (ZTE-Blade) with stock rom.

Andy.

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

Advanced Search
Display Modes