FORUMS
Remove All Ads from XDA

[ICS][P] Forced Screen Rotation Mod 1.6.1

478 posts
Thanks Meter: 612
 
By Xspeed, Senior Member on 31st March 2016, 07:21 PM
Post Reply Email Thread
Hi again! I've got another module for you all

This simple module makes the device "think" it's held in a certain orientation.

How does that help you?
Well, have you ever tried to read something in landscape mode while lying on your side?
I did, and I failed, because the screen rotated back.

Brilliant! But, how does this module work?
It basically disables systems' orientation sensor listeners (more battery juice side-effect?) and feeds it fake data.

Won't having the device always rotated be a pain in the arse?
No worries! Here's the best part: if you turn off auto-rotation (via quicksettings, for example), the device remains in it's original mode.
And, if you don't have quicksettings, you can make a shortcut on your homescreen from this app which does exactly that.
So, it's easily toggleable

Compatible with all Android versions from 4.0.3 'Ice Cream Sandwich' to 9.0 'Oreo'.

Credits:
Xposed Framework: rovo89 & Tungstwenty
Testing: DallasBelt

Download: Fixed Screen Rotation Mod on Xposed Module Repository
If you found this mod useful consider donating me a coffee, this will help me code ^^

How to report problems efficiently?
- Enable the Debug log in settings
- Use functions that don't work as intended
- Export the logs from Xposed app and put them on PasteBin
- Post on the XDA thread the link along with more information about your device

XDA:DevDB Information
Forced Screen Rotation Mod, Xposed for all devices (see above for details)

Contributors
XspeedPL
Source Code: https://github.com/XspeedPL/ForcedRotationMod

Xposed Package Name: xeed.xposed.fxrmod

Version Information
Status: Stable
Current Stable Version: 1.6.1
Stable Release Date: 2019-03-10

Created 2016-03-31
Last Updated 2019-03-09
The Following 4 Users Say Thank You to Xspeed For This Useful Post: [ View ] Gift Xspeed Ad-Free
 
 
31st March 2016, 09:50 PM |#2  
Xspeed's Avatar
OP Senior Member
Thanks Meter: 612
 
Donate to Me
More
Quote:
Originally Posted by Jm_Willing

Nice, but after I tested it I uninstalled it but unfortunately the device doesn't behave stock like so I think the settings persist even if you uninstall the module. Could you please look into that? Thanks in advance!

After uninstalling you need to reboot for it to take effect. Just like with installing.
The Following User Says Thank You to Xspeed For This Useful Post: [ View ] Gift Xspeed Ad-Free
31st March 2016, 10:09 PM |#3  
Xspeed's Avatar
OP Senior Member
Thanks Meter: 612
 
Donate to Me
More
Quote:
Originally Posted by Jm_Willing

Even after reboot it's still activated.

lol, if you uninstalled it and rebooted it isn't possible for it to work.
And since this module doesn't do any permanent changes, it must be something else.
The Following 2 Users Say Thank You to Xspeed For This Useful Post: [ View ] Gift Xspeed Ad-Free
31st March 2016, 10:10 PM |#4  
Zak1997's Avatar
Senior Member
Flag annaba
Thanks Meter: 58
 
More
Thanks alot, working great in my lg lbello runing 5.0.2
Can you added an option to whitelist apps?
The Following User Says Thank You to Zak1997 For This Useful Post: [ View ] Gift Zak1997 Ad-Free
31st March 2016, 10:16 PM |#5  
Xspeed's Avatar
OP Senior Member
Thanks Meter: 612
 
Donate to Me
More
Quote:
Originally Posted by Zak1997

Thanks alot, working great in my lg lbello runing 5.0.2
Can you added an option to whitelist apps?

Sure, no problem
The Following User Says Thank You to Xspeed For This Useful Post: [ View ] Gift Xspeed Ad-Free
31st March 2016, 10:27 PM |#6  
Zak1997's Avatar
Senior Member
Flag annaba
Thanks Meter: 58
 
More
Quote:
Originally Posted by XspeedPL

Sure, no problem

Great, tnx, you rock
The Following User Says Thank You to Zak1997 For This Useful Post: [ View ] Gift Zak1997 Ad-Free
31st March 2016, 10:33 PM |#7  
Greedybro's Avatar
Senior Member
Thanks Meter: 15
 
More
I'm sorry to ask, but i'm not sure to understand.

Isn't it the same to turn off screen rotation when you want it to remain in portrait, and disable when landscape is needed ?
I use this method cause i like my screen not to turn when i'm moving or lying on my side, and turn on rotation when I need to, for seeing a photo per exemple.



Sent from my Nexus 5X using XDA-Developers mobile app
The Following User Says Thank You to Greedybro For This Useful Post: [ View ] Gift Greedybro Ad-Free
31st March 2016, 11:43 PM |#8  
Xspeed's Avatar
OP Senior Member
Thanks Meter: 612
 
Donate to Me
More
Quote:
Originally Posted by Greedybro

I'm sorry to ask, but i'm not sure to understand.

Isn't it the same to turn off screen rotation when you want it to remain in portrait, and disable when landscape is needed ?
I use this method cause i like my screen not to turn when i'm moving or lying on my side, and turn on rotation when I need to, for seeing a photo per exemple.

Is there such functionality? Neither my Xperia Z 5.1 or Nexus 6P 6.0 can do that.
No matter if my devices are in portrait or landscape when I disable auto-rotation it just goes back to portrait.
The Following User Says Thank You to Xspeed For This Useful Post: [ View ] Gift Xspeed Ad-Free
31st March 2016, 11:51 PM |#9  
gordonpn's Avatar
Senior Member
Flag Montreal, QC
Thanks Meter: 145
 
More
Quote:
Originally Posted by XspeedPL

Is there such functionality? Neither my Xperia Z 5.1 or Nexus 6P 6.0 can do that.
No matter if my devices are in portrait or landscape when I disable auto-rotation it just goes back to portrait.

Usually when you turn off rotation lock and out your phone in landscape, you can lock it again but this time in landscape!
1st April 2016, 12:10 AM |#10  
Xspeed's Avatar
OP Senior Member
Thanks Meter: 612
 
Donate to Me
More
@gordonpn After doing some proper research I found this TechRepublic article.
It turns out it's not present on all devices out of the box and not on older Androids at all.
Tomorrow, along with app whitelisting, I'll add Gingerbread support too. I hope more people will find this module useful then.
The Following 4 Users Say Thank You to Xspeed For This Useful Post: [ View ] Gift Xspeed Ad-Free
1st April 2016, 09:30 PM |#11  
Senior Member
Thanks Meter: 56
 
More
could this force landscape mode on apps that doesn't allow it? TIA!
Post Reply Subscribe to Thread

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

Advanced Search
Display Modes