S905X4 Mediabox - Switch/Force apps to run in TV layout

Search This thread

d0kker

New member
Mar 30, 2023
2
0
Hey everyone! We've bought a lot of Android mediaboxes with Amlogic S905X4. Unfortunately, all of them came without an "AndroidTV emulation", thus all of the apps are running in a tablet layout and expects a touchsreen, while all that we have is a tv remote (As you can imagine, highly impractical). The mediabox is rooted. Is there a way to force apps to run in TV layout? Thanks for the answers!
 
Last edited:

xXx yYy

Senior Member
Feb 4, 2017
1,457
6
277
It's possible to override the default screen orientation by disabling accelerometer rotation and setting user rotation in the system settings database.

On Android console you enter the commands

Code:
su
sqlite3 /data/data/com.android.providers.settings/databases/settings.db
insert into system (name,value) values('accelerometer_rotation',0);
insert into system (name,value) values('user_rotation',1);
.exit

Info:
  • user_rotation 0 -> ROTATION_0
  • user_rotation 1 -> ROTATION_180
  • user_rotation 2 -> ROTATION_270
  • user_rotation 3 -> ROTATION_90
 

d0kker

New member
Mar 30, 2023
2
0
It's possible to override the default screen orientation by disabling accelerometer rotation and setting user rotation in the system settings database.

On Android console you enter the commands

Code:
su
sqlite3 /data/data/com.android.providers.settings/databases/settings.db
insert into system (name,value) values('accelerometer_rotation',0);
insert into system (name,value) values('user_rotation',1);
.exit

Info:
  • user_rotation 0 -> ROTATION_0
  • user_rotation 1 -> ROTATION_180
  • user_rotation 2 -> ROTATION_270
  • user_rotation 3 -> ROTATION_90
Thanks for the answer, I haven't made myself clear - I'm not talking about screen rotation, the problem is that the app layout is set to "tablet", not "tv", so the app "expects" a touchscreen, while all that we have is a tv remote, thus highly impractical. Sorry for the confusion