yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] Flyview:
New update out on XDA Labs and Google Play!

5.5.2 (2020.01.23)

-Made “Manual toggle” status clickable in the app

-Added split screen support to app detection

-Reset manual toggle when service switched off manually

-Show selected apps first in choose apps dialog

-Added www.dontkillmyapp.com warning in-app

-Updated look of nav menu title

-Fixed widget size to be 1x1

-Increased text size

-Fixed analyzing angle from accelerometer sensor if not using angle features

-Updated Dutch translation (thanks Sjaak)

[-Reordered statuses to have manual toggle first]

[-Built for Android 10]

[-Always re-register proximity sensor to help it not get stuck]

***[-Added { *; } to end of “-keep class com.android.vending.billing.**”]***

***[-Disabled ok button until list of apps is ready to prevent concurrent modification exception]***

***[-Fixed onPostExecute crash in ChooseAppsDialog if pressing cancel before app loading finishes, or if rotating before it finishes…]***

[***Check for first time open before doing updates in StartReceiver***]

***[-Make serviceMessenger and listServiceMessageRunnables null in unbindService calls]**

***[-Changed to a new method in hasUsageStats method so that it works right after screen on (getPackageNameLastInForeground doesn’t work for about 2s after screen on)]***

***[-Put queryPurchases in onResume for all activities so that it’s properly recognized if rotated during purchase]***

***[-Fixed incorrect # free trial days. Change in onSkuDetailsResponse]***

-***[Updated Google Play Billing API from 1.2 to 2.1. This includes changes to BillingManager and each activity that deals with making purchases in startPurchase(), onSkuDetailsResponse (added listSkuDetails) and onPurchasesUpdated (added “acknowledging” purchase)]***

***[-Got rid of mapSkuPrices and mapSkuTrialDays]***

***[-Align “I understand” checkbox on the right]***

[-Changed to Rate on Google Play instead of Rate on Google Play store]
[Android Apps and Games] Zaxx32:
Good stuff! I originally used gravity screen, then found n tried Kin and made the switch the next day.! Kin and LeanDroid are permanently at the top of my 'Top 10' w/ Greenify and L-Speed. Glad to see an update!
[Android Apps and Games] Flyview:
Thanks! Make sure to leave a review on Google Play if you haven't yet. It really helps.
[Android Apps and Games] Flyview:
It looks like KinScreen might be having some trouble on Samsung's Android 10. I've had a couple of people report problems with it it not being able to keep the screen on. Can anyone confirm? Better yet, anyone in southern California that would let me debug using their Samsung running Android 10?
[Android Apps and Games] rogerinnyc:
I'm running a Samsung Galaxy Note 10 with Android 10 and, so far, KinScreen appears to be working and staying alive. But I've put it into the "don't optimize apps" category (under Apps/Special Access). I have also been using the feature that Samsung has (Smart Stay) that keeps your screen on when looking at it. But I've briefly turned that off and KinScreen still appears to be staying alive and doing its job. PM me if you want me to do some beta testing. Have always loved your app!
[Android Apps and Games] Flyview:
That's good news. Is the Settings/Apps/Special access new? Have things changed from what's described over at www.dontkillmyapp.com/samsung for Android 9?

By the way you really shouldn't be using both SmartStay and KinScreen. Why do you feel like you need both?

Thanks!
[Android Apps and Games] rogerinnyc:
I think the Settings/Apps/Special Access/Optimize Battery Use is not new, but I haven't been using a Samsung on Pie (I was on Huawei, which also had it). The "dontkillmyapp" site doesn't seem to mention it though.

I used both SmartStay and KinScreen under the belts and suspender theory. It also may have been that I wasn't sure I could keep KinScreen from being killed in the background, hence I turned on SmartStay too.

Haven't tested long enough without SmartStay on to be 100% sure that KinScreen isn't being killed. So far, so good. Will report further after more testing.

EDIT: Actually the web site references "special access" for older phones. What is not clear is how the two sections of Samsungs settings work with each other. You can still go in through "Battery/App Power Management" and get toggles for "Adaptive Battery" (described as "limit battery usage for apps that you don't use often"), and "Put Unused Apps to Sleep". If the latter is on, then you can add apps to two categories: "Sleeping Apps" or "Apps that won't be put to Sleep".

I think the "don't optimize" is the stronger selection because if I select that for KinScreen, it doesn't appear as an app that I can add to "Apps that won't be put to Sleep". On the other hand if, I disable "don't optimize", it does appear again so that I can add it to "Apps that won't be put to Sleep", and then it also appears to automatically toggle the "don't optimize" choice -- so maybe they do the same thing.

EDIT2: Forgot, I also opened KinScreen and then went into Recent Apps and "locked it" by tapping the icon and selecting "lock this app". Seems even to survive a reboot.
[Android Apps and Games] Flyview:
Ouph, what a mess! What a couple of people are reporting aren't even about the app being killed, but it just doesn't work as soon as you leave the app and go to the home screen for example. That doesn't seem to be a problem for you. Can you test if "Manual toggle" is able to keep the screen on once you leave the app, with SmartStay disabled? If it works, can you try the same thing with it not "locked"? Maybe this is the trick! When did this "locking" from the recent apps screen become a thing on Samsung? Sounds more and more like MIUI on Xiaomi phones... :crying:
[Android Apps and Games] rogerinnyc:
I returned the Note 10 (for other reasons), so I'm afraid I can't test further, but the manual toggle worked fine for me to keep the screen on. I can't say whether locking KinScreen in Recent Apps made a difference or not for this purpose (but, if pressed, I would say that it wasn't a prerequisite for purposes of the manual toggle). I can say, however, that after a reboot of the device, KinScreen worked inconsistently until I affirmatively re-opened the app at least once.

The other thing to note is that the Note 10 has a very functionally-constrained proximity sensor, that appears to operate only when you're on the phone (to turn off the screen when your face/ear is near it). It means the turn off with proximity sensor function of KinScreen definitely does not work on the Note 10. I ended up using just the motion sensor of Gravity for this purpose of automatically turning off the phone.
[Android Apps and Games] Flyview:
Ya the proximity sensor seems to be that way on all new Samsungs. What's crazy is they still have the proximity sensor as available to apps...but it doesn't work ... unless the phone is in a call ... sigh. I expect this is another forced battery saving "dumb-phone" measure.
[Android Apps and Games] Flyview:
Getting more and more reports of KinScreen not working in the background on Samsung Android 10. Anyone have one I can play with for a couple hours out in southern California?
[Android Apps and Games] jackal575:
You really don't realise how much you use this until it's gone! Long time kinscreen user with an S9+ which has recently upgraded to Android 10 :(

If there's anything I can do to assist, please reach out. I'm a very long way from Cali though!
[Android Apps and Games] Flyview:
I was able to get my hands on an S9 with Android 10 for some testing. It's really bizarre what Samsung did: wakelocks seem to be removed by a touch of the screen, and new ones don't take effect until the screen starts to dim. Please try this apk and let me know if it works better. It's not a perfect solution yet but I'm hoping it will do until I think of something better.

https://drive.google.com/open?id=1V_h8SmnpP_hSbTtNPUjnQ4FSxDONjBYQ
[Android Apps and Games] jackal575:
Thank you for taking the time to look into this. This APK is certainly much, much better. I can live with screen dimming slightly every now and then for the time being.

Also want to say thanks for the simple yet highly effective app, I often recommend KinScreen (WallFlix is great too). Keep up to great work :good:
[Android Apps and Games] Flyview:
Thanks! Make sure to leave a review on Google Play if you haven't already. It really helps. Cheers!
[Android Apps and Games] rogerinnyc:
Note 10 and KinScreen

I'm back. Ended up sticking with the Note 10 (really enjoying it), so I'm interested in getting KinScreen to work well with it on Android 10.

My further observations:

1. Forget about anything in KinScreen that relies on the proximity sensor. It appears to be crippled by Samsung so that it only operates when the phone app is in use, to turn off the screen when you bring it up to your face.

2. I have had good luck with KinScreen's keeping the screen on features so far by doing two things: First, go to Apps/Special Access/Optimize Battery Usage and make sure KinScreen is turned off there (i.e., so it is NOT being optimized); and Second, launch KinScreen and then go to your Recent Apps and find the page there that represents KinScreen and tap the KinScreen icon at the top -- that will launch a menu of choices, one of which is "Lock this app". Which you should choose of course (and a locked icon appears).

3. I can fairly confidently say that doing this allows the permanent "keep screen on" toggle to work (for me at least!)

4. For me, these steps also keep KinScreen alive in the background for purposes of its other features (i.e., Keep Screen On by motion or while tilted up, etc.). I have also been using Samsung's Smart Stay feature (keeps screen on while looking at it), but in non-scientific tests with the phone turned away from me, KinScreen seems to keep working. I've recently turned Smart Stay off entirely to be more scientific about it and, so far, all is good with KinScreen staying alive and doing its job.

5. Not 100% sure, but this all appears to survive a reboot. When the phone comes back up, and I go to Recent Apps, any app that I have "locked" is still there.

So, thank you for the revised Samsung-oriented Kinscreen app, but I'm not sure I need it or even want to mess with what is working for me and try it!
[Android Apps and Games] cutezi:
Hi,

I'm keen to purchase this but I am using microG and the IAP does not work when I click buy forever.

Please advise if there is a way to purchase this app without Google Play and services

Thanks!

Can ignore. Purchase successfully
[Android Apps and Games] Flyview:
What version was this on exactly? I just put out an update yesterday. Please email me so I can send you some more things for testing! You can use the in-app "Contact support" menu option.

I'm glad you were able to purchase and thanks for the support!
[Android Apps and Games] Flyview:
New update(s) out on Google Play and XDA Labs:

5.5.4 (2020.02.14)

-Fixed not asking for write system settings permission if showing other warning dialog

-Improved solution for Samsung Android 10 devices

-Don’t set system timeout if already set to required value

-Made permission dialog non-dismissable

-Added line spacing multiplier

[-No longer reacquire long wakelocks if not required (only for Samsung/OnePlus)]

[-Changed “Reset manual toogle with screen off to “Turn off manual toggle with screen off”]

[-Updated to com.google.android.material:material:1.1.0]

[-Replaced LocalBroadcastManager with regular broadcast sending from the ToggleServiceReceiver to SettingsActivity as it no longer exists in AndroidX and is deprecated]

5.5.3 (2020.02.12)

-Temporary fix for Samsung Android 10 devices

-Updated sr, hr, bs, lt strings

-Added device admin to prevent killing on some devices (must turn on from system settings)
[Android Apps and Games] ridvanb:
Hi, I'm on Nexus 5 Lineageos 14.1. I see negative orientation values, and because of this, screen goes off unexpectedly. Any help appreciated.
[Android Apps and Games] ridvanb:
Screenshot
[Android Apps and Games] Flyview:
I think I had someone report this before (unless it was you). Was this a problem only after you flashed LineageOS? Can they fix it? I'd rather not build in a workaround if this is a problem with the ROM.
[Android Apps and Games] Sizzlechest:
Feature request: Add to the "Keep screen on..." option of "While tilted up XX.0 - YY.0" a sub option "Except while charging" so the screen turns off when on wireless chargers like this:
[Android Apps and Games] ridvanb:
My sensors readings with aida64 program are attached.I have a tablet and aida64 says that it has only accelerometer. Kinscreen runs fine with the tablet. Accelerometer values are the same for both Nexus 5 and tablet. I wonder if kinscreen uses accelerometer for tablet and other sensor for Nexus 5.
[Android Apps and Games] Flyview:
I'm not too sure what those sensor values mean. Are the angles inverted in other apps? Try GravityScreen and let me know if it's detecting it tilted down there when it's upright.

Was this only a problem once you installed LineageOS?
[Android Apps and Games] ridvanb:
Gravityscreen runs fine.
[Android Apps and Games] ridvanb:
Hi, which sensor does kinscreen use for determining motion and angle?
[Android Apps and Games] Flyview:
Motion is determined by the accelerometer sensor and angle by the "gravity" sensor. Please try the SensorKinetics app while holding the phone upright as you would normally, open the chart view for the gravity sensor, tap start and let it run for a few seconds, then point the phone upside down for a few seconds. Please post a screenshot of that chart. Then I'll compare it to mine. Thanks!
[Android Apps and Games] ridvanb:
Here is the screenshot. Thanks.
[Android Apps and Games] Flyview:
New update out on Google Play and XDA Labs, changelog below. Can you guys please confirm that keeping the screen on, on the lock screen works again on Samsung with Android 10? You have to have "Rules apply on lock screen" checked under "More options".

5.5.6 (2020.03.08)

-Fixed keep on while in-call for Samsung Android 10 devices

-Fixed keeping the screen on while on lock screen for Samsung Android 10 devices

-Updated Russian translation
[Android Apps and Games] Flyview:
Can you please explain which part of the graph is what? I'm trying to compare to the same motion on my own phone. I started the graph recording with the phone basically upright tilted up at 80-90deg facing me, then tilted it down with the top of the phone toward the ground and the screen still visible to me. Here's my screenshot.
[Android Apps and Games] ridvanb:
Yes, I did the the same thing.
[Android Apps and Games] ridvanb:
First and second parts are as follows
[Android Apps and Games] djbigshow:
Thank you Flyview for quickly addressing the Samsung issues! The latest version works great for me on my S10+ running Android 10.
[Android Apps and Games] Hoffmanns:
Hello all,

I have strange issue with Kinscreen ?

I'm set timeout for screen off on 15 sec and if I normally use my phone and hold them in hand my screen flick after 15 sec of last touch ? after that screen shining normally and waits for next action ??

Same issue on Samsung S10 and S10+

Last firmware CTC9

Thank you for reply

Have a nice day
[Android Apps and Games] M1P:
I have a weird issue. Recently changed to Android 10, and now tilt detector is mad. It is ascending and descending itself without any movement.

For example when it lays on flat surface it just keep raising the number of degree, which showed in the app interface. As the result - screen is never off.

On the same phone on Android Pie everything was working great (in fact I have never experienced any problems with this app). I have already checked sensors by various tests using various apps...
[Android Apps and Games] Flyview:
What you're seeing is a glitch only present on Samsung phones on Android 10+. Samsung did some weird things and broke the way KinScreen works (and all other keep-screen on apps) with their newest Android 10 update. I had to build a work-around system to keep the screen on that a bit different than it was. This is the last problem left with it but I'm afraid for now this is the best I can do.

That sounds like a sensor in your phone might be broken. What did you find in other apps testing the sensors? Please verify if the "gravity sensor" chart in the app "SensorKinetics" also oscillates on its own when the phone is just sitting on a flat non-moving surface.
[Android Apps and Games] Flyview:
Hey, sorry for the delay. Looks like your images aren't up anymore. Can you email me about this? I want to re-do the movements in SensorKinetics and make sure we're doing the same thing and then compare. I still think it's your ROM that just reads the values of the sensor backwards.
[Android Apps and Games] Flyview:
You're welcome! Make sure to leave a review on Google Play as well. It really helps others like you find the app.
[Android Apps and Games] ridvanb:
https://xdaforums.com/showthread.php?t=2743082&p=81948949

Thanks
[Android Apps and Games] Donnie Sins:
Bought the app yesterday, because it's too useful not to. Still not sure what my ideal set-up is tough;)
[Android Apps and Games] :
I have got this issue as well on my Note 10 with Android 10 + OneUI 2.1

glad I'm not the only one noticing it (that flicker!)

So until OP has a fix for it, we will have to live with the continous flickering screen I guess.
[Android Apps and Games] Flyview:
Thank you for the support! :victory:

If you disable keep-on-by motion and un-check "allow screen to dim while being kept on", you shouldn't see it. The issue presents itself when KinScreen is keeping the screen on, but not indefinitely. It should also only happen once, unless you touch the screen, at which point it will happen again. This all stems from wakelocks seemingly not having any effect until the screen dims, after the screen is touched on Samsung's Android 10. I wish there was something I could do about it. It looks like keeping the screen on while on the lockscreen is also broken on Samsung's Android 10. Can you guys confirm?
[Android Apps and Games] Flyview:
New update out on XDA Labs and Google Play! I was finally able to fix the screen not staying on while on the lock screen for Samsung Android 10 devices.

5.5.7 (2020.06.30)

-Fixed keeping screen on while on lock screen for Samsung Android 10 devices

-Added Chinese translation (Thanks Yan!)

-Show apps without launch intents (without launcher icons) and without blank icon in app lists even if not a system app. Needed for add-on packs like Captcha Pack for Sleep as Android

-Keep app icons blank for uninstalled apps when scrolling
[Android Apps and Games] WilderSu:
There's a single feature that keeps me from switching from GS, wake up on tilt. In my household power buttons on tablets are usually the first thing to go and some of them don't have proximity sensors, so we use GS to wake our tablets.
[Android Apps and Games] Jivecat:
Recently updated ZTE Axon 10 Pro to Android 10 and KinScreen stops running (e.g. notification disappears, service no longer running, etc.) within a fairly short time (usually within 3-5 minutes).

Battery optimization has been disabled for KinScreen.

Please let me know if you have any other suggestions on keeping this app running, or if there is any other information I can provide to help resolve this issue.

Thanks.
[Android Apps and Games] Flyview:
I'm finally caving and adding this with the next update, stay tuned.

Get a phone that doesn't kill apps. This is honestly the number one problem people write to me about. At least you're aware it's not the app's fault! Have you had a look at www.dontkillmyapp.com ? Have you carefully combed through your system settings? There are often multiple settings you need to change.
[Android Apps and Games] ri0thamus:
Any chance of adding some additional screen off options like upside down or face down on table/surface? I'd love a currently updated app that will help my Samsung Galaxy S10e turn off in pocket or face down. And I'm happy to pay for such an app but GS hasn't been updated in years so I'm not willing to pay there.
[Android Apps and Games] Flyview:
Face down on table or in pocket is already an option (proximity sensor covered). Right now KinScreen will just time out more quickly when this happens so if another app is keeping the screen on, it won't turn off. However I'm adding an option to actively turn the screen off in this case with the next update.
[Android Apps and Games] ri0thamus:
Ah, but the problem is that the S10 line has an under screen proximity sensor that doesn't activate unless on an active call. So that option doesn't work. No apps that utilize the proximity sensor work on the S10 line to my understanding.

When the Kinscreen options are up, the proximity indicator does nothing. It would have to access the gravimeter or whatever GS accesses to determine position. If the proximity sensor worked like normal phones or older phones did, I wouldn't need GS or KinScreen.
[Android Apps and Games] Flyview:
Ah okay I understand. I have a Samsung A20 that has the same proximity sensor issue. It's really bizarre in the way it works. If you mimic putting the phone to your ear even when not in a call, the proximity sensor does activate (most of the time). I really hope they stop doing this in future phones.
[Android Apps and Games] ri0thamus:
Thanks for quoting me so I got the notification for this update. I'm trying out the free trial to see if the update suits my needs. I've only been messing with it for a few minutes but there are three things that I'm curious about compared to GS.

1) Under "Time screen out" and "tilting under -XX.X degrees" I want the screen to turn off immediately. I set it to 0 and I got the message about times under 10s might take 10s to actually turn the screen off. I also have the "actively turn screen off" checked. It does indeed take about 10s to turn the screen off when I turn the phone upside down. However, GS will turn the screen off immediately. I'll even hear the little click on my S10e when the screen turns off either via GS or the power button. Why can't KS turn off the screen that fast and is there a way to decrease the turn off time in the newest version?

2) On GS, I can silent the notification so that it's still in the pulldown and I can do manual toggles but the icon is gone from the status bar, which is my preference. Is there a way to do this for KS? I've silenced both the "Manual Toggle Off" and "Manual Toggle On" but the icon is still there in the status bar. I'm going to see if good lock/quickstar will do it, but I'd rather a way to do it from the KS app.

Nevermind, figured it out in notifications.

3) Do you have any plans to add a "turn off by facedown" option? I'm pretty used to this one from GS and I'd like a quick and easy way to turn off the screen without waiting for a timeout or holding it upside down first.

Thanks again for working to add features!

Riothamus
[Android Apps and Games] Flyview:
Hey, sure thing.

1) If you have "actively turn off" checked, it should turn off exactly when you set it. I just found a small bug here where it will actually take the higher value between turn-off-by-proximity and turn-off-by-angle. I'll fix this ASAP as well as allow 0s timeouts (currently it's 1s). I'll also stop showing the warning for the up to 10s if you have actively turn off selected.

2) Yea, you do this all through the Settings app by configuring the notification channels.

3) This should be the same as turn-off-by-proximity, which KS already has.
[Android Apps and Games] Flyview:
New fix update is out on XDA Labs. It will take a few hours to show up on Google Play.

6.0.1 (2020.11.02)

-Fixed actively turn screen off not using correct timeout

-Allow 0s timeouts

-Don’t show short timeout warning if using actively turn screen off option

-Updated Spanish, Catalan translations. Thanks Rafa!