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

Root Changed DPI to a high number, screen is screwed.

landonh12

Android Enthusiast
Is there any way to change the DPI through adb? I really screwed up, the screen is bloated, I can't unlock the phone because the lock numbers only go to 9. I have android sdk and adb installed and I have root.

thanks.
 
this might help

Since we are using larger screens google recommends we change our dpi from 240 to 160, this probably looks fine for stock builds but on sense builds everything looks crazy. I currently have mine(on a sense build) at 210 however feel free to change it to what is best for you.

to perform this modification

pull the build.prop from /system/build.prop
open the file using a text editor and change ro.sf.lcd_density=240 to ro.sf.lcd_density=160(or whatever number you choose)
then push the file back to /system/build.prob
(i used a paid app called root explorer for this process)

if you want you use terminal emulator or adb here are the commands:
su
cp /system/build.prop /sdcard
then once youve edited the file
cp /sdcard/build.prop /system

you can use the same commands over adb by entering adb shell




taken from :[REF] changing dpi for higher resolution look - xda-developers


in your case you will want to revert your dpi,not increase it. and i believe the file is build.prop not build.prob..THAT would create a PROB...lol
 
I'm on Windows. I have build.prop in my root C:\, and I'm trying to push it back onto /system. It says "failed to copy 'c:\build.prop' to '/system/build.prop' : Read-only file system" when i use the command "adb push c:\build.prop /system".

Any ideas?
 
Awesome, got it to work. Here's what I did.

First off, you want to mount /system to make it read-write.
Run these commands in cmd:
adb shell
su
mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system

Okay, now we want to pull build.prop to your root windows directory, mine is c:\
Run these commands:
adb pull /system/build.prop c:\

Now, go to your root directory and open up build.prop with notepad++ or something of the sort and find:
ro.sf.lcd_density=

Change the value to whatever your stock dpi is.

Save back to the root windows directory and run this command:
adb push c:\build.prop /system

Reboot your phone and done!

-landonh12
 
Back
Top Bottom