Git Product home page Git Product logo

maforn / timedshutdownandroid Goto Github PK

View Code? Open in Web Editor NEW
25.0 1.0 2.0 5.58 MB

An app for android that will automatically shutdown your phone after a timer without needing root access. This app uses the accessiblity permission to emulate the power off gestures.

License: GNU General Public License v3.0

Java 100.00%
accessibility android android-application shutdown shutdown-timer alarmmanager

timedshutdownandroid's Introduction

Timed Shutdown Android app (no root)

An Android app that uses the accessibility permission to simulate the user gestures and power off the phone.

Get it on F-Droid Download from Google Play

App screenshots1 App screenshots2

How to contribute

If you want to contribute, you are welcome to do so! All the Java files have relevant comments (app/src/main/java/com/maforn/timedshutdown). You can:

  • help with the translation of the app
  • open issues and PRs (including a corresponding issue)

Crowdin: Crowdin

Disclaimer

Google Play and the Google Play logo are trademarks of Google Inc.

timedshutdownandroid's People

Contributors

maforn avatar poussinou 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

Watchers

 avatar

timedshutdownandroid's Issues

Alarms acting as timers ?

First of all thank you soqmuch ! this app is a godsent. i've spent so much time searching for an app to do just that, without root!

My issue is as follows: i had set up an "Alarm" to 00:20, hoping it would automatically shutdown my phone twenty minutes after midnight every day.
But what it actually seems to do is… shutdown ym phone 20 seconds after the app started !! Which endelessly sfutdown the phone whenever i booted it up. Both funny and very problematic 🤡

Did i not understand how alarms worked, or may there be something messing with them?
One thing i can see could have altered this is that i previously tried a 1-second-long timer just to try the functionality of that app. Maybe it somehow automatically re-schedules that timer ?

Precision when asking for permissions

When asking for permissions, the app only asks the user to grant them " in the parameters" or "restricted parameters". This is a bit confusing as a user might mistake it for the app parameters.

To be perfectly clear, ask about giving these permissions "in the [restricted] parameters of your device".

Flip Phones

What about Options for Flip phones like Samsung Galaxy Zflip 4 and Zflip 5 when phone is shut

THUMB_001_kv_galaxy_zflip4_color_combo_1p

Separate Setup and Settings

It seems a bit strange to have the 12h/24h option in the Settings, among other buttons thatqrelute to the setup of your gestures.
While setup is hopefully only done once, settings can be changed depending on the user's preferences. So i'd suggest separating them into two tabs.

The Setup tab would only relate to gestures for the power dialog, and Settings would contain options for 12h/24h format and possible future options.
Settings could also have traditional info you find in other apps: github link, app version, creator name…

Doesn't work when screen is off

When I set a schedule for example and my phone screen turns off after awhile as I fall asleep, the app won't do the actions in the background. Is it possible to add a command that the screen turns on as soon as the shutdown process starts? And is this also possible on the lock screen, so I don't have to unlock first?

12-hour time support for the time picker

I'm from the US and was confused by the time picker because it doesn't show AM or PM and I'm not used to 24-hour time. I figured it out pretty quickly but it would be good if 12-hour time was an option.

Inclusion in F-droid store

Hello,
Would you consider publishing your app on the F-Droid store ? there are no similar app available on there and it would give more visibility and possible contributions to your work :)

Being published on the Google Play Store isn't helpful as yours is being drowned under a truckton of other shutdown apps claiming to do the same while providing ads-a-plenty to unwilling users.

single tap shows long press menu

I'm using lineage 21, Android 14
When the timer runs out, the single tap in the power button seems to be too long and it displays the long press menu instead of powering off the device.

Add option to automatically schedule a shutdown at a set time

Hi,

first of all thanks for developing this app, it works very well!
I would like the option to have my phone turn off at a scheduled time every day. For this it might be necessary to have the app automatically start a background service for this, as ideally the timer would be set and execute even if the app is never manually opened.

But it would also be an improvement if the app could remember the last scheduled time, and offer a one-click button to set and start a timer for this same time.

Cheers ^^

Automatization integration

Hi, would you consider to create a way that allows another app (eg. Tasker) to send an input and trigger the power off task? It would be very useful if in Tasker it can be determined a trigger such as the period of inactivity of the device and your app will power it off, all without rooting permissions.

Better guide and description for Settings tab

I found the description of the Settings panel in the info tab to be quite confusing: it sounds like setting up gestures yourself is optional to the functionning of the app. The instructions could use the clarification too. At first i thought i had to put the click/press buttons on the shutdown button that appears in the settings… fortunately your tutorial video helped !

I'd change the description to be more precise, and appear even more like a step by step guide. Here is my suggestion

This is where you'll set up the gestures that this app will simulate to shutdown your phone.
While this app automatically bring out the power dialog, you'll have to give it instructions on where the shutdown button is on your screen and how to interact with it.
First, select the type of gesture (one tap, two succesive taps, a long press that lasts 5 seconds, or a swipe between point 1 and 2). Then, drag the numbered circles around the screen to correspond with where the shutdown button would be on your power dialog screen.
Click on the button below to watch a short video showing how it works:
[the rest is unchanged]

Automation delay

The automation activity has a 2sec delay which is also announced. During these 2 sec a user can erratically tap the screen and the shutdown is stopped.
I suggested the automation so the phone could be remotely shut down. With these 2 sec a person who has (stolen) the phone can stop this by the natural reaction of tapping the screen. If I automate and need those 2 sec I can do the delay it in my routines. If you provide the delay I can't be sure to have stopped the phone from being used.
Thank you for providing your app to us!

Auto start - Auto set

I have decided to put this here instead of at the end of another thread.

This is a great little app & something I needed when using my iPod Classic. I now use this on my Walkman NW-A105. Having the ability to have a shut off time for bedtime snooze listening is so user friendly it makes me wonder why Apple had no concept of it.
Apple gives you the ability to set a timer for auto shut off but you HAVE to set it every time. I have had my battery drain because the iPod just carried on for hours & hours without being shut off sometimes without me even listening to it.

As I invariably wake up during the night I like to just turn on what I was listening to & have it automatically go off again at a default time, without having to look at a screen or concentrate on options or setting a time, would be really good. Waking up & concentrating and looking at a bright screen can lead to returning to full consciousness. So an autostart feature to use a default shut off time would be so useful for device that is notable for poor battery usage.

I'm sure this could be easily adopted. By setting in a default delay to the setting it would allow a fix to the problem of someone accidently setting the default shut off at 1 second.

Dialog window options

diulog options

Cancel here acts as what you'd expect from the "Ok" button: it closes the window, but does not cancel anything !
Avoid any confusion and rename the Canced button to "Ok"

How to translate ?

Since the way this app works may be a bit unintuitive to some, it might help if we could translate it to our own languages.

How would you prefer receiving translation contributions, if any ?

I'd personally prefer going through platforms like Weblate or Crowdin, because i don't have an environment set up for pushing translation requests to this project (and i don't code).

Compatibility with tablets

Hi, would it be possible to have this app also for tablet?

P.s: great job with the automation activity! I ended up using Automate instead of Tasker because the latter does not find the activity. With Automate works like a charm, thank you!

Scheduling shutdown

Hi everyone. A big thanks to those who made the app/edit it! I'd like to submit a request please. If possible, can you guys make the scheduling alarm style? By that I mean, can you make it so that at a set time on a set day(s) the device will be powered off: Ex. making it so that I can schedule a power off at 11pm everyday OR schedule a power off at 5am every Tuesday

Thanks! All the best!

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.