View Single Post
Old September 11th, 2012, 02:28 PM   #1 (permalink)
SUroot
ROM Developer
Thread Author (OP)
 
SUroot's Avatar
 
Join Date: May 2010
Location: Riddlesden, West Yorkshire, UK
Posts: 23,926
 
Device(s): SGS3 (Current) HTC Desire (Retired)
Carrier: 3 UK

Thanks: 1,923
Thanked 5,320 Times in 3,994 Posts
Default [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

Pre-requsites:
  1. SL4a apk - android-scripting.googlecode.com
  2. Secure settings - Google Play
  3. Folder \sdcard\sl4a\scripts containing - sendemailA.py
  4. Python - Install through SL4a as below:





    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)
  • + Variable > Variable Set > name "%EMAIL_USER" to youremailaddress@here.com
  • + Variable > Variable Set > name "%EMAIL_PSWD" to youremailpassword
  • + Variable > Variable Set > name "%EMAIL_TO" to youremailaddress@here.com
  • + Variable > Variable Set > name "%EMAIL_SUBJECT" to "SGS3 INTRUSION ATTEMPT"
  • + Variable > Variable Set > name "%EMAIL_ATTACH" to "/sdcard/DCIM/Tasker/last-intruder.jpg"
  • + Script > Run SL4A Script > Name (Search icon) sendemailA.py > Pass variables " %EMAIL_USER,%EMAIL_PSWD,%EMAIL_TO,%EMAIL_ATTACH,%E MAIL_SUBJECT "
  • Apply

Attached Files
File Type: zip profiles.zip (1.0 KB, 255 views)
SUroot is offline  
Last edited by SUroot; September 21st, 2012 at 04:48 PM.
Reply With Quote
The Following 17 Users Say Thank You to SUroot For This Useful Post:
AndroidHaCks (July 14th, 2013), biggoog2003 (September 11th, 2012), D-U-R-X (May 12th, 2013), davoid (September 11th, 2012), El Presidente (September 13th, 2012), Incognegro8290 (October 24th, 2013), JoshuaJones (November 4th, 2012), madkad (January 7th, 2013), MaxPower1 (September 21st, 2012), mrhomiec (September 11th, 2012), nflo671 (December 2nd, 2013), Rachel A (September 11th, 2012), silentwitness (December 9th, 2012), TauntingBull (May 12th, 2013), titan2005 (October 8th, 2013), Tyseyh (September 21st, 2012), XplosiV (September 16th, 2012)