FORUMS
Remove All Ads from XDA

[DEV/APP] Resolution changer for HDMI Landscape Mirroring on Blur System

435 posts
Thanks Meter: 581
 
By djeman, Senior Member on 17th February 2012, 02:40 AM
Post Reply Email Thread
This application will allow you to change the resolution of the mirroring mode.

To use it, you'll have to re-sign it with the same signature as the system, if you successfuly installed the mirroring mode you'll find a way since the problem is the same.
You'll also need to change the package MirrorService.apk because I changed an option in it to allow the use of the function that will change the resolution for all kind of android builds (eng, user, userdebug).

Topic about the HDMI Landscape Mirroring mod : http://forum.xda-developers.com/show....php?t=1348692


It's a really simple software, it just requires to activate the mirroring mod to be able to change the resolution, you'll keep it to until the next change or reboot.

Language : English/French



Download v1.0.2 : https://rapidshare.com/files/2258948...Resolution.apk

MirrorService.apk from Photon modded : https://rapidshare.com/files/4266977...rorService.apk

Source : https://rapidshare.com/files/2349891...ion_source.zip


To achieve this I used the hdmi user library from the motorola addon pack for atrix.
Pack available here : http://developer.motorola.com/docstools/tools/
Docs : http://developer.motorola.com/docsto...al-screen-api/

I reverse-engineered the mirroring service to create an user library to use with Eclipse.
Source & lib : https://rapidshare.com/files/3144458217/mirror_lib.zip

The Following 33 Users Say Thank You to djeman For This Useful Post: [ View ] Gift djeman Ad-Free
17th February 2012, 02:43 AM |#2  
kennethpenn's Avatar
Retired Forum Moderator / Retired Recognized Developer
Flag Washington, D.C.
Thanks Meter: 3,811
 
Donate to Me
More
Awesome job, mate!
17th February 2012, 03:17 AM |#3  
Account currently disabled
Flag New York
Thanks Meter: 3,955
 
More
Very cool.
Works good on NottachTrix. OK to add to the next release?

One question, are the resolutions labeled correctly in the chooser? When I choose 1920 x 1080 60hz it defaults to 800 x 600. But when I choose 1920 x 1080 50hz it applies 1920 x 1080 60z. I know my monitor doesn't do 1920 x 1080 50hz so something seems weird.
17th February 2012, 05:00 AM |#4  
sotodefonk's Avatar
Senior Member
Thanks Meter: 58
 
More
I installed the app and replaced the mirrorservice.apk but your mirrorservice file broke my mirror :S

I tested only with the app itself and it changed the resolution, but it just displayed an static image of the app and never changed.

Also, when selecting 1080p, stayed in 720p, but selected 1280x1024 and changed to 1080p.

How can I fix the mirrorservice.apk? What did you change ? maybe I can edit my apk
17th February 2012, 05:27 AM |#5  
Account currently disabled
Flag New York
Thanks Meter: 3,955
 
More
Quote:
Originally Posted by sotodefonk

I installed the app and replaced the mirrorservice.apk but your mirrorservice file broke my mirror :S

I tested only with the app itself and it changed the resolution, but it just displayed an static image of the app and never changed.

Also, when selecting 1080p, stayed in 720p, but selected 1280x1024 and changed to 1080p.

How can I fix the mirrorservice.apk? What did you change ? maybe I can edit my apk

The signature of MirrorService.apk needs to match your systems sig or else it won't work properly.
I first installed his resolution app and tried it out with my regular mirrorservice and it didn't work.
Since my rom is already totally resigned I just resigned his mirrorservice.apk and pushed it and then it worked properly. (except for the res labels)
depending on what rom youre using you can try resigning his mirrorservice and pushing it to see if that helps. it should work if youre using one of my roms, not sure about cm7 roms though.
17th February 2012, 05:55 AM |#6  
sotodefonk's Avatar
Senior Member
Thanks Meter: 58
 
More
Quote:
Originally Posted by Nottach

The signature of MirrorService.apk needs to match your systems sig or else it won't work properly.
I first installed his resolution app and tried it out with my regular mirrorservice and it didn't work.
Since my rom is already totally resigned I just resigned his mirrorservice.apk and pushed it and then it worked properly. (except for the res labels)
depending on what rom youre using you can try resigning his mirrorservice and pushing it to see if that helps. it should work if youre using one of my roms, not sure about cm7 roms though.

Actually, pushed back the original mirrorservice, and it kind of works, but like you said, the resolutions are not correclty labeled... 1024x768 is 1080p on mine, but it works after a restart :P
17th February 2012, 07:31 AM |#7  
Senior Member
Thanks Meter: 19
 
More
how to resign?
I decided to install signapktic to resign the app, but had a couple of questions. You say to sign using signature of my system. That is not the testkey, correct? So how would I obtain the signature of my system? Also, do I sign both apps or just the mirrorresolution.apk?

I also feel like I'm completely missing the point of signatures on apks, but I'll figure it out in due time.
17th February 2012, 01:20 PM |#8  
Notorious544d's Avatar
Senior Member
Flag London
Thanks Meter: 2,384
 
Donate to Me
More
Just to confirm, does this work on CM7 ROM's, or is it only for Blur?
The Following User Says Thank You to Notorious544d For This Useful Post: [ View ] Gift Notorious544d Ad-Free
17th February 2012, 03:12 PM |#9  
OP Senior Member
Thanks Meter: 581
 
More
For the list of resolutions, I get it of your extern monitor and based on the motorola doc.

Code:
static final int HDMI_STANDARD_INVALID       = -1;
static final int HDMI_STANDARD_AUTO          = 0;
static final int HDMI_STANDARD_2_3_60HZ      = 1;  // 720x480P @ 60Hz
static final int HDMI_STANDARD_4_60HZ        = 2;  // 1280x720P @ 60Hz
static final int HDMI_STANDARD_17_18_50HZ    = 3;  // 720x576P @ 50Hz
static final int HDMI_STANDARD_19_50HZ       = 4;  // 1280x720P @ 50Hz
static final int HDMI_STANDARD_1_60HZ        = 5;  // 640x480P @ 60Hz
static final int HDMI_STANDARD_16_60HZ       = 6;  // 1920x1080P @ 60Hz
static final int HDMI_STANDARD_31_50HZ       = 7;  // 1920x1080P @ 50Hz
static final int HDMI_STANDARD_PC_SVGA_60HZ  = 8;  // 800x600 @ 60Hz
static final int HDMI_STANDARD_PC_XGA_60HZ   = 9;  // 1024x768 @ 60Hz
static final int HDMI_STANDARD_PC_SXGA_60HZ  = 10; // 1280x1024 @ 60Hz
static final int HDMI_STANDARD_PC_WXGA_60HZ  = 11; // 1440x900 @ 60Hz
static final int HDMI_STANDARD_PC_WSXGA_60HZ = 12; // 1680x1050 @ 60Hz
static final int HDMI_STANDARD_PC_LD_60HZ    = 13; // 1366x768 @ 60Hz
On my LG tv all res are ok.

And no problem to use it on all roms you want, i shared it for that
The Following 5 Users Say Thank You to djeman For This Useful Post: [ View ] Gift djeman Ad-Free
20th February 2012, 05:38 PM |#10  
sk8trix's Avatar
Senior Member
Flag Hudson county N.J
Thanks Meter: 106
 
More
Pretty cool will give it a try and see if i can go hd thanks
21st February 2012, 12:39 AM |#11  
Punkrocknerd's Avatar
Member
Thanks Meter: 7
 
More
Is this compatible with cm9 or cm7 or only blur based roms?
Sent from my cm9 kang atrix son
Post Reply Subscribe to Thread

Tags
atrix, mirror, resolution

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes