Git Product home page Git Product logo

android-crond's People

Contributors

eskuero avatar faerbit avatar naofum 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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

android-crond's Issues

Invalid cron expression

Hi,

thanks for this app, the first android crond that works for me.

However it reports a lot of "Invalid cron expression" if crontab contains:

  • commented lines, starting with #
  • empty lines
  • lines with fields separated by Tabs instead of spaces

Also, it would be nice to have crontab and log in (larger) separate windows and buttons and checkboxes in a settings page or menu.

Update translations

I updated the app and added some new strings. So the spanish and japanese translations need updating too.
Care to take another shot at it @Eskuero and @naofum ?

Announce root permissions requirement

@Faerbit Tried this from F-droid, but, when run, it says it needs root (& I'm not gonna just for this app).

  • Please make sure app manifest requests root
  • Please update F-droid description w/ that, too.

Thanks!

Exit with Error Code 127

Faerbit,

Thanks for this app - it is just what I needed because I didn't want to install BusyBox.

My simple script works from the command line but with this crontab:

10 * * * * root /data/media/0/bin/db.sh

I get the above error message - how to debug?

Thanks,
Phil.

Why root?

Could you please explain in the README why android-crond requires root? I would like to schedule a cron job of a command which can be run as a non-root user. Regular, non-Android Linux lets non-root users create cron jobs so why must I root my phone to use crond?

Sunday crontabs

Hello all !
Thanks for this very simple sheduler.

I'm facing an app FC whenever I plan a shedule on Sundays (either with a 0, or a 7 or even with 'sun'). Others days are fine.

I tried to read the code to find some relevant code, but my Java Fu is not very effective, I think :p.

Using the latest crond from f-droid, with the latest lineageOS on athene (Moto G4 Plus).

Will you please check your code to give it the proper treatment, it would be very kind.

Thanks for reading. -- A satisfied user.

Marshmallow Doze issue

On Marshmallow (23) and up, Doze mode can kick in and prevent timers from firing. I normally have my phone on a charger overnight, which apparently stops Doze mode from engaging. However, last night I did not, and as a result, crond did not start my job at the correct time.

There is a whitelist that end users can use that can help (Settings -> Battery -> Battery Optimization), but the best way to avoid the issue is to call a different API method:

    if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
        alarmManager.setExactAndAllowWhileIdle(AlarmManager.RTC_WAKEUP, next.getMillis(), alarmIntent);
    } else {
        alarmManager.setExact(AlarmManager.RTC_WAKEUP, next.getMillis(), alarmIntent);
    }

cron does not execute until phone is woken up

Please consider the cron log below :
`2017-05-31 03:53:24.4060 Scheduled line 0 at 2017-05-31 06:45:00.0000

2017-05-31 07:09:59.6570 Execute line 0
2017-05-31 07:10:38.0580 Executed line 0`
The script (to turn off airplane) is not executes at the time it was meant to (6:45 am). Rather, it was executed at 7:09, when I explicitely opened my phone.

Is there some kind of weirdness with the way latest android versions try to minimize battery usage with their "doze" feature ? I tried to turn off "Battery optimization" for crond, but it did not change a thing.

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.