Yesterday I've installed RAM Manager Pro on my phone. There's a VM heap size option. I googled about VM heap size and 32m is best. So, I changed VM heap size to 32m and I saw 32m VM heap size code on bottom of build.prop then I reboot my phone. But it freeze on Aurora logo.
So, what should I do?
Boot in recovery, go to mounts and storage, mount system, the push the original build.prop from aurora's zip file to the phone:
cd <folder where/original build prop is/>
adb push build.prop /system/
Alternatively, install the zip file again without wiping anything. If you want you can pick an update file, put the build.prop file in there and flash in cwm.
There are plenty of options my friend ;D
If you have unlocked pink screen you can access build.prop from there and correct it. Otherwise reflash 3.1 with cache and dalvik wipes
Cheers
Sent from my U8800
U can also use this to move and copy files from recovery.
Yes, my heap size too low to boot. Default heap size on Aurora ICS is 128m.
Sent from my U8800
Related
i am developing an application in android..but i got an issue of getting an error..that is out of memory exception while i am converting my file contents to byte array..i think this the problem of reduced heap size..can u plz tell me how can i increase the vm heap size..i am using eclipse...
That's interesting, I would like to know the answer to this question as well. What type of phone are you using and how big is the file?
HTC desire it has already a 516 mb RAM
file is about 10mb long
broody said:
That's interesting, I would like to know the answer to this question as well. What type of phone are you using and how big is the file?
Click to expand...
Click to collapse
phone is htc desire...file 10 mb
for the moto droid it's in the build.prop. It may be there for other your phone too.
but i canot edit that file.....
i need to install my application on defferent phones....i think i need a change in the application configuration.....is there any way????? plz...reply
VM heap is a system variable so can not be changed on a per-application basis.
Because it is a system variable it can only be changed by a root process.
It is established and maintained in build.prop, it is read at boot into a variable space then can be changed, again by a uid=0 process only, in runtime (e.g. CM6 has a runtime option). The runtime option also edits build.prop.
i need more memory for my application...would you plz tell me a way to increase memory...
how can i increase the memory size for a normal third party application ????
I was under the impression the heap was something like 16mb, is that not the case? What kind of data are you loading?
files like jpeg,mp3,avi etc..
suhas.m said:
i need more memory for my application...would you plz tell me a way to increase memory...
Click to expand...
Click to collapse
Using so much memory (and even more, if you find a way to increase the memory available to your app, which I doubt) is not being very friendly to the other apps concurrently running.
The much better approach would be to reduce your memory requirements, for example by processing the files in small chunks.
Cheers
tadzio
Copy /system/build.prop to the sdcard root and modify 'dalvik.vm.heapsize' to the desired value. Default is 16m. You can safetly to 32m. Use the following commands to move the modified build.prop to the /system directory:
adb shell
su
mount -o remount,rw -t yaffs2 /dev/block/mtdblock4 /system
mv /system/build.prop /system/build.prop.bak
cd sdcard
busybox cp -R build.prop /system
chmod 644 /system/build.prop
mount -o remount,ro -t yaffs2 /dev/block/mtdblock4 /system
sync
reboot
Alternatively, flash the CM6 ROM. Cyanogen has integrated Cyanogen Mods which allows you to modify the davik heap within system settings.
Regards,
Nathan
Edit: I have an Evo 4g. The default VM heap and will differ depending on phone model. The commands above were taken from the discussion at this website: http://www.droidforums.net/forum/droid-hacks/18574-editing-build-prop.html
I've used this procedure successfully for modifying my build.props files.
the default heap size is 16m.but the phone (HTC desire) already have 516m memory.
then would u plz tell me what is the need of that amount memory......?
Actually in my application,i am trying to upload (multi part upload) 5mb,10 mb file.For that i am converting files into bytes.Then writing the byte array into a byte array out putstream.But at the time of writing, it will cause to an out of memory exception.would you plz tell what is the cause...?
Hey Guys whenever i download any apps from market i get the error Install Unsuccessful .... Insufficient storage ...
What to do :-/
Rom Hell Fire v7.2
UOT Kitchen Flashed 1
Overclocked 729 Mhz
Wildfire
delete apps or move some to SD card? If your memory is full it's logical you can't add apps
Sounds to me that a2sd is not properly set up.
I been having some issues running out of storage internaly. and after some fiddeling around with a2sd it was ok. And how to do it is posted in this rom's explanation on how to install it.
ruymanca said:
The ROM takes about 10 minutes to start for the first time since the beginning makes for a facility, I recommend formatting the memory trageta do a clean install or possibly delete the folders: ANDROID, LOST DIR ANDROID as these folders SECURE conflicts created by data from the old roms
I recommend making partitions ie swap64mb ext512 and the rest as fat32 mind too expensive or necessarily recommend formatting the card will memory or possibly delete the folders in the same android, haer all the wipes, the Rom takes a few minutes to make first start since being installed all the extras on the first boot takes 3 to 5 minutes, once this echo this start and made previous settings obligation is to do a reboot for full functionality telefeno
Installation of the rom:
1. reboot in recovery mode
2. we wipes all
3. selected to install update sip
4. restart the tlf
5. enter the terminal console and register the following:
his press enter
# a2sd cachesd or enter
the phone will reboot and have about 150 megs of free internal memory
Click to expand...
Click to collapse
nope dint workk :-/
Type "su" first (Without Quotes), then try the a2sd command.
Can u mention it Step by Step?
Hi all, i have same issue.
Yesterday i finally rootat my Wildfire and put Cyanogenmod 7.0.3.stable on it.
Its very nice!
BUT cant allways install apps from market. I have 87mb free on inside memory and 1,7gb in sdcard... So what is problem?
What i need to do? I can full wipe all my data from telefone if somone tell me how i can do this..
Can somone help?
Use dalvik wipe from xrecovery to clean ur phone data..
Sent from my U20i using XDA Premium App
try istalling darktremor a2sd script (need to be istalled from recovery if not already integrated into your rom) and download a2sdgui from market, it's a gui for the script mentioned earlier. into recovery you have to partition your sd card too (advanced) 1024mb ext and i suggest 64mb swap, then open the app I told you (a2sdgui) and move everything to ext, dalvik cache too.
I agree with the poster above.
if you have issues with a2sd, I recommend installing A2SDGUI from market. (I assume you already have darktremors a2sd script installed). I had darktremors script working fine, but after flashing a zip file, it was not working. So I installed the A2SDGUI from darktremor and fixed the script. Now it is working. Just search the market and install it. It is great. Now I have around 168 MB free after all the installed apps.
Hope this helps,
SOLUTION TO INSUFFICIENT STORAGE:
1. Use FROYO+ default apps2sd. It gives the option to force moving of 95% of the apps to sdcard. Even root is not necessary. You can move 95% of apps only after using the adb command "adb shell pm setInstallLocation 2". This command is not even needed in cm7. And this method uses the fat/fat32 partition of sdcard not the ext partition. Specifically apps will be installed to .android_secure folder in the root of sdcard.
2. This method includes creating ext partition on sdcard and using an app called "link2sd". This is a root only app. No scripts are needed. That app has option to even link individual apps to ext partition. Also links dalvik cache.
3. Creating ext + swap partition and using dtapps2sd script. Root is required. Also custom recovery is required for flashing the script. This might be the toughest one but it is pretty awesome. Moves apps , data, dalvik cache to ext partition. Everything can be done with commands from the terminal emulator. Or you can use the "a2sdgui" app for graphical user interface.
Sent from my HTC Wildfire using XDA App
The GUI for the script is much more user-friendly than emulator terminal. And you can undo everything you did if it's not as you tought faster than from terminal.
I am not aware of how Hell Fire works. But yes for Cyanogenmod 7 I know there is a issue downloading a large application from the market. It won't download. Problem is the space.
Fix for this is few steps:
1. In Terminal type the following commands.
2. su
3. mkdir /sdcard/download-cache
4. cd /cache
5. mv download download.bak
6. ln -s /sdcard/download-cache download
Done... Now Go to market and download anything you won't get such errors..
If It Helps Don't forget Press Thank Button.
Thanks a lot!
I just get my new sd-card( 16 Gb) and install darktremor a2sd script + a2sdgui.
Works just like it says!
No more thinking what program van install and what not....
Well I just installed the MOdd Again ... and I was done
Though i bought Samsung Galaxy ace as its my second time the Touch Panel doesn't work ... first in Tattoo and den in Wildfire
So ... Thanx a lot guys for Helping
DestinyAwaits said:
I am not aware of how Hell Fire works. But yes for Cyanogenmod 7 I know there is a issue downloading a large application from the market. It won't download. Problem is the space.
Fix for this is few steps:
1. In Terminal type the following commands.
2. su
3. mkdir /sdcard/download-cache
4. cd /cache
5. mv download download.bak
6. ln -s /sdcard/download-cache download
Done... Now Go to market and download anything you won't get such errors..
If It Helps Don't forget Press Thank Button.
Click to expand...
Click to collapse
Working perfectly fine for me Thanks!
If you like the new CM10 nightlies, but you hate the phone mode, you may find this zip useful.
It's a flashable CWM zip which change the default density from 160 to 133, which force CM10 to load in tablet mode.
The usual use steps are:
1. flash latest nightly
2. (optional) flash latest gapps
3. flash lcd_133.zip
4. reboot and enjoy
It's tested on P3113, but I guess it should work on any model with default density = 160
Credits goes to jaiiscool
128 with Large font looks sharper and cleaner. Overall better. Try it
Why flash when you could just edit the build.prop?
People are going to want another zip to flash that reverts it back to 160 so you might want to make.one.
Will try with 128 later
Manual editing of build.prop requires more steps than just flashing the zip.
You need computer to edit the zip before flashing, or two restarts of the table if you want to change it after the flash.
revert is done with reflashing of the CM10 zip
Better you make a Default one too. It will be more desirable than flashing a whole ROM only to change Density.
Thanks XaMaB! I went ahead and modified your code to revert changes where desirable. Hope you don't mind.
This will revert LCD density to original.
NOTE: It will not work unless your density is already set to 133.
XaMaB said:
Will try with 128 later
Manual editing of build.prop requires more steps than just flashing the zip.
You need computer to edit the zip before flashing, or two restarts of the table if you want to change it after the flash.
revert is done with reflashing of the CM10 zip
Click to expand...
Click to collapse
How does it require more steps? Most file browsers include a text editor. Browse to /system and mount it as read/write, open the file, change 160 to the desired number, save and reboot. Flashing it in CWM, you need to download the zip, put it on your phone if you didn't download it from your phone, reboot to recovery, flash the zip, reboot, hope the density you used looks ok, otherwise, extract, edit, repackage, reflash. Granted, if you are going to flash every nightly (stupid IMO), then the zip is easier, but for most users, just editing the build.prop would be easier.
Hint: search for "ROM Toolbox Lite" in the Play Store
I hope soon CM10 will include the option to choose between phone and tablet mode. The required code changes are available in the nexus 7 forums for some weeks. But untill then, this zip is the most convenient method for me.
Everyone is free to choose between rom toolbox, manual editing after or before flashing, and this...
This one is 240 to 192
Wrong device I believe.
Sent from my house.
Guyz plz help me I accidentally delete build.prob file and after that my phone not bootup samsung galaxy grand logo shows and the screen goes blank nothing work. I try flashing stock firmware again but problem remain same. HELP PLZ.....!!!!
Try From Recovery Mode
sumit227 said:
Guyz plz help me I accidentally delete build.prob file and after that my phone not bootup samsung galaxy grand logo shows and the screen goes blank nothing work. I try flashing stock firmware again but problem remain same. HELP PLZ.....!!!!
Click to expand...
Click to collapse
It seems like you have root access & afcource unlock bootloader
Use custom recovery mode ex. CWM to find that file exist or not using cwm file manager link below...
http://forum.xda-developers.com/showthread.php?t=1646108
Let me know if file exist or not.... This app is free and you have full access to file system
Good Luck
I installed aroma file manager and navigate to system folder but the folder is empty.
sumit227 said:
Guyz plz help me I accidentally delete build.prob file and after that my phone not bootup samsung galaxy grand logo shows and the screen goes blank nothing work. I try flashing stock firmware again but problem remain same. HELP PLZ.....!!!!
Click to expand...
Click to collapse
sumit227 said:
I installed aroma file manager and navigate to system folder but the folder is empty.
Click to expand...
Click to collapse
The /system folder is empty because you didn't mount it in recovery.
1. Unzip and copy this build.prop to your phone's internal memory - View attachment build.zip
(This is from I9082XXUBMK3, it will work with other 4.2.2 firmware too but would display the info of K3)
2. Boot into recovery. Go to Mounts and storage>Mount /system
3. Install aroma file manager.zip
4. Go to /sdcard and copy the build.prop file
5. Go back to /system and scroll down to check if you can see all the folders now (also check if build.prop is there)
6. If build.prop is not there then paste the one you just copied
7. Select the build.prop file, go to options and select Change Permission
8. Set the following permissions:
User - Read Write
Group - Read
Others - Read9. Exit aroma and clear cache/dalvik then reboot.
iceyhotguy said:
The /system folder is empty because you didn't mount it in recovery.
1. Unzip and copy this build.prop to your phone's internal memory - View attachment 2543835
(This is from I9082XXUBMK3, it will work with other 4.2.2 firmware too but would display the info of K3)
2. Boot into recovery. Go to Mounts and storage>Mount /system
3. Install aroma file manager.zip
4. Go to /sdcard and copy the build.prop file
5. Go back to /system and scroll down to check if you can see all the folders now (also check if build.prop is there)
6. If build.prop is not there then paste the one you just copied
7. Select the build.prop file, go to options and select Change Permission
8. Set the following permissions:
User - Read Write
Group - Read
Others - Read9. Exit aroma and clear cache/dalvik then reboot.
Click to expand...
Click to collapse
Thanks man by pushing build.prop to system folder atleast my phone starts but after 1-2 min my phone freezes nothing works.
sumit227 said:
Thanks man by pushing build.prop to system folder atleast my phone starts but after 1-2 min my phone freezes nothing works.
Click to expand...
Click to collapse
I can't check what other system modifications you did that is making your phone misbehave.
Backup your data and try to do a clean flash. Wipe your data, cache, dalvik, then go to Mounts and storage and Format /system before flashing the firmware/ROM.
iceyhotguy said:
I can't check what other system modifications you did that is making your phone misbehave.
Backup your data and try to do a clean flash. Wipe your data, cache, dalvik, then go to Mounts and storage and Format /system before flashing the firmware/ROM.
Click to expand...
Click to collapse
After flashing stock firmware again my phone working again.
Thanks bro for helping me... :good:
Here I've made a script witch will enable init.d and swap
What is init.d
-----------------
Init.d scripts execute commands as if they were entered into a terminal. These commands modify the value of parameters that control your device's behaviour. Scripts are much more flexible than cpu apps and give end users more power to tweak and optimize their device as they see fit. Scripts are very small, fast, clean, and bug free if written properly.
What is Swap
----------------
Swap is, in short, virtual RAM so when you run out of real ram android writes to the
swap file saved on cache witch mean less closed applications
Swap will be made on cache and is 600mb in size
Download the zip file move to sdcard backup ROM with custom recovery then flash
rickwyatt said:
Here I've made a script witch will enable init.d and swap
What is init.d
-----------------
Init.d scripts execute commands as if they were entered into a terminal. These commands modify the value of parameters that control your device's behaviour. Scripts are much more flexible than cpu apps and give end users more power to tweak and optimize their device as they see fit. Scripts are very small, fast, clean, and bug free if written properly.
What is Swap
----------------
Swap is, in short, virtual RAM so when you run out of real ram android writes to the
swap file saved on cache witch mean less closed applications
Swap will be made on cache and is 600mb in size
Download the zip file move to sdcard backup ROM with custom recovery then flash
Click to expand...
Click to collapse
Nice.
Do you think we will get some benefits from this MOD?