View Single Post
Schturman's Avatar
Posts: 5,339 | Thanked: 4,133 times | Joined on Jan 2010 @ Israel
#5938
No.... Already tried something like this.. No, Also I want change pass only in one file..
I got it work after repackage with this files:
1.
Code:
[Desktop Entry]
Encoding=UTF-8
Version=1.0
Type=Application
Terminal=false
Name=Secure Phone
Exec=/opt/N9QTweak/Secure/device_secure.sh
Icon=/usr/share/icons/hicolor/80x80/apps/device_secure80.png
X-Window-Icon=
X-HildonDesk-ShowInToolbar=true
X-Osso-Type=application/x-executable
2.
Code:
#!/bin/sh 

sed -n '3p' /opt/N9QTweak/Secure/device_secure2.sh > /opt/N9QTweak/Secure/back 
line=$(sed -n '1p' /opt/N9QTweak/Secure/back)
sed -i -e "3c$line" /opt/N9QTweak/Secure/device_secure2.sh
rm -f /opt/N9QTweak/Secure/back
sh /opt/N9QTweak/Secure/device_secure2.sh

exit 0
3.
Code:
#!/bin/sh

echo root | ariadne sh -c "dbus-send --system --type=method_call --print-reply --dest=com.nokia.devicelock /request com.nokia.devicelock.setState int32:1 int32:1;dbus-send --system --type=method_call --dest=com.nokia.mce /com/nokia/mce/request com.nokia.mce.request.req_tklock_mode_change string:locked"

exit 0
Now it work immediately after reboot
Ugly way I know, but it work perfectly...
 

The Following 2 Users Say Thank You to Schturman For This Useful Post: