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

djeman

Senior Member
Mar 6, 2009
471
636
0
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/showthread.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/225894882/MirrorResolution.apk

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

Source : https://rapidshare.com/files/2349891096/MirrorResolution_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/docstools/library/motorola-hdmi-dual-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

:)
 
Last edited:

Nottach

Senior Member
Mar 20, 2008
1,587
3,934
0
New York
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.
 

sotodefonk

Senior Member
Dec 26, 2008
310
58
0
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
 

Nottach

Senior Member
Mar 20, 2008
1,587
3,934
0
New York
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.
 

sotodefonk

Senior Member
Dec 26, 2008
310
58
0
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
 

paravorheim

Senior Member
Mar 10, 2011
227
19
0
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.
 

djeman

Senior Member
Mar 6, 2009
471
636
0
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 :)
 

Nipit

Senior Member
Nov 2, 2010
216
17
0
Sadly, it doesn't work on cm9 turl v8. It says searching for tv, while my tv displays atrix screen. Why it doesn't find it? Anyone else having this problem?
 

phantoms8

Member
Nov 7, 2011
21
0
0
Thanks for making the app. I'm just curious on the purpose of the app. What's the advantage of manually modifing the HDMI resolution? Currently, when I plug the Atrix to my HDTV, it always defaults to the maximum screen resolution of the connected display. In my case, it's always 1920x1080 60Hz. To my understanding, your app allows me to modify to lower screen resolution. However, is there any advantage on doing this?
 

-JFK-

Senior Member
Jul 24, 2010
1,319
495
83
39
Nantes
www.activeaudio.fr
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/showthread.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/225894882/MirrorResolution.apk

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

Source : https://rapidshare.com/files/2349891096/MirrorResolution_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/docstools/library/motorola-hdmi-dual-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

:)
Hi Djeman,

That can be awsome if you can work on it for CM7 based ROM, I'm on Neutrino and this is the last thing I'd like to get !

Thank you in advance.
 

Rotkaeqpchen

Senior Member
Apr 30, 2008
485
86
48
Unfortunately it doesn't work on my Droid 3 5.7.894, am I doing something wrong? After replacing MirrorService.apk there is no HDMI mirroring anymore and the app says not mirroring... Help is highly appreciated.

THANKS :)