Post Reply

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

13th May 2014, 01:51 AM   |  #1  
OP Senior Member
Thanks Meter: 73
 
550 posts
Join Date:Joined: Jan 2012
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, 33 views)
Last edited by dorfd1; 29th May 2014 at 02:09 AM.
13th May 2014, 02:32 AM   |  #2  
Member
Thanks Meter: 8
 
72 posts
Join Date:Joined: Feb 2014
Quote:
Originally Posted by dorfd1

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
13th May 2014, 02:43 AM   |  #3  
OP Senior Member
Thanks Meter: 73
 
550 posts
Join Date:Joined: Jan 2012
Quote:
Originally Posted by topzias

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
16th May 2014, 11:16 PM   |  #4  
OP Senior Member
Thanks Meter: 73
 
550 posts
Join Date:Joined: 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
Last edited by dorfd1; 17th May 2014 at 02:44 PM.
24th May 2014, 01:06 AM   |  #5  
Junior Member
Thanks Meter: 0
 
5 posts
Join Date:Joined: Mar 2013
Thumbs up
Quote:
Originally Posted by dorfd1

I will upload a zip containing the mod tomorrow


Umm, very interested here! I've got the p3113 myself. Where's that zip? Lol
25th May 2014, 08:14 PM   |  #6  
lt.anthonydelgado's Avatar
Senior Member
San Diego
Thanks Meter: 23
 
208 posts
Join Date:Joined: Sep 2010
More
Interest AF here lol

Sent from my GT-P3110 using XDA Free mobile app
26th May 2014, 09:31 PM   |  #7  
OP Senior Member
Thanks Meter: 73
 
550 posts
Join Date:Joined: Jan 2012
I will share the nodded files later.

Sent from my GT-P3110 using Tapatalk
29th May 2014, 01:36 AM   |  #8  
OP Senior Member
Thanks Meter: 73
 
550 posts
Join Date:Joined: 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.
Last edited by dorfd1; 29th May 2014 at 02:04 AM.
6th June 2014, 10:51 PM   |  #9  
OP Senior Member
Thanks Meter: 73
 
550 posts
Join Date:Joined: 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
12th June 2014, 08:53 PM   |  #10  
OP Senior Member
Thanks Meter: 73
 
550 posts
Join Date:Joined: 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

Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Top Threads in Galaxy Tab 2 General by ThreadRank