5.1.1 Ram management fix

Chord_Hugo87

Senior Member
Sep 4, 2015
536
252
0
Pre-req:
-Root
-some type of editor, if you are using root explorer it will have it own editor
-Decent knowledge of android file system


so in an attempt to fix this multitasking/Ram issue that is plaguing Samsung devices. I have come up with a fix for our devices (with the help of @mikeyinid)

1. open up root explorer
2.Navigate to /system
3.open up build.prop (keep in mind the file permission of the file, after you done editing you will have to change the file permision back rw-r-r)
4. paste in the following line at the bottom of your build.prop


ro.config.fha_enable=true
ro.sys.fw.use_trim_settings=true
ro.sys.fw.empty_app_percent=50
ro.sys.fw.trim_empty_percent=100
ro.sys.fw.trim_cache_percent=100
ro.sys.fw.bservice_enable=true
ro.sys.fw.bservice_limit=5
ro.sys.fw.bservice_age=5000
ro.sys.fw.trim_enable_memory=2147483648

2147483648 is the ammount of ram in bytes. so in this case 2gig

Check for the following

ro.config.dha_cached_max=
ro.config.dha_empty_max=
ro.config.dha_th_rate=
ro.config.dha_lmk_scale=

and delete them. I dont think it would be in there since 5.1.1 utilized FHA instead of DHA




5. edit the following line

dalvik.vm.heapstartsize=8m
dalvik.vm.heapgrowthlimit=256m
dalvik.vm.heapsize=512m
dalvik.vm.heaptargetutilization=0.50
dalvik.vm.heapminfree=4m
dalvik.vm.heapmaxfree=16m

ro.hwui.texture_cache_size=72
ro.hwui.layer_cache_size=48
ro.hwui.r_buffer_cache_size=8
ro.hwui.path_cache_size=32
ro.hwui.gradient_cache_size=1
ro.hwui.drop_shadow_cache_size=6
ro.hwui.text_small_cache_width=1024
ro.hwui.text_small_cache_height=1024
ro.hwui.text_large_cache_width=2048
ro.hwui.text_large_cache_height=2048

save and make sure to check permission reboot....follow up, so far so good for me .
 

yahyoh

Senior Member
Nov 7, 2011
4,859
1,929
0
Amman
LOL losing wannaty to fix what the dumbass Samsung developer team broke its been +5 months and they didnt fixed the issue with S6 and Note 5 came with more RAM and still the same **** i would rather not to buy a mobile with +700$ with broken software that aint gonna fixed
but thank you OP anyway :)
 

sherzod93

New member
Sep 10, 2015
1
0
0
Pre-req:
-Root
-some type of editor, if you are using root explorer it will have it own editor
-Decent knowledge of android file system


so in an attempt to fix this multitasking/Ram issue that is plaguing Samsung devices. I have come up with a fix for our devices (with the help of @mikeyinid)

1. open up root explorer
2.Navigate to /system
3.open up build.prop (keep in mind the file permission of the file, after you done editing you will have to change the file permision back rw-r-r)
4. paste in the following line at the bottom of your build.prop


ro.config.fha_enable=true
ro.sys.fw.use_trim_settings=true
ro.sys.fw.empty_app_percent=50
ro.sys.fw.trim_empty_percent=100
ro.sys.fw.trim_cache_percent=100
ro.sys.fw.bservice_enable=true
ro.sys.fw.bservice_limit=5
ro.sys.fw.bservice_age=5000
ro.sys.fw.trim_enable_memory=2147483648

2147483648 is the ammount of ram in bytes. so in this case 2gig

Check for the following

ro.config.dha_cached_max=
ro.config.dha_empty_max=
ro.config.dha_th_rate=
ro.config.dha_lmk_scale=

and delete them. I dont think it would be in there since 5.1.1 utilized FHA instead of DHA




5. edit the following line

dalvik.vm.heapstartsize=8m
dalvik.vm.heapgrowthlimit=256m
dalvik.vm.heapsize=512m
dalvik.vm.heaptargetutilization=0.50
dalvik.vm.heapminfree=4m
dalvik.vm.heapmaxfree=16m

ro.hwui.texture_cache_size=72
ro.hwui.layer_cache_size=48
ro.hwui.r_buffer_cache_size=8
ro.hwui.path_cache_size=32
ro.hwui.gradient_cache_size=1
ro.hwui.drop_shadow_cache_size=6
ro.hwui.text_small_cache_width=1024
ro.hwui.text_small_cache_height=1024
ro.hwui.text_large_cache_width=2048
ro.hwui.text_large_cache_height=2048

save and make sure to check permission reboot....follow up, so far so good for me .


Sent from my LT26w using XDA Free mobile app
 

Chord_Hugo87

Senior Member
Sep 4, 2015
536
252
0
LOL losing wannaty to fix what the dumbass Samsung developer team broke its been +5 months and they didnt fixed the issue with S6 and Note 5 came with more RAM and still the same **** i would rather not to buy a mobile with +700$ with broken software that aint gonna fixed
but thank you OP anyway :)
......so u dint buy it?
 

~~Tito~~

Retired Forum Moderator
Jun 30, 2007
3,308
192
0
What exactly does this change? I see the values, but could you explain it in a way a techie-layman like myself would understand? I see certain values affecting different caches, and raises certain thresholds for the system to maintain programs in the RAM? Is this raising the limits set by default so the system isn't killing things too early?

My main concern with this would be how it could affect battery life. It's my biggest gripe with the phone at the moment.
 
  • Like
Reactions: Jack123hello

Chord_Hugo87

Senior Member
Sep 4, 2015
536
252
0
Tbh
I am not 100% sure, this is all based on looking at Mikeyinid thread and taking a look at the LG G4 build.prop to see if there is any changes. I put it in, if it work, it work, if it doesnt, wouldn't create any harm. I do not see differences in battery. The affect seems positive to me. YMMV
 

ppppssss1227

New member
Oct 24, 2011
3
1
0
TAIPEI
4. paste in the following line at the bottom of your build.prop[/B]

ro.config.fha_enable=true
ro.sys.fw.use_trim_settings=true
ro.sys.fw.empty_app_percent=50
ro.sys.fw.trim_empty_percent=100
ro.sys.fw.trim_cache_percent=100
ro.sys.fw.bservice_enable=true
ro.sys.fw.bservice_limit=5
ro.sys.fw.bservice_age=5000
ro.sys.fw.trim_enable_memory=2147483648

2147483648 is the ammount of ram in bytes. so in this case 2gig

Check for the following

ro.config.dha_cached_max=
ro.config.dha_empty_max=
ro.config.dha_th_rate=
ro.config.dha_lmk_scale=

and delete them. I dont think it would be in there since 5.1.1 utilized FHA instead of DHA
.
thanks a lot. It workable and very useful . by the way , what does FHA/DHA stand for ??????
 

silverbladef

Senior Member
Nov 6, 2008
201
89
0
Houston
LOL losing wannaty to fix what the dumbass Samsung developer team broke its been +5 months and they didnt fixed the issue with S6 and Note 5 came with more RAM and still the same **** i would rather not to buy a mobile with +700$ with broken software that aint gonna fixed
but thank you OP anyway :)
Seems like you could use a hug, or a sledgehammer to the shin. Or chin. If you don't have anything useful to say then keep your mouth shut and let people enjoy what they enjoy.
 

ambervals6

Senior Member
Jun 14, 2015
828
212
0
Ram management sucks. Not sure how much longer I will stand it. Prolly until new nexus comes out. Love everything else about this phone.

Sent from my SAMSUNG-SM-N920A
 

WizeGuyDezignz

Senior Member
Jun 12, 2008
3,703
1,567
0
San Diego
Ram management sucks. Not sure how much longer I will stand it. Prolly until new nexus comes out. Love everything else about this phone.

Sent from my SAMSUNG-SM-N920A
You have been complaining about this since the S6. Why would you even get the Note 5 knowing this to begin with? And why stand it any longer? You have been very vocal about it and there are many other devices to choose from. Seems like you need to move on, no?
 

Chord_Hugo87

Senior Member
Sep 4, 2015
536
252
0
Seems like you could use a hug, or a sledgehammer to the shin. Or chin. If you don't have anything useful to say then keep your mouth shut and let people enjoy what they enjoy.
why cant he complain, he own the device, it is a problem. He has the right to complain and Samsung need to see these complaint to make it better. If people don't complain then things wouldn't get better.
 

Chord_Hugo87

Senior Member
Sep 4, 2015
536
252
0
What's your problem? I think what he wrote is true Samsung is slacking off but then again they where never good at software
believe it or not Samsung is not the worse....Sony is horrendous! I think by far HTC is the best, their only down far with their devices is a ****ty camera, if the M9 Camera are half of what Samsung is, I wouldn't even consider the Galaxy series.
 

suman_pal78

Senior Member
Nov 19, 2009
336
90
0
Kolkata
Pre-req:
-Root
-some type of editor, if you are using root explorer it will have it own editor
-Decent knowledge of android file system


so in an attempt to fix this multitasking/Ram issue that is plaguing Samsung devices. I have come up with a fix for our devices (with the help of @mikeyinid)

1. open up root explorer
2.Navigate to /system
3.open up build.prop (keep in mind the file permission of the file, after you done editing you will have to change the file permision back rw-r-r)
4. paste in the following line at the bottom of your build.prop


ro.config.fha_enable=true
ro.sys.fw.use_trim_settings=true
ro.sys.fw.empty_app_percent=50
ro.sys.fw.trim_empty_percent=100
ro.sys.fw.trim_cache_percent=100
ro.sys.fw.bservice_enable=true
ro.sys.fw.bservice_limit=5
ro.sys.fw.bservice_age=5000
ro.sys.fw.trim_enable_memory=2147483648

2147483648 is the ammount of ram in bytes. so in this case 2gig

Check for the following

ro.config.dha_cached_max=
ro.config.dha_empty_max=
ro.config.dha_th_rate=
ro.config.dha_lmk_scale=

and delete them. I dont think it would be in there since 5.1.1 utilized FHA instead of DHA




5. edit the following line

dalvik.vm.heapstartsize=8m
dalvik.vm.heapgrowthlimit=256m
dalvik.vm.heapsize=512m
dalvik.vm.heaptargetutilization=0.50
dalvik.vm.heapminfree=4m
dalvik.vm.heapmaxfree=16m

ro.hwui.texture_cache_size=72
ro.hwui.layer_cache_size=48
ro.hwui.r_buffer_cache_size=8
ro.hwui.path_cache_size=32
ro.hwui.gradient_cache_size=1
ro.hwui.drop_shadow_cache_size=6
ro.hwui.text_small_cache_width=1024
ro.hwui.text_small_cache_height=1024
ro.hwui.text_large_cache_width=2048
ro.hwui.text_large_cache_height=2048

save and make sure to check permission reboot....follow up, so far so good for me .
Working like a charm Boss...High Five!...N9208 dual
 

ambervals6

Senior Member
Jun 14, 2015
828
212
0
You have been complaining about this since the S6. Why would you even get the Note 5 knowing this to begin with? And why stand it any longer? You have been very vocal about it and there are many other devices to choose from. Seems like you need to move on, no?
Problem?

Sent from my SAMSUNG-SM-N920A