Lock An Application

Download

Tasker provides a weak locking mechanism to e.g. stop casual browsers entering particular applications.

If you download the file, you need to:

  1. Change the locked application to the one you want by clicking on the icon.
  2. Change the passcode by clicking on the Lock action.

Otherwise, you can create the profile yourself with the following steps:

  1. Click New and select Application
  2. Select the app you want to lock.
  3. Click + in the bottom left to add an action
  4. Select category Display and action Lock
  5. Have a look at the help text (click ?)
  6. Enter a passcode
  7. Press Done
  8. Press Save at the Profile List screen

Thanks for posting this. I love this profile but made a couple of my own mods. I made the keypad use full screen mode and removed the cancel option for added security. I use this profile all the time to secure multiple apps simultaneously (Phone, messages, contacts. Facebook, file managers, photo galleries, basically any app that can access my personal information). The intention is to keep others from accessing apps on your phone but I don't want to have to enter the code every time I send a text or access my email etc. I've made some additions to it so that i can easily turn the profile on and off (code required to turn off) by shaking my phone.

Now, I am by no means a "programmer" merely an avid hobbyist on a steep learning curve so if my methods seem awkward, clunky or bloated, please feel free to smack me upside the head and show me a better way.

I added a second profile which I called LockToggle. It consists of Event + Sensor + Shake. (Left/right A/S/D=medium) which triggers the task LockToggler. Heres where you all might think I've gone to far and there is probably an easier way. I accept that and welcome your suggestions.

*LOCKTOGGLER**
If %LKD = 0
Variable set %LKD = 1
Variable set %LKDSTAT = LOCKED
Profile status AppLock set On

Else if %LKD = 1

Variable set %LKD = 0
Variable set %LKDSTAT = UNLOCKED
Perform task LOCKER (this is the same task used to lock the app in the original profile. This prevents anyone from deactivating the profile other than you or accidently deactivating.)
Profile status AppLock set Off

Endif

(I created a quick toast message to let me know if I'm locked or not)

Create scene AppLockStat
Show scene AppLockStat
Wait 2 seconds
Hide scene AppLockStat
Destroy scene AppLockStat
Stop
end code

The scene is just a small text box which displays %LKDSTAT

Set the variable %LKD manually before you run this the first time or the task will not work (if Variable not set could be added to address this but thats just more code as far as im concerned)

Again I'm not a "real" programmer so I welcome your input and suggestions.

Logan
moc.liamg|eyvnagolaka#moc.liamg|eyvnagolaka

Hi,

Its a very good profile, the only problem I found is that it cannot lock the tasker app itself. Anybody can open the tasker app, go to the task and check the pass-code and then can unlock the apps. Is there any workaround for this.
Please respond either by editing this wiki or mailing me at moc.eulavmarirhs|m.kehsihba#moc.eulavmarirhs|m.kehsihba

Regards,
Abhishek

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License