Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,812,283 Members 38,487 Now Online
XDA Developers Android and Mobile Development Forum

(flashable zip released) Set device screen resolution via build.prop

Tip us?
 
dorfd1
Old
(Last edited by dorfd1; 29th May 2014 at 02:09 AM.)
#1  
Senior Member - OP
Thanks Meter 72
Posts: 547
Join Date: Jan 2012
Default (flashable zip released) Set device screen resolution via build.prop

If anyone is interested. I made a mod for cm11 that allows you to set the x and y DPI and set your device screen resolution via build.prop. I initially did this mod on the galaxy player. I can port it over to the tab 2 if anyone is interested.

Sent from my GT-P3110 using Tapatalk

update: flashable zip release.

please let me know if the flashable zip fails. I used a guide to help me make the zip.

this zip should work on any cm11 device including the galaxy tab 2 10.1.

just flash it via recovery like anyother zip.

I am not responsible if anything gets broken.

this mod only works with cm11. this has been built on may 15 but may work on later nightlies.

to set screen resolution. you can set ro.sf.widthpixels and ro.sf.heightpixels to whatever you want. to set custom x and y dpi you can set ro.sf.lcd_density.xdpi and ro.sf.lcd_denstiy.ydpi to what ever you want.

for resolution use only numbers ot you will soft brick. I recommend using a terminal emulator and testing various settings using the qemu equivalent properties (replace ro with qemu) untill you find settings you like.

the settings I currently use are
Code:
ro.sf.widthpixels=800
ro.sf.heightpixels=1365
ro.sf.lcd_denstiy.xdpi=153
ro.sf.lcd_denstiy.ydpi=153
those settings will make the tab 2 7.0 think it has a 10 inch screen and will use xlarge layouts.
Attached Files
File Type: zip resmod.zip - [Click for QR Code] (263.1 KB, 31 views)
 
topzias
Old
#2  
Member
Thanks Meter 7
Posts: 55
Join Date: Feb 2014
Quote:
Originally Posted by dorfd1 View Post
If anyone is interested. I made a mod for cm11 that allows you to set the x and y DPI and set your device screen resolution via build.prop. I initially did this mod on the galaxy player. I can port it over to the tab 2 if anyone is interested.

Sent from my GT-P3110 using Tapatalk
interested here. Tab2 P5110
 
dorfd1
Old
#3  
Senior Member - OP
Thanks Meter 72
Posts: 547
Join Date: Jan 2012
Quote:
Originally Posted by topzias View Post
interested here. Tab2 P5110
Just so you know, the ROM I will be posting will only work the p3113/p3110. I can share the source code so you can port it to the p5110 if you want.

Sent from my GT-P3110 using Tapatalk
 
dorfd1
Old
(Last edited by dorfd1; 17th May 2014 at 02:44 PM.)
#4  
Senior Member - OP
Thanks Meter 72
Posts: 547
Join Date: Jan 2012
I ported the mod over and waiting for it to compile. Only services.jar and surfaceflinger are modded . I will see if copying over those 2 files will work.

If copying the 2 files works then this mod should work on the other tab 2 models running cm11.


Sent from my GT-P3110 using Tapatalk

update:

installing just the modded services.jar and srufaceflinger worked.

I am going to mod services.jar so you can select the ui layout you want by changing the dpw and dph via build prop. This would allow you to have xlarge framework resources without changing DPI or resolution, but could also be used if you want phone layout.

I will upload a zip containing the mod tomorrow
 
Faethor420
Old
#5  
Junior Member
Thanks Meter 0
Posts: 5
Join Date: Mar 2013
Quote:
Originally Posted by dorfd1 View Post
I will upload a zip containing the mod tomorrow

Umm, very interested here! I've got the p3113 myself. Where's that zip? Lol
 
lt.anthonydelgado
Old
#6  
lt.anthonydelgado's Avatar
Senior Member
Thanks Meter 23
Posts: 208
Join Date: Sep 2010
Location: San Diego
Interest AF here lol

Sent from my GT-P3110 using XDA Free mobile app
Current Devices:

Xperia TL (LT30AT) Locked BL - Running 4.3 official thanks to DaRk-L0rD find it here
Moto G (Verizon) Locked BL- Stock official 4.4 ...
Samsung Galaxy Tab 2 7.0 - Running 4.4.2 w/Espresso by CodyF86 find it here

Broken or Traded

Samsung Galaxy S1 Fascinate Verizon
Samsung Galaxy S2 Epic 4G Touch Sprint
Samsung Galaxy S3 Sprint
Nokia Lumia 920 ATT
HTC ONE X ATT
 
dorfd1
Old
#7  
Senior Member - OP
Thanks Meter 72
Posts: 547
Join Date: Jan 2012
I will share the nodded files later.

Sent from my GT-P3110 using Tapatalk
 
dorfd1
Old
(Last edited by dorfd1; 29th May 2014 at 02:04 AM.)
#8  
Senior Member - OP
Thanks Meter 72
Posts: 547
Join Date: Jan 2012
I will be uploading a flashable zip tonight.

Sent from my GT-P3110 using Tapatalk

update: flashable zip can be found in the OP along with instructions.
 
dorfd1
Old
#9  
Senior Member - OP
Thanks Meter 72
Posts: 547
Join Date: Jan 2012
I am now attempting to mode frameworks core so custom values for smallest width dp can be used, allowing you to select what layout you want. You could set your device to phone mode without changing DPI or resolution.

Sent from my GT-P3110 using Tapatalk
 
dorfd1
Old
#10  
Senior Member - OP
Thanks Meter 72
Posts: 547
Join Date: Jan 2012
I successfully modified services.jar so the smallest dp can be set via build.prop. the number can be changed so you choose what layout you want.

Sent from my GT-P3110 using Tapatalk

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Increase Your Multitasking Workflow with C-Floating Windows

Technology has put life on the fast track. Lazy, relaxed days have turned into … more

Compile Your Own Kernel From Source with Comprehensive Tutorial

One glance at any developer section of any device forum on XDA and youll find … more

WowWee Mip – Android Accessory Review – XDA Developer TV

The holidays will be here in no time, so why not start thinking about … more

Stream Your Media Files with the New Version of Droid Sync Manager

Android is a Linux-based operating system, but this fact doesn’t put … more