The Following 3 Users Say Thank You to SPARTAN563 For This Useful Post: | ||
![]() |
2011-06-24
, 08:45
|
Posts: 96 |
Thanked: 51 times |
Joined on Jul 2010
@ India
|
#12
|
Not a problem, as it turns out it may yet be of use to me. As far as I can see as well there aren't any eavesdropping methods in any of the bindings, but I am also going along with the dbus_bus_add_match method and dbus_connection_add_filter to process what it spits out. Like I said though, Qt doesn't seem to like it all that much
For A, darn well I guess it was worth a tryI'll do a bit of snooping myself to see if anything but from the 1 other app I tried launching (one of my own which doesn't have any DBus services) it appears that it does get triggered... If that is the case then it could come in handy for reducing drain on the battery
As for B, excellent that will be extremely helpful
Okay, I have some exceptional news, I have managed to get libdbus working in Qt and have subsequently managed to get it to properly snoop the top_application method calls. So now all that is required is for me to write the parsing code for those (or more correctly, the verification code) and then we are in business.
Have also updated the first page to take this into account as it means we will no longer have to modify .service or .desktop files for the application to work.
The Following User Says Thank You to warhawk007 For This Useful Post: | ||
![]() |
2011-06-24
, 09:10
|
|
Posts: 92 |
Thanked: 92 times |
Joined on May 2011
@ Stellenbosch, South Africa
|
#13
|
The Following 2 Users Say Thank You to SPARTAN563 For This Useful Post: | ||
![]() |
2011-06-24
, 14:47
|
|
Posts: 92 |
Thanked: 92 times |
Joined on May 2011
@ Stellenbosch, South Africa
|
#14
|
The Following 4 Users Say Thank You to SPARTAN563 For This Useful Post: | ||
![]() |
2011-06-24
, 18:33
|
Posts: 96 |
Thanked: 51 times |
Joined on Jul 2010
@ India
|
#15
|
Okay, first public release (v0.2.0) which meets requirements for Milestone 2 is now available in extras-devel.
Here is a rundown of the available features in this release as well as some of the known bugs and missing features:
- Allows you to add .desktop files to the database by calling "applock --add <file>" from the command line
- Allows you to remove .desktop files from the database by calling "applock --remove <file>" from the command line
- Allows you to view a list of all your monitored applications by entering "applock --show-apps" from the command line
- Will automatically lock the phone if it detects an application being launched which has been blacklisted*
- Runs as a daemon on startup which can be stopped by running "initctl emit AppLockStopDaemon" from the command line.
- Provides some basic DBus methods on the com.sierrasoftworks.AppLock.Daemon interface
- Automatically detects whether a .desktop file should be monitored as a service or as an executable
* Currently there are two ways that AppLock uses to monitor application launches. The first occurs when an application registers itself on the DBus for any reason whatsoever (this doesn't require the application to provide a service, just use a DBus service like org.freedesktop.Notifications). The second hooks into Maemo's single instance launch code. This is what is usually used for apps like Contacts and MicroB and so as soon as this code is called AppLock will lock the Phone. Unfortunately, this means that apps which are run as scripts, or apps which DO NOT use any DBus methods will not be detected. There is the possibility of enabling a continuous check system to monitor these applications however this will drain battery and (if implemented) will be optional.
Known Bugs
- Just entering a desktop file's name (say "mebook.desktop") will NOT add it to the list of locked applications. You need to enter the full path ("/usr/share/applications/hildon/mebook.desktop") for it to work. This will be fixed in Milestone 3 releases.
- The first time the application attempts to lock the phone takes a bit of time, I am not sure what is causing this but hopefully I'll be able to figure it out and fix it. Otherwise, it isn't really a big deal since most apps take longer than the delay to finish loading anyway.
You can check this page for information on the current build status.
I look forward to getting page loads of bug reports
![]() |
2011-06-24
, 18:42
|
|
Posts: 92 |
Thanked: 92 times |
Joined on May 2011
@ Stellenbosch, South Africa
|
#16
|
initctl emit AppLockStopDaemon
initctl emit AppLockStartDaemon
dbus-monitor "type='method_call',sender='com.sierrasoftworks.AppLock.Daemon'"
dbus-send --print-reply --dest=com.sierrasoftworks.AppLock /com/sierrasoftworks/AppLock com.sierrasoftworks.AppLock.Daemon.GetStatus
The Following User Says Thank You to SPARTAN563 For This Useful Post: | ||
![]() |
2011-06-24
, 18:53
|
Posts: 96 |
Thanked: 51 times |
Joined on Jul 2010
@ India
|
#17
|
Just pushed v0.2.1 to the build que, fixes a few small issues (looks like the daemon wasn't starting up properly). Also, added some new commands which should prove useful and added a README file which has a whole ton of useful material in it for debugging.
As for a GUI, that is the plan. Though I haven't used a ListView in Qt before so that will be interesting
Also, with any luck the lack of a GUI for the moment will keep away those who don't know how to use a terminal (and hence, those who don't know how to fix stuff if it breaks).
A quick list of some useful commands you may want for testing it:
Disabling the current daemon:
Re-enabling the daemonCode:initctl emit AppLockStopDaemon
Listen to events triggered by AppLockCode:initctl emit AppLockStartDaemon
Get the current status of AppLockCode:dbus-monitor "type='method_call',sender='com.sierrasoftworks.AppLock.Daemon'"
Just a note, the last DBus call will ONLY work with v0.2.1 so rather don't try it on v0.2.0Code:dbus-send --print-reply --dest=com.sierrasoftworks.AppLock /com/sierrasoftworks/AppLock com.sierrasoftworks.AppLock.Daemon.GetStatus
![]() |
2011-06-25
, 01:35
|
Posts: 96 |
Thanked: 51 times |
Joined on Jul 2010
@ India
|
#18
|
![]() |
2011-06-25
, 10:46
|
Posts: 89 |
Thanked: 4 times |
Joined on Jun 2010
|
#19
|
![]() |
2011-06-25
, 10:48
|
Posts: 1,729 |
Thanked: 388 times |
Joined on Jan 2010
@ Canada
|
#20
|
What is AppLock?
AppLock is an application designed to lock your phone if any one of a predetermined set of applications is launched. In layman's terms, if a locked application is started your phone will enter a lock state and wait for you to enter your password before continuing.
For A, darn well I guess it was worth a try
As for B, excellent that will be extremely helpful
Okay, I have some exceptional news, I have managed to get libdbus working in Qt and have subsequently managed to get it to properly snoop the top_application method calls. So now all that is required is for me to write the parsing code for those (or more correctly, the verification code) and then we are in business.
Have also updated the first page to take this into account as it means we will no longer have to modify .service or .desktop files for the application to work.
Sierra Softworks
Last edited by SPARTAN563; 2011-06-23 at 21:31. Reason: Victory! :D