How do I change screen density of custom ROM?

thege128

Member
Oct 2, 2011
5
0
21
Albany, NY
I have two phones, a Huawei m860 and an m835. They are both basically the same phone, except the m835 has a smaller screen.

I have a CM 7.1 ROM that runs great on the m860 with the larger screen, but is out of scale on the m835 with the smaller screen.

I edited the BUILD.PROP file and changed the LCD.SCREEN.DENSITY from 160 to 120. But when I inject the edited file back into the zip file, ROM Manager says the ROM is bad and refuses to flash it.

Anyone know how to properly recompile the ROM with the edited BUILD.PROP file, so that I can flash it?
 
Last edited:

LordManhattan

Senior Member
Oct 20, 2007
15,047
5,495
0
Kepler-34b
1. You can use LCDDensity
2. Or if you don't want to have an app running in the background, you can simply install ES File Explorer and (as you know) go to /system/build.prop and change the density and reboot. This is permanent or until you change it back or flashing the/a ROM again.
 
  • Like
Reactions: thege128

thege128

Member
Oct 2, 2011
5
0
21
Albany, NY
Thanks, I was able to edit the /system/build.prop file after flashing the ROM, and that did the trick once I rebooted.

Now though, I've discovered that the screen does not change orientations when I turn the phone as it should. Any have any ideas how to fix that?

-TheGE128