|
2011-06-23
, 16:00
|
|
Posts: 1,103 |
Thanked: 368 times |
Joined on Oct 2010
@ india, indore
|
#2
|
|
2011-06-23
, 16:23
|
|
Posts: 92 |
Thanked: 92 times |
Joined on May 2011
@ Stellenbosch, South Africa
|
#3
|
|
2011-06-23
, 18:57
|
Posts: 96 |
Thanked: 51 times |
Joined on Jul 2010
@ India
|
#4
|
The idea is that while your phone's screen is off or locked it will pause checking. But from what I can see it isn't too bad. Will run a proper test when I have a release-ready version to use for benchmarking.
|
2011-06-23
, 19:08
|
|
Posts: 92 |
Thanked: 92 times |
Joined on May 2011
@ Stellenbosch, South Africa
|
#5
|
From what I see, you've just announced the concept and provided a source of the work you've done till now. Am I right?
The Following User Says Thank You to SPARTAN563 For This Useful Post: | ||
|
2011-06-23
, 19:08
|
Posts: 235 |
Thanked: 339 times |
Joined on Nov 2010
|
#6
|
At the moment I am being stubborn and still trying to get DBus method calls to be monitored, looks like I am going to have to make use of the core libdbus classes in order to get that low level stuff done which is a bit of a pain... (Looks up the dbus-monitor source code). With any luck though, if I do manage to get that right, that will drop the battery usage and complexity (as well as the risk factor) by a large margin which is always nice.
The Following User Says Thank You to jstokes For This Useful Post: | ||
|
2011-06-23
, 19:11
|
|
Posts: 92 |
Thanked: 92 times |
Joined on May 2011
@ Stellenbosch, South Africa
|
#7
|
|
2011-06-23
, 19:24
|
Posts: 235 |
Thanked: 339 times |
Joined on Nov 2010
|
#8
|
Hi jstokes, would I just connect that on the system bus? (Since that's where the top_application method is called) or is there something else I need to do instead?
The Following 4 Users Say Thank You to jstokes For This Useful Post: | ||
|
2011-06-23
, 19:31
|
|
Posts: 92 |
Thanked: 92 times |
Joined on May 2011
@ Stellenbosch, South Africa
|
#9
|
The Following User Says Thank You to SPARTAN563 For This Useful Post: | ||
|
2011-06-23
, 19:53
|
Posts: 235 |
Thanked: 339 times |
Joined on Nov 2010
|
#10
|
What the libdbus classes give me (if you look at what dbus-monitor can do) is the ability to "eavesdrop" on which method calls are made across the bus. So all I really need to do is check to see if a call is made to the top_application function, if it is I grab the dbus path and compare it to the ones I have stored in memory (from the .service files) and if it matches any of my "locked" ones I just lock the phone.
All sounds great in theory but unfortunately the dbus bindings are having a field day with my Qt install (156 errors and counting... :P) because Qt doesn't use many of the headers that it depends on.
Overall, a royal PITA
Thanks anyway, am sure that those calls will come in useful at some point. I wonder, do you know if A) those signals are triggered on an app that doesn't make use of DBus and B) you can determine the source of origin?
If !B then I could always use them as a trigger for the check routine rather than having a continuous check (would just have to implement some kind of anti-spam protection), but if B it would be really, really useful
dbus-send --print-reply --dest=org.freedesktop.DBus /org/freedesktop/DBus org.freedesktop.DBus.GetConnectionUnixProcessID string:"<some number here>"
The Following User Says Thank You to jstokes For This Useful Post: | ||
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.
What does AppLock do?
AppLock runs in the form of a background daemon which listens to DBus messages. These messages are used to determine when an application is started on your phone, and if the application is on AppLock's blacklist it will promptly lock your phone. This allows you to prevent people from accessing certain applications on your phone without your permission.
Usage
NOTE - For more information on testing AppLock and for a comprehensive list of the commands and DBus methods and signals available please consult the README file. You can download the latest README file here.
AppLock can be used from either a CLI or using the user interface introduced in version 0.3.0
The user interface is by far the easiest way to go about using AppLock and can be accessed from your menu.
User Interface
v0.3.0+
As of version 0.3.0 a user interface is included with AppLock. This user interface is designed to simplify the process of adding applications to your lock list however please note that it is still in development and as such has a few bugs. I hope to address these bugs in my next release however for the time being here are the workarounds.
What still needs to be done?
Milestone 1: Pre-Release
Milestone 2: OSSO Service Support
- DONE - Add support for DBus launched applications
- DONE - Monitor top_application method calls
- DONE - Load service information from .service files and use it to match launched applications
RELEASED - Extras-Devel (v0.2.2)Pre-Milestone 3: Stable monitoring
- TESTING - Reliably monitor DBus application launches
- TESTING - Reliably monitor non-DBus application launches
- DONE - Allow monitoring of any DBus method
- DONE - Finalise DB structure
Milestone 3: GUI & CompatibilityThis milestone will be reached when a functional, and usable, GUI has been written and tested.
- DONE - Write a usable GUI
- DONE - Convert localised string names to their full counterparts
- DONE - Support adding apps that require multiple monitors to be secured
- DONE - Load .service files based on service names rather than file names
RELEASED - Extras-Devel (v0.3.3)Milestone 4: Beta Release
- Have the ability to detect application launches based on their command lines (scripts will not launch their own executable)
- Determine feasibility of monitoring script launches (e.g. Conky)
This release will be pushed to Extras-testing until deemed stable enough for a full release. Any bugs found in earlier versions should have been fixed here.Milestone 5: Final Release
This release will be pushed to extras as soon as all bugs have been rectified and the package is deemed stable enough for day to day use.
Source Code
Source code for AppLock is available on Gitorious, you can view, download and contribute to it by visiting
http://gitorious.org/applock-n900/applock
All development is done in Qt using the Nokia Qt SDK
Download
AppLock is available in the Extras-Devel repository or alternatively you can download the deb file from my website here:
http://sierrasoftworks.com/AppLock
Sierra Softworks
Last edited by SPARTAN563; 2011-07-16 at 15:58.