Code Monkey home page Code Monkey logo

djs's People

Contributors

n-ce avatar vr-25 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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

djs's Issues

old 'versionCode' ?

The default-config.txt still delivers the old version code 201908180 while /data/adb/vr25/djs/module.prop suggests 202108091.

Execute script every X minute.

Hi,
Thanks for this awesome module.
Is it possible to add the ability to execute scripts every certain time?

For example,
I want to execute script every 1 minute. And so, I have to add 1440 lines to config.txt. A little big :)

Update Magisk Modules Repo version (still on 2019.7.1, which is very insecure)

The version of DJS available through Magisk is still 2019.7.1 which is outdated and has a major security issue. That version stores the config file in /sdcard, which essentially gives any app on the device with storage access full root permissions (since they can modify the djs config file to add whatever commands they want, which will be run as root). This is fixed in 2019.10.18, which moves the config file to /data/adb/djs-data/, and also adds a variety of other improvements.

Please either update the version of DJS available through Magisk to the latest version, or remove it from the Magisk Repo entirely and make it only available here.

Build script has syntax error when invoked by Ubuntu `sh`

I'm running WSL and invoked build.sh as described in the README:

$ sh build.sh
build.sh: 8: .: check-syntax.sh: not found
$ ./build.sh
./build.sh: 8: .: check-syntax.sh: not found
$ ls -l which sh
lrwxrwxrwx 1 root root 4 Apr 16 23:52 /bin/sh -> dash

This can be fixed by adding a directory: change . check-syntax.sh to . ./check-syntax.sh, since that syntax is supported.

Magisk module and boot lines

Hi,

you recommend the Magisk module but its a version behind. For any good reason?

I'd like to try the new version because I have troubles getting boot lines to work, specifically boot ip rule add from all lookup main pref 1. When I schedule the same command at a specific time it successfully gets executed. Magisk log shows djs: exec [service.sh] followed by ** boot_complete triggered. Would appreciate any help, even just a push in the right direction.

DJS does not run on a system with no /sbin directory

I'm running the xiaomi.eu ROM (Android 11) on a Xiaomi Poco F2 Pro device. When I install DJS as a Magisk module, the operation completes without error. However, after rebooting there is no djs command. Having read some of the scripts, I can see the the software is trying to modify /sbin, which doesn't exist. The command to create /sbin fails. Would it be possible to initialize using another directory? I am using other root software such as ACC and AccA successfully.

init.log

I see that /sbin is hard coded in some places, but other parts of the scripts will check the existence of different paths, such as the logic that sets $installDir in install.sh. I gather this is because some pieces of data are assumed to always reside in /sbin, while others are more flexible. Is there anything I can do to help test or debug this?

Update Magisk Manager Alt Repo

I use Fox's Magisk Modules Manager to update modules. Would you, please, regularly update your module in the repo mentioned in the title so that the current release is available there?
Thanks.

boot rules not working after update 202108091

Here is my config.txt:

versionCode=201908180
boot setenforce 1

It used to work with version 201910180.

Even adding this line:
1235 touch /mnt/sdcard/Download/touch.txt; : --delete
it makes no effect; it even remains in the config file when it should have been deleted.

However, I can edit the config file with the command line.

I tried to uninstall and install it again but that does not make it work.

I am using Magisk.

I don't know how to debug this.

Scheduled commands not working on Lineageos 19.1 + Magisk

Hello,

I've installed this module by the book (with Magisk), all seems ok, daemon running, config file edited accordingly, commands working when I execute them in the terminal. But, it just doesn't work.

I have no idea what's wrong.

Apologies if I posted in the wrong section.

Regards

multiple arguments not working

here is my djs.conf

versionCode=201906290
boot /data/local/tmp/atx-agent server -d

in this case, not working, how can i fix?
⚙⚙⚙⚙⚙

djs missing (djs_v2021.12.14_202112140)

Fresh install causing missing djs binary, and service failed to run jobs.

install log

https://paste.debian.net/1306351/

lrwxrwxrwx  1 root root     19 2024-02-04 14:31 djs, -> /dev/.vr25/djs/djs,
lrwxrwxrwx  1 root root     25 2024-02-04 14:31 djs-config -> /dev/.vr25/djs/djs-config
lrwxrwxrwx  1 root root     25 2024-02-04 14:31 djs-daemon -> /dev/.vr25/djs/djs-daemon
lrwxrwxrwx  1 root root     25 2024-02-04 14:31 djs-status -> /dev/.vr25/djs/djs-status
lrwxrwxrwx  1 root root     23 2024-02-04 14:31 djs-stop -> /dev/.vr25/djs/djs-stop
lrwxrwxrwx  1 root root     26 2024-02-04 14:31 djs-version -> /dev/.vr25/djs/djs-version
lrwxrwxrwx  1 root root     19 2024-02-04 14:31 djs. -> /dev/.vr25/djs/djs.
lrwxrwxrwx  1 root root     19 2024-02-04 14:31 djsc -> /dev/.vr25/djs/djsc
lrwxrwxrwx  1 root root     19 2024-02-04 14:31 djsd -> /dev/.vr25/djs/djsd
lrwxrwxrwx  1 root root     19 2024-02-04 14:31 djsd, -> /dev/.vr25/djs/djs,
lrwxrwxrwx  1 root root     19 2024-02-04 14:31 djsd. -> /dev/.vr25/djs/djs.
lrwxrwxrwx  1 root root     23 2024-02-04 14:31 djsd.log -> /dev/.vr25/djs/djsd.log
lrwxrwxrwx  1 root root     19 2024-02-04 14:31 djsv -> /dev/.vr25/djs/djsv

Suggestion: add days of the week

Hi! I'd like to suggest to add days of the week to the schedule. For example:
MON1147 - is to run scripts at 11:47 every Monday

DJS not working on Android 11

I recently update my phone to Android 11 and commands line don't work too. The module can't be recognized by the system as it doesn't seem installed

Execute script on shutdown/reboot

Hi,
Thanks for this awesome module. Is it possible to add an option for executing scripts upon shutting down or rebooting the system?

djs not run when system-standby

*sorry my English bad.

This my config djs

1815 /data/script/script.sh;

The script is running normaly, but sometime when the screen off, the script not running on time,

and when the screen comes back on, the script runs normally

Does it battery drain?

Hello, thanks for this module.

Looking at the source code and logs this module checks every 20 seconds if there is something to execute.
Does that not cause battery drain?

If so, would it be possible to make it sleep to the next task? This would have the drawback of having to wait a 24-hour hour cycle or having to reboot depending one when you add a script

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.