[Profile] [front Camera] Photo/email image of device intruder
This is a mid-level complexity profile that takes a photo of someone who incorrectly enters your pattern lock (in this example) twice and emails it to you.
This is based on multiple examples found but this is my own spin on it.
The filename of the photo is always the same so it overwrites itself, saving space because if, like me, you often put your pattern in wrong, you'll end up with a million pictures of yourself
Only shell is included with the ASE install. Other interpreters must be installed separately. To add another interpreter:
Press the menu button
Tap "View"
Tap "Interpreters"
Press the menu button
Tap "Add"
Select the interpreter you would like to install
The selected interpreter will be downloaded via the Android web browser. Once it's finished downloading, tap the download notification to start the installation process as you would for any other downloaded APK.
After installing the interpreter APK, start it and tap the "Install" button. The interpreter, interpreter extras, and example scripts (if available) will be downloaded to /sdcard/xxx.zip and then extracted to /data/data/com.googlecode.android_scripting/files/xxx, /sdcard/sl4a/extras/xxx, and /sdcard/sl4a/scripts respectively.
I have attached the profile exported xml, in a zip. Put this (extracted) in /sdcard/tasker/profiles/. You will still need to do the above and add your email address and password to the tasks below though, but should save some time. UNTESTED
Creating the profile:
Profile
Add (+) Profile, name "Intrusion"
Context
Select State > Plugin > Secure Settings > configuration Edit > Failed Login Attempts > (set your number, Tick "Device admin" and save
Task
New Task
+ Media > Take Photo > Camera "Front" > Filename "Last-intruder" (and apply)
Nice job there SU! I've been trying to piece this together for a while, and here it is, all in one easily digestible chunk!
One question: is SL4a installed as standard now? I have it on my tasker but cannot recollect if I installed it separately.
Thanks!
__________________
If I helped you then please consider thanking me. A thanks produces lots of warm and fuzzies and is cheaper and easier than buying me a round of booze.
The Following User Says Thank You to Rachel A For This Useful Post:
So I'm trying to figure out how to move the snapped picture, but don't know how to go about this.
Trying to setup a new profile, I found event > file > file attribute change, file deleted, file moved, file closed, file modified, and file opened.
Was thinking file modified, but it asked for a specific file name. But I have the snap picture name the file chronologically.
Any suggestions?
__________________ Sync your phone and your computer, Dropbox
================================================== ===========================THANKS
================================================== ==============================| |
================================================== ==============================| |
================================================== ============================== V
Do the folders with path /sdcard need to be on the internal memory?
I was wondering because of the /sdcard/DCIM/Tasker/ path for the photo; does Tasker save photos here by default? Asking because my DCIM folder is on extSdcard.
I'm assuming the /scripts folder will need to be on /sdcard.
Do the folders with path /sdcard need to be on the internal memory?
I was wondering because of the /sdcard/DCIM/Tasker/ path for the photo; does Tasker save photos here by default? Asking because my DCIM folder is on extSdcard.
I'm assuming the /scripts folder will need to be on /sdcard.
Mine too. No it defaults here. Tasker (like many apps) does not know about extSdCard. Cannot find a setting.
If you prefix the filename, can you use a wildcard?
it didn't work.
i named the photo "tried" with the chronological setting. this names the files "tried.2012-09-12-06-44.jpg" then in the file move profile, i tried to identify it with "tried.*.jpg" and "tried.*" and when testing via failed unlock and trying to press the play button, it didn't work.
however from pressing the play button, i was able to see an error "file does not exist". so it sounds like it has to be an exact match.
i also tried to just in general pay attention to the /Tasker/ folder, and still the same results.
This is a mid-level complexity profile that takes a photo of someone who incorrectly enters your pattern lock (in this example) twice and emails it to you.
This is based on multiple examples found but this is my own spin on it.
The filename of the photo is always the same so it overwrites itself, saving space because if, like me, you often put your pattern in wrong, you'll end up with a million pictures of yourself
So email user (task 2) doesn't have an @gmail.com or whatever on the end.
Take those pictures down if i were you.....
Removed Pic Thank you.
I read the Sl4A tuturial and it said not to put the @gmail.com because it wlould use @gmail.com atuomaticly.
I had it there at first it still did not work??
Last edited by biggoog; September 14th, 2012 at 08:45 AM.
Reason: type o
i dont have a sl4a App. sl4a was alreadry installed on my version of tasker. Where do i press sendemailA.py ????
download sl4a app. file is there when i try to run it from app or tasker i get this:
"Sorry!
The application SL$A(process com.googlecode.android_scripting) has stopped unexpectedly. Please try again."
Wont let me take a screen shot of that screen. Looks like a System error???
Edit:
1. Downloaded sl4a app installed 2. Installed python 3. Added @gmail.com to email.
4. WORKING like a charm.
Thanks a lot SUroot for all the help anf feed back.
Last edited by biggoog; September 14th, 2012 at 11:16 AM.
Reason: Problem solved Thanks to SUroot.
For those of you who likes to save battery and you have data off, the sendemail will fail if data is off and you will not receive an email. Here's what I did. Tested it and it works for ME!
You can adjust the wait time and some may not need to have that task. For me it takes a few seconds to bring data up.
I added task 2, 3, & 10
The Following 2 Users Say Thank You to biggoog For This Useful Post:
i keep getting USER_EMAIL Missing.
I have checked and double checked, no extra spaces at the end of the email address for example, the address is correct, any ideas?
I got it to work but I have to say, the instructions were a bit confusing. SL4A doesn't come with Tasker, I had to download it from the link since it's not on the Play Store either. Once I have SL4A installed, I opened it, and installed Python, I had to open Python and click on the install button. It downloaded and extracted some files, IDK what they were. Then I set up the email client on my phone and linked it to my Google account (I'm not sure it that was necessary or if the Gmail app would have been enough).
After I did all that it still didn't work. I went into Tasker and opened the Task and pressed the play button, I got a "EMAIL_USER missing". I had to edit this:
+ Script > Run SL4A Script > Name (Search icon) sendemailA.py > Pass variables "%EMAIL_TO,%EMAIL_ATTACH,%EMAIL_SUBJECT"
into this:
+ Script > Run SL4A Script > Name (Search icon) sendemailA.py > Pass variables "%EMAIL_USER,%EMAIL_PSWD, %EMAIL_TO,%EMAIL_ATTACH,%EMAIL_SUBJECT"
Yes you're right I missed two variables when I copied the text (you know you simply could have imported the profiles right? The steps are not so relevant now.)
I too had to install sl4a but a couple of people in the first few posts said it now came with tasker. Amended back.
There is a link that explains how to install interpreters (such as python). I am not responsible for its content however.
Yes you're right I missed two variables when I copied the text (you know you simply could have imported the profiles right? The steps are not so relevant now.)
I too had to install sl4a but a couple of people in the first few posts said it now came with tasker. Amended back.
There is a link that explains how to install interpreters (such as python). I am not responsible for its content however.
I did see the link to download the profile but it says it's untested so I figured I'd do it manually. It was better that way because I learned a few things along the way
I did see the link to download the profile but it says it's untested so I figured I'd do it manually. It was better that way because I learned a few things along the way
Of course, testers are always welcome too
If anyone has successfully tested, I can remove the "untested"
Hi there. My profile is almost the same except that the picture uploads itself by using Dropbox. My problem is that my HTC One X doesn't take a picture when I use pattern lock even though I use the same setup as you. So I was thinking, do you have a solution?
Last edited by Fuzie; December 2nd, 2012 at 04:44 AM.
that explains why u can use the pattern. I still can't figure out why you can't use pin option. doulbe checked that you are not using keyguard instead of pin?