Tronsmart MXIII Plus 316k4 aspect ratio in portrait mode issue - Android Stick & Console AMLogic based Computers

I have device (RSH A400, not Tronsmart) which I loaded with Tronsmart 316k4 firmware. Almost everything works like it should with one exception - portrait oriented application.
When I try to run portrait oriented application (without any support for landscape) on this firmware, if I disallow application to change resolution from landscape to portrait, it runs in landscape with screen stretched to fill whole 1920x1080 and looks very bad and is literally unusable.
I have done some investigations (switching beetween different firmwares released in different times) and i now know that it is not portrait / landscape issue but aspect ratio issue. On older firmwares (as well on my factory firmware) if application needs to run in portrait mode (no alternative for landscape mode) but mode is locked to landscape and not changable, the device maintain proper aspect ratio by itself (screen height is set to 1080, width calculated and set to about 607.5, screen centered). It looks like app is working in portrait mode without rotating screen but in fact it is working in landscape with maintained aspect ratio.
I need to fix this. I gave 316k4 as example because it is quite popular firmware, but I had the same behaviour on Probox2 EX and few other, newer firmwares.
It can be some bad setting on kernel level, or something needs to be modified in build.prop or any other config file. I don't see any suspects in build.prop (checked the differences) so the change must be done somewhere else or this behaviour is nonfixable at all. I can't use portrait mode because screen is rotated for 90 degrees then and my monitor doesn't have pivot and rotating screen.
Do you guys know what to change in device configuration to fix this?

Related

How to "hacQ" the Nexus Q so portrait apps work on a landscape-only screen

Hi,
Several apps I have tried (maybe ~10% of them) only have portrait mode. This is a problem if you have a TV you can't rotate.
I wonder if anyone has any ideas of how to write, say, a background service that detects if it's displaying in portrait mode, and then shrinks the screen view and flips it 90degrees (so essentially you have a portrait screen that is now the correct way up, with black screen on either side). You can't tell it to display in true landscape because that's hard-coded into the app, so it is better to just rotate the portrait display. However this is a hard thing to do as the screen display is very low-level... but does anyone have any ideas of how to accomplish that?
I've done some searching, but of course Android has never really faced this problem before. Android has either been on a rotatable mobile device, or it's been on a GoogleTV where everything is landscape...
If so, that would open up more apps for Q-compatibility...

[Q] Rikomagic MK802II, portrait mode

Hello all,
this is my first post here so be gentle :cyclops:
I've bought Rikomagic MK802II with Android 4.0.4. with HDMI.
I want to rotate screen to portrait mode. I spent days trying to make it work but without success.
Device came without "Auto-rotation" option in settings. It is somehow locked to landscape rotation.
I tried to do:
1) Unpacked original IMG file, then unpacked system and changed build.prop.
- I've added "ro.sf.hwrotation=90" to build.prop file and flashed the device.
- after rebooting system stuck at loading screen
2) Again fresh start from original IMG file.
- changed "config_AllowAllRotation" from "false" to "true" in framework-res.apk
- packed all and flashed the device
- after reboot system running OK but still in landscape
3) Made file local.prop in /data/.
- In it I've added:
launcher.force_enable_rotation=true
qemu.sf.lcd_density=160
- nothing helped...
4) Changed settings.db.
- changed user_rotation from 3 to 0 (to 1 also)
- after rebooting screen is still in landscape but settings.db doesn't have anymore this row: user_rotation and 20 next rows too.
I also spot some AutoRotationController.smali file but I don't know is everything about it or?
How I testing portrait mode:
- Tried with Rotation locker application
- made my app which have orientation to portrait (tested it on my tablet and on my smartphone and in emulator and in all cases app is in portrait except on MK802II).
Does anyone know what is needed to be changed to get portrait rotation? No matter locked portrait rotation or Auto rotation enable. Just possibility to rotate screen to portrait.
Are there some parameters needed to be changed or some features to be added or something else?
Are there some group of parameters considering to screen rotate?
Any luck with the rotation? Same story on the mk802 fw.
Cheers,
Martijn
Still no luck. I didn't gave up but I need to learn more about android to better understand the problem about rotation and to to prevent/allow screen rotation. That is hard way for me but only because I didn't get any help on the forums and cannot find any blog on the net who have this there written down.
I'm guessing all your previous attempts to configure or manipulate the devices screen orientation are unsuccessful probably because all these system settings, configurations and used apps rely on a hardware feedback of sum sort.
Which probably is absent on these devices.
I don't believe an android stick as this comes with a gyroscopic sensor (hardware). Thus not able to supply or react to the correct information.
I don't think its impossible though, it just needs a more low-level programatically approach.
Good luck :good:
And please share your solution if you get it solved. I can imagine more people are facing this problem.
Semi - Solution
Hello,
I have been working with one of these devices recently and also needed to display something in Portrait mode.. Alas it's locked in to landscape.
Instead, I figured out a work around. I built an application that is landscape, but the internal objects are rotated 90 degrees. The app I am working on (and hope to have in the app store soon) is a web browser kiosk style app. This application design would allow you to display something in portrait mode even if the devices is locked to landscape. Added bonus, with the way I have it set up I am able to also set it to 180 degrees or 270 degrees (this is useful if the picture needs to be flipped on a projector lets say)
Just thought I'd share what I figured out so far. I'll post the link once I have the app ready for prime time.

[Q] Weird problem with wallpaper orientation.

Hello.
I am using rom made for similar tablet to my one(ATM7029 Quad-core - SharkAndroid - after some adaptations of course), and everything works perfectly.
Alas, I am unable to set wallpaper properly - dimensions are inverted - portrait mode is used in landscape(so part of it is cut) and landscape mode is used in portrait mode(so i have lowres part of whole image cut too).
I am using 1 screen homescreen(nova) only.
How can i track and solve this issue?
I need crisp, properly set image, dammit

Fully rotate (home) screen 90 degrees

hello everyone,
I'm having a problem with the rotation of my android device and I was hoping if anyone could help me with this.
to give some backstory, I'm trying to create a magic mirror using a MK809 III B Quad-Core android stick, which uses android 4.4.2
the stick is used with a computer monitor (Samsung Syncmaster 205BW), but the monitor will be used vertically. (I'm using a HDMI>DVI-D adapter to connect the two)
because of this, I need to have the screen rotated 90 degrees in portrait mode, and android does allow you to change the rotation of the screen, but it doesn't do it well.
normally the rotation is set to landscape, but you've the option of setting the rotation of the screen, but if I set the rotation to 90 degrees, rather than actually rotating the screen with 90 degrees, it rather pushes a vertical screen in landscape mode, thus cutting off half of the screen.
so far I've tried apps such as Ultimate Rotation Control, but those do not actually rotate the screen, rather they just lock the rotation.
my question now is if anyone can help me with this problem, or tell me if it's even possible to do the thing I'm trying to do.
Any Luck?
I'm having the exact same problem with APQ8084 SOM running android 5.0.2 outputting to HDMI monitor (no accelerometer).
You would think this would be an easy problem to solve.
If I put my Winodws 10 Monitor in portrait mode, it correctly rotates screen 90 degrees end of story.
As Yusunoha mentioned, changing the user rotation in Android (via several methods):
1. using the "settings put system user_rotation 0/1/2/3"
2. modifying PhoneWindowManager.java to always return preferred rotation as "portrait"
3. Setting "persist.panel.orientation=90/270"
Does NOT result in screen rotating 90 degrees.
Instead I get a compressed portrait mode stuck inside my landscape orientation.
It's almost as if the accelerometer (which I don't have) is telling the OS to always orient towards it's perceived gravity.
Any tips rotating the entire Android Display experience (not on a per APK basis) would be wonderful.
Anyone have any ideas?
Yusunoha said:
hello everyone,
I'm having a problem with the rotation of my android device and I was hoping if anyone could help me with this.
to give some backstory, I'm trying to create a magic mirror using a MK809 III B Quad-Core android stick, which uses android 4.4.2
the stick is used with a computer monitor (Samsung Syncmaster 205BW), but the monitor will be used vertically. (I'm using a HDMI>DVI-D adapter to connect the two)
because of this, I need to have the screen rotated 90 degrees in portrait mode, and android does allow you to change the rotation of the screen, but it doesn't do it well.
normally the rotation is set to landscape, but you've the option of setting the rotation of the screen, but if I set the rotation to 90 degrees, rather than actually rotating the screen with 90 degrees, it rather pushes a vertical screen in landscape mode, thus cutting off half of the screen.
so far I've tried apps such as Ultimate Rotation Control, but those do not actually rotate the screen, rather they just lock the rotation.
my question now is if anyone can help me with this problem, or tell me if it's even possible to do the thing I'm trying to do.
Click to expand...
Click to collapse
Found any solution? Even with my rooted device and these settings it won't work. Also using usb c > hdmi > vga.

Resolution size issues with certain apps

With mate 10 lite's resolution being 1080x2160 (18:9) instead of the traditional 1080x1920 (16:9), I find that some apps (particularly clash of clans) are too blurry with standard settings applied. For some apps the phone offers the "full screen display" option, which is basically only for apps in vertical position. Due to clash of clans being displayed in portrait mode, it's really blurry up until the moment I change the DPI settings under developer options. Standard is 432 and I change it to 502. But everything becomes pretty small on the phone at that point and after the reboot, it will jump back to 432 dp. Does anyone have another solution for this non-traditional resolution size?
You could try using the adb commands in this post. I used to use it to force the resolution I wanted on my Z5premium
https://forum.xda-developers.com/z5-premium/general/root-4k-screen-resolution-t3631413
I have also noticed like you that after a restart the changes in developer options reset to default. It's pretty annoying and I can't find the any setting in build.prop to try make it permanent. It's not in the list as far as I can see.

Categories

Resources