[Tasker Tips & Tricks] Breathh:
Hi,

I ended up here 'cause I was looking for the same thing, and I was too lazy to do it tonight for myself. However, I find your project a little weak, and I am gonna explain why...

The more likely scenario is this: a thief, steal your phone and immediately remove the battery and the SIM (it doesn't need to find the power button etc.). If your battery cannot be removed, without SIM, still, your smartphone is just a nice brick. When it is at home or in a safe place, it turns the smartphone on, go to setting and make a soft reset. Your app is gone! If you have a locked screen, probably he will check on internet how to do hard reset from boot (which is always available, no need custom ROMs or unlocked BOOT). Now, going through your steps:

Profile1: when my phone receives a text saying "gps", it activates it using SECURE SETTINGS working along with Tasker (root is required btw) ===> Are you sure that you still have SU rights after the SU app has been removed because of the smartphone reset? I would definitely try to do things that not require root.

Profile2: when phone receives text saying " data", it obviously enables data through a shell command, the code is "svc data enable" ===> you dont have the SIM inside and you dont know, so far, the new phone number

Profile3: when it receives a text saying "ring", it starts ringing like it has got no brain, I have an app installed called VOLUME LOCK, and what it does is it simply lets u set up your volume for (RINGER, ALARM, MEDIA) (in the Volume Lock app), and it locks them, so when the app is running u can not turn down the volume of anything, and I just force stop the app, and the first thing Tasker does after receiving the text that says " ring" is it launches the app, so Tasker goes like this ( Launch app, play music through media, play ringtone through ringer, play alarm ringtone through alarm) .... ===> you dont have the SIM inside and you dont know so far the your phone number, plus all your apps are gone! Cause he did a soft or hard reset...

Profile3: when phone receives text saying "dnd", Tasker simply puts phone on do not disturb if u just want to track your phone using ANDROID DEVICE MANAGER from a PC or something ====> after soft and hard reset all your accounts are gone, google doesnt have any link to your phone anymore.

Basically, your project can work for the first 5-10, while the thief is running away from you. After that, as soon as it has a minute to stop, your chances to track him/her are basically 0.

Here what I was thinking this morning on the bus:

Profile 1: on boot, looking for sim s/n and store it in a Var1. Compare Var1 with Var0 (containing the s/n of the sim that was previously set from the user -using a scene.) here it is important to allow user to update the s/n everytime, especially if it has to travel and change sim quite often. if Var1 =/ Var 2 turn on profile 2

Profile 2: every xxx min check internet connection. If there is internet, then grab Wifi nearby, Wifi connected, position from net, pos from GPS, new sim phone number. Probably if GPS is off and data are off a few of these pieces of info wont be saved, but at some point someone will use internet on that phone! Send this collected info to a webserver using HTTP post (IFTTT can handle it and send you email, sms, calls and so on).

Make an app, install it and, since you have root, make it as system app.

the app has to look non suspicious , so grab a nice icon, and once it is clicked the first scene should be a simple rectangle with written something like: "this app is not compatible with your phone. Please contact the developer" + an Ok button. Now if ok is press once, the scene is killed. If double clicked will trigger the second scene with all the settings (like actual sim s/n, On/Off and so on)

This is what I was thinking, if you have suggestions or ideas, please let me know. I hope this can help.

Cheers.