maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   MeeGo / Harmattan (https://talk.maemo.org/forumdisplay.php?f=45)
-   -   [Announce] LockApp - Lock your applications with a simple password (https://talk.maemo.org/showthread.php?t=82129)

Iktwo 2012-02-06 01:12

[Announce] LockApp - Lock your applications with a simple password
 
Lock your applications with a simple password or custom screens.


A friend of mine asked me if I could do something to lock email and sms application, so I made and app that does something very simple, it launches another app, it's very simple and it's still a WIP, but it does the job and maybe someone else need it.

You need to install the app and modify the .desktop launcher of the application you want to lock (I think you need root access for that, so I think it won't be possible to upload it to store, someone please tell me if it is possible).


the application install in
Code:

/opt/lockapp/bin/lockapp
and you need to give as argument the name of the screen used (currently two ships with the app, LockMe made by me and ImNotDrunk made by Flako Pana), those are located in

Code:

/opt/lockapp/bin/qml
Also you need to provide the name of the app to launch, so a simple example of how does it work in a .desktop file is:
Code:

Exec=/usb/bin/invoker --global-syms --wait-term --type=e /opt/lockapp/bin/lockapp LockMe /usr/bin/fenix %U
Instructions:
1.- Install LockApp application http://iktwo.wikidot.com/local--file....0.0_armel.deb

2.- Backup .desktop file of the app you want to lock (as root):
Code:

cp /usr/share/applications/mail.desktop /usr/share/applications/mail.desktop.back
3.- Edit the .desktop file (as root) I use nano, you can use vi

Code:

nano /usr/share/applications/mail.desktop
4.- Change the Exec line to something like this:

Code:

Exec=/usb/bin/invoker --global-syms --wait-term --type=m /opt/lockapp/bin/lockapp LockMe /usr/bin/fenix %U
*In applications that have X-Maemo-Service (email, messaging, gallery, ..) you need to remove that line, so don't skip the backup step.

The default password for LockMe it's
Code:

password
I'm still working on this, I'm trying to make a configuration GUI, maybe it would be easier with a script to lock and unlock the .desktop file..

Creating a custom lock screen:
If you want to create another lock screen you can do it with some very easy steps, you can see the code of LockMe.qml and ImNotDrunk.qml

You can define the interface as you wish and call a simple method.

Code:

wMain.startApplicationDetached();
If you need a random number you can use (where 15 is the limit, 1-14)
Code:

wMain.getRandomNumber(15);
Also there's an interface to access QSettings:

To save:
Code:

void saveSetting(QString key, QVariant value);
To access values:
Code:

QString getStringSetting(QString key, QString defaultValue);

bool getBoolSetting(QString key, bool defaultValue);

int getIntSetting(QString key, int defaultValue);

double getDoubleSetting(QString key, double defaultValue);


kingpin 2012-02-06 04:58

Awesome, it was something in demand ... For me at least
Will try when i get home

banong 2012-03-25 06:34

Re: [Announce] LockApp - Lock your applications with a simple password
 
I'm need this app, I'm will buy it in store.ovi.

banong 2012-03-30 01:29

Re: [Announce] LockApp - Lock your applications with a simple password
 
Anyone care to upload/mail me the .deb, so I can try it on N9 ?

Iktwo 2012-03-30 03:12

Re: [Announce] LockApp - Lock your applications with a simple password
 
The deb is there, I haven't build a GUI, but it works, just follow the instructions and tell me if you have a problem.. here's the link again

http://iktwo.wikidot.com/local--file....0.0_armel.deb

I'll work on a better version soon..

youmeego 2012-03-30 14:17

Re: [Announce] LockApp - Lock your applications with a simple password
 
it is a very useful tool to protect our privacy.

i hope you improve it and bring it to ovi store soon.

banong 2012-03-31 04:12

Re: [Announce] LockApp - Lock your applications with a simple password
 
Quote:

Originally Posted by youmeego (Post 1186080)
it is a very useful tool to protect our privacy.

i hope you improve it and bring it to ovi store soon.

Please, let us support this promising app.

THANK YOU, Iktwo.

addy007 2012-04-19 21:17

Re: [Announce] LockApp - Lock your applications with a simple password
 
i m using winscp for the edit,
completely new to these things.
tried to edit the messaging-ui.desktop
even after writing the correct password, it says request denied etc.
i really need this app.. followed ur every step,,
just cant edit system files..
even ran the application as admin..
no success .. help me out

Schturman 2012-04-20 16:50

Re: [Announce] LockApp - Lock your applications with a simple password
 
Hi
Can you explain me hot to change default password ?
If i understand right, I need to edit this line:
Code:

            Keys.onReturnPressed: {
                wMain.getStringSetting("password","password");

and this:
Code:

            text: qsTr("Validate")
            onClicked: {
                wMain.getStringSetting("password","password");

And instead "password","password" I need to write my pass, like "1234","1234" ?

I also have a problem.. After installation and editing of mail.desktop file like in your example, my app opened normally without LockMe screen..
And when i deleted this line: X-Maemo-Service=com.nokia.fenix
icon of the mail app disappeared..
What wrong ? Maybe something because of updating to PR1.2 ?

PS. I also tested with messaging-ui.desktop - also not work, it's opened normally without LockMe screen..
Only gallery and video working like expected with LockMe screen..

PS2. I also have another problem after playing with you app and uninstalling it, now i have two messaging icons on the homescreen, both of them can open messaging app, but i have only one messaging-ui.desktop file and I don't know how to remove on of this desktop icons from my homescreen.. If I removed messaging-ui.desktop, it's remove both of them.. Reboot/refresh not help :(
What can I do ?

PS3. I also did some interesting test.. I installed this app again and I edited messaging-ui.desktop file like in the example and now one of this conversation app's opens with password asking and one opens normally without LockMe.. :confused:
Thanks

Schturman 2012-04-21 00:27

Re: [Announce] LockApp - Lock your applications with a simple password
 
SOLVED:
I played with messaging-ui.desktop file again..
I removed this line: X-Maemo-Service=com.nokia.messaging-ui and saved the file...
After this I added this line back and saved this file and one of conversation icons is disappeared... :D

EDIT:
NOT solved... After couple of minutes the icon is appeared again on my home screen :mad:

EDIT2:
Solved ! solution here...

addy007 2012-04-23 04:35

Re: [Announce] LockApp - Lock your applications with a simple password
 
Quote:

Originally Posted by Schturman (Post 1195148)
SOLVED:
I played with messaging-ui.desktop file again..
I removed this line: X-Maemo-Service=com.nokia.messaging-ui and saved the file...
After this I added this line back and saved this file and one of conversation icons is disappeared... :D

EDIT:
NOT solved... After couple of minutes the icon is appeared again on my home screen :mad:

EDIT2:
Solved ! solution here...

Please help me out.. i want to password protect the message app (messaging-ui.desktop) but the problem is that i cant edit the file, i get error while editing almost every system file. it says access denied on WINscp.
even runnin the application as admin does not works... please help me out and give me step by step instructions to password protect messaging-ui.desktop :(

Schturman 2012-04-23 07:13

Re: [Announce] LockApp - Lock your applications with a simple password
 
This file cause a problem - two icons of conversation..
Anyway, if you still want this, via winscp, you need to do this as ROOT, default password: rootme

RTA 2012-04-25 20:31

Re: [Announce] LockApp - Lock your applications with a simple password
 
This sounds fantastic, I hope you can find a way to upload it to the store. Keep up the good work

Schturman 2012-04-26 08:22

Re: [Announce] LockApp - Lock your applications with a simple password
 
Ok, it's working, but only from home screen.. When you open SMS or mail from the lock screen or from the notification screen, it's not ask for password, it's just opens this two applications..

addy007 2012-04-29 03:23

Re: [Announce] LockApp - Lock your applications with a simple password
 
Quote:

Originally Posted by Schturman (Post 1196232)
This file cause a problem - two icons of conversation..
Anyway, if you still want this, via winscp, you need to do this as ROOT, default password: rootme

it says access denied when i use root and rootme with winscp. I have changed the username n pass
can u tell me.which software.u use??

Schturman 2012-04-29 05:52

Re: [Announce] LockApp - Lock your applications with a simple password
 
Quote:

Originally Posted by addy007 (Post 1198913)
it says access denied when i use root and rootme with winscp. I have changed the username n pass
can u tell me.which software.u use??

Instead full explanation, you can use my consol app: http://talk.maemo.org/showthread.php?t=80600
Just read PDF instruction before using this app...
Go to tweak H, option 1, this will ask you about changing pass for ROOT and for USER, after this you can use winscp without problem.
Also i added this app to tweak OO, and you can easily lock 4 app: mail, gallery, messages, video..

addy007 2012-04-29 18:10

Re: [Announce] LockApp - Lock your applications with a simple password
 
Quote:

Originally Posted by Schturman (Post 1198939)
Instead full explanation, you can use my consol app: http://talk.maemo.org/showthread.php?t=80600
Just read PDF instruction before using this app...
Go to tweak H, option 1, this will ask you about changing pass for ROOT and for USER, after this you can use winscp without problem.
Also i added this app to tweak OO, and you can easily lock 4 app: mail, gallery, messages, video..

i have just followed your instructions.
now i will try to edit system files.
( basically the problem is that i cant edit the system files due to access/permission denied error )

addy007 2012-04-29 18:33

Re: [Announce] LockApp - Lock your applications with a simple password
 
Quote:

Originally Posted by Schturman (Post 1198939)
Instead full explanation, you can use my consol app: http://talk.maemo.org/showthread.php?t=80600
Just read PDF instruction before using this app...
Go to tweak H, option 1, this will ask you about changing pass for ROOT and for USER, after this you can use winscp without problem.
Also i added this app to tweak OO, and you can easily lock 4 app: mail, gallery, messages, video..

THANK YOU VERY VERY MUCH... it worked..
i can now edit these files.

i am sorry for asking too much help from you.

the thing i want to know is STEP by STEP guide to hide
Messaging-ui.desktop.

Thank you in advance. since i m new to this stuff , i can only understand step by step guide.
i am now using winscp , please guide me through it,
THANK U:):D:):D;):)

Schturman 2012-04-29 19:46

Re: [Announce] LockApp - Lock your applications with a simple password
 
Quote:

Originally Posted by addy007 (Post 1199149)
THANK YOU VERY VERY MUCH... it worked..
i can now edit these files.

i am sorry for asking too much help from you.

the thing i want to know is STEP by STEP guide to hide
Messaging-ui.desktop.

Thank you in advance. since i m new to this stuff , i can only understand step by step guide.
i am now using winscp , please guide me through it,
THANK U:):D:):D;):)

You don't need to do this manually.. You can do this easily from tweak OO by one click..
But if you still want to do this manually:
1. go to: /usr/share/applications
2. Open file named messaging-ui.desktop
3. instead this:
Code:

[Desktop Entry]
Type=Application
Name=Conversations
X-MeeGo-Logical-Id=qtn_comm_appname_msg
X-MeeGo-Translation-Catalog=messaging
X-Maemo-Service=com.nokia.messaging-ui
X-Maemo-Fixed-Args=-inbox
Icon=icon-l-conversation
Exec=/usr/bin/invoker --type=m /usr/bin/messaging-ui
OnlyShownIn=X-MeeGo

should be this:
Code:

[Desktop Entry]
Type=Application
Name=Conversations
X-MeeGo-Logical-Id=qtn_comm_appname_msg
X-MeeGo-Translation-Catalog=messaging
X-Maemo-Fixed-Args=-inbox
Icon=icon-l-conversation
Exec=/usr/bin/invoker --type=m /opt/lockapp/bin/lockapp LockMe /usr/bin/messaging-ui
OnlyShownIn=X-MeeGo

4. refresh your homescreen:
Code:

/sbin/initctl restart xsession/mthome
5. done

P.S. Before editing, do backup of this file...

addy007 2012-04-29 20:56

Re: [Announce] LockApp - Lock your applications with a simple password
 
Thank you, I understood both of your methods.. the tweak 1 was easy.
THANK U VER MUCH FOR HELPING ME OUT.. :)

addy007 2012-04-30 06:23

Re: [Announce] LockApp - Lock your applications with a simple password
 
Quote:

Originally Posted by Schturman (Post 1199176)
You don't need to do this manually.. You can do this easily from tweak OO by one click..
But if you still want to do this manually:
1. go to: /usr/share/applications
2. Open file named messaging-ui.desktop
3. instead this:
Code:

[Desktop Entry]
Type=Application
Name=Conversations
X-MeeGo-Logical-Id=qtn_comm_appname_msg
X-MeeGo-Translation-Catalog=messaging
X-Maemo-Service=com.nokia.messaging-ui
X-Maemo-Fixed-Args=-inbox
Icon=icon-l-conversation
Exec=/usr/bin/invoker --type=m /usr/bin/messaging-ui
OnlyShownIn=X-MeeGo

should be this:
Code:

[Desktop Entry]
Type=Application
Name=Conversations
X-MeeGo-Logical-Id=qtn_comm_appname_msg
X-MeeGo-Translation-Catalog=messaging
X-Maemo-Fixed-Args=-inbox
Icon=icon-l-conversation
Exec=/usr/bin/invoker --type=m /opt/lockapp/bin/lockapp LockMe /usr/bin/messaging-ui
OnlyShownIn=X-MeeGo

4. refresh your homescreen:
Code:

/sbin/initctl restart xsession/mthome
5. done

P.S. Before editing, do backup of this file...


Hey.. thank for sharing this wonderful application with us..
I would like to give some suggestions/ Improvements to make the app better.
this is in case of messages and email :
1. the app doesnot ask for password when we unlock a new message ( swipe unlock the lock phone )
2. we go to contacts > Mr.A > message > password tab doesnot show up
3. we go to calls > Mr.B > message > password tab doesnot show up
4. On the notifications HOME-SCREEN > when we open the new message recieved > password tab does not show up.

SO far i have discovered these flaws in this app.
This is truly an awesome application. i will try in any way to help you guys improve it :) :):):D:D:):):D:D

Schturman 2012-04-30 06:56

Re: [Announce] LockApp - Lock your applications with a simple password
 
Known problem..

banong 2012-05-01 06:47

Re: [Announce] LockApp - Lock your applications with a simple password
 
WE NEED LockApp Firewall+ Pro SMS/Call Blocker by Matt Lee.

Macgeek74 2013-06-07 23:02

Re: [Announce] LockApp - Lock your applications with a simple password
 
I installed this software and now I cant get into anything because it says the password is incorrect. I havnt set up one yet and I though the it was password but its not. How do I remove this software? I used n9tweak.

Macgeek74 2013-06-07 23:14

Re: [Announce] LockApp - Lock your applications with a simple password
 
Quote:

Originally Posted by Schturman (Post 1199340)
Known problem..

Do you know how to uninstall lockapp?

Schturman 2013-06-08 20:17

Re: [Announce] LockApp - Lock your applications with a simple password
 
If you installed this via n9qt, it so hard to use n9qt to remove it ? Also i think it too much hard to read pdf instruction about this tweak... :(


All times are GMT. The time now is 08:17.

vBulletin® Version 3.8.8