![]() |
[Announce] Dalvik resetter + Profile changer for Sailfish
Finally I did it, I'm sure it's far to be perfect, but here is my two first app :D
May will be useful for someone... 1. Alien Dalvik restart - It's just bottom for quick refreshing aliendalvik service. v0.3 * sudo not needed anymore (used helper from meShell post, thanks) 2. Profile changer - This is a small One click app for changing profile to silent and back to general. You can put this icon where you can quickly find it instead go to lockscreen.. v0.5 * sudo NOT required anymore, this version also update icon on your homescreen (thanks to Coderus). v0.4 * sudo NOT required anymore, but also can't change icon on your homescreen. v0.2 * small changes in the commands http://imagizer.imageshack.us/v2/800...0/838/up8e.jpg http://imagizer.imageshack.us/v2/800...0/607/attf.jpg Download from my OpenRepos: 1. AlienDalvik restart 2. Profile changer Beware, use it on your own risk !!! PS. If someone can create more buty icons, I will repackage them... |
Re: [Announce] 2 small and useful (maybe) app...
Quote:
And I seriosuly mean it, if someone follows your instructions just to install profile changer they should be aware they in the meantime allowed all semi-android(just make sailfish wrapper that runs 'sudo x') or other applications easy way in, this really should not be dep for anything |
Re: [Announce] 2 small and useful (maybe) app...
Maybe you are right, I'm not developer and not so tech, I just did it because it was easy for me instead creating script with pass asking.
If you think it better to remove this post, I will remove.. PS. can you explain it please: Quote:
|
Re: [Announce] 2 small and useful (maybe) app...
It's not possible to use setuid?
|
Re: [Announce] 2 small and useful (maybe) app...
reset alien is very good idea. its not that solid :D. many reboot because of that.
|
Re: [Announce] 2 small and useful (maybe) app...
I also think that reset alien dalvik is really good idea! This is something that i do quite regularly on terminal because of connection problems on android side.
|
Re: [Announce] 2 small and useful (maybe) app...
Quote:
It is possible, I am using this "helper" to start my "vpnc" with a GUI-Button, because I did not get a response and did not find any "recommended way to run as privileged" via Sailfis-App. So there are 3 steps.
Example (added example with 2 commands seperated by "&&"): Code:
#include <stdio.h> compiled it with gcc on the phone like this: Code:
gcc vpnc-helper.c -o vpnc-helper |
Re: [Announce] 2 small and useful (maybe) app...
Quote:
My first target was to create working rpm file, that can be installable/uninstallable from desktop. Finally I got it... But... when we press on the icon it run my script as USER and many commands I need to run as ROOT when I already user.. In my first version (sudo not installed yet) I used devel-su many times in one script, for example to run this command (echo silent > /usr/share/jolla-mods/temp) I needed write it like this to get it work: Code:
echo rootme|devel-su -c sh -c "echo root|devel-su -c echo silent > /usr/share/jolla-mods/temp" Too much weird combination :( Now with sudo I run the same command like this (much easily): Code:
sudo sh -c "sudo echo silent > /usr/share/jolla-profchanger/temp" Also when and if I will learn how to package with root permission (I don't know what to write to .spec file for this), something like aegis manifest on N9, when after installation by pressing on the icon it will run script automatically as ROOT, it will be nice. But also here I have a problem.. For example this command we need to run as USER: Code:
dbus-send --type=method_call --dest=com.nokia.profiled /com/nokia/profiled com.nokia.profiled.set_profile string:"silent" |
Re: [Announce] 2 small and useful (maybe) app...
Quote:
For example in script included commands: root command user command user command root command user command Each root command is a different command, that mean I need a different my-helper files ? And how I implement this and how to run this file in the script ? |
Re: [Announce] 2 small and useful (maybe) app...
Quote:
PS. if someone can create more beauty icons it will be nice :p |
All times are GMT. The time now is 12:16. |
vBulletin® Version 3.8.8