I'm looking for help in development, not general chitchat. If you don't know anything about coding or have anything new to add to this thread please do not post at all! Thanks for your cooperation!
Hello alltogether
I digged into the Lollipop code to look for a solution to restore the old Kitkat silent mode in Lollipop with Xposed.
I stumbled about something interesting:
Github: VolumeZen: combine ringer/notification volume and zen.
Google explicitly mentioned the silent mode here:
They introduced a new variable:
There are only 3 results regarding this on Google, so I guess I'm the first to find it :D
My first attempt thus was to change this with Xposed. Unfortunately the variable is final and gets inclinded so you can't just hook and replace the ressource with Xposed. So I'm attempting to replace the methods in question.
Here is my current work-in-progress code.
It does seem to work to some extent, after going to the vibrate mode another Vol- press does... something. Unfortunately it activates the priority mode (and breaks the interface a bit) rather than the silent mode.
Now I'm wondering if there's a problem in my code - this is the first time I'm using Xposed, just studied the documentation a couple hours ago, so it is quite possible.
If not.. then my attempt does seem to be wrong. By now I've tried a couple other things like hooking the ZenModeHelper, messing with the vibration status and a couple others, but so far this didn't lead me anywhere.
The AudioManager code is quite complex, maybe I'm missing the needle in a haystackand someone can tell me a better place to archive what I'm intending?
Some additional information regarding silent mode:
Thanks!
Hello alltogether
I digged into the Lollipop code to look for a solution to restore the old Kitkat silent mode in Lollipop with Xposed.
I stumbled about something interesting:
Github: VolumeZen: combine ringer/notification volume and zen.
Google explicitly mentioned the silent mode here:
Quote:
- Don't allow volume changes to set ringer mode silent. |
Code:
/** Allow volume changes to set ringer mode to silent? */
private static final boolean VOLUME_SETS_RINGER_MODE_SILENT = false;My first attempt thus was to change this with Xposed. Unfortunately the variable is final and gets inclinded so you can't just hook and replace the ressource with Xposed. So I'm attempting to replace the methods in question.
Here is my current work-in-progress code.
It does seem to work to some extent, after going to the vibrate mode another Vol- press does... something. Unfortunately it activates the priority mode (and breaks the interface a bit) rather than the silent mode.
Now I'm wondering if there's a problem in my code - this is the first time I'm using Xposed, just studied the documentation a couple hours ago, so it is quite possible.
If not.. then my attempt does seem to be wrong. By now I've tried a couple other things like hooking the ZenModeHelper, messing with the vibration status and a couple others, but so far this didn't lead me anywhere.
The AudioManager code is quite complex, maybe I'm missing the needle in a haystackand someone can tell me a better place to archive what I'm intending?
Some additional information regarding silent mode:
- No, the new "none" or "priority" modes are not substitutes.
None: When you activate None you're alarms are turned off and your LED won't display anything.
Priority: When you activate the priority mode without any priority interruptions you a) still won't have any LED notifications and b) totally loose on the real intention of the priority mode to actually let some notifications pass (like calls) - but not all. - There is a bug which you can use to actually activate the silent mode on the Nexus 5 (and possibly other devices):
Bring your volume all the way down (= set it to vibrate only), then press VolUp once. Now reboot, voila you're in silent mode.
Unfortunately you need to repear the reboot everytime you changed the notification volume.
And funny incident, after my tests with Xposed this doesn't seem to work anymore, I will try with a full wipe again later on. - Afaik tablets do NOT have this restriction and can use the silent mode. Any confirmations? If yes, does this apply for both Wifi and LTE tablets?
This actually is strange as I couldn't find any differences in the code for tablets - except maybe regarding the getMasterStreamType (that's why I'm asking about LTE/wifi)
Thanks!
The greatest quality deer velvet extract has been acquired
RépondreSupprimerby your research and imported it.
Here is my webpage - garcinia cambogia free trial australia (Pete)