|
2013-08-28
, 15:50
|
Posts: 277 |
Thanked: 319 times |
Joined on Jan 2010
|
#932
|
qdbus --system com.nokia.devicelock /request com.nokia.devicelock.getState 1
The Following 2 Users Say Thank You to slarti For This Useful Post: | ||
|
2013-08-28
, 16:22
|
|
Posts: 5,339 |
Thanked: 4,133 times |
Joined on Jan 2010
@ Israel
|
#933
|
sh -c "sh /opt/N9QTweak/Secure/device_secure.sh"
|
2013-08-28
, 17:11
|
|
Posts: 645 |
Thanked: 519 times |
Joined on Apr 2012
@ Finland
|
#934
|
Also, if you already used it with N9QT, you can use profilematic:
Code:sh -c "sh /opt/N9QTweak/Secure/device_secure.sh"
|
2013-08-28
, 18:47
|
Posts: 73 |
Thanked: 35 times |
Joined on Jun 2013
|
#935
|
Yes, write a Python script and use it using {script:/path/to/yourscript.py} like this:
Code:import feedparser f = feedparser.parse('http://example.org/feed.rss') print f.entries[0].title
|
2013-08-28
, 19:03
|
|
Posts: 5,339 |
Thanked: 4,133 times |
Joined on Jan 2010
@ Israel
|
#936
|
Theres build in delay feature in N9 so why would I use profilematic.
I just make so that it shows in LPS that device is secured.
And thanks for help Slarti I think that will do.
|
2013-08-28
, 20:17
|
|
Posts: 645 |
Thanked: 519 times |
Joined on Apr 2012
@ Finland
|
#937
|
#!/bin/sh #Tell if device is secured by security code reply=$(qdbus --system com.nokia.devicelock /request com.nokia.devicelock.getState 1) if [ "$reply" == "0" ]; then echo "Not Secure" else echo "Secured" fi
|
2013-08-28
, 20:17
|
|
Posts: 5,339 |
Thanked: 4,133 times |
Joined on Jan 2010
@ Israel
|
#938
|
#!/bin/sh month=$(date +%m) echo | awk -v d=$((month)) '{split("בינואר,בפברואר,במרץ,באפריל,במאי,ביוני,ביולי,באוגוסט,בספטמבר,באוקטובר,בנובמבר,בדצמבר",a,","); printf a[d]}'
{script:sh /home/user/my_month.sh}
|
2013-08-28
, 23:50
|
Posts: 661 |
Thanked: 690 times |
Joined on Jul 2007
|
#939
|
|
2013-08-29
, 06:33
|
|
Posts: 645 |
Thanked: 519 times |
Joined on Apr 2012
@ Finland
|
#940
|
I use long delay+secure device script from N9Qt so I dont alway remember is my phone locked or not and have to check it before I leave it.
This would make it much easier.
Thanks
────────────────────
Try:My N9 bootvideo