yashsingh1/xdaforums huggingface dataset:
[Xposed Framework Modules] tuniel:
proximity wake up / active screen

Hi all,

i have a couple of questions about proximity wake up and active screen:

if i set the option for using proximity sensor to control the wake up and reboot, i would expect that, with the proximity sensor covered (i.e. reading 255) if i press the power button the screen shouldn't turn on. am i correct? (actually when i try, the screen turns on regardless of the proximity sensor being covered)

related to the above: if i enable active screen, again i would expect that when the proximity sensor is covered and i get a notification, the screen should be kept off, instead it turns on.

am i missing something/doing something wrong?

logcat and xposed log attached - last email recieved was with proximity sensor covered

thanks
[Xposed Framework Modules] ahow628:
Unless you are using the Google Play Edition of the M8, your device is unsupported and there are things from Gravity Box that probably won't work.

Please read the first post, specifically the red part about compatibility.
[Xposed Framework Modules] marvi0:
The none intrusive feature is great. However iis their anyway at all of at least seeing who is calling because it just shows the number without the contact or am I missing something?
[Xposed Framework Modules] IgorEisberg:
Bro, for this module's unlock ring mods to work properly on Xperia KitKat ROMs, please implement this fix.

In ModLockscreen.java, change:

XposedHelpers.findAndHookMethod(mGlowPadView.getClass(), "showTargets",
boolean.class, glowPadViewShowTargetsHook);

to:

if (Utils.isXperiaDevice()) {
XposedHelpers.findAndHookMethod(mGlowPadView.getClass(), "showTargets",
boolean.class, int.class, glowPadViewShowTargetsHook);
}
else {
XposedHelpers.findAndHookMethod(mGlowPadView.getClass(), "showTargets",
boolean.class, glowPadViewShowTargetsHook);
}

And in ModNavigationBar.java, change:

XposedHelpers.findAndHookMethod(glowPasViewClass, "showTargets", boolean.class, new XC_MethodHook() {
@Override
protected void beforeHookedMethod(MethodHookParam param) throws Throwable {
if (param.thisObject == mGlowPadView) {
if (mNavbarVertical && !isGlowPadVertical()) {
rotateRingTargets();
}
}
}
});

to:

XC_MethodHook glowPadViewShowTargetsHook = new XC_MethodHook() {
@Override
protected void beforeHookedMethod(MethodHookParam param) throws Throwable {
if (param.thisObject == mGlowPadView) {
if (mNavbarVertical && !isGlowPadVertical()) {
rotateRingTargets();
}
}
}
};
if (Utils.isXperiaDevice()) {
XposedHelpers.findAndHookMethod(glowPasViewClass, "showTargets", boolean.class, int.class, glowPadViewShowTargetsHook);
}
else {
XposedHelpers.findAndHookMethod(glowPasViewClass, "showTargets", boolean.class, glowPadViewShowTargetsHook);
}

Explanation:

The module fails because of an error: showTargets(boolean) doesn't exist. That's because in Xperia's KitKat ROM, it's actually showTargets(boolean, int).
[Xposed Framework Modules] C3C076:
Probably related to proximity sensor ranges. API for prox sensor handling contains function for finding out max range but there's no function for min range (when prox sensor is covered). So I use logic that I assume prox sensor is covered when reported value is less than 10% of max range which works in the most cases. Although your device might not be officially supported you could download some prox sensor app and post what values prox sensor reports when covered and when uncovered. According to that info I will be able to make another adjustments to the logic.

It does for me on Nexus 5 running stock kitkat. What's your setup?

Sorry but there may be other parts requiring adjustments. I am not keen on doing this kind of blind work I cannot test myself (especially when we are dealing with a device not officially supported). The best would be for you to grab the source code, make necessary adjustments you mentioned, test them, and if it works as expected, send a pull request of your commit to the official GB repository.
[Xposed Framework Modules] gregorina:
awesome. Thanks!!!!

edit: I'm playing with the active screen mode now and even if the proximity sensor is covered, the screen still turns on. Downloaded an app to test if the sensor is still working, and it's fine. My phone is the s4 running a GPE rom, so i know my device isn't supported and I know someone else posted about this earlier, but just wondering if anyone tried this feature on the galaxy s4? Thanks.

edit: The app i downloaded shows 8.0cm when uncovered and 0.0cm when covered. There aren't any other intermediate values.
[Xposed Framework Modules] tuniel:
There is a built in proximity sensor checker in the kernel I use.

Free sensor pooling is around 7, while covered sensor pooling is 255.

Hope this helps

Thanks!
[Xposed Framework Modules] C3C076:
Scratch that. Just realized after reading your post again. Does your sensor really report greater value when covered than when uncovered? Strange enough...
[Xposed Framework Modules] tuniel:
Yes, it does. 7 when uncovered, 255 when covered. this with the kernel built in functionality

Edit I downloaded proximity sensor finder and I also have either 8cm (free) or 0cm (covered) which is strange, because the kernel functionality shows intermediate values as well

---------- Post added at 08:29 PM ---------- Previous post was at 08:28 PM ----------

I got the same problem on the same phone...
[Xposed Framework Modules] IgorEisberg:
Blind testing? Dude, I already tested it and I confirm it works... You don't recognize me do you?

I'm just new to GitHub. I submitted 2 pull requests.
[Xposed Framework Modules] C3C076:
Actually, I don't. Sorry. Feel free to refresh my bad memory.

Thanks for the commits, though. I'll go through them tomorrow.
[Xposed Framework Modules] C3C076:
Even stranger. Prox finder shows 5cm and 0cm on my device. Those are exactly the same numbers I'm getting within GB. So logic that's currently in GB should work for your case, too (8cm, 0cm). The question is if your sensor is able to deliver value within 500ms after sensor has been activated.

It's also possible that the very first initial value that sensor reports might not be the correct one.
[Xposed Framework Modules] C3C076:
[MENTION=2019516]tuniel[/MENTION]

Attached is a version with debug logging turned on.

Please, test proximity wake up feature with it and post xposed log. Thanks.
[Xposed Framework Modules] IgorEisberg:
No wonder, since you don't use a Sony phone xD

XperiFirm, check the link in the signature.
[Xposed Framework Modules] banesi:
is it possible to change bit rate for audio recordings?
[Xposed Framework Modules] dtaluthge:
Quick tiles not showing

I'm using xperia z1 Kk 4.4.4 (.108) firmware UL bootloader rooted deodexed In status bar setting up new quick tiles aren't working but everything else such as dragging from coner to open quicktiles works. Here I'm attaching the log file link http://pastebin.com/J8SYE564
[Xposed Framework Modules] radz_:
This module is great.. no need to reboot if make changes...

I hope you can also add tweaks for additional bars signal.. default is just 4.. i would like to have 5 or 6...lol

I just like it...
[Xposed Framework Modules] MBFingerhut:
Lockscreen tweaks

I just upgraded to 3.4.2 and went to add a target to my lockscreen ring and I can't find the Lockscreen Tweaks menu. I wasn't sure if this was a conscious change to remove it, or a bug. So I thought I'd ask first before filing a bug report. If it was intentional, how can I manage the items already in the ring as there are no settings I can edit?
[Xposed Framework Modules] Pkt_Lnt:
Please read post #1 about supported roms. Pay close attention to the section in compatibility written in red. Also read what it says about fixes for unsupported incompatible devices.
[Xposed Framework Modules] nitramus:
No matter what I do I still cannot access my quick settings. I have stock rom on Nexus 5. I hav "notification mod" that allows me to access status bar but because of gb I can't access qs even when status bar policy is set to default.
[Xposed Framework Modules] yochananmarqos:
Greetings avid users. I'm in the process of creating a GravityBox guide on my new website. I've been using GB for over a year from the original JB thread days. Since our beloved dev doesn't have time to create a comprehensive FAQ himself, I've decided to help out with that. I've already come up with a few common questions we always see, but I'm having trouble thinking of any others that may have arisen. Rather than poring over a thousand pages, perhaps some of you can think of some.

Here's what I have so far. Main focus is on the FAQ:

Welcome to GravityBox

GravityBox Introduction

GravityBox Installation

GravityBox FAQ

Please PM me with any ideas & suggestions. Thanks!
[Xposed Framework Modules] C3C076:
This hasn't been released, yet.

It's really nice to see such a great progress there. Your contribution and dedication is really appreciated.

Btw, is there any way for me to send a donation for your work? And of course to all others involved?
[Xposed Framework Modules] tuniel:
Here you go, I hope it helps
[Xposed Framework Modules] C3C076:
Thanks. Value ranges are perfectly OK.

But it seems to me that your prox sensor always sends max distance as a very first value regardless whether it is covered or not.

Unfortunately, this is something that can't be worked around. This feature needs to be fast and we don't have enough time to wait for more values to come. Moreover, devices where prox sensor behaves as expected (the first value received reflects actual state) won't receive any other value until state changes which makes any logic based on subsequent value analysis a no go...

What you could do. In case you use a custom kernel, you could consult with the kernel dev to verify prox sensor behavior I am mentioning above.
[Xposed Framework Modules] yochananmarqos:
Thanks for the encouragement. It's only me so far and one friend who created the installation video. I've got a couple others interested who want to help, so hopefully we'll have more in the future. Also, I'll be quoting helpful posts here & linking back to credit the author. Think of it as our thanks to you for creating GravityBox and your unmatched dedication and support. No donation from you is necessary.

[MENTION=1007992]everyone[/MENTION]

However, I did just add the ability for someone (not C3C076 ;)) to donate if they would like to help out with the project monetarily. At this point, I'm more interested in help with content. Again, any feedback, suggestions or FAQ ideas are welcomed. :D
[Xposed Framework Modules] tuniel:
will check with a different kernel and then ping the dev, thanks

edit: tried a different kernel, same story...

---------- Post added at 09:33 AM ---------- Previous post was at 09:24 AM ----------

which kernel are you using?
[Xposed Framework Modules] RatTub:
I'm having issues with Soft Reboot in the power menu. It never seems to work for me.. the phone simply hangs at the boot animation and never boots up.

This seems to be a new issue with KitKat. I've never had the problem in JB.

I have an HTC One with stock 4.4.2 GPe.

Also, the soft reboot option in xposed installer works fine.

Anyone else?
[Xposed Framework Modules] B!GBOY:
+1 aosp 4.4.2 g2
[Xposed Framework Modules] Brava27:
I get systemui not responding on boot with the AOSP 4.4.2 on the LG G2. 2.8.2 works great on the Nexus 7 though!

I guess it's just my rom. Ah well...
[Xposed Framework Modules] gwenny:
Thank you diggmc! :good:
[Xposed Framework Modules] mitchst2:
For those of you toggling expanded desktop in tasker. If your phone has hardware buttons semi-immersive mode works better. No need for a pop up to refresh app as posted previously.

Sent from my HTC O'ne-xus
[Xposed Framework Modules] xI mEzMeRiZe Ix:
Really cool feature to have would be shortcuts for a lot of the GB tweaks so that other apps, such as Tasker, can plug in to them. There's no way to quickly toggle LTE/3G/2G, but GB has a tile for it. Maybe add the ability for other apps to toggle that as well?
[Xposed Framework Modules] C3C076:
It's already possible. Search the thread.
[Xposed Framework Modules] C3C076:
Works fine here (N5 + 4.4.2).

Can you take a logcat of triggerring/processing soft reboot?
[Xposed Framework Modules] mitchst2:
Yes there is GravityBox developer C3C076 provided this information in this very thread.

However here's my offshoot thread on how to do it.

http://xdaforums.com/showthread.php?t=2564947

Sent from my HTC O'ne-xus
[Xposed Framework Modules] RatTub:
Here you go http://pastebin.com/mr4kvtzM
[Xposed Framework Modules] mistororange:
Anyway could add transparency control to the nav an status bars?
[Xposed Framework Modules] cwilliams:
Still having issues with the application launcher which I use constantly. Was working fine yesterday but after several hours some of the apps disappeared. Nothing was installed, no settings modified, no restart. Trying a restart did not fix it.

Let me know if I can do anything to help identify the issue. Thanks again dev for all your hard work and fantastic product.

S4 GPE, stock, 4.4
[Xposed Framework Modules] xI mEzMeRiZe Ix:
Nice...I'll give it a try, but it would be nice for it to be done in a more user-friendly way and with more incorporation of the GB tweaks.
[Xposed Framework Modules] C3C076:
[MENTION=2032912]cwilliams[/MENTION]

This happens when apps can't be found on phone when launcher is being initialized at startup which happens when sysyemui is starting. At this time all apps should already be initialized by package manager. Is there any difference between apos that show and those that don't? (E.g. installation location, etc)
[Xposed Framework Modules] cwilliams:
Hmm. They have slightly different xprivacy settings, but the main thing standing out to me is that all the apps that are disappearing are paid apps. And it's not just on boot - when first set up they were gone a few hours later.

Let me know if I can help identify anything else, and once again thanks for gravitymod which I use all day and outstanding support.
[Xposed Framework Modules] C3C076:
[MENTION=2032912]cwilliams[/MENTION]

Anything in the log?

I would also suggest to try without xprivacy for some time. Your issue is weird, especially when you're the only one to report such issue.
[Xposed Framework Modules] djmcnz:
I've just received my Nexus 5 and installed GravityBox.

Very impressive work C3C076 congratulations and thank you!
[Xposed Framework Modules] Nbsss:
Are you using gel launcher? A few users including me have a bug where paid applications are removed from the desktop when updated, maybe it's a similar bug? Not sure...
[Xposed Framework Modules] cwilliams:
Using Nova launcher which has no problem remembering paid apps.

Thanks everyone for helping to identify the issue.
[Xposed Framework Modules] trjlive:
This looks really great so far! I like the clean layout of the instructions you've done.

Here's a post I made a while back that I still refer back to and link people to, that desribes step-by-step how to uninstall and reinstall GravityBox module and Xposed. It can be useful in cases that for some reason, GB tweaks aren't taking effect or applying properly. Perhaps as a part of the FAQ on your GB site?

Also, I know C3 has already included it in post #3, but the guide on how to submit a proper bug report might also be helpful to link to from the FAQ, or a GB Support page that you link to? Maybe something like "If your problem isn't listed here, and you would like to submit a bug report to the developer, then please read this guide on the proper way to do so." Just an idea ;)
[Xposed Framework Modules] tuniel:
there is only one thing that leaves me perplexed, though...

i tried this app: heads-up notification and its implementation of the active screen and pocket mode works correctly (maybe is less optimal, though...)

is there really no way to have active screen with pocket mode working on my device?

thanks
[Xposed Framework Modules] C3C076:
No clue. Here's another version with reduced demand on prox sensor speed (changed flag that tells the sensor how fast it should be providing data). Change was applied to proximity wakeup feature only, no active screen, so test with proximity wakeup.

If it still doesn't work then I'm out of ideas.

Regarding heads-up you mentioned. It doesn't matter whether notification will be shown with one or more second delay. But it does for proximity wakeup feature - this has to be done as fast as possible. Delaying it for the purpose of receiving proper sensor data would ruin user experience.
[Xposed Framework Modules] harrytas:
Why not make this as an option ??? - "access to quick settings",Many people need to access quick settings when the device is locked.

Because of this i'd to downgrade...:(

one more thing,

quite hours - not everyone in the world is working Monday 2 Friday.

Some part of the world work Sunday to Thursday !!!

It will be much more nicer if you'll have option to define the working days and weekend days...
[Xposed Framework Modules] tuniel:
Unfortunately, same story - see log

i fully see your point, don't want you to degrade the module's performance just for the sake of making me happier.

i definitely live without proximity wake up - i'd like to use the active screen for notification though. anything you can do is much appreciated (maybe define an adjustable timer for the proximity sensor pooling?)

thanks for your efforts and prompt feedback - you are really a good developer!
[Xposed Framework Modules] vineet allahabad:
Why there is no transparency option in GB(KK) m using micromax unite 2 A106
[Xposed Framework Modules] C3C076:
Version 3.4.3 available

Changelog 3.4.3 - 18/09/2014

- Lockscreen status bar lock policy:

--- don't force access restriction to quick settings when policy in GB is other than "Unlocked"

--- restrict access to QS also for apps that run on top of secured lock screen (e.g. Camera or 3rd party lock screens)

--- fixed QS access restriction on tablet UI

- Heads up snooze:

--- always use 24h format for snooze timer picker

--- added option for default snooze timer

------ default snooze timer is set automatically when heads up snooze icon is pressed

------ custom snooze timer dialog is open when heads up snooze icon is long-pressed

- Recents panel:

--- statusbar/navbar always translucent by default (no option)

--- allow live wallpaper on high end GFX devices (no option)

- Ring targets: adjusted for compatibility with Xperia (thanks to laguCool)

- Updated Chinese (Traditional) translations (thanks to momomok)

- Updated Polish translations (thanks to xtrem007)

- Updated French translation (thanks to ch-vox)

- Updated Japanese translations (thanks to WedyDQ10)

- Updated Spanish translations (thanks to jvbferrer)

- Updated Portuguese (PT) translation (thanks to bgcngm)
[Xposed Framework Modules] kingvortex:
Just to report that ring targets are now functioning correctly on Xperia Z stock 4.4.4 rom (obviously on AOSP lockscreen).

Thanks laguCool for the patches and C3C076 for merging them even though our devices aren't supported!
[Xposed Framework Modules] MastaShortie:
In the latest (3.4.2) update, you restricted access to quick settings from the lock screen, this has become inconvenient for me, can you please add an option to make it accessible again?
[Xposed Framework Modules] C3C076:
It's in 3.4.3.

Note, that in standard Android, QS, or notification panel are not supposed to be accessible from secured lock screen. Unless you use an xposed module which allows that.
[Xposed Framework Modules] petrus764:
Awesome! Loving these changes.
[Xposed Framework Modules] MBFingerhut:
So I saw the release of 3.4.3 and upgraded, but still no Lockscreen Tweaks menu item. I'm running on stock KitKat on a Droid RAZR Maxx HD.
[Xposed Framework Modules] MastaShortie:
That is correct I was using notification mod, and the latest gravity box stopped me from accessing QS. But thanks for the quick response!
[Xposed Framework Modules] gitzz:
Translucent Recent panel xperia problem

i just updated Gravity Box, the new update is good regarding the unlock ring targets for xperia but the translucent status just spoiled the recent panel in xperia phones coz the xperia phones have small app and the portion is just above the navigation bar, but due to the translucency the small app have shifted down and they are not accessible anymore please checkout.

Thanx.
[Xposed Framework Modules] devgsingh:
Navigation bar not working in Landscape mode

Hi All,

I have Moto G XT1068 Stock ROM 4.4.4 KXB21.

Rooted, Installed latest Xposed then Gravity Box.

Everything is working great.:good:

Just a small issue:

Navigation bar is not active/or working (but visible) in Landscape mode.

Tried to find option in settings, however no Luck.

Could some one please help what am I doing wrong???
[Xposed Framework Modules] mnsk:
+1, keys are overlapping the small apps bar.

It'll be good to include an on off option.
[Xposed Framework Modules] C3C076:
Weird. I remember there was an xposed module that messed with app layout such as the top preference disappeared. Try deactivating all other modules.

Damn vendors... Looks like option is needed. But I'm sorry to say that people will have to wait as I'm not releasing another official update immediately (especially for unsupported device). What I could do is to post apk here with feature disabled.
[Xposed Framework Modules] mnsk:
Thanks! that would work till the next update.
[Xposed Framework Modules] gitzz:
that will work nice, although i rolled back to previous version.

thanx!!
[Xposed Framework Modules] C3C076:
[MENTION=5539928]gitzz[/MENTION] [MENTION=4790932]mnsk[/MENTION]

APK is in the second post

You're welcome to link other xperia people to it.
[Xposed Framework Modules] dtaluthge:
I cant find it anywhere that it says SONY is incompatible.... It's compatible (i dont know whether its supported or not) if its not compatible how is it possible to each every other GB mod to work and only this option doesn't :confused::confused:
[Xposed Framework Modules] Kocane:
Why the forcing of translucent status- and navbar in the recent screen? Why not make it optional like pretty much every other thing in this module?

By the way, the clear button in recents is misplaced now. As in, the area you press to clear isn't the same area as the button image is in.
[Xposed Framework Modules] mnsk:
[MENTION=1879618]IaguCool[/MENTION]

Can you also look into making non intrusive calling work for xperia.
[Xposed Framework Modules] gitzz:
thank you for the apk and quick responding about the problem.

i will buy u a coffee as soon as i start earning of my own.
[Xposed Framework Modules] fatspirit:
1. You may turn on logic.

2. If 1. fails you may search for Xperia.

3. GB is made in AOSP in mind. OEM's modifications could easily break GB's functionality when code on which GB relies is affected.
[Xposed Framework Modules] el_smurfo:
Button works fine for me on N5.
[Xposed Framework Modules] C3C076:
The reason was: standard behavior is that bars translucency is inherited from app that's currently in the foreground so e.g. when you access recents from home screen which has translucent bars, recents will also be translucent. I didn't see a reason not to have always translucent bars regardless what app is in the foreground.

Not sure about the clear all button. Works as expected here.

Anyway, option will come in future...
[Xposed Framework Modules] Oz4225:
Hey

Please addd for gravitybox action option to record (like the option in the quick settings)

Thanks
[Xposed Framework Modules] C3C076:
Record what? Audio or screen? Because action for screen recording is already there.
[Xposed Framework Modules] Kocane:
Should mention that Im on stock Xperia Z2 rom. The button works btw its just that the button image isn't located the same place the actual button function.

Looking forward to having the option. BTW thanks for fixing lockscreen ring apps on xperia :)
[Xposed Framework Modules] C3C076:
Well, looks like Sony screwed something really bad about the recents. Whether bars are translucent or not should definitely not have any impact on content layout.