Edit build.prop using ADB
There are many reasons why you may like to edit your build.prop
file. I always edit it in order to lower my DPI, resulting in a bigger looking screen.
You can edit it on the device itself using a file manager or a build.prop editor but it may be more convenient to edit the file using a PC.
Please note that your device has to be rooted to edit the build.prop
file.
- Download and unzip the Eclipse ADT
- Make sure your device has USB debugging enabled
- Open a command prompt or terminal and
cd
to theplatform-tools
directory:cd C:\adt-bundle-windows\sdk\platform-tools
- Check if your device is recognized:
If it’s not you may install the Google USB driver and try againadb devices
The device may ask you if the computer is trusted, choose yes
- Restart ADB as root:
adb root
- Remount
/system
asrw
(read-write):adb remount
- Download
build.prop
to your pc:adb pull /system/build.prop
- Now you can edit
build.prop
using your favorite editor
Important: use a plain text editor! I recommend Notepad++ for Windows and Geany for Linux - Upload
build.prop
to your device:adb push build.prop /system/build.prop
- Fix permissions:
adb shell chmod 644 /system/build.prop
- Reboot your device:
adb reboot
Thanks to this answer on Stack Overflow.
Leave a comment