DetoxDroid icon indicating copy to clipboard operation
DetoxDroid copied to clipboard

Neither the screen time option working nor the doom scroll option working

Open ryzyx opened this issue 1 year ago • 24 comments

The screen time option still shows permission required even though I have already granted it. The doom scroll feature doesn't work at all on my phone for some reason. Literally nothing comes up when I'm scrolling. WhatsApp Image 2023-11-29 at 00 22 43_941756f0 WhatsApp Image 2023-11-29 at 00 22 44_3fddba8a

ryzyx avatar Nov 28 '23 18:11 ryzyx

Try completely restarting the app.

It is a bug that it won't show the stats when returning to DetoxDroid after granting the permission though.

flxapps avatar Nov 28 '23 21:11 flxapps

Try completely restarting the app.

It is a bug that it won't show the stats when returning to DetoxDroid after granting the permission though.

Ok it works now after so many triesss. But the doom scrolling feature still doesn't work :( . Any advice?

ryzyx avatar Nov 29 '23 16:11 ryzyx

Try completely restarting the app.

It is a bug that it won't show the stats when returning to DetoxDroid after granting the permission though.

Hi, It still didn't work for me.

P.S: Thanks for the Amazing app.

jollySleeper avatar Nov 30 '23 18:11 jollySleeper

Break doom scrolling doesn't work for me either

carafelix avatar Dec 04 '23 13:12 carafelix

Mine was working last night when I installed, then this morning I noticed this "screen time unavailable" message.

I tapped "Grant Permission" and it of course already has permission.

I force closed, re-opened, same message.

Then I tried removing permission, adding it back, same message.

I also tried stopping/starting detox droid.

Still stuck at this message.

ParetoOptimalDev avatar Dec 05 '23 17:12 ParetoOptimalDev

I'm also experiencing similar issues with the new version of the app: break infinite scrolling has never worked since the update was released. Additionally every now and then if I enter the app I see that it's not started. After starting it would say nothing, then stop after a while. Occasionally after starting it it asks to grant the adb permissions even though I already granted them (multiple times as well)

By the way, you might want to consider integrating with Shizuku to make granting the adb permissions a lot simpler. I already use Shizuku on all of my devices in order to be able to easily configure AppOps on my stock ROM.

depau avatar Dec 08 '23 09:12 depau

I am having a hard time reproducing the issues. I will try to make the "break infinite scrolling" detection heuristic a bit more generous and, hopefully, this will fix it.

flxapps avatar Dec 14 '23 15:12 flxapps

I'm not sure whether the problem is with the heuristics (it works fine with the oldest version on F-Droid, which is what I'm currently using).

With the new app build the service just won't keep running.

I can send logs or other debug info if you think it could be useful. I'm using a Pixel 7 Pro running the stock rom.

depau avatar Dec 15 '23 15:12 depau

But does for example the grayscale feature work (i.e. if you activate it, add some exceptions and start DetoxDroid, will the screen turn gray depending on the app in the foreground)?

Or is the DetoxDroid background service as a whole not working?

On December 15, 2023 4:41:31 PM GMT+01:00, Davide Depau @.***> wrote:

I'm not sure whether the problem is with the heuristics (it works fine with the oldest version on F-Droid, which is what I'm currently using).

With the new app build the service just won't keep running.

I can send logs or other debug info if you think it could be useful. I'm using a Pixel 7 Pro running the stock rom.

-- Reply to this email directly or view it on GitHub: https://github.com/flxapps/DetoxDroid/issues/92#issuecomment-1858081141 You are receiving this because you were assigned.

Message ID: @.***>

flxapps avatar Dec 15 '23 16:12 flxapps

The usage time doesnt work

Warden20 avatar Dec 19 '23 13:12 Warden20

Hi, I am also seeing "Screen time unavailable" even though I granted permissions. Tried restaring app, phone, removing permissions but still the same. Galaxy S22 / Android 14.

hovancik avatar Dec 20 '23 11:12 hovancik

I'm not sure what is going on but the app as a whole is not working, it might be an issue with Android 14. I only use it for "break infinite scrolling" and it's definitely still not working. Greyscale also doesn't work.

In general if I press "Start" it always asks for the WRITE_SECURE_SETTINGS permission which I already granted, as well as the usage permission, and it appears to not be working. I can reproduce this on an emulator running the UpsideDownCake Android 14.0 (Google APIs) image.

Speaking of the WRITE_SECURE_SETTINGS permission, it would be helpful if the adb command text were selectable so one could run it in Termux with local wireless debugging.

By the way, the last 1.x version of the app is gone from F-Droid for some reason.

depau avatar Dec 25 '23 08:12 depau

Hi, I just tried he app for the first time and stumbled upon the same issue(s).

  • Phone: Google Pixel 6
  • Android: 14
  • DetoxDroid: 2.0.3, latest from F-Droid

I did some brief testing just in case this could help further investigating this issue:

  • Doom scrolling:
    • It doesn't seem to work but I can't be 100% sure since I never saw it in action.
    • I activated it using "not-list" w/a selecting any app, set to the time to 1min, scrolled for at least 2 min each both in the YouTube and Instagram app, and nothing happened.
  • Automatic Grayscale:
    • It only working globally for all apps depending on the app selection mode. "only-list" -> always color, "not-list" -> always gray (whole system no matter my app selection). I left the "Ignore Non-Fullscreen Apps" just in case.
    • When clicking on "Allow Daily Color Screen Time" I get the "DetoxDroid needs specific permissions for this feature to work" floating notification pointing me to the "Usage access" app list (already granted, tried multiple times including killing the app and restarting my phone without any affect).
    • Schedules don't seem to have an effect. In my case setting it to "not-list" (always gray) and setting up a timer either including or excluding the current time, even after switching the feature on and off, made everything gray all the time (same as without schedule).
    • Sidenote: I noticed that changes (e.g. "only-list" to "not-list") only take affect after disabling and enabling the Automatic Grayscale option or pressing Stop and Start DetoxDroid. Not sure if this is intentional.
  • Disable Apps:
    • Doesn't seem to work either, all apps I selected can still be started and used.
    • When trying to switch Operation Mode from "Block" to "Deactivate" I get the "needs specific permission" which points me the the adb set-device-owner command which I already executed before, stopping the same message from popping up in the main screen but apparently not here. Executing the command again and even restarting my phone didn't make a difference.

UPDATE:

  • I sporadically get the "needs specific permissions" popup with the "adb set-device-owner" when restart the service by pressing "Stop" then "Start DetoxDroid". Sometimes it popes up, sometimes not.
  • Also when restarting the service this way having grayscale on with the schedule (outside current time, somewhere in the future) grayscale stays on even when stopping DetoxDroid, only after switching off the whole grayscale option I get color again, switching it on again, even though the service should be stopped, keeps everything gray. After deleting the schedule switching the grayscale option on and off does nothing (it stays gray). After stopping and starting the service it works as before (without schedule), meaning bot the service itself and the grayscale option can toggle the global gray-mode of my phone.
    • It seems, as mentioned above, that some changes don't trigger a change event to the active service or consider the service at all.
    • At some point I was not able to toggle off grayscale at all, after restarting my phone everything was still gray, starting the service showed the permission popup and apparently put a second time effect onto my screen due to enabling grayscale again. Luckily now I was able to disable grayscale mode.

cbaoth avatar Dec 29 '23 11:12 cbaoth

@cbaoth Has this issue been fixed with the latest update? I tried to test it on Android 14 with the emulator, but the grayscale mode apparently did not work (even if I used Google's Digital Wellbeing Software or the accessibility settings). I assume it's an issue with the emulator, though.

flxapps avatar Jan 16 '24 11:01 flxapps

Just trying on Android 14, Automatic Grayscale:

  • Feature Schedule does not work, grayscale is not applied at specified time
  • When clicking on checkbox on the top, the grayscale is turned (no matter the Schedule) on and then app crashes. Same when then I start app again and turn the feature off: app crashes and grayscale is turned off.

hovancik avatar Jan 16 '24 12:01 hovancik

@hovancik Using v2.0.4? (Because I remember fixing a bug that caused the app to crash under certain conditions when the switch on the top was clicked.)

(I can reproduce the issue with the Schedule though. Thank you! I will work on it.)

flxapps avatar Jan 16 '24 12:01 flxapps

Yes, 2.0.4 from F-Droid.

hovancik avatar Jan 16 '24 13:01 hovancik

Is there any way you could paste the stack trace that causes the crash here?

flxapps avatar Jan 16 '24 14:01 flxapps

Well, if there are some steps to follow to get the trace I can do it, but don't know how it is done. I am not seeing any messages.

hovancik avatar Jan 16 '24 14:01 hovancik

~~Hi, I want to report same problem. The doom scrolling never work on version 2.x.x (my device is Poco X3 NFC (A12, v8a) and Redmi 6a (A9, v7a). I've tried every version, and I have found out that only the 1.2.0 had it work (everytime I try, I always make sure to allow draw over other apps & draw over other apps in background permissions). Sorry for my bad english.~~

tokihiyazuve1 avatar Jan 19 '24 04:01 tokihiyazuve1

@cbaoth Has this issue been fixed with the latest update? ...

Hi @flxapps, I finally got around to test it (with v2.0.5) and at a quick glance both the scheduled grayscale as well as the doom scrolling feature seem to work now!

I have not tested it thoroughly yet though, just:

  • Setting a grayscale schedule to current timeframe enables it globally (what I want for the evening/night time). At first glance no issues with enabling/disabling.
  • I tried to scroll in the YouTube app for over 1min with a 1min time limit set and it forces me to take a short break in which I'm unable to use the app (exactly what I want).

I'll try to use it within the next days and see if anything (bug related) pops up, until then, thanks for the fix ... and the app in general, exactly what I need for my (actual) ADHD brain and at first glance better than any other solution I found up until now.

cbaoth avatar Jan 28 '24 14:01 cbaoth

I was able to fix this by adding DetoxDroid to my list of DuraSpeed exceptions. Check in your settings menu if your phone came with DuraSpeed, and if it did, add DetoxDroid as an exempted app

Computer2340 avatar Feb 06 '24 22:02 Computer2340

Hi, I want to report same problem. The doom scrolling never work on version 2.x.x (my device is Poco X3 NFC (A12, v8a) and Redmi 6a (A9, v7a). I've tried every version, and I have found out that only the 1.2.0 had it work (everytime I try, I always make sure to allow draw over other apps & draw over other apps in background permissions). Sorry for my bad english.

Oh right, sorry, looks like I made a false report. The feature works after I change some settings on the exception list.

tokihiyazuve1 avatar Feb 07 '24 03:02 tokihiyazuve1

I've got the same issue, neither usage stats nor scrolling detection work on my redmi note 10 pro/LineageOS 20. I guess google once again broke some APIs in newer android versions.

treapster avatar Mar 02 '24 00:03 treapster