yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] DMagister:
I just can tap on the screen :)

Now i can't understand when kinscreen lost sensor access. Yesterday it was every time i turn screen on but today it working without problem at all.

Will continue the investigations :)
[Android Apps and Games] butterbeanmash:
I have a 5t and I think the problem lies with OOS - the system is too aggressive in killing apps and doesn't adhere to the rules applied when not optimising battery.

My 5t regularly kills KinScreen if I haven't used the phone for a few hours. It will also kill Blokada, and Screebl when I was using it, despite all being set to 'don't optimise'.

I have submitted a bug report and oneplus contacted me to gather a bug report, but because the issue is unpredictable I am not able to do so - it would mean collecting data over 8 hours or more.
[Android Apps and Games] Fansremember:
Perfect ! i recommend to everyone for use it
[Android Apps and Games] Flyview:
Just published the biggest update in a long time! Now available on Google Play and XDA Labs!

5.0.0 (February 24, 2018)

-Added keep-on while using apps

-Added max angle to keep-on-by-angle

-Added silent mode exception for vibration

-Real-time status bar icon updates

-Negative tilt angle when device is portrait and top down [only if using rotation sensor]

-Show launcher icon correctly on Android 8

-Fixed free tilt angle set to 50deg instead of 45deg

-Cleaner layout (esp. long languages)

-Fixed not being able to click an option after flinging

-Don't show notification badges/dots

-Min API 16

[-Fixed turn-off-by-proximity exception for manual toggle if something already in proximity]

[-Added more auto-filled details to support emails]

[-Fixed no-proximity-sensor not greying out textview]

[-Don't grey out exceptions if respective keep-on-options not selected]

[-Hide notification setting from layout on Android 8+]

[-Change menu item to "Notification settings" instead of "Toggle notification"]

[-Added cancelation of alarm missing from onDestroy]

[-Created notification channels in activity]

[-Updated legacy notifications to use NotificationCompat for priority and setVisibility like in LMO]

[-Take wave-extension into effect for delay for acquire by motion]

[-Bolded titles, made them accent color and added 4dp bottom margin]

[-Increased text size of title in about dialog]

[-Got rid of unused icons and made new versions of the used ones up to xxxhdpi]

[-Checkboxes will now wrap down if too long b/c made the buttons a part of them with spannable strings]

[-Disabled scrolling action bar]
[Android Apps and Games] lavis800:
On my OnePlus 2 running Android Oreo 8.1, Turn on Screen by Uncovering Proximity Sensors only works when my phone is charging. When my phone is not plugged in it does not work.
[Android Apps and Games] Flyview:
It's possible the phone doesn't allow app access to the proximity sensor to save battery. Can anyone else with a OnePlus 2 confirm?
[Android Apps and Games] Flyview:
New update up on Google Play and XDA Labs:

5.0.1 (February 27, 2018)

-Added back Italian, Czech, Spanish, Lithuanian translations

-Fixed negative angle for reverse portrait mode

-Also show negative angle with top down in landscape mode until screen flips

-Updated to support library 27.1.0
[Android Apps and Games] gernasam:
Perfect:laugh:

help me :good:
[Android Apps and Games] RobertEcoppola:
If it is battery efficient then people will like it. Personally wanna give a try. Thanks
[Android Apps and Games] Icetea:
- deleted -
[Android Apps and Games] Devildire:
Lost my premium features with the new price model. How is that intended?
[Android Apps and Games] Flyview:
Yes sorry I didn't see this in time. XDA Labs forum notifications are clearly broken... The fastest way to get a hold of me is through the contact menu option inside the app.

Definitely not intended. Please use the in-app contact menu option for support with that!

Hey guys, is there anyone out there that can test the "while using apps" feature on Android 5.0 or lower?
[Android Apps and Games] tramp20:
Here too.

I sent you my google playstore data number today.
[Android Apps and Games] sowen222:
Hi, just interested... what exactly is the new pricing model?
[Android Apps and Games] Flyview:
I've checked the code and I can't find anything wrong. There seems to be a low incidence of this. You guys have full Play services installed? A logcat would really be useful. Please email me to obtain a debugging version.

EDIT: Actually, I do see a new crash in console happening many times, but only for 14 users. Unfortunately I didn't have my deobfuscation file uploaded so it's hard to tell exactly where the problem is or if it's even related. Not to worry though I'll figure this out.

EDIT2: A user has reported that updating their Google Play store fixed it for them. I would suggest trying to "clear data" on the Google Play store to see if that fixes it.

There's new subscription options in addition to the traditional option to purchase it outright forever.
[Android Apps and Games] mzguy:
Recently your intents stopped working. I had been using them just fine inside Tasker profiles for many months. I suspect they broke on upgrade to Android Oreo, but perhaps it was a Kinscreen update. For example, the intent to stop service doesn't work anymore.

Any ideas? Thanks.
[Android Apps and Games] Flyview:
I don't think I changed anything to do with those intents! Email me if you want me to send you an older version.
[Android Apps and Games] mzguy:
Can anyone confirm that intents are working on the latest version of Kinscreen, on Android 8 or 8.1?

For what it's worth, a Google search shows all kinds of developers of apps having trouble with intents under Oreo. It looks like something changed at the OS level?
[Android Apps and Games] mzguy:
Ok, no one is confirming that intents work. Can anyone, including the app dev, replicate the problem?
[Android Apps and Games] Icetea:
I use OREO 8.0 and kinscreen app doesn't work. any running app wasn’t recognized by kinscreen app.
[Android Apps and Games] demoliner:
Hello,

No problem with Essential PH1 Under OREO 8.1
[Android Apps and Games] Flyview:
I don't use Tasker. Is there a simple way to test this?

Have you given KinScreen the Usage Stats permission (did it ask for it)? Would you be able to send me a logcat? Please email me at contact@teqtic.com for a debugging version.
[Android Apps and Games] mzguy:
I don't know of one. Tasker has a free trial.
[Android Apps and Games] Flyview:
Alright I was able to test it through ADB. Which intent are you testing? This worked for me:

./adb shell

am broadcast -a com.teqtic.kinscreen.ToggleKeepOn
[Android Apps and Games] mzguy:
I was trying the STOP SERVICE intent. I haven't tried others. Are you running Android 8.1?

---------- Post added at 09:04 PM ---------- Previous post was at 09:01 PM ----------

OK, ToggleKeepOn works fine! However, INTENT_STOP_SERVICE does not. Did the name of that one change?
[Android Apps and Games] Flyview:
Interesting, I've confirmed that INTENT_STOP_SERVICE, INTENT_START_SERVICE, and INTENT_TOGGLE_SERVICE no longer work. I have no idea why because they haven't changed. These 3 are different from ToggleKeepOn in that they are inside a BroadcastReceiver that should be receiving intents even when the service isn't running. The ToggleKeepOn intent is received directly by ScreenService, which obviously needs to be running to receive anything.
[Android Apps and Games] mzguy:
This may or may not help:

https://developer.android.com/about/versions/oreo/background.html#broadcasts
[Android Apps and Games] Flyview:
It seems like the problem may be with Tasker not creating an explicit intent pointing to my BroadcastReceiver specifically. Is there a field to enter the component name for the BroadcastReceiver? Its name is com.teqtic.kinscreen.ToggleServiceReceiver.

This works through ADB:

am broadcast -a com.teqtic.kinscreen.INTENT_TOGGLE_SERVICE -n com.teqtic.kinscreen/.ToggleServiceReceiver

am broadcast -a com.teqtic.kinscreen.INTENT_STOP_SERVICE -n com.teqtic.kinscreen/.ToggleServiceReceiver

am broadcast -a com.teqtic.kinscreen.INTENT_START_SERVICE -n com.teqtic.kinscreen/.ToggleServiceReceiver

Note the need for /. before the class name for some reason.
[Android Apps and Games] mzguy:
Tasker has several fields. I entered the following:

Action: com.teqtic.kinscreen.INTENT_TOGGLE_SERVICE

Package: com.teqtic.kinscreen

Class: /.ToggleServiceReceiver

That didn't work. I also tried the following variations in various combinations:

Class: .ToggleServiceReceiver

Class: ToggleServiceReceiver

Class: com.teqtic.kinscreen/.ToggleServiceReceiver

Action: INTENT_TOGGLE_SERVICE

None of those worked.
[Android Apps and Games] Flyview:
I'm not sure what you should enter, someone with more Tasker experience will have to chime in. Seeing as it works through ADB it shouldn't be a problem with KinScreen.
[Android Apps and Games] mzguy:
Should Target be BroadcastReceiver or Service?

---------- Post added at 10:26 PM ---------- Previous post was at 10:24 PM ----------

Did you test INTENT_STOP_SERVICE and INTENT_START_SERVICE as well? Do they work?
[Android Apps and Games] Flyview:
It should be a BroadcastReceiver target.

Yea, just tested them, they work.
[Android Apps and Games] Icetea:
deleted
[Android Apps and Games] Flyview:
Ah ok you didn't mention that it was a Huawei device previously. Yes, that's correct, the Oreo EMUI system seems to have stopped respecting certain wake locks that KinScreen needs to function. This has already been the case with Xiaomi devices running MIUI for some time, although it seems like certain Android versions or device combinations still work. I haven't figured out exactly why this is, considering stock Android 8.1 still respects those wake locks.
[Android Apps and Games] mzguy:
OK, it works. Either my screw up while testing, or an OS update fixed it. I strongly suspect that I simply didn't realize that the screen timeout was reset to 1 minute by Kinscreen, and I was waiting for a screen-off during motion to verify the service was off. I should have just opened the app. There are a lot of reasons for this oversight, but in any case, it works. The above quoted combination of settings in Tasker did the trick. Thanks for the help with testing!
[Android Apps and Games] admuerte:
Hi [MENTION=2584205]Flyview[/MENTION]

I have problems with "Keep screen on", it doesn't work when I tick options "when tilted up 45-90"-in the car holder for playing music, the screen dims and goes black, also I ticked option "while using apps" and selected app, for example music player and with this option screen dims and goes black too.

My phone OP5, stock OxygenOS, Oreo 8.1, latest Magisk 16.0.
[Android Apps and Games] redultra82:
Got a P Smart and as others have said sadly cant keep screen on with this app
[Android Apps and Games] butterbeanmash:
In my experience with my OnePlus 5t you can only use KinScreen with the 'motion' option. If you try using the 'tilt' option OOS will kill KinScreen almost immediately. The OS apparently will not allow any apps to use the gyroscope in the background, so if you have the tilt option on the app will be killed as soon as you exit.

KinScreen works fine for me with just the motion option, although OOS is still too aggressive and seems to ignore the 'not optimized' battery setting so does still kill the app sometimes.
[Android Apps and Games] Flyview:
This was an issue with OnePlus Oreo 8.1. It has stopped respecting long wakelocks. Thankfully I've just put out an update with a workaround :)

P Smart? What's that?

I'm not sure if it was you who first told me about this through emails, but thanks regardless! This little tidbit helped me build a workaround to make KinScreen work as it's supposed to on OnePlus 8.1. KinScreen wasn't being killed, and it has nothing to do with the gyroscope (motion uses it too). Apparently long (>5min?) wakelocks are no longer respected by the system, or not held as long as they're supposed to.

I just put out an update straight to the production channel on Google Play and XDA Labs. Please test it and let me know how it works. People with Huawei 8.0, 8.1 and people with Xiaomi (MIUI), can you please test this as well?

5.2.1 (June 12, 2018)

-Workaround for long wakelocks on some 8.0+ devices (OnePlus, Huawei?, Xiaomi?)

-Fixed a rare crash

-Changed “Turn screen off” to “Time out screen”

-Colored subheadings in green
[Android Apps and Games] redultra82:
Huawei P Smart using Emui 8

Screen still not staying on with latest update
[Android Apps and Games] admuerte:
Hi [MENTION=2584205]Flyview[/MENTION]

After new update, options "while tilted up..." and "while using these apps" works good on OP5 with Oreo 8.1.

Thanks
[Android Apps and Games] Flyview:
Is the notification remaining present once you leave the app? Does it work if KS is open in the foreground?
[Android Apps and Games] redultra82:
Notification stays there

If I have KS open then stays on

In quick settings there is KS keep screen on, but does not stay on
[Android Apps and Games] Flyview:
Darn, so it looks like the problem is different from OnePlus. It would be really nice if manufacturers didn't just randomly stop respecting the Android SDK. Anyone want to send me a problematic device so I can try and develop a workaround? :highfive:
[Android Apps and Games] redultra82:
Its annoying when you get a nice new shiny phone and apps you have to have cant/wont/dont work :(

Viper4android is another one that I miss
[Android Apps and Games] Flyview:
Let the manufacturers know!

New tweak update is out on XDA Labs and Google Play!

5.2.2 (June 12, 2018)

-Fixed timeout being temporarily extended during long standing wakelocks even if keep-on by waving unchecked

-Fixed flashing during long dim wakelock

-Create notification channels before showing notification instead of in activity for people upgrading on/to Oreo

-Re-acquire long wakelocks less frequently
[Android Apps and Games] mzguy:
This was working for a while, but stopped working again recently. I changed nothing. Did a recent Kinscreen update break the intent functionality?
[Android Apps and Games] mzguy:
Can someone please test and let me know? This is great functionality and I miss it! Thanks.
[Android Apps and Games] mzguy:
[MENTION=2584205]Flyview[/MENTION]

Do you know if this is a possibility? Kinscreen intents just stopped working again, after I got them working again a few months ago. Do you mind verifying that INTENT_STOP_SERVICE and INTENT_START_SERVICE are still working for you?
[Android Apps and Games] Wurstwarenfachverkäuferin:
Is there a way to instantaneously turn off screen by proximity combined with angle (pocket, face-down)? It might be dumb, but I don't like the idea of my phone screen being on while in my pocket.

PS: In the gravity screen thread, it was said that instantaneous screen-off requires a rooted phone. So, I'm assuming the screen-off minimum time limit of this app (10 sec or something) is related to that ...
[Android Apps and Games] Flyview:
I'm not sure why they stopped working, I haven't changed anything in that ToggleReceiver class.

This used to work through adb shell:

am broadcast -a com.teqtic.kinscreen.INTENT_TOGGLE_SERVICE -n com.teqtic.kinscreen/.ToggleServiceReceiver

It no longer does. Are intents working for other apps still? It could be security reasons that would have come into effect when the app was built for Android Pie?

The only way for an app to turn off the screen is through the device admin API, which also locks the phone. As of now, KinScreen simply "times out" the screen. That means if another app or the system is keeping the screen on, it will stay on. I'm not willing to implement the device admin API, it confuses a lot of users, and Google is getting more strict for when apps should actually use it. By the way, "instantaneous" turn off when proximity is covered would not be good. It's very easy to inadvertently temporarily cover the proximity sensor. You can set the current timeout to 0s or 1s , but it will only be that short if it's been 9-10s since the last screen touch. The system keeps the screen on 10s from the last touch.
[Android Apps and Games] mzguy:
It must be particular to your app. I also use the Twilight app's intents, also through Tasker. Those never stopped working.

Perhaps you changed nothing in the ToggleReceiver class, but something outside of it. Could it be something simple but easy to overlook, like the ToggleReceiver class being ignored / uninitiated in the code? This changed in the last update or two. And just in case.... you refer to it as the ToggleReceiver class, but in the command you call it ToggleServiceReceiver. Which is it?
[Android Apps and Games] Flyview:
Sorry about that it's ToggleServiceReceiver. It might be working for those other apps still, but those apps might not be built for / targeting Android Pie. What Android version are you on?
[Android Apps and Games] mzguy:
I'm still on 8.1 Oreo.

---------- Post added at 08:47 PM ---------- Previous post was at 08:46 PM ----------

Also, I can't find any general issue / bug with Android Pie intents when I do a web search.
[Android Apps and Games] mzguy:
So now I'm on Pie and the intents still don't work. The intents for the twilight app still work. Something must have been changed in your recent app revisions that caused intents to break.
[Android Apps and Games] DeeZeeDZ:
I used to use Screebl on my older devices. Couldn't find another app with equal functionality, until I discovered this, which is a lot better....

One thing. I often use the notification to force the screen to stay on permanently. Because of that, I love to have this notification at the very top.

On my SGS7e (Android 7) this is no problem, as there is a notification priority setting in app. But on my new Android 8 tablet this option is missing, and the notification can be all over the place.

Is this impossible to fix in 8?

Great app otherwise, thanks!
[Android Apps and Games] Alanon:
I run a custom ROM that's based on AOSP, so I have to preface that depending on your specific ROM, these settings may not apply.

On my device, there are notification settings available for KinScreen and other apps (Settings/ Apps & Notifications/ KinScreen/ App Notifications). In the notification settings, you should find categories, and in the case of KinScreen, there ought to be two of them listed, corresponding with the on and off states of the notification switch. By clicking on either, you'll see the priority settings in a new subsection, called Importance. If you set it to urgent for both categories, the notification should always be on top. Depending on your usage, you can combine priorities based on the state of the notification. On the downside, making it urgent will chime every time it changes its state.
[Android Apps and Games] DeeZeeDZ:
I couldn't find these settings through Android options, but clicking on Notification in Kinscreen options revealed exactly what you described.

I managed to put it on top for now, as for the sound, I selected None, so it'll be quiet...

Thanks for the help!

I just don't understand why I can't find the same depth of notification settings for other apps....
[Android Apps and Games] DeeZeeDZ:
Well, I decided to buy the full version of the app, so I could lower the angle at which the screen stays ON to 15°...

That was the only thing missing from the free app, and now makes it better than Screebl.

But I still can't get it to the top of notifications in Android 8. Obviously they changed how this works...

Funny thing, Playstore has my old credit card stored, which I lost and cancelled, and yet somehow the transaction went through. Unless the charge appears on my cell phone bill, it would seem, I can buy apps for free!?! Exploitable..... :angel:
[Android Apps and Games] koimr:
I don't have my phone in front of me at the moment but doesn't KinScreen provide a Quick Tile that will do this for you?
[Android Apps and Games] DeeZeeDZ:
Not a tile in my case. It's a notification banner under taskbar, when you pull notifications down.

I press that notification, and the screen is permanently ON. I just wish it would stay at the top of the many notifications u have.

EDIT: Actually you are correct. On my SGS7E there is a tile. On my Huawei tablet, there isn't.

The first is Android 7, the second 8.
[Android Apps and Games] koimr:
Ah ok. I did just go and check that the tile is available on my Zenfone 3 Zoom running 8.0 so it must be a device thing.

I do know too that Google really changed the notification stuff with Oreo - wish they had kept it as it was in Nougat. Hope you find a solution!
[Android Apps and Games] DeeZeeDZ:
I doubt there is a solution. I just have to look for the notification lower, or wherever it is.

I just don't understand why they keep changing places...

---------- Post added at 04:13 AM ---------- Previous post was at 03:36 AM ----------

I feel like an idiot now. There IS a tile, and I just put it among the standard ones...

Apparently Kinscreen was not yet installed, when I was editing them last... Thanks for the suggestion!
[Android Apps and Games] koimr:
Hahaha! Great stuff! Always good to hear about a happy solution. :)
[Android Apps and Games] exxTErno:
Hey guys!

First of all I want to say that I've been using this app for years since when my Motorola Defy was a thing, so I really love this app but I just recently bought a Huawei Mate 10 Pro and when I go to play store it tells me that this devise is not compatible and I'm running Oreo 8.0 stock, does anyone knows why?
[Android Apps and Games] Flyview:
I disabled that device because it wasn't working properly on Huawei at one point, but I think it might work now (if you "lock" it in memory from the "recent apps" screen and disable any other "battery saving" aka task killer features). Can you check by downloading the app through XDA Labs? Sorry I haven't checked back in here for a while!

New update out on Play store and XDA Labs:

5.2.3 (November 28, 2018)

-Disabled dynamic notification icon below Android Marshmallow to fix flashing notifications

-Fixed double call to acquire long standing wakelocks

-Replaced 6 month subscription with yearly subscription

-Added Turkish translation (thanks Fatih!)

-Added Dutch translation

-Updated Spanish translation

-Migrated to AndroiX libraries

-Built for Android P
[Android Apps and Games] exxTErno:
Sure thing, I'll give it a try and will report back in a couple of days!! Thanks for your reply, you're the man!!
[Android Apps and Games] Flyview:
Did it work?

Can some Pixel 3/3XL users please try it and see if it's working as expected to keep the screen on? I've had a few reports that it doesn't work.
[Android Apps and Games] rbird2:
I have a Pixel 3XL and KinScreen works fine for me.
[Android Apps and Games] Flyview:
Apparently it might be double tap to wake or flip to shhh that is interfering. Do you have either of those enabled?
[Android Apps and Games] rbird2:
No, I do not need those features so do not have them enabled on my phone.
[Android Apps and Games] Flyview:
Could you please try enabling them one by one and check if it prevents KS from keeping the screen on?