Giter VIP home page Giter VIP logo

coffee's People

Contributors

breakdowns avatar dekan avatar dependabot[bot] avatar elaborendum avatar ghostbear avatar imgbot[bot] avatar jaspervdgraaf avatar mueller-ma avatar musicsd avatar mvmike avatar mynacol avatar redcommander735 avatar renovate[bot] avatar rffontenelle avatar ricerox avatar tacothedank avatar tgo1014 avatar vistaus avatar vitor-benosse avatar yoobi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

coffee's Issues

Screen turns off on Xiaomi Mi 6

Screen turns off on Xiaomi Mi 6 (Android 9.0)
I set the "battery optimization" to off for Coffee, but that does not help.

Screen turns off on Galaxy Tab S4

I would like to use this app to read newspapers, because their epaper app does not support wakelocks...
However, after installing and activating the app, the screen still turns off.
After the screen is turned off, the app seems to have deactivated itself.
Is this a Samsung thing, do I need to add some exception somewhere?

Coffee Version 1.2

Samsung Galaxy Tab S4
Android 10
Build QP1A.190711.020.T830XXU4CTJ1

I don't get a tile on pixel 4a

Not sure if I'm doing something wrong... Seems to install ok andi rebooted, but no tile....

Ahh there it is! Haha! Ignore me!

Help button crashes app

Describe the bug
When the "Help" button is pressed the app crashes.

To Reproduce
Steps to reproduce the behavior:

  1. Open app
  2. Click on 'Help'
  3. App closes immediately

Expected behavior
The help dialog should be displayed.

Screenshots
n/a

Device

  • Device: Realme X2 (RMX1993EX_11_C.13)
  • Android version: 10 (ColorOS v7, RealmeUI v1.0)

Additional context
Version 1.12 installed from FDroid

widget should indicate on/off status

First of all, thank you for this app, it's very useful for me.
If using the widget to toggle, the status is unknown unlike using quick tile. I often forget and check manually via the tile fearing if I left it on then battery will drain.

Cannot activate Coffee on Xiaomi Mi 9 with MIUI12 (Android 10)

Describe the bug

It is in the drop-down menu but i am not able to activate Coffee.

Expected behavior
Drop down the menu, press the "Coffee" button an the symbol appears on top

Device (please complete the following information):

  • Device: Xiaomi Mi9
  • Android version: Android 10 with MIUI 12.0.5 (EU-ROM)

Additional context
Add any other context about the problem here.
Coffee 1.2 (F-Droid)

Permission: Permanent notification (no other permissions)
Battery saver: No restrictions
Fullscreen mode: allowed
Autostart: deactivated

S21 ultra - doesn't work currently

I installed latest from F-droid store today, disabled Battery Optimisation for it, but enabling Coffee has no effect.

  • Samsung Galaxy S21 Ultra
  • Stock firmware
  • No root.
  • No smart unlock

I'm a software engineer, but not familiar with Android.

How can I help with debugging this, or possibly with fixing this?

I should note that in the phone "Settings", the values for "Screen Timeout" go up to 10 minutes but there's no "never" option. I don't know if the values supported in "settings" place restrictions on what this app can do?

Improve alternate mode

Describe the bug
The alternate mode should be able to collect previous system setting, after turning off Coffee, it should be able to restore system setting.

To Reproduce
Steps to reproduce the behavior:

  1. Go to main interface
  2. Click on Toggle Coffee
  3. Click on Toggle Coffee again
  4. Open System settings => Display
  5. See error

Expected behavior
I’ve previously set screen timeout time as 1 minute. After I turned off Coffee, I saw it was just changed to 30 minutes.

Screenshots
If applicable, add screenshots to help explain your problem.

Device (please complete the following information):

  • Device: Galaxy F52 5G
  • Android version: 12

Additional context
Add any other context about the problem here.

Link to Fdroid or GitHub page in app.

Is your feature request related to a problem? Please describe.
Currently there is no way in app to check for update or link to the original source of app. Fdroid or GitHub page.
Describe the solution you'd like
Please add link to Fdroid or GitHub page in app. So users can check if there is any update available.

Timer options

Please add timer options on notification by pressing + button to increase timer to 2:00, 5:00, 10:00, 15:00 and 30:00.

Quick Tile Background Does Not Invert/Revert According to the Theme

Describe the bug
Coffee is enabled/disabled but inversion of quick tile indicating either enabled/disabled is not visible until notification shade is closed and then opened again.

To Reproduce
Steps to reproduce the behavior:

  1. Coffee disabled > Click Cofee quick tile to enable
  2. Coffe enabled > click Coffee quick tile to disable

Expected behavior
If disabled, clicking the Coffee quick tile will invert according to the current theme to provide visual feedback that the wake-lock has been enabled. if enabled, clicking Coffee quick tile will revert according to the current theme to provide visual feedback that the wake-lock has been disabled.

Device (please complete the following information):

  • Device: Pixel 6 Pro
  • Android version: 12.1

Additional context
GrapheneOS

Implement safety features

Is your feature request related to a problem? Please describe.
Sometimes I forget that I had Coffee turned on. It may be stolen by others or the battery may be used up, so I would be grateful if you could implement a feature to prevent it.

Describe the solution you'd like
Implement these features:

  • Blink the notification LED when turned on (eg at 1Hz)
  • Vibrate or play sound periodically when turned on
  • Add timer (Allow awake time to be set to a limited time)
    The timer feature has been rejected at #38, but I think it can be solved by providing an option in the app instead of using a tile to adjust the time.

Also, I submitted a Japanese translation on Crowdin. If you like, please approve the translation or give me permission to approve it.

Crashes

Describe the bug
The app is crashing when I press 'help'.
There's another instance of crashing listed below.

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'Settings'
  2. Click on 'Stop coffee after'
  3. The app relaunches

Expected behavior
Opens timer settings

Device (please complete the following information):

  • Device: Realme 7 Pro
  • Android version: 11

Additional context
Add any other context about the problem here.

Plans to Provide Releases on GitHub?

Is your feature request related to a problem? Please describe.
Coffee is unavailble as a pre-built apk anywhere aside from F-Droid. From reliance on Debian Stretch to old dependencies to delayed builds, the F-Droid build system is not nearly as robust as what GitHub offers.

Describe the solution you'd like
GH CI/Actions apk build provided here (preferably with a checksum for integrity) as an official version pushed by the developer. Can continue to have F-Droid sign and publish with their own signing key, but the GH version should serve as the canonical.

Describe alternatives you've considered
Installing F-Droid/Droid-ify i/Neo-Store (still in beta) or downloading from the F-Droid website (all of which equate to relying on F-Droid as the builder and trusted source).

Additional context
https://wonderfall.dev/fdroid-issues/

Not keeping the display awake in a Xiaomi Mi9 Lite (Android 10)

Describe the bug
Simply, Coffee is not keeping the display awake in my Xiaomi Mi9 Lite. It doesn't matter how i toggled it. I tried to disable the battery settings for the app, and read dontkillmyapp.com tips, but nothing changes.
It only keeps the display on when the the app is open, but you can't do something else than see the app.

To Reproduce

  • It's only to toggle on Coffee (the notification is there), and wait. The display goes off like if i didn't toggle on Coffee. When i switch on the display again, the Coffee notification is gone.
  • If i have Coffee app in display (is open) and toggle on, the display is keep on until i go to home screen, then i wait a few seconds and the display goes off like Coffee isn't doing anything (the Coffee notification is there).

Expected behavior
Coffee keeping the display on when the notification is there.

Device (please complete the following information):

  • Device: Xiaomi Mi 9 Lite
  • Android version: Android 10 (MIUI 12.0.5)
  • Coffee 1.8 (From F-Droid)

Additional context
Here is a logcat (filtered with "coffee" keyword). I did two things meanwhile in the time of the log: open Coffee, toggle on, going to home screen and wait. The screen goes off. After that, i opened again Coffee, toggle on again, and wait for a minute or two in the app itself. It kept the display on, but then i went to the home screen and the display went off in some seconds.

Logcat from Coffee 1.8

Logcat, generated with Logs app (filtered with "Coffee" keyword)

03-01 12:54:02.063 D/miuix_anim( 2532): AnimRunningInfo, begin scaleX, toTag = myDown, target object = com.miui.home.launcher.AppIcon{6b661bc VFE...CL. ........ 439,931-642,1241}(Coffee)
03-01 12:54:02.063 D/miuix_anim( 2532): AnimRunningInfo, begin scaleY, toTag = myDown, target object = com.miui.home.launcher.AppIcon{6b661bc VFE...CL. ........ 439,931-642,1241}(Coffee)
03-01 12:54:02.156 D/miuix_anim( 2532): AnimRunningInfo, begin scaleX, toTag = myUp, target object = com.miui.home.launcher.AppIcon{6b661bc VFE...CL. ...P.... 439,931-642,1241}(Coffee)
03-01 12:54:02.156 D/miuix_anim( 2532): AnimRunningInfo, begin scaleY, toTag = myUp, target object = com.miui.home.launcher.AppIcon{6b661bc VFE...CL. ...P.... 439,931-642,1241}(Coffee)
03-01 12:54:02.164 W/XSpaceManagerService( 1658): checkXSpaceControl, from:com.miui.home, to:com.github.muellerma.coffee, with act:android.intent.action.MAIN, callingUserId:0, toUserId:0
03-01 12:54:02.167 I/ActivityTaskManager( 1658): START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.github.muellerma.coffee/.MainActivity bnds=[469,1175][622,1328] (has extras)} from uid 10057
03-01 12:54:02.227 D/Boost   ( 1658): hostingType=activity, hostingName={com.github.muellerma.coffee/com.github.muellerma.coffee.MainActivity}, callerPackage=com.miui.home, isSystem=true, isBoostNeeded=false.
03-01 12:54:02.227 D/OemNetd (  658): setPidForPackage: packageName=com.github.muellerma.coffee, pid=32594, pid=10399
03-01 12:54:02.227 I/ActivityManager( 1658): Start proc 32594:com.github.muellerma.coffee/u0a399 for activity {com.github.muellerma.coffee/com.github.muellerma.coffee.MainActivity} caller=com.miui.home
03-01 12:54:02.254 I/GST     (10265): forePkg: com.github.muellerma.coffee, preForePkg: com.miui.home
03-01 12:54:02.253 I/ProcessMonitor( 4533): onForegroundInfoChanged: ForegroundInfo{mForegroundPackageName='com.github.muellerma.coffee', mForegroundUid=10399, mForegroundPid=32594, mLastForegroundPackageName='com.miui.home', mLastForegroundUid=10057, mLastForegroundPid=2532, mMultiWindowForegroundPackageName='null', mMultiWindowForegroundUid=-1, mFlags=1}
03-01 12:54:02.254 I/GameBoosterService( 4533): onForegroundInfoChanged: Cur=com.github.muellerma.coffee	 last=com.miui.home
03-01 12:54:02.262 D/GameBoosterService( 4533): onGameStatusChange foreground:ForegroundInfo{mForegroundPackageName='com.github.muellerma.coffee', mForegroundUid=10399, mForegroundPid=32594, mLastForegroundPackageName='com.miui.home', mLastForegroundUid=10057, mLastForegroundPid=2532, mMultiWindowForegroundPackageName='null', mMultiWindowForegroundUid=-1, mFlags=1}
03-01 12:54:02.300 W/uellerma.coffee(32594): type=1400 audit(0.0:55143): avc: denied { read } for name="u:object_r:vendor_displayfeature_prop:s0" dev="tmpfs" ino=20953 scontext=u:r:untrusted_app:s0:c143,c257,c512,c768 tcontext=u:object_r:vendor_displayfeature_prop:s0 tclass=file permissive=0
03-01 12:54:02.311 E/Perf    (32594): Fail to get file list com.github.muellerma.coffee
03-01 12:54:02.335 D/ForceDarkHelper(32594): updateByCheckExcludeList: pkg: com.github.muellerma.coffee activity: com.github.muellerma.coffee.MainActivity@ae464ea
03-01 12:54:02.344 I/chatty  (32594): uid=10399(com.github.muellerma.coffee) identical 7 lines
03-01 12:54:02.345 D/ForceDarkHelper(32594): updateByCheckExcludeList: pkg: com.github.muellerma.coffee activity: com.github.muellerma.coffee.MainActivity@ae464ea
03-01 12:54:02.351 D/ForceDarkHelper(32594): updateByCheckExcludeList: pkg: com.github.muellerma.coffee activity: com.github.muellerma.coffee.MainActivity@ae464ea
03-01 12:54:02.353 I/chatty  (32594): uid=10399(com.github.muellerma.coffee) identical 3 lines
03-01 12:54:02.354 D/ForceDarkHelper(32594): updateByCheckExcludeList: pkg: com.github.muellerma.coffee activity: com.github.muellerma.coffee.MainActivity@ae464ea
03-01 12:54:02.359 D/Launcher.Model( 2532): LauncherAppsCallback onShortcutsChanged|com.github.muellerma.coffee|UserHandle{0}
03-01 12:54:02.374 D/RecentsImpl( 2532): mActivityStateObserver com.github.muellerma.coffee.MainActivity
03-01 12:54:02.405 D/com.jarsilio.android.autoautorotate (AppLaunchDetectionService$a)(31180): com.github.muellerma.coffee in foreground: deactivating auto-rotate (if not already the case)
03-01 12:54:02.447 I/ActivityTaskManager( 1658): Displayed com.github.muellerma.coffee/.MainActivity: +277ms
03-01 12:54:02.754 I/Timeline( 1658): Timeline: Activity_windows_visible id: ActivityRecord{30930d8 u0 com.github.muellerma.coffee/.MainActivity t1137} time:122979748
03-01 12:54:02.764 E/Layer   (  905): [Surface(name=AppWindowToken{2b30f16 token=Token{6dbcc31 ActivityRecord{30930d8 u0 com.github.muellerma.coffee/.MainActivity t1137}}})/@0x3645c52 - animation-leash#0] No local sync point found
03-01 12:54:04.317 D/CoffeeTile(32594): requestTileStateUpdate()
03-01 12:54:04.321 D/TileServices( 2166): Couldn't find tile for ComponentInfo{com.github.muellerma.coffee/com.github.muellerma.coffee.CoffeeTile}
03-01 12:54:04.325 D/CoffeeTile(32594): requestTileStateUpdate()
03-01 12:54:04.332 D/TileServices( 2166): Couldn't find tile for ComponentInfo{com.github.muellerma.coffee/com.github.muellerma.coffee.CoffeeTile}
03-01 12:54:04.453 D/SpaceNotificationService( 3219): onNotificationPosted pkgname:com.github.muellerma.coffee userId:0 currentUserId:0 isFloat: false
03-01 12:54:04.456 D/StatusBar( 2166): onNotificationPosted key=0|com.github.muellerma.coffee|1|null|10399 isUpdate=false
03-01 12:54:04.473 D/IconCustomizer( 2166): Generate customized icon for com.github.muellerma.coffee.png
03-01 12:54:04.487 D/StatusBar( 2166): No peeking: unimportant notification: 0|com.github.muellerma.coffee|1|null|10399
03-01 12:54:04.545 D/StatusBar( 2166): No peeking: unimportant notification: 0|com.github.muellerma.coffee|1|null|10399
03-01 12:54:07.328 I/ProcessMonitor( 4533): onForegroundInfoChanged: ForegroundInfo{mForegroundPackageName='com.miui.home', mForegroundUid=10057, mForegroundPid=2532, mLastForegroundPackageName='com.github.muellerma.coffee', mLastForegroundUid=10399, mLastForegroundPid=32594, mMultiWindowForegroundPackageName='null', mMultiWindowForegroundUid=-1, mFlags=0}
03-01 12:54:07.328 I/GameBoosterService( 4533): onForegroundInfoChanged: Cur=com.miui.home	 last=com.github.muellerma.coffee
03-01 12:54:07.328 I/GST     (10265): forePkg: com.miui.home, preForePkg: com.github.muellerma.coffee
03-01 12:54:07.329 D/GameBoosterService( 4533): onGameStatusChange foreground:ForegroundInfo{mForegroundPackageName='com.miui.home', mForegroundUid=10057, mForegroundPid=2532, mLastForegroundPackageName='com.github.muellerma.coffee', mLastForegroundUid=10399, mLastForegroundPid=32594, mMultiWindowForegroundPackageName='null', mMultiWindowForegroundUid=-1, mFlags=0}
03-01 12:54:08.947 W/RecentsModel( 2532): getTaskInfoIgnoreHomeAndFreeform   taskInfo=ComponentInfo{com.github.muellerma.coffee/com.github.muellerma.coffee.MainActivity}
03-01 12:54:24.993 D/PowerManagerService( 1658): screen wakeLock:[SCREEN_BRIGHT_WAKE_LOCK        'Coffee::ForegroundService' DISABLED (uid=10399 pid=32594)] disabled
03-01 12:54:31.244 D/CoffeeTile(32594): requestTileStateUpdate()
03-01 12:54:31.246 D/StatusBar( 2166): onNotificationRemoved key=0|com.github.muellerma.coffee|1|null|10399 reason=8
03-01 12:54:31.256 D/StatusBar( 2166): removeNotification StatusBarNotification(pkg=com.github.muellerma.coffee user=UserHandle{0} id=1 tag=null key=0|com.github.muellerma.coffee|1|null|10399: Notification(channel=foreground_service pri=0 contentView=null vibrate=null sound=null tick defaults=0x0 flags=0x62 color=0xff4e342e category=service vis=PRIVATE publicVersion=Notification(channel=foreground_service pri=0 contentView=null vibrate=null sound=null tick defaults=0x0 flags=0x2 color=0xff4e342e category=service vis=PRIVATE)))
03-01 12:54:31.256 D/StatusBar( 2166):     pkgName=com.github.muellerma.coffee appUid=10399 sdk=30 imp=2 sysApp=F priApp=F hasShown=F float=F keyguard=F peek=F fullscreen=F
03-01 12:54:31.256 D/StatusBar( 2166): update app badge num: com.github.muellerma.coffee/,num=0,isAllowed=false,userId=0
03-01 12:54:31.258 I/Launcher.ApplicationsMessage( 2532): update com.github.muellerma.coffee/ to null
03-01 12:54:31.263 D/TileServices( 2166): Couldn't find tile for ComponentInfo{com.github.muellerma.coffee/com.github.muellerma.coffee.CoffeeTile}
03-01 12:54:32.869 D/miuix_anim( 2532): AnimRunningInfo, begin alpha, toTag = z, target object = com.miui.home.launcher.ShortcutIcon{39a9d47 VFE...CL. ........ 439,1559-642,1848}(Coffee)
03-01 12:54:32.869 D/miuix_anim( 2532): AnimRunningInfo, begin scaleX, toTag = z, target object = com.miui.home.launcher.ShortcutIcon{39a9d47 VFE...CL. ........ 439,1559-642,1848}(Coffee)
03-01 12:54:32.869 D/miuix_anim( 2532): AnimRunningInfo, begin scaleY, toTag = z, target object = com.miui.home.launcher.ShortcutIcon{39a9d47 VFE...CL. ........ 439,1559-642,1848}(Coffee)
03-01 12:54:32.869 D/miuix_anim( 2532): AnimRunningInfo, begin translationY, toTag = z, target object = com.miui.home.launcher.ShortcutIcon{39a9d47 VFE...CL. ........ 439,1559-642,1848}(Coffee)
03-01 12:55:04.314 D/miuix_anim( 2532): AnimRunningInfo, begin alpha, toTag = z, target object = com.miui.home.launcher.ShortcutIcon{39a9d47 VFE...CL. ........ 439,1559-642,1848}(Coffee)
03-01 12:55:04.314 D/miuix_anim( 2532): AnimRunningInfo, begin scaleX, toTag = z, target object = com.miui.home.launcher.ShortcutIcon{39a9d47 VFE...CL. ........ 439,1559-642,1848}(Coffee)
03-01 12:55:04.314 D/miuix_anim( 2532): AnimRunningInfo, begin scaleY, toTag = z, target object = com.miui.home.launcher.ShortcutIcon{39a9d47 VFE...CL. ........ 439,1559-642,1848}(Coffee)
r.ShortcutIcon{39a9d47 VFE...CL. ........ 439,1559-642,1848}(Coffee)
03-01 12:55:08.656 D/Launcher.CellLayout( 2532): touch item:ShortcutInfo, id=195, itemType=0, user=UserHandle{0}, mIconType=0, pkgName=com.github.muellerma.coffee, className=com.github.muellerma.coffee.MainActivity, screenId=1, container=-100, cellX=2, cellY=5, spanX=1, spanY=1, isLandscapePos=false
03-01 12:55:08.658 D/miuix_anim( 2532): AnimRunningInfo, begin scaleX, toTag = myDown, target object = com.miui.home.launcher.ShortcutIcon{39a9d47 VFE...CL. ........ 439,1559-642,1848}(Coffee)
03-01 12:55:08.658 D/miuix_anim( 2532): AnimRunningInfo, begin scaleY, toTag = myDown, target object = com.miui.home.launcher.ShortcutIcon{39a9d47 VFE...CL. ........ 439,1559-642,1848}(Coffee)
03-01 12:55:08.734 D/miuix_anim( 2532): AnimRunningInfo, begin scaleX, toTag = myUp, target object = com.miui.home.launcher.ShortcutIcon{39a9d47 VFE...CL. ...P.... 439,1559-642,1848}(Coffee)
03-01 12:55:08.735 D/miuix_anim( 2532): AnimRunningInfo, begin scaleY, toTag = myUp, target object = com.miui.home.launcher.ShortcutIcon{39a9d47 VFE...CL. ...P.... 439,1559-642,1848}(Coffee)
03-01 12:55:08.741 W/XSpaceManagerService( 1658): checkXSpaceControl, from:com.miui.home, to:com.github.muellerma.coffee, with act:android.intent.action.MAIN, callingUserId:0, toUserId:0
03-01 12:55:08.742 I/ActivityTaskManager( 1658): START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.github.muellerma.coffee/.MainActivity bnds=[469,1664][622,1817] (has extras)} from uid 10057
03-01 12:55:08.772 I/ProcessMonitor( 4533): onForegroundInfoChanged: ForegroundInfo{mForegroundPackageName='com.github.muellerma.coffee', mForegroundUid=10399, mForegroundPid=32594, mLastForegroundPackageName='com.miui.home', mLastForegroundUid=10057, mLastForegroundPid=2532, mMultiWindowForegroundPackageName='null', mMultiWindowForegroundUid=-1, mFlags=0}
03-01 12:55:08.772 I/GameBoosterService( 4533): onForegroundInfoChanged: Cur=com.github.muellerma.coffee	 last=com.miui.home
03-01 12:55:08.772 I/GST     (10265): forePkg: com.github.muellerma.coffee, preForePkg: com.miui.home
03-01 12:55:08.785 D/GameBoosterService( 4533): onGameStatusChange foreground:ForegroundInfo{mForegroundPackageName='com.github.muellerma.coffee', mForegroundUid=10399, mForegroundPid=32594, mLastForegroundPackageName='com.miui.home', mLastForegroundUid=10057, mLastForegroundPid=2532, mMultiWindowForegroundPackageName='null', mMultiWindowForegroundUid=-1, mFlags=0}
03-01 12:55:08.794 D/RecentsImpl( 2532): mActivityStateObserver com.github.muellerma.coffee.MainActivity
03-01 12:55:08.814 D/com.jarsilio.android.autoautorotate (AppLaunchDetectionService$a)(31180): com.github.muellerma.coffee in foreground: deactivating auto-rotate (if not already the case)
03-01 12:55:08.850 D/com.jarsilio.android.autoautorotate (AppLaunchDetectionService$a)(31180): com.github.muellerma.coffee in foreground: deactivating auto-rotate (if not already the case)
03-01 12:55:09.274 I/Timeline( 1658): Timeline: Activity_windows_visible id: ActivityRecord{30930d8 u0 com.github.muellerma.coffee/.MainActivity t1137} time:123046268
03-01 12:55:09.288 E/Layer   (  905): [Surface(name=AppWindowToken{2b30f16 token=Token{6dbcc31 ActivityRecord{30930d8 u0 com.github.muellerma.coffee/.MainActivity t1137}}})/@0x3645c52 - animation-leash#0] No local sync point found
03-01 12:55:10.810 D/CoffeeTile(32594): requestTileStateUpdate()
03-01 12:55:10.813 D/TileServices( 2166): Couldn't find tile for ComponentInfo{com.github.muellerma.coffee/com.github.muellerma.coffee.CoffeeTile}
03-01 12:55:10.815 D/CoffeeTile(32594): requestTileStateUpdate()
03-01 12:55:10.834 D/TileServices( 2166): Couldn't find tile for ComponentInfo{com.github.muellerma.coffee/com.github.muellerma.coffee.CoffeeTile}
03-01 12:55:10.963 D/SpaceNotificationService( 3219): onNotificationPosted pkgname:com.github.muellerma.coffee userId:0 currentUserId:0 isFloat: false
03-01 12:55:10.970 D/StatusBar( 2166): onNotificationPosted key=0|com.github.muellerma.coffee|1|null|10399 isUpdate=false
03-01 12:55:10.984 D/IconCustomizer( 2166): Generate customized icon for com.github.muellerma.coffee.png
03-01 12:55:10.998 D/StatusBar( 2166): No peeking: unimportant notification: 0|com.github.muellerma.coffee|1|null|10399
03-01 12:55:11.063 D/StatusBar( 2166): No peeking: unimportant notification: 0|com.github.muellerma.coffee|1|null|10399
03-01 12:55:26.649 D/PowerCheckerService( 6013): foreground, uid = 10399, app = com.github.muellerma.coffee
03-01 12:58:27.424 I/ProcessMonitor( 4533): onForegroundInfoChanged: ForegroundInfo{mForegroundPackageName='com.miui.home', mForegroundUid=10057, mForegroundPid=2532, mLastForegroundPackageName='com.github.muellerma.coffee', mLastForegroundUid=10399, mLastForegroundPid=32594, mMultiWindowForegroundPackageName='null', mMultiWindowForegroundUid=-1, mFlags=0}
03-01 12:58:27.424 I/GameBoosterService( 4533): onForegroundInfoChanged: Cur=com.miui.home	 last=com.github.muellerma.coffee
03-01 12:58:27.424 I/GST     (10265): forePkg: com.miui.home, preForePkg: com.github.muellerma.coffee
03-01 12:58:27.425 D/GameBoosterService( 4533): onGameStatusChange foreground:ForegroundInfo{mForegroundPackageName='com.miui.home', mForegroundUid=10057, mForegroundPid=2532, mLastForegroundPackageName='com.github.muellerma.coffee', mLastForegroundUid=10399, mLastForegroundPid=32594, mMultiWindowForegroundPackageName='null', mMultiWindowForegroundUid=-1, mFlags=0}
03-01 12:58:37.778 D/PowerManagerService( 1658): screen wakeLock:[SCREEN_BRIGHT_WAKE_LOCK        'Coffee::ForegroundService' DISABLED (uid=10399 pid=32594)] disabled
03-01 12:58:44.010 D/StatusBar( 2166): onNotificationRemoved key=0|com.github.muellerma.coffee|1|null|10399 reason=8
03-01 12:58:44.019 D/CoffeeTile(32594): requestTileStateUpdate()
03-01 12:58:44.021 D/StatusBar( 2166): removeNotification StatusBarNotification(pkg=com.github.muellerma.coffee user=UserHandle{0} id=1 tag=null key=0|com.github.muellerma.coffee|1|null|10399: Notification(channel=foreground_service pri=0 contentView=null vibrate=null sound=null tick defaults=0x0 flags=0x62 color=0xff4e342e category=service vis=PRIVATE publicVersion=Notification(channel=foreground_service pri=0 contentView=null vibrate=null sound=null tick defaults=0x0 flags=0x2 color=0xff4e342e category=service vis=PRIVATE)))
03-01 12:58:44.021 D/StatusBar( 2166):     pkgName=com.github.muellerma.coffee appUid=10399 sdk=30 imp=2 sysApp=F priApp=F hasShown=F float=F keyguard=F peek=F fullscreen=F
03-01 12:58:44.021 D/StatusBar( 2166): update app badge num: com.github.muellerma.coffee/,num=0,isAllowed=false,userId=0
03-01 12:58:44.028 I/Launcher.ApplicationsMessage( 2532): update com.github.muellerma.coffee/ to null
03-01 12:58:44.033 D/TileServices( 2166): Couldn't find tile for ComponentInfo{com.github.muellerma.coffee/com.github.muellerma.coffee.CoffeeTile}
03-01 12:58:47.402 D/miuix_anim( 2532): AnimRunningInfo, begin alpha, toTag = z, target object = com.miui.home.launcher.ShortcutIcon{39a9d47 VFE...CL. ........ 439,1559-642,1848}(Coffee)
03-01 12:58:47.402 D/miuix_anim( 2532): AnimRunningInfo, begin scaleX, toTag = z, target object = com.miui.home.launcher.ShortcutIcon{39a9d47 VFE...CL. ........ 439,1559-642,1848}(Coffee)
03-01 12:58:47.402 D/miuix_anim( 2532): AnimRunningInfo, begin scaleY, toTag = z, target object = com.miui.home.launcher.ShortcutIcon{39a9d47 VFE...CL. ........ 439,1559-642,1848}(Coffee)
03-01 12:58:47.402 D/miuix_anim( 2532): AnimRunningInfo, begin translationY, toTag = z, target object = com.miui.home.launcher.ShortcutIcon{39a9d47 VFE...CL. ........ 439,1559-642,1848}(Coffee)

Thanks!

More easily trigger timeouts of various lengths

Is your feature request related to a problem? Please describe.
It's inconvenient to only be able to adjust how long the timeout triggered by the QS tile is by going into the settings and changing the option there. It's often the case that I'll want to use different timeouts, e.g. keep my phone awake endlessly while I'm running an idle game at my desk, vs keeping the phone awake for 5 minutes while reading through some long piece of text on the screen.

Describe the solution you'd like
Tapping and holding on the QS tile should bring up options for how long to set the timeout for the activation about to be done. The single tap behavior could be based on some default (set in the settings) or the last used timeout.

QS tile no longer available.

Describe the bug
I reported the crashing earlier, and it was fixed in v2.2, however, starting from v2.2, the QS tile is not available anymore.
To Reproduce
Steps to reproduce the behavior:

  1. Go to quick settings edit mode
  2. No coffee tile available

Expected behavior
I had previously added the tile when I was using v2.1, so when I updated the app it was still there.
After restarting the phone however, it turned into a blank tile (it still works, screenshot attached) and if I remove I can't add it again.

Screenshots
IMG_20220523_193050

IMG_20220523_193059

Device (please complete the following information):

  • Device: Realme 7 Pro
  • Android version: 11

Additional context
One more thing, coffee's icon is blank in the settings (normal in launcher when using default icon shape).

Unable to exit the display awake state

Describe the bug
Coffee doesn't allow the display to exit the awake state after second toggle

To Reproduce
Steps to reproduce the behavior:

  1. tap coffee quicktile
  2. display is awake
  3. tap coffee quicktile a second time
  4. nothing happens, display is still awake

Expected behavior
display exits the awake state

Device (please complete the following information):

  • Device: Realme 7 Pro
  • Android version: 11

I have to click several times (on the shortcut in the notifications) to activate Coffee

Describe the bug
I need to click several times on the shortcut in the notifications (sometimes something like 8-10 click) to activate Coffee

To Reproduce
Steps to reproduce the behavior:

  1. Click on the shortcut
  2. Cry

Expected behavior
Click one time to run Coffee

Device (please complete the following information):

  • Device: Pixel 6
  • Android version: 12

Tile doesn't appear in quick settings.

Hey dev,

I gave your app a trial today, as the "Caffeine Tile" in F-Droid that I used formerly hasn't been maintained in 3 years.
Unfortunately the Tile doesn't appear in the quick settings. Is there any troubleshooting I can do on my end? Do permissions have to be set?

Thank you,
Jay

Translations

The app strings and the description for F-Droid could be translated to a few more languages. See "Translations" in the Readme for more information.

Widget

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [I open & toggle WiFi, Bluetooh etc from quick settings because my device is a 8inch tablet. Its not very convenient to drag the notification bar in bigger size devices or tablets].

Describe the solution you'd like
It would be nice to have a widget in home screen which can does the same job.

Additional context
ideas for widget: maybe a widget like Night Screen or transparent widget like Habits would look great.

Screenshot_2020-12-07-05-15-05

Thanks🙏🏿

Coffee does not keep the display awake outside of the app itself.

Describe the bug
Coffee keeps the display on inside the app, but not outside it, I have battery optimisation disabled in system settings.

To Reproduce
Steps to reproduce the behavior:

  1. Turn on Coffee.
  2. Leave the app.
  3. The screen will turn off.

Expected behavior
Coffee is supposed to keep the display awake outside of the app.

Device (please complete the following information):

  • Device: Galaxy Tab A 2019
  • Android version: 10

Additional context
Downgrading did not solve this.

Quick Setttings Tile disabled after reboot or update

Describe the bug
The Quick Settings Tile for Coffee is set and working, but when i reboot the phone, the tile is disabled and i can toggle it (although i can open Coffee if i hold in it). The only way to enable it again is remove the tile and put it again.
Also i think happens when Coffee updates, but i need to see it again to confirm it.

To Reproduce
Steps to reproduce the behavior:

  1. Set the tile for Coffee. Test it's working.
  2. Reboot the phone. (Also i think it happens when Coffee updates).
  3. The tile now is disabled. You can't toggle directly there now.
  4. Remove the tile, and press ok. Open again Quick Settings to put it again.
  5. It works again.

Expected behavior
The tile should be enabled always, after the phone is rebooted (or it updates).

Screenshots
Working tile:
1657093519203

Tile after a reboot:
1657093519212

The only option is to remove the tile and put it again.

Device (please complete the following information):

  • Device: Xiaomi Mi 9 Lite
  • Android version: 10 (MIUI 12.0.10/QKQ1.190828.002)
  • Coffee 2.4 installed via F-Droid.

Additional context
It's something i detected at least a month ago, but i was occupied and forgot to report it.

Thanks!

Doesn't work on Samsung S20 FE 5G

Describe the bug
This doesn't work on my device (Samsung S20 FE 5G). I installed Coffee 1.18 from F-Droid, and disabled Battery Optimisation. After my normal screen timeout duration, the screen turns off like normal.

FWIW Caffeine - Keep Screen On works fine on my device. This suggests that perhaps this issue fixable, but unfortunately that app is closed-source, so it might be hard to emulate.

To Reproduce
Steps to reproduce the behavior:

  1. Go to the Android menu in the status bar
  2. Tap on Coffee Quick Tile
  3. Wait for timeout duration

Expected behavior
Screen should stay on.

Observed behavior
Screen turns off.

Device (please complete the following information):

  • Device: Samsung S20 FE 5G
  • Android version: 11

Tasker integration

Is it possible to trigger on/off with tasker / terminal to somewhat be able to have conditional enabling where the phone does not go to sleep anymore.

E.g. having a profile where coffee is enabled when connected to a power source or to a certain bt device

Coffee doesn't work on poco x3 pro

coffee app doesn't seem to work on my poco x3 pro. I have disabled all the battery optimizations. whenever I toggle it, it shows that it is keeping the display awake but it doesn't. I tried reinstalling it but no results.

After enabling Coffee app also my screen turnsoff. My mobile is Samsung A30, running oneUI 2.0 based on Android 10.

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Device (please complete the following information):

  • Device: [e.g. Pixel 3]
  • Android version: [e.g. 11]

Additional context
Add any other context about the problem here.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.