yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] ri0thamus:
1) Cheers, thanks for that. I'll check it out when it hits Google Play.

3) Unfortunately, I'm one of the weird ones with an S10 series (S10e to be specific) where the proximity sensor is pretty much useless unless on a call. It can't be used by any apps for turning the screen off which is the main reason I needed something like GS or the newly updated KS. I'm now in the habit of putting my phone in my pocket upside down every time or else it won't turn off. And the "accidental touch/pocket protection" is pretty much useless. The option to turn the screen off when facedown isn't crucial, I'm just used to it after using GS for a year and it would be another nice touch.

Thanks again,

Riothamus
[Android Apps and Games] Flyview:
Oh I see. How is GS detecting face down without the proximity sensor? By angle/gravity sensor?
[Android Apps and Games] ri0thamus:
Yes, there's two sections that have nothing to do with the proximity sensor in GS. Pocket sensor and table sensor. Table sensor detects if the phone is flipped/rotated over a specified angle and turn the screen off.
[Android Apps and Games] ri0thamus:
Haven't seen the new version on google play yet. Anybody else seen it yet?
[Android Apps and Games] AnonVendetta:
I just updated via Play Store. I'm not seeing any substantial differences between it and older versions.
[Android Apps and Games] Flyview:
I am seeing the latest version, 6.0.1 on Google Play.

There are a few new functions. Please check the full changelog on the first page of this thread, or on our website.
[Android Apps and Games] ri0thamus:
Weird, I installed the newest version from XDA labs. But both on the android google play app and the website, I only see 6.0.0.
[Android Apps and Games] AnonVendetta:
[MENTION=2584205]Flyview[/MENTION]: Can you make it not mandatory for KS to control the screen timeout, if the user is only using the proximity wakeup feature? That is the only feature of this app that I use. There is no reason whatsoever for this.

I've long considered paying for the premium features, just to support you. But I've always decided against it, simply because KS insists on controlling the screen timeout when it isn't needed for all functions. I know there is a manual toggle option to keep screen on always, but for me it is finicky and resets constantly, even if "turn off manual toggle with screen off is unchecked". I prefer to always keep my screen on, and manually turn it off with power button when needed.
[Android Apps and Games] Flyview:
I might be able to make this happen, but assuming that manual toggle does work as intended, as you realized, it shouldn't be a problem, so let's try and fix that. What device and Android version is this on? Are you noticing the notification disappearing when you realize it's no longer keeping the screen on? When you open up KS, is manual toggle turned off or is it still showing up in green at the top?
[Android Apps and Games] AnonVendetta:
[MENTION=2584205]Flyview[/MENTION]: manual toggle does seem to work as intended...sometimes. but it's flaky.

Device:

Galaxy note 4:

Firmware/ROM: stock Marshmallow 6.0.1 (Magisk rooted)

KS is exempt from doze/battery optimizations

But KS still stops sometimes and the notification disappears. I don't have any battery optimization apps installed. Or any task killers.

This is why I'm asking, if you can make it optional for KS to not mess with the screen timeout, if the user is only using proximity wakeup. If KS doesn't need to control the timeout for one particular feature to work...then it shouldnt.

I'm getting the feeling that this is something you will never agree to, so I may just have to decompile KS and try removing the permission/nag screen myself.

And again, I will point out that this is the ONLY reason I have never financially supported you by paying for the extra functionality (even though i'll never use them anyway). For just this one feature to work, cobtrolling the screen timeout absolutely just isn't necessary. And we both know it. Only make KS require this permission for the other features that ACTUALLY need it.

Another peeve for me is, it's my phone so don't go dicking with my settings. I am just about tempted to return to Gravity Screen. It has proximity settings and doesn't mess with my timeout. I'll accept the slightly higher battery usage.
[Android Apps and Games] Flyview:
It's not as simple as you make it sound. I can get rid of the permission dialog, but all of the functions tie in together in the code. It is possible, I just have to be careful as to not break anything else. Ideally I would also add a checkbox to the "Time screen out... xx sec after last kept on" since that will no longer work properly if it doesn't work the way it does now.

If KS is dying, it's either being killed by the system or crashing. This would affect the manual toggle but also the turn-on options, which I presume you also want to not be "flaky". Are you able to get a logcat filtered for "KinScreen"?
[Android Apps and Games] AnonVendetta:
[MENTION=2584205]Flyview[/MENTION]: I don't bother with logcats for situations like this. Why? Because I have no way of knowing when it will stop working. I would need to monitor logcat for hours continuously before it occurs. Like most people here, I have a life, work to be done, and limited time to do it. Spending hours troubleshooting takes away time that could be better used elsewhere.

Another idea:

Leave the permission if you want, but simply make KS not change the screen timeout when the only option selected is proximity wakeup. Also leave a notification like "KS is running in the background", so Android is less likely to kill it.
[Android Apps and Games] Rushikesh787:
I'm using this app for a long time now and I'm impressed with your support service. BTW both the motion and manual modes work perfectly!
[Android Apps and Games] AradoVN:
So now it can turn screen off as soon as I close the phone cover (with 0s timeouts) ?

Too bad GG store VN still version 6.0.0

Edit: Just download new ver from XDA Labs, it work perfect now, thumb up !
[Android Apps and Games] priyaksana:
Promo Code please.
[Android Apps and Games] kam333:
[MENTION=2584205]Flyview[/MENTION]

Still loving this app, been using it for years without issues but since V6 update its draining my battery, overnight I lost 40% the usual is around 5%.

Can you think of anything I can do?

Using Huawei Mate 20 Pro EMUI/ Android 10.

I haven't changed any settings from the earlier version where battery usage was great.
[Android Apps and Games] Flyview:
KinScreen already shows a persistent notification. If you're not seeing it, this could be part of the problem.

Thank you! Make sure to leave a review on Google Play. It really helps.

Sorry about that, just realized I had left the rollout to only 20% (the default, grrr).

Interesting. Please send me some screenshots of how you have it set up to kinscreen at teqtic dot com.
[Android Apps and Games] Flyview:
New update is out on XDA Labs, my website, and soon on Google Play!

6.0.2 (2020.11.10)

-Fixed rare crash when starting service before unlocking device without modify system settings permission

-Added Portuguese translation (Thanks Adalberto and Ronan!)

-Added Italian translation (Thanks Giorgio and Rafa!)
[Android Apps and Games] AnonVendetta:
[MENTION=2584205]Flyview[/MENTION]: Yes, I have the persistent notification. I really would like to disable it or make it invisible.

How easy do you think it would be to implement my suggestion of having KS not change screen timeout when only proximity wakeup is enabled? That way, messing the permissions coding isn't required at all.
[Android Apps and Games] AnonVendetta:
[MENTION=2584205]Flyview[/MENTION]: I found a Tasker profile that wakes the device with 3 quick waves over the proximity sensor...and it doesn't screw with my display timeout. I'm finding it to be very reliable, I expect the battery usage of this profile to be about the same as what KS would use if only proximity wakeup is enabled. And since I use Tasker for other stuff, it just makes sense. I just feel like KS oversteps its' boundaries by doing things which aren't appreciated. Even though we have to manually grant the permission to change system settings, it really isn't optional or ignorable, since KS will persistently ask for it.

I guess this will be the last time I use KS, but if I ever want to try the other features, I'll keep it in mind.
[Android Apps and Games] Flyview:
Is anyone using this on a OnePlus 8T or any other new OnePlus phone? I am getting a couple of reports of the sensors freezing after some time, requiring a restart of the KinScreen service from the switch in the top right to fix.
[Android Apps and Games] Flyview:
New update is out on my website (scroll to the bottom) and on Google Play:

6.0.4 (2021.03.19)

-Use gravity sensor instead of rotation sensor for better efficiency and compatibility

-Detect negative angle on devices without a gyroscope

-Improved app detection algorithm accuracy and efficiency

-Fixed not detecting app when opening another activity of the same name

-Dim screen as soon as beginning to turn off due to proximity or angle, instead of brightening screen first

-Don’t brighten screen if already dimmed when coming out of a keep on condition

-Fixed incorrect angle if swinging during sensor registration [check against accelerometer and re-register]

-Better detect tilting up right after screen off

-Allow any keep-on trigger to reset max time during dim time, not just motion

-Fixed not resetting max time when new motion detected without allow dimming on

-Fixed keep on by motion whether or not selected, when using accelerometer for angle

-Fixed acquiring an unnecessary wakelock on Samsung Android 10+

-Fixed not being able to keep the screen on indefinitely on Samsung Android 10+ lock screen

-Possibly fixed freezing angle on Samsung Android 11

-Fixed QuickSettings toggle not being updated after screen off until second swipe down

-Fixed angle sensor unregistering when unchecking keep on by motion or its exception when turn off by angle still checked

-Fixed enabling turn off by angle not registering angle sensor, when using accelerometer for angle

-Calculate tilt angle the same way irrespective of on-screen orientation (except reverse portrait)

-Require tilting back down to 15deg before turn on by angle works again

-Animate toggling of statuses

-Hide keyboard when checking apps

-Show detected angle/proximity even if only using turn on by angle/proximity

-Briefly show full star in notification icon when brightening screen

-Reorder list after clearing search so checked apps show up at the top

-Added button to clear search

-Fixed not restoring regular timeout when no longer timing out due to proximity and not kept on by anything else

-Don’t acquireWakelocks for keepOnByProximity when going into or out of proximity unless there was a wave

-Reset wave-over extension when setting a new timeout

-Set exact alarm for turnOnByAngle max time exception

-Added French, Japanese translations

-Link donate button straight to PayPal instead of showing DonateDialog

-Added KinScreen item name to PayPal donation link

-Updated to newest BetterLinkMovementMethod and modified the touch area

-Changed to BetterLinkMovementMethod for About dialog links

-Fixed email formatting
[Android Apps and Games] AnonVendetta:
I'm about to try this app again, after months of not using it. I found that my Tasker script works very well on my Galaxy Note 4 stock ROM, but not so well on the Galaxy Tab S7+ that I've just bought.

I'm hoping there are some changes/improvements that will make it worth it to use the free version, or perhaps even pay for premium.

@Flyview: I would still like to see you consider the possibility of alternative payment options outside Play Store, like Tasker/Titanium Backup have long since done. It's doable. I think it's a shame that so many devs exclusively lock their apps into Google's ecosystem (or Amazon, etc).
[Android Apps and Games] Flyview:
That would be great in the future but it takes a lot of work to set up standalone payment processing and verification.

New update is out on my website (scroll to the bottom) and on Google Play:

6.0.5 (2021.03.24)

-Fixed flickering on Samsung Android 10+ devices

-Fixed timeout of 1s possibly keeping screen on forever on Samsung Android 10+ devices
[Android Apps and Games] Flyview:
New update is out on my website (scroll to the bottom) and on Google Play:

6.0.6 (2021.03.25)

-Fixed screen possibly turning off when screen allowed to dim on Samsung Android 10+ devices

-Fixed accelerometer possibly not being unregistered when service destroyed

-Check previous 8 hours for foreground app instead of 4
[Android Apps and Games] Flyview:
New update is out on my website (scroll to the bottom) and on Google Play:

6.0.7 (2021.03.26)

-Fixed timeout of 1s possibly keeping screen on forever on Samsung Android 10+ devices

-Fixed flickering with timeouts of 1s on Samsung Android 10+ devices

-Hide clear text button when search field empty
[Android Apps and Games] Flyview:
New update is out on my website (scroll to the bottom) and on Google Play:

6.0.8 (2021.07.21)

-Reverted to preferring the rotation sensor because of issues with the gravity sensor on the Pixel 2 and some Samsung devices

-Fixed turning on by angle even when manually turned off on devices without a gyroscope

-Show more system apps

-Reduced landscape detection from 30deg to 20deg

-Flash proximity status green when waving to keep screen on

-Temporarily extend timeout by proximity even if kept on by something else

-Fixed rare crash when trying to rate app if don’t have Google Play installed

-Prevent crash on some Samsung devices

-Fixed rare crash before user unlocked

-Reduced wave time from 1000ms to 500ms

-Do not reacquire on Samsung Android 9 and lower

-Updated to appcompat 1.3.0

-Updated to gson 2.8.6
[Android Apps and Games] AnonVendetta:
@Flyview: I'm thinking about buying KS premium for my newly bought Galaxy Tab S7+, running stock Android 11. But the wifi only version of this tab doesn't have a proximity sensor, I confirmed with multiple apps like AIDA64. However, it does support motion detection, and native double tap to wake.

Can you say how much more of a battery drain there will be with wakeup via motion, vs just proximity? Or maybe I'm better off with GravityScreen instead? From what I can tell, KS's main focus is proximity wakeup, whereas GS has always supported both.

Is there anything I should be aware of, on Android 11/stock Samsung in particular, that might prevent KS from working correctly? I know I need to disable battery optimization for it, but is there anything else I need to do?

Thanks!
[Android Apps and Games] Flyview:
KinScreen supports wake up by tilt-angle. There will be significantly more battery drain as the device won't be able to sleep while this is active, whereas it can with the proximity sensor function. This would also be the case for GS.

I would have a look at www.dontkillmyapp.com/samsung for suggestions on what you need to do to make sure it stays running.

You can test this all in the free version and see if it works how you like.
[Android Apps and Games] AnonVendetta:
@Flyview: It looks like you're right about the motion detection wakeup. I just tried it for an hour, frequently using motion to wake the tab while Web browsing, and nothing else. During that time, I lost about 15%. On the other hand, I can watch an average 2 hour movie and not even lose 10%, or play a game for an hour with about 10% lost.

I think I'll just stay with the native double tap to wake, combined with fingerprint/pin unlock. Although I think it would still be useful to use KS for keeping the screen awake/extending timeout, while letting it turn off the screen while not in use.

What do you suggest I set the tilt angle degree to? I don't want KS to wake the tab at the slightest movement, is there a way to tune this so that it only wakes when there is a significant amount of motion? This would particularly be an issue when the tab is stored in its' case inside my backpack, I don't want it waking when I'm walking down the street or whatever. I tend to just keep the tab powered on but sleeping, so I don't have to wait for it to turn on when I want to use it.

Does KS natively support being remotely controlled by Tasker (toggling options)? I'd like to set up a profile that disables KS when I'm not actively using the tab, but reenables it when I am.

I looked at the Don't Kill My App links for Samsung stock firmware, it looks like there is alot to do for Samsung stock Android 11 firmwares, besides just disabling battery optimization.
[Android Apps and Games] Flyview:
Yea I'd stick to the native double tap to wake, it seems easy enough. If you do intend to use it, the angle you set is up to you. Motion alone won't wake it, it has to detect a certain tilt angle. However, depending on what sensor it has in it, harsh bumps / motion etc may trigger the angle (even if it's remained flat). Test this with it in your hands!

Tasker can indeed toggle KS on/off, but I'm not sure why you'd want to do this. It doesn't really use any power unless you have the turn-on-by-angle option on.
[Android Apps and Games] AnonVendetta:
@Flyview: OK, I just figured that being able to toggle Tasker would be useful, I was just overly worried that having the tab stored in backpack while I'm moving, might trigger unwanted wakeups. But I didn't try to test that theory yet. Besides, even if I did test, how would I know for sure that KS is indeed turning on the screen, how many times, for how long, etc?

Where can I find a list of Tasker intents that KS accepts, just in case I need to use them?
[Android Apps and Games] AnonVendetta:
@Flyview: i'm having a problem. I'm running latest version 6.0.9. I recently bought the premium unlock (the "forever" option). The key icon is gone at first when i run the app. However, if i exit out of it and later start the app again, it reappears. It's as if KS thinks i havent paid, so the premium options are disabled.

I think possibly my play store could be the issue. But all other apps verify their purchases/licenses/subscriptions just fine, so i doubt it. I've logged in/out, and also cleared the data of Play Store/Play Services.

I know that piracy apps can cause this kind of issue too, but i dont have any installed, and it's been over a year since i last used them. I now make the kind of money i want, so i just pay for everything.

Possibly you can implement something where KS verifies the purchase on first launch, then caches it.

If i cant get a resolution for this, my only other option is to contact google support for a refund.

Thanks!
[Android Apps and Games] Flyview:
New update is out on my website (scroll to the bottom) and should on Google Play.

6.0.9 (2022.03.08)

-Fixed tilt angle calibration not going to 0

-Don’t temporarily increase timeout by proximity while kept on by motion or while being kept bright indefinitely

-Show toast messages when timeout temporarily increased or reset

-Allow searching through apps while installed apps list still loading

-Show name of app or number of apps instead of “these apps”

-Show more installed apps

-Fixed a rare crash on Huawei devices

-Fixed some rare crashes

-Added Hungarian translation (thanks Stefi!)

-Added Indonesian translation (thanks jquarks!)

-Added Polish translation (thanks TheGame!)

-Updated translations
[Android Apps and Games] Flyview:
Please email me so I can check your purchase via your Google account. You can do so through the left hand menu in the app, "Contact Support". Thanks!
[Android Apps and Games] AnonVendetta:
Email sent.
[Android Apps and Games] mzguy:
After working for a couple of years or so, com.teqtic.kinscreen.INTENT_STOP_SERVICE recently stopped working to disable Kinscreen. Other intents may be broken too. Did an update break this functionality?
[Android Apps and Games] mzguy:
START doesn't work either
[Android Apps and Games] ri0thamus:
Just got a new s22 and I'm trying to figure KS out. The only thing that seems odd is that when KS turns the screen off, the phone immediately locks even though the secure lock timeout is set to 2 minutes or more. Is this the normal behavior?
[Android Apps and Games] Flyview:
Hey, sorry I didn't see this! Please email me and I'll send you a fixed apk. I haven't put out an official update because it's the only thing I've fixed / worked on.

Do you have "actively turn screen off" turned on? In that case yes, it will lock the screen as a way to turn it off. There may be another way to do this if you have the accessibility service turned on.
[Android Apps and Games] mzguy:
I did get a reply from you a while back, though it may have been through email and not here. The APK you sent me works correctly with intents. However, once in a while Google Play tells me I can update Kinscreen, but it's really just getting me back to the existing version in the Play Store. I've often forgotten and allowed the update, after which I then need to re-install your custom APK again. So, I still would love these changes to get incorporated into the published version. I'm actually surprised no one else has bugged you about the intents!
[Android Apps and Games] ri0thamus:
Yes, that was the problem there. Thanks! Now for one last question/issue. I think this is why I didn't use KS when the last big Android version came out. Due to the Samsung Galaxy S series not having an active proximity sensor, the screen off features are quite annoying requiring the use of Gravity Screen or KS. KS is currently doing everything I want it to do except for flipping the phone face down to turn the screen off. The best I can get is setting the "turn off after tilting under" setting to 10 degrees. However, it will then turn the screen off when looking at the phone on a table as well. Ideally I'd want the screen to turn off when the phone is upside down (as in a pocket or titled over approximately -60 degrees) or face down flat on a surface. Can I currently do that with KS? If not, any chance of adding such behavior? I think I brought this up before a couple of years ago and you added part of it which I greatly appreciate.
[Android Apps and Games] mzguy:
I have the same phone as you. The option to turn screen off with tilt is available. I have set mine to -45 degrees and 2 seconds. That works well when I put the phone in my pocket upside down.
[Android Apps and Games] ri0thamus:
I think I was a little unclear. The two things I mentioned are what I want KS to do to be perfect (and replicate what I was doing with Gravity Screen). I CAN do the screen off on tilt for putting in my pocket. What I still want and can't do (or can't figure out) is to also turn the screen off when face down and flat but NOT when face up and flat. Can I do this currently?
[Android Apps and Games] ri0thamus:
Any suggestions for turning the screen off when face down? I don't think KS can do it but I'd be happy if it could.
[Android Apps and Games] Flyview:
Right now there's no direct "time screen out" option for face down other than through proximity. However, if you set a short general timeout (say 10s), and use the keep-on function to otherwise keep the screen on, then when you set the phone down flat (face up or down), it will time out in 10s. Will that work for now?
[Android Apps and Games] ri0thamus:
Thanks for the reply. It might work most of the time, but there are plenty of times when I'm reading from the phone and it's flat and face up and a short time out will turn it off while I'm reading. Thanks for the suggestion. I'll likely just have to keep remembering to turn upside down to turn off and then place the phone down.
[Android Apps and Games] merlin6666:
KS (paid version) unfortunately does not always work reliably for me (Galaxy S23, Android 13) when the screen is to be turned off. If the phone is not used for a slightly longer time and then used again, the app no longer works. The screen always stays on when the phone is placed flat.

However, the app always works after I install the widget...

Maybe your fixed app can solve the problem here which is mentioned in Post #771 ?