[MOD][XPOSED] Swap Volume Keys when not in default orientation - Xposed Framework Modules

This mod will swap the Volume Down and Volume Up keys when the device is not in the default orientation mode.
Default mode can be changed in the mod settings.
Tested on my Xperia Z running the latest firmware and Xposed framework
Source available on my GitHub
Changelog:
0.1:
- Initial release.​
0.2:
- Rewrite the hook entirely, so the long press works now.​- New setting for Landscape mode as default orientation.​- French translation added.​- Rework the description a bit...​
0.3:
- Rely on the rotation angle to compute the orientation.​- Add logging setting.​
0.4:
- Support Android 4.3 and 4.4 (Thanks to @Ninja3047).​
0.5:
- Fix for 4.3 (Thanks to @Ninja3047).​
View attachment SwapVolumeKeys-0.5.apk

etatto83 said:
This mod will swap the Volume Down and Volume Up keys when the device is in Landscape mode.
Tested on my Xperia Z running the latest firmware and Xposed framework
Source available on my GitHub
View attachment 2310588
Click to expand...
Click to collapse
It worked but with some bugs... I am using a note 10.1 with default volume keys config in landscape so the module screwed it and swapped the buttons in landscape and portrait.... Maybe u can fix this with a setting and a GUI
Also when press and hold the volume buttons the up button first decreases volume and then returns to increasing it

I used to think swapping the volume keys was only usefull for phone, but you're right : I'm gonna add a setting for default mode.
Yep, long press is not swapped :-/ …
Envoyé depuis mon C6603 avec Tapatalk 4

New 0.2 release...

etatto83 said:
I used to think swapping the volume keys was only usefull for phone, but you're right : I'm gonna add a setting for default mode.
Yep, long press is not swapped :-/ …
Envoyé depuis mon C6603 avec Tapatalk 4
Click to expand...
Click to collapse
Downloaded and gonna reboot to try updates

:-#
Envoyé depuis mon Xperia Z avec Tapatalk 4

I love this. Only problem I noticed is that in only works on one side of the phones' landscape made, but If I switch to the other side it stays on the other side. Please allow it to work with both sides of landscape mode.
Sent from my LG-E980 using Tapatalk 4

etatto83 said:
:-#
Envoyé depuis mon Xperia Z avec Tapatalk 4
Click to expand...
Click to collapse
I tried it and worked perfectly nice work :good:
ahrion said:
I love this. Only problem I noticed is that in only works on one side of the phones' landscape made, but If I switch to the other side it stays on the other side. Please allow it to work with both sides of landscape mode.
Sent from my LG-E980 using Tapatalk 4
Click to expand...
Click to collapse
I was gonna suggest this also if it's applicable .... To make it work in the four rotation ways

Well, why not, even I always disabled reverse portrait and reverse landscape on my phones & tablets : I don't see the point to have all-orientation rotation You either hold your phone in portrait (most of the time, when calling, on some car dock) or in landscape (desk dock, car dock, watching movies, ...).
Nevertheless, I'm adding it to my TODO.

Awesome, dude! Had been missing this feature so much after coming back from CM10.1 to stock. Thanks a lot.

etatto83 said:
Well, why not, even I always disabled reverse portrait and reverse landscape on my phones & tablets : I don't see the point to have all-orientation rotation You either hold your phone in portrait (most of the time, when calling, on some car dock) or in landscape (desk dock, car dock, watching movies, ...).
Nevertheless, I'm adding it to my TODO.
Click to expand...
Click to collapse
That would be good as when I'm writing usin Spen i put it in reverse portrait to keep the light sensor away from my right hand :good: .... Nice work Man

New 0.3 release
Please note : If the phone/tablet doesn't detect the rotation, the keys will act as in the previous orientation, which means : For exemple, my Xperia Z on stock rom doesn't acknowledged the 180° rotation (ie. reverse portrait), so if the previous rotation was 0° (ie. portrait), the keys act as in portrait...

etatto83 said:
New 0.3 release
Please note : If the phone/tablet doesn't detect the rotation, the keys will act as in the previous orientation, which means : For exemple, my Xperia Z on stock rom doesn't acknowledged the 180° rotation (ie. reverse portrait), so if the previous rotation was 0° (ie. portrait), the keys act as in portrait...
Click to expand...
Click to collapse
That worked perfectly man :good:

works great on the Galaxy Note 8.0
Now only if someone can come up with a Xposed mod to do the same with the Capactive keys (turning off in landscape and on in portrait)

is there an exposed module that makes volume rocker wake phone, like power button?

maverickronny said:
is there an exposed module that makes volume rocker wake phone, like power button?
Click to expand...
Click to collapse
You may try exposed additions mod

v0.3 works great on Galaxy S4 Google Edition.. I didn't have to play with any settings. Both landscape directions turn the volume up now when I press whatever physical volume button happens to be on the right. The stock launcher doesn't do "upside down portrait mode", so I couldn't test that one out.

Scorpion_Ibm said:
You may try exposed additions mod
Click to expand...
Click to collapse
thanks mate

I am using a Nexus 10 running 4.3. Unfortunately, this module does not affect the volume buttons. They do not change in any way from portrait to landscape. Suggestions?

Are you using any other xposed mods ?
Have you checked "Landscape as default mode" in Setting ? I think Landscape is the default orientation on Nexus 10
Evently, could you please activate the logging and do some simple tests :
- In portrait : 1 press on Volume Up, 1 press on Volume Down,
- In lanscape : same,
- In reverse portrait : same,
- In reverse landscape : same,
Then send me the xposed log located in /data/data/de.robv.android.xposed.installer/debug.log

Related

[Q] Auto-rotation not working on iconia A500!?!

i have Iconia A500.. it don't auto rotate on UI or any app..
But accelerometer works well for NFS shift.. its rooted.. but not ClockworkModed..
install newly EUUs_SBK_Acer_A500_1.016.05_COM_GEN1 (Ohh have to mention I had 3.2.1 and downgrade to 3.0.1 and i got some problem and i install this EUUs from PC, now it working charm) (from the first (3.2.1 and after 3.0.1) Auto-rotation didn't work) ..
And put a mod for 3g and Ad-hoc.. that all i did (new menus in wireless came name network, but 3g didn't work yet, and ad-hoc working well)..
please help me on this.. When the physical rotation key on/off it displaying rotaion lock on/off.. thats all. (And sceen all ways up side down on UI. But not in games(NFS) and when booting image tab(acer, android display correct side ))
And there is no setting like Auto-rotation on in display settings
Im noob for android.. learn everything in yesterday (rooting and everything).. but i cannot solve this by google it)
help me please for rotation case!! ...!!! (tried applications in android market to on/off rotation no luck )
in market a application for testing accerolmeter is there and also to manual rotate ie forcefully rotate a screen
dlcookie said:
in market a application for testing accerolmeter is there and also to manual rotate ie forcefully rotate a screen
Click to expand...
Click to collapse
i used to accelerometer tester.2 test my accelerometer... it shows only one way which my tab's UI side.. But work left and right (there is a ball to center it bt i cant do it)..
that mean if X Y Z are the axis one axis not work i think its Y... But how it happend
dlcookie said:
in market a application for testing accerolmeter is there and also to manual rotate ie forcefully rotate a screen
Click to expand...
Click to collapse
i just download old school snakes.. And when i try to use it in with Accelerometer it gives force close (process.klemp.snake).. but with touch it works..

[Q] Landscape lockscreen without root?

Wondering if anyone knows a way to force the lockscreen into landscape?
I mount the XZU in landscape in my car and I can force the device to landscape for everything I need but if it turns off, it comes back into a portrait lockscreen.
Any way to do this?
RaindancerAU said:
Wondering if anyone knows a way to force the lockscreen into landscape?
I mount the XZU in landscape in my car and I can force the device to landscape for everything I need but if it turns off, it comes back into a portrait lockscreen.
Any way to do this?
Click to expand...
Click to collapse
have you tried Adaptive Rotation Lock from the market? it forces my Note 2 lockscreen into landscape. however i don't think it works on the Galaxy S4, so i guess it depends on the device..
Worked great, thanks! I needed to reboot to get it to work.
I'm glad to know this works on the Ultra Z as I ponder getting the device myself
yogi2010 said:
I'm glad to know this works on the Ultra Z as I ponder getting the device myself
Click to expand...
Click to collapse
I'm enjoying the XZU greatly and this was one of very few stumbling blocks. Using this app, just ensure that the "lock screen on portrait" option is unchecked and that "auto start" is checked them give it reboot after install and setup.
RaindancerAU said:
I'm enjoying the XZU greatly and this was one of very few stumbling blocks. Using this app, just ensure that the "lock screen on portrait" option is unchecked and that "auto start" is checked them give it reboot after install and setup.
Click to expand...
Click to collapse
Cool, I'm hoping the U.S. Sony stores will get the C6806 model in so I can go actually see it and see just how big it is, and if it would fit in my pocket lol.
lmemma16 said:
have you tried Adaptive Rotation Lock from the market? it forces my Note 2 lockscreen into landscape. however i don't think it works on the Galaxy S4, so i guess it depends on the device..
Click to expand...
Click to collapse
Just perfect, working very well. Even got paid version for get ride of the icon ^^
Envoyé depuis mon C6802 avec xda premium 4
I'm glad it's working for you guys, it's a nice app with a simple interface. Good idea too ^ getting rid of the icon by supporting the developer

Volume Rocker Screen Wake

Hello all Xperia Ultra lover I have tried and installed many exposed module and applications to get wake screen by volume keys without any success.
Even tried Keymapper to MOD default key configuration without any luck.:crying:.
Now just found really nice utility works with Exposed which wake the screen by volume buttons.
All credit goes to developer of this application. I am just sharing here so please thank him as well.
Using it since 4 days no any problem working like a charm.
You can download this module from here attached or you can download from download section of your xposed application.
After activating and rebooting just open application go to last menu other mod and activate volume screen wake reboot and you are done.:laugh::fingers-crossed::fingers-crossed:
Great find. But does it work with JB as in xposed repo it says some features dont work on JB.
Currently I am using Auto screen on which automatically wakes the screen when I open the flip cover. So even my vol buttons are not prone to wear and tear
Nevertheless will give this a try too.
techpal said:
Great find. But does it work with JB as in xposed repo it says some features dont work on JB.
Click to expand...
Click to collapse
Yes mate it works I have latest 4.3 JB ON MY Ultra, and is working great.
Sent from my C6833 using Tapatalk 2
jasminthoria said:
Yes mate it works I have latest 4.3 JB ON MY Ultra, and is working great.
Sent from my C6833 using Tapatalk 2
Click to expand...
Click to collapse
Thanks again. Will definitely try this then.
jasminthoria said:
Hello all Xperia Ultra lover I have..... just found really nice utility works with Exposed which wake the screen by volume buttons....
Click to expand...
Click to collapse
this seems to be v1.3.1. the current version is v1.5.6 Beta. have you or anyone else updated to the latest? does the "wake screen by volume keys" feature still work?
m0han said:
this seems to be v1.3.1. the current version is v1.5.6 Beta. have you or anyone else updated to the latest? does the "wake screen by volume keys" feature still work?
Click to expand...
Click to collapse
Work in 4.4.2
Thank you for this tip. Working with 4.4.4
need root?
just install the latest apk and turn on the wake up function ..after rebbot..
still not work
(stock rom without root 4.4.4)

[MOD][XPOSED][4.1+] Sequence Unlock V1.6 [18/2/2015]

Introduction:
Sequence unlock is an Xposed module which allows you to unlock your phone with a sequence of volume keys (Example: U U D ).
With this module you can unlock your phone in a simple and nifty way and avoid using the default android lockscreen altogether.
You will need to set up a sequence of your choice in the module settings. The default sequence is: U U U
Features include:
Unlock device even when the screen is off.
Disable default wake buttons (Power button, home button etc.)
Bypass the android screenlock
Compatibilty:
This app is compatible with 4.1+ AOSPish devices only (excluding lollipop).
Tested devices:
Sony Xperia 4.2
Samsung Galaxy S3 4.4 (CM11)
BUGS:
Sequence Unlock is currently not compatible with the Physical button music control module.
Download:
Note: I had to change the package name to differentiate the module from it's PRO version. Sorry for the inconvenience.
http://repo.xposed.info/module/com.mb14.sequenceunlock.lite
PRO version:
You can buy the PRO version available on Google Playstore to support development (Being a college kid, I don't earn much).
It comes with extra features like:
Set sequence timeout interval
Vibrate on failed unlock attempt
Changelog
Code:
Changelog:
1.6
Fixed deep sleep bug
1.5
Added support for OPO CM11S.
Fixed magnetic lid wake bug.
Miscellaneous bug fixes
1.4
Fixed the lock screen bypass bug
1.3
Initial release
WOW! nice one! But do I need to wake up the screen in order to unlock or i just press sequence of the volume button?
a4apple said:
WOW! nice one! But do I need to wake up the screen in order to unlock or i just press sequence of the volume button?
Click to expand...
Click to collapse
You don't need to wake up the device to unlock. You can enter the sequence even when the screen is off
You will be my saviour!!!
my so called college sometime checks whether the device is in switch off mode or not...
this module will help me to set a pattern to wake !!!!
YAY!!! Hell Yeah
What happens when you're playing a song? Can you still unlock?
Sent from my SM-G900F using XDA Premium 4 mobile app
aHecticLife said:
What happens when you're playing a song? Can you still unlock?
Sent from my SM-G900F using XDA Premium 4 mobile app
Click to expand...
Click to collapse
You can unlock the phone even if music is playing in the background. But the keys pressed will affect the volume of your music app.
So it isn't compatible with Lollipop yet? Is it?
Ciao600 said:
So it isn't compatible with Lollipop yet? Is it?
Click to expand...
Click to collapse
It won't work on lollipop as of now but I'll release an update as soon as possible.
not working on Xperia Z stock 4.4.4
Bn 292. Only turns screen on, no unlock. Also not compatible with "physical button music control" module (sequence module only works with that module disabled)
mb-14 said:
You can unlock the phone even if music is playing in the background. But the keys pressed will affect the volume of your music app.
Click to expand...
Click to collapse
Sebi673 said:
Bn 292. Only turns screen on, no unlock. Also not compatible with "physical button music control" module (sequence module only works with that module disabled)
Click to expand...
Click to collapse
Almost every phone has the physical button music control, poweramp integrated that aww man.
Did you try it? He's talking about the xposed module "physical button music control". So chances are it works with music players that use these controls.
Sent from my Boeffla powered Slim GT-I9300
Sebi673 said:
Bn 292. Only turns screen on, no unlock. Also not compatible with "physical button music control" module (sequence module only works with that module disabled)
Click to expand...
Click to collapse
I've fixed the lockscreen unlocking bug in version 1.4. As for the incompatibility with the Physical button music control module, I'll try fixing the bug and release an update as soon as possible.
Working like a charm with MT6572 phone :good:. Every function is working great (including unlock from deep sleep)! This is some cheap non-branded china phone with Android 4.2 just for you to know.
Edit: It is also working with Galaxy Gio (s5660) on CM11 (Android 4.4.4). (Including unlock from deep sleep).
mb-14 said:
I've fixed the lockscreen unlocking bug in version 1.4. As for the incompatibility with the Physical button music control module, I'll try fixing the bug and release an update as soon as possible.
Click to expand...
Click to collapse
Awesome I'll test it and report any found bugs. Physical button music ctrl Module doesnt have mapping over single volume button click, yet it somehow breaks functionality as it follows - when phone is in dock - volume buttons act as Wake trigger (only when docked - native behaviour) but with that module nothing happens on vol but. press. And while Phys. but. M Ctrl was activated, Sequence Unlock wasn't functional. If you need any logs or feedback let me know.
---------- Post added at 11:09 AM ---------- Previous post was at 11:04 AM ----------
aHecticLife said:
Almost every phone has the physical button music control, poweramp integrated that aww man.
Click to expand...
Click to collapse
I was talking about the module named "physical button music control". Still i'm gonna wait for the update. Really interested in the sequence unlock
mb-14 said:
It won't work on lollipop as of now but I'll release an update as soon as possible.
Click to expand...
Click to collapse
thanks man am waiting u :good:
Update on 1.4.
With bypass option, module now unlocks the screen - Xperia Z stock rom A 4.4.4 bn 292 Odexed.
Yet it only unlocks if the screen is ON - courtesy of PBMC module. I also tried playing with the settings and mappings of PBMC but no success. The issue lies in the Capture Mode - If Screen off + Lockscreen selected, - then Sequence module will not work at all. If Screen Off only, then Sequence U. will work with screen ON + lockscreen. So issue is in PBMC and its button capture mode (even if no custom option is set for volume up/down click)
would be great if you will add features such as, long press for flashlight or camera, sequence for open specific apps...
other than that, great module, keep it coming..
working great on note 2..rom dn4 :good::good:
edit : its only working right after i lock the phone...not working after phone deep sleep..
I like the idea. Will be waiting for Lollipop support.

auto rotation

Is it possible using app like setting datebase editor to change setting to allow full 360 rotation on a non rooted/bootloader locked phone?
I'm currently using auto rotation app which can and is working fine, but I hate the fact it shows in notifications, (if you don't keep notifications system kills the app and won't fully rotate).
I have had a look at setting datedase editor but can't see anything directly but I as I'm not that tech knowledgeable I could be missing something in the app.
I have used this app to disable touch mode(when top sensor is coved by hand/case)
Any advice help much appreciated.
Thanks.
Zolaisugly
Yes need to have rotation to home screen even Samsung works perfectly for that.
Tapatalk
Sebastiii said:
Yes need to have rotation to home screen even Samsung works perfectly for that.
Tapatalk
Click to expand...
Click to collapse
Could you give me a little more details.
I have it set to rotate but it doesn't rotate complete 360° unless I use rotation app.
Sorry I surely misunderstanding you.
On my side rotation didn't works on home screen but on app yes.
In fact I didn't test 360. It's more 90 then for me.
And home rotation works for samsung.
I did notice that if app is rotated in landscape and I'm going to home I can see that home is correctly rotated for less than one sec so it can works but Huawei is bugged or it's intentional.
On my mate 10 pro it was worked on first earlier firmware and was broken quickly after.
On mate 20 pro it's never worked.
On Nova launcher for ex it's works.
Tapatalk
I also see the correctly rotated screen for a second!
Sebastiii said:
Sorry I surely misunderstanding you.
On my side rotation didn't works on home screen but on app yes.
In fact I didn't test 360. It's more 90 then for me.
And home rotation works for samsung.
I did notice that if app is rotated in landscape and I'm going to home I can see that home is correctly rotated for less than one sec so it can works but Huawei is bugged or it's intentional.
On my mate 10 pro it was worked on first earlier firmware and was broken quickly after.
On mate 20 pro it's never worked.
On Nova launcher for ex it's works.
Tapatalk
Click to expand...
Click to collapse

Categories

Resources