flxapps / DetoxDroid

Use your phone rather than letting your phone use you.
GNU General Public License v3.0
313 stars 16 forks source link

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

Open ryzyx opened 11 months ago

ryzyx commented 11 months ago

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

flxapps commented 11 months ago

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.

ryzyx commented 11 months ago

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?

jollySleeper commented 11 months ago

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.

carafelix commented 11 months ago

Break doom scrolling doesn't work for me either

ParetoOptimalDev commented 11 months ago

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.

depau commented 11 months ago

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.

flxapps commented 11 months ago

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.

depau commented 11 months ago

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.

flxapps commented 11 months ago

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: @.***>

Warden20 commented 11 months ago

The usage time doesnt work

hovancik commented 11 months ago

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.

depau commented 10 months ago

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.

cbaoth commented 10 months ago

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

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

UPDATE:

flxapps commented 10 months ago

@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.

hovancik commented 10 months ago

Just trying on Android 14, Automatic Grayscale:

flxapps commented 10 months ago

@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.)

hovancik commented 10 months ago

Yes, 2.0.4 from F-Droid.

flxapps commented 10 months ago

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

hovancik commented 10 months ago

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.

tokihiyazuve1 commented 10 months ago

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.

cbaoth commented 9 months ago

@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:

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.

Computer2340 commented 9 months ago

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

tokihiyazuve1 commented 9 months ago

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.

treapster commented 8 months ago

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.