Custom Resolution for Android Emulator Genymotion and DPI
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 to share