Custom Resolution for Android Emulator Genymotion and DPI

I am starting to use the genynotion emulator and I can create a custom sized device using the device settings, but when it comes to providing custom dpi, their predefined resolution dropdown is any way to provide a custom DPI value for genymotion other than the dropdown?

+3


source to share


1 answer


To change DPI you can use ADB wrapper:

su
mount -o rw,remount /system
cat /system/build.prop | grep ro.sf.lcd_density

      

When the line is found, it is the current DPI and use the following command to change:



sed -i 's/^ro.sf.lcd_density=.*/ro.sf.lcd_density=YOUR_DPI/g' /system/build.prop

      

when nothing is found, add a line to the end of the file:

echo ro.sf.lcd_density=YOUR_DPI >> /system/build.prop

      

+2


source







All Articles