• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

More RAM for LG GT540!!

androidboss7

Well-Known Member
Jul 26, 2011
145
15
ROOTED PHONES ONLY!! (READ CAREFULLY)
IF YOU DO NOT KNOW WHAT THIS IS ABOUT, BEST NOT TO TRY!!

Get more RAM and faster responses by disabling verify-bytecode!
Here's a little tip that would give you more RAM on your device.
Also check out the links below.

AS WITH ANY MODDING PROCEDURE FOR YOUR PHONE, THIS GUIDE ALSO COMES WITH NO WARRANTY. AUTHOR HOLDS NO RESPONSIBILITY FOR ANY DIRECT AND INDIRECT CONSEQUENCES OF FOLLOWING THIS GUIDE. MAKE SURE YOU HAVE MADE A NAND BACKUP BEFORE PROCEEDING.

This is not useful in odexed ROMs & devices with 1GB or more RAM. However, this will give a performance boost in deodexed ROMs as much as odexing system & data apps. This is an alternative for odexing. It's not that you can't apply this tweak on an odexed ROM but rather, it's useless to do so.

Open Terminal Emulator on phone or adb shell from PC and type the following.
su
setprop dalvik.vm.verify-bytecode false
setprop dalvik.vm.dexopt-flags v=n,o=v
rm /data/dalvik-cache/*
rm /cache/dalvik-cache/*
reboot

ROM devs could add this to the /data/local.prop or build.prop.
dalvik.vm.verify-bytecode = false
dalvik.vm.dexopt-flags=v=n,o=v


Advantages:
More free RAM.
Faster launch for system & user apps during the second launch.
Gives as much as of a performance boost as ODEX without odexing. Themer friendly.
Smoother app switching.

Disadvantages:
Might break some apps.

Thanks to Danzano for testing this tweak in advance.

Reversing the change/undo tweak.
Type the following in shell.
su
setprop dalvik.vm.verify-bytecode true
rm /data/dalvik-cache/*
rm /cache/dalvik-cache/*
reboot
__________________
Best of regards,
Nibras.

> more free RAM & better performance by disabling bytecode-verify
> 1-click odexing guide with scripts
> AOSP EMail with Exchange(Corporate)/ActiveSync
> list of apps for power users
> alternate fastboot/adb drivers(32 bit and 64bit)

I believe in sharing, simplicity & love.
(Get more RAM and faster responses by disabling verify-bytecode! - xda-developers)

Look at this site on how to increase RAM!!
(http://forum.xda-developers.com/showthread.php?t=1124034)

Hope this Helped!!





THIS METHOD WILL ALSO INCREASE RAM!!
PLEASE USE ONLY ONE OF THESE METHODS!!


AS WITH ANY MODDING PROCEDURE/SCRIPTS FOR YOUR PHONE, THIS SCIPT ALSO COMES WITH NO WARRANTY. AUTHOR HOLDS NO RESPONSIBILITY FOR ANY DIRECT AND INDIRECT CONSEQUENCES OF RUNNING THIS SCRIPT. MAKE SURE YOU HAVE MADE A NAND BACKUP BEFORE PROCEEDING. MAKE SURE YOU HAVE AT LEAST 15% FREE ON /SYSTEM, THIS IS IMPORTANT BECAUSE IF YOU RUN OUT OF SPACE THINGS WILL GO BADLY WRONG..

Requires busybox.

If your system partition is almost full, have a look at http://forum.xda-developers.com/showthread.php?t=734236.

This script will *attempt* to odex all apks found at /system/app. Theming would be impossible once the ROM is odexed. Themes applied at the time of odexing will be preserved. If you plan on applying a theme, apply it before odexing. If you want to theme after odexing, you must deodex the ROM before theming. If you change themes often, odexing is not for you.

Quick Instructions for Windows:
Connect the phone with USB cable and enable USB debugging. (No wireless or Android Terminal shell)
Put the phone in airplane mode.
Download and extract the attached file and run odex.bat
Download link
(http://www.4shared.com/file/270vm-Mx/odex-WinXP.html?)

Instructions for advanced users:
This attachment contains a folder called odex. Push that folder to data and set the permission of odex.sh to 4755. Mount system as r/w(could be done via adb remount system). Next, execute odex.sh. All of this should be done via USB using ADB shell. Do not use wireless adb or Android Terminal.

Advantages:
More free space in system partition.
Faster booting.
More free RAM(I was able to gain 20-30MB.)
Faster access to system apps.

Disadvantages:
Cannot be themed after odexing.
APK tweaks cannot be applied.
Might break some of the non-AOSP system apps such as Root Explorer if they are installed as system app.

Acknowledgments:
Only the odex.bat was created by me. Similar projects were done in past but most of the downloads are broken. So, I collected together different stuff from different places to put together this package.
adb.exe is from the RATC batch ROOT.
adb dlls are from Android SDK
odex.sh is from Paul O Brian from MoDaCo (pastebin.com/EZLWUdea)
zip, zipalign and dexopt-wrapper are from XDA (http://forum.xda-developers.com/showthread.php?t=734236)

Next aim: Odex for apps in data/app



Update:
I got 1017 on quadrant and 61.8fps on swiftdroid 2.0 M6 overclocked to 844MHz(offline mode with wifi on. No apps except system apps). It must be noted that sometimes odexed ROM performs slightly slower in benchmarks but the difference is very small. However, this does not mean their performance is lower. Odex means apps could load fast thereby making app switching, app loading really fast. And, it also reduces system RAM usage which means more apps could stay in memory making multi-tasking easier. Odexing is something like swap or compcache. Sacrifice something to gain something else. This is for some people who think odexing is useless. The drop in speed is so small that it cannot be noticed without a benchmark but the performance of the phone increases noticeably due to more space in dalvik and RAM.
 
This method will improve the speed of
your phone and it will expand your RAM.
Bad news is it might break some apps.
Solution= just install it again!!

First method was tested by me and is 99% safe!!
I have not tested the 2nd method yet!!
Please read it carefully before trying anything!!
I really recommend this of our phones!!

Look at the links to learn more!!
 
Upvote 0
This method will improve the speed of
your phone and it will expand your RAM.
Bad news is it might break some apps.
Solution= just install it again!!

First method was tested by me and is 99% safe!!
I have not tested the 2nd method yet!!
Please read it carefully before trying anything!!
I really recommend this of our phones!!

Look at the links to learn more!!

Just because the first method was tested by you does not mean its 99% safe, it would need more people doing it to see how safe it is, I will probably use it when it has been tested by more people.
 
Upvote 0
I did, and there was only 3 pages of replies, so still not enough for me to want to risk it yet I may try it some time but not right now.

Well good luck!!
i asked the developer and he said that the
first method is 99% brick free!!
But not sure about the 2nd one!!
He said if all instructions followed clearly there will be
no problems!! :);)
 
Upvote 0
I don't like how some poorly wrighten apps crash due to a memory overflow on low memory devices like this phone. Would any of this help with that?

Yes if you have a lot of apps on your phone
i recommend the 2nd method. It will give you more RAM.

If you don't have a lot of apps then use the 1st method!! :):)
BE CAREFUL!! Read all instructions properly!!

And yes it will help!!
Good Luck!! :):)
 
  • Like
Reactions: peppers
Upvote 0
pvz has memory management issues so it wont run on the GT540. I have enough storage space to fit it.

I have seen vidoes of it running it though so apparently its somehow possible but nobody explained how. edit: apparently doing this works but I had not tried it edit2: don't work still crashes due to not enough memory

so how much memory do you have available after doing this? currently with stock swiftdroid 2.0 rc4 I can only free up 35mb's
 
Upvote 0
well I did the one click version of option two and am up too 77 mb of ram but that not really enough for me, how do I clear up more?

thanks for all this so far

edit: i think its more 45 most of the time rather than 77.
I could use just a little bit more to do stuff

Well if your phone does lag i recommend you to
supercharge your phone!! :):)
 
  • Like
Reactions: peppers
Upvote 0
Well good luck!!
i asked the developer and he said that the
first method is 99% brick free!!
But not sure about the 2nd one!!
He said if all instructions followed clearly there will be
no problems!! :);)


Even though you have lots of exclamation marks!!!
AND YOU LIKE TO TYPE IN CAPITALS!!!!
I'm still going to give this a go as I've currently got two GT540's in my possession and I feel like experimenting.

@Delsus - will post up my findings :)
 
Upvote 0
Rebooted into recovery and ran a nandroid backup.
Rebooted and ran terminal emulator.
Took a while as its the first time I've used the in-built terminal emulator, and had to find my way around (soft menu - toggle keypad)
Followed the 1st post's directions - entering each line then hitting the return key after each line. (Takes a while using the keypad as you have to switch between symbols and alternative symbols)
To be totally honest I can't see an improvement?
There are a lot of cached processes but aside from that nothing appears to be running faster/smoother.
There is no difference in the original space or ram 14GB/16GB (external) 201MB/264MB (internal) - 30MB/168MB (ram)
I'm running an Ondemand governor 245MHz/600MHz

Sorry to the OP and creator of the idea, and apologies to androidboss I realise you are just reposting...
I'm not here to criticise or reject anything - quite the opposite, I just don't see any benefits.

Oh and this is on a phone that has just had a fresh install of the latest cm7 update, it's now running a few larger apps but at the same speed as my other phone without the ram change.
 
Upvote 0
Rebooted into recovery and ran a nandroid backup.
Rebooted and ran terminal emulator.
Took a while as its the first time I've used the in-built terminal emulator, and had to find my way around (soft menu - toggle keypad)
Followed the 1st post's directions - entering each line then hitting the return key after each line. (Takes a while using the keypad as you have to switch between symbols and alternative symbols)
To be totally honest I can't see an improvement?
There are a lot of cached processes but aside from that nothing appears to be running faster/smoother.
There is no difference in the original space or ram 14GB/16GB (external) 201MB/264MB (internal) - 30MB/168MB (ram)
I'm running an Ondemand governor 245MHz/600MHz

Sorry to the OP and creator of the idea, and apologies to androidboss I realise you are just reposting...
I'm not here to criticise or reject anything - quite the opposite, I just don't see any benefits.

Oh and this is on a phone that has just had a fresh install of the latest cm7 update, it's now running a few larger apps but at the same speed as my other phone without the ram change.

yes i reposted this from xda!!
well ok, this makes a bit more ram for e.g. 5-10mb of
more ram, and also i think this will mostly have more
effect on LG GT540 then any other phones!
But thank you for your post!! ;);)
 
Upvote 0

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones