Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
eyeballer
Old
#1  
eyeballer's Avatar
Recognized Contributor / Recognized Developer - OP
Thanks Meter 3231
Posts: 1,247
Join Date: Jun 2010

 
DONATE TO ME
Default [MOD] [local.prop] [CM9/AOSP ROMS] Persistent lcd density change

For those changing lcd density you have to re-apply your edits after each rom/nightly flash. This method prevents that by overriding lcd density by using a local.prop file in /data.

1) Restore stock lcd density in build.prop: either undo the manual edits you did, or reflash your rom .zip to restore the build.prop to stock
2) Get one of these files based on the density you liked to use: lcd-density-120 or lcd-density-132
3) Rename it to "local.prop" and save it in /data (the root of the /data folder) - if you're on your touchpad then use any file manager to do this, or download to pc and adb push to /data
4) Reboot

This should override the 160 lcd density in /system/build.prop and it will survive rom flashes and incremental updates with goo manager for my nightlies (until you wipe /data obviously). Of course you can reverse the changes by simply deleting the file and rebooting.

You are welcome to try to add other mods using this method but not all will work, and for some reason not all apps/games read local.prop.

The files I posted just contain
"qemu.sf.lcd_density=132" which overrides "ro.sf.lcd_density=132" in /system/build.prop.

You can reply to this thread with other mods that you found to be working.
The Following 16 Users Say Thank You to eyeballer For This Useful Post: [ Click to Expand ]
 
Tilde88
Old
#2  
Senior Member
Thanks Meter 147
Posts: 905
Join Date: Nov 2008
nice! THanks!
 
smac7
Old
(Last edited by smac7; 3rd May 2012 at 06:20 AM.)
#3  
smac7's Avatar
Senior Member
Thanks Meter 89
Posts: 872
Join Date: Feb 2009
Location: Chicago
thanks!

has anyone gotten the latest chrome to work work on non-standard dpi's though? Considering it is my most used app, it kinda stopped me from using a dpi other than 160.
 
murso74
Old
#4  
Senior Member
Thanks Meter 156
Posts: 1,210
Join Date: Oct 2010
Quote:
Originally Posted by hockey4life0099 View Post
thanks!

has anyone gotten the latest chrome to work work on non-standard dpi's though? Considering it is my most used app, it kinda stopped me from using a dpi other than 160.
Didn't even know that's what the problem was. Dissapointing since 160 dpi make me feel like I'm holding a large phone

Sent from my DROID3 using Tapatalk 2
 
Moronig
Old
#5  
Senior Member
Thanks Meter 137
Posts: 286
Join Date: Dec 2010
Location: Curitiba

 
DONATE TO ME
This is a nice mod, thanks.
Find my apps: AutoProxy
 
Flashmaniac
Old
#6  
Flashmaniac's Avatar
Senior Member
Thanks Meter 469
Posts: 1,651
Join Date: Oct 2010
Location: Bremen
Quote:
Originally Posted by murso74 View Post
Didn't even know that's what the problem was. Dissapointing since 160 dpi make me feel like I'm holding a large phone

Sent from my DROID3 using Tapatalk 2
the iPad2 has actually the same resolution but noone ever mentioned it.

it's awesome how the resolution actually changes but causes a lot of different problems with i.e. folders.
 
smac7
Old
#7  
smac7's Avatar
Senior Member
Thanks Meter 89
Posts: 872
Join Date: Feb 2009
Location: Chicago
Quote:
Originally Posted by murso74 View Post
Didn't even know that's what the problem was. Dissapointing since 160 dpi make me feel like I'm holding a large phone

Sent from my DROID3 using Tapatalk 2
yeah, so ive been stuck on 160 for a week now and it's not as bad as i thought it would be. If there is ever a fix id be happy to try it though. Not sure why one version it would work great but on the next it would force close. Maybe the next official update will solve our problems.
 
vgz01
Old
#8  
Member
Thanks Meter 14
Posts: 77
Join Date: Sep 2009
Thanks, this definitely saves some time and comes in handy!
 
sunscape
Old
#9  
Junior Member
Thanks Meter 10
Posts: 29
Join Date: Oct 2010
Works as it should. I just wish 132 and 120 didn't distort much of the cm9 interface.

 
Post Reply+
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

report this ad
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...

XDA PORTAL POSTS

Careers in Android: What Hiring Managers Won’t Tell You – XDA Developer TV

XDA Developer TV Producer Jayce released a video a … more

Coloring Your Logcat World

Getting feedback for your app during development is as simple as adding logging info where necessary and looking … more

Guide Your Sheep to Safety with Finger Shepherd

Just a coupe of days ago, we brought you news about a game calledAgent Sheep. In that … more

Nandroid Manager Receives Major Update

Do you find yourself obsessively jumping from ROM to ROM? And do you hate having to restore a full … more