Giter Club home page Giter Club logo

Comments (6)

fralik avatar fralik commented on August 17, 2024 1

Thanks for letting me know. I will try to find some time to look into it.

from duorem.

spicewiesel avatar spicewiesel commented on August 17, 2024 1

Hi, that did the trick, but I don't know why :) I reinstalled the fdroid version afterwards and that one is working again, too.
So maybe it was just some weird local stuff on my phone and I hope I did not use too much of your time. Thanks a lot!

from duorem.

spicewiesel avatar spicewiesel commented on August 17, 2024

would be super cool, thank you!

from duorem.

fralik avatar fralik commented on August 17, 2024

Unfortunately, I can't reproduce the problem. If you want, you can try out this build, it should show you the command that is being sent to the device.

Otherwise: what android version do you use?

from duorem.

spicewiesel avatar spicewiesel commented on August 17, 2024

Thanks for the help!

I installed your debug apk and I still do not see the sent command in the app itself, but I see what's happening on my system after the duorem user is logged in via ssh:

duorem : command not allowed ; TTY=pts/1 ; PWD=/tmp ; USER=root ; COMMAND=/usr/bin/shutdown -r now

So the app executes the default value for "Shutdown command" which is sudo shutdown -h now although I configured sudo systemctl suspend (which is the only allowed sudo command for this user).

I am on Android 13.

from duorem.

fralik avatar fralik commented on August 17, 2024

Hm. Could it be that you are still running the other version? Just to be sure, I've prepared a new bundle, which:

  • should show you the shutdown command;
  • should show version 1.1.5 in the About dialog. The version on F-Droid is 1.1.4.

I see this in the emulator (android 13):
duorem

And in the auth.log on the target system:

<...> sudo: duorem : TTY=pts/4 ; PWD=/home/duorem ; USER=root ; COMMAND=/usr/bin/systemctl reboot
<...> sudo: pam_unix(sudo:session): session opened for user root by (uid=0)
<...> sudo: pam_unix(sudo:session): session closed for user root

from duorem.

Related Issues (20)

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.