Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,782,094 Members 50,349 Now Online
XDA Developers Android and Mobile Development Forum

[App][Part-Root][4.0+] Sms Tasks!

Tip us?
 
jkok
Old
(Last edited by jkok; 4th August 2014 at 01:49 PM.) Reason: fixed up formatting of the commands section+edited the superuser command+added the adb toggle[R]
#1  
jkok's Avatar
Senior Member - OP
Thanks Meter 165
Posts: 259
Join Date: Jan 2013
Location: Parkersburg W.V.

 
DONATE TO ME
Phone [App][Part-Root][4.0+] Sms Tasks!

Hello This is my first app ive made so please be kind about it.

but first in regards to the bad-apk upload to google-play prior to 7/03/2014
 

for all those who dont know, the update was in regards to a settings not applying glitch causing the app to fail completely if it wasnt my set device id so i had no clue untill i saw a review then tested on mine then on my friends phone:

i feel bad i uploaded a bad apk and got around 30 people disapointed and 3 who baught pro disapointed so i have refunded all for pro version, removed it, then removed all ads from the free version and republished on 7/03/2014 and work a straight 6 hours to get it up+running fully from scratch with minimal code reusing to make sure it works, same android restrictions apply so gps toggling and a few others still apply, but i tried many methods to get it working, but only tested on 4.4.2 but some codes should work for 4.0+ but i feel really bad about it so i did all i could to remake it as well as i could so please try to give it another shot as i worked hard to get it up+running to work again =)

**For GoSMS+Other SMS/MMS App Users that are not receiving commands:
 

Quote:
Originally Posted by Abraheem View Post
I haven't used this program yet. I use Cerberus which has the same problem with GOSMS.
Here is a solution that works for cerberus and should work in similar situations:

Open Go SMS Pro, tap 'Menu', 'Settings', 'Advanced', 'Other setting' then uncheck 'Disable other message notifications'.
Then back to 'Advanced', then 'Notification settings', check 'Notification bar privacy mode' and that so it will not display the recieved sms commend!

Then open the stock SMS App, tap 'Menu', 'Settings' then uncheck 'Notifications'.

The idea can be used with Handcent sms and other sms programs. Hope it works
otherwise: THIS APP WILL NOT WORK IF YOU HAVE GOSMS INSTALLED, GOSMS must be frozen or uninstalled**


Intro:
 

This is a sms-receiver app that will listen to incoming Text messages and do a pre-compiled task by them
This app was partially inspired by the Remote Terminal, Remote ShutOff, and Remote Unlock apps from the xda-announcements (not sure of developer names at the moment, but i did like those apps myself and thought "why dont i make one just like that?" So i did. and it doesn't need to be a system app or fully rooted to do so!
**note** im a single person developer so i cannot make every function compatible for every phone because i only have a samsung fascinate sch-i500, so if a feature doesn't work for you, i cannot help much cause i only can test it on mine, and this works perfectly on mine, sorry in advanced.


Features include: [R] = root required [~R] = root may be required for newer phones [D] = Disabled in Disable Dangerous On Wildcards
 
-customizable passphrase used for all commands except both echo's (cannot be blank, but unlimited length (as long as you can fit commands after it), there is no old passphrase, so on your first run(or after data wipe), leave the old Passphrase alone, and type your new one in the two other text fields)
-turning on/off the service when changing passcodes(or typing in the same passcode in old, new, and confirm)
-[R]Shutting off phone
-[R]Rebooting phone
-[R]Rebooting into recovery
-[R][D]Sending terminal commands
-[R][D]Uninstalling apps remotely (By package name, eg. com.rovio.angrybirds, **reboot afterwards required**, system apps uninstallable also)
-Sending Echo's (toast messages, multi-lined acceptable)
-Sending multiple Echos (multi-line Echo's, separated into different toast messages one-after-another)
-[R]Bypassing the security lock of your phone, with reboot (beta feature, picks and chooses when to work when screen off) (supports: regular patterns, cyanogenmod 4x4-6x6 patterns, passwords, digit pins)
-[D]SDcard Wiping (Cannot be undone, see notes and warnings below command)
-[D]Remote Factory Reset (device admin needs to be enabled, android 2.2+)
-[~R]Toggle wifi, wifi hotspot, gps, bluetooth, ADB (on newer android firmware, some toggles need to be on a rooted phone for toggles to work; GPS requires to be a system app)
-Text-to-Speech (Makes your phone talk and say what you put after the command, some censors are put)
-One-Time Alarm sound (makes your phone set off the alarm sound, if failed (or media/sdcard unmounted) does System Alarm sound, if failed notification sound, if that fails does ringtone)
-Looping Alarm sound (shuts off with snooze command)
-Custom Alarm ( place "Alarm.mp3" in (external sdcard path)/KittleApps/Smstasks/Alarms/Alarm.mp3)
-Snooze alarm
-[R]Toggle ADB
-Rechecks Superuser (just basic rechecks superuser request, if already allowed does the toast message)
-Reading all your incoming text messages with the announcement "Text from (number or email) saying... (message)" (can be disabled/enabled in commands, or in the more settings menu.)
-Disabling/enabling almost any command (does not disable command to check superuser or the command to enable/disable commands)
-White-listing 2 numbers, and one email (no special characters use only numbers 0 through 9, no Country codes, Can allow all numbers (not email), by setting only the wildcard * )
-GPS Tracking (only as good as the gps on your phone, gives overall accuracy in metres, this will turn on gps on start) (separate command to stop tracking)
-Testing if app is installed and running correctly.
-Requiring Confirmation of pass phrase to disable/enable change whitelists


Commands (and format) to use these are, (where (pass)= your passphrase) (options for a few select commands are: true,false,enabled,disabled,t,f)
 

**Note: when it says "1234", or (option), do not include the ( ) or " Symbol(s) in the command. only your pass phrase and/or the option with spaces only to separate the command@, the passphrase, and options, with no spaces afterwards unless it is the speak, echo, multi-echo, cmd commands so far**:

Sending terminal commands:
 

cmd@1234 (terminal commands, seperate commands by new line)
cmd@1234 reboot
cmd@1234 echo "hi" >> sdcard/test.log

and such

Shutting off phone:
 

off@1234
cmd@1234 reboot -p
cmd@1234 poweroff

Rebooting phone:
 

reboot@1234
cmd@1234 reboot

Reboot into recovery:
 

recovery@1234
cmd@1234 reboot recovery

Uninstalling apps:
 

uninstall@1234 (package name of app, and include /system/app file name without .apk also if a system app)

echos:
 

echo (what to put in a single toast, can also be separated by new lines for multi-lined toasts)
echo hi!

echo hi
how are you today?
im doing good!


multiple echos
 

multi-echo (what to put in the first/single toast, new seperated-echos are separated by new lines)

multi-echo hi
how are you today?
im doing good!


Bypassing android LockScreen security:
 

unlock@1234

SDcard Wiping:
 

sdcard@1234
cmd@1234 rm -rfv (path you wish to delete)
**note SDcard Wiping cannot be undone when started it will erase all sdcard contents (fixed to only use external mount points V1.4+ on the sdcard@command not cmd@method)

Wiping Data:
 

data@1234
**note Wipe Data command cannot be undone**

toggles:
 

(options are: wifi, gps, bluetooth, adb, hotspot) (hotspot is the wifi hotspot)
toggle@1234 (option) (Value)
toggle@1234 wifi off
toggle@1234 adb on

Text-to-Speech:
 

speak@1234 (what to say)
speak@1234 Hi, how are you today?

Alarm (No-Loop):
 

alarm@1234

Alarm (Looped version):
 

loop-alarm@1234

Snooze Alarm:
 

snooze@(pass)

Remotely Lock Device:
 
// sends a text back with new password to get into phone
lock@1234
lock@1234 (optional Custom password can be added here)

Check superuser request:
 
// just type only one of the following to get the prompt Alternitivly use the "SU?" button on the settings to initiate the Initial Superuser prompts
superuser@1234
Superuser@1234
SuperUser@1234

Testing if app is installed and running correctly;
 

test@1234
**you will get a text back to the phone that sent the command if its working)

GPS Location Tracking:
 

locate@1234

Stop Tracking:
 

stop@1234

End OF Commands:

in regards to convert this (or any app) to a system app via commands?
 

type these in seperate texts in new messages (as it will be long...) make #### your currently set pass phrase
Code:
cmd@#### cp /data/app/com.kittleapps.app.smstask.apk > /system/app/smstasks.apk
cmd@#### chmod 644 /system/app/smstasks.apk
cmd@#### rm /data/app/com.kittleapps.app.smstasks.apk
then reboot the phone =) its how i debug it on-the-fly just do not remove from data/app before you chmod 644 the system app as you will no longer see the app as installed; so if you need to use the test@ command to test if it is still reading the commands =)

**do not use this method maliciously! i'm just showing for some users to convert to system app easily using my app for gps toggling issues! **

Download:
Google Play Link (for Free version, Pro is no more)
The Following 30 Users Say Thank You to jkok For This Useful Post: [ Click to Expand ]
 
maranello69
Old
#2  
maranello69's Avatar
Senior Member
Thanks Meter 171
Posts: 802
Join Date: Apr 2011
Location: EU
nice app, mate, sure looks promising

would be great to be able to send a command to fully wipe phone / sd card, this should be a great feature to have in case you loose or get your phone stolen
SGS4 i9500
Rom: WanamLite v1.8
Recovery: TWRP v2.6.1.0
Kernel: Perseus alpha v12.2


iPhone 5S 64GB
iOS7 v7.1.1

Asus Transformer Prime TF201
For games & tv shows

iPad Air 128GB
iOS7 v7.1.1 - For Megapolis
 
zh0pp3r
Old
#3  
zh0pp3r's Avatar
Junior Member
Thanks Meter 1
Posts: 15
Join Date: Oct 2011
Location: Default city
Thanks for the app. Full wipe phone/sdcard via sms would be great function.
P.S. Sorry for my bad English.
mmm...beer...ahrrr
 
abderrezak
Old
#4  
abderrezak's Avatar
Senior Member
Thanks Meter 261
Posts: 399
Join Date: Jan 2013
Location: NEW YORK
tested on samsung galaxy SL i9003 GB Stock rooted 2.3.6 And it's not work !!!
My Current device : Sony Xperia arc S [who say that MY arsyyy is old it is my heart ]


old :

HTC ONE X+ 32 GB
LG N4 8 GB
Sony xperia S
Samsung Galaxy S II GT-i9100p
Samsung Galaxy SL GT-i9003

My projects :

[ROM][4.2.2] remICS-JB [Galaxy SL]
 
jkok
Old
(Last edited by jkok; 8th July 2013 at 04:23 PM.) Reason: added more details
#5  
jkok's Avatar
Senior Member - OP
Thanks Meter 165
Posts: 259
Join Date: Jan 2013
Location: Parkersburg W.V.

 
DONATE TO ME
Quote:
Originally Posted by abderrezak View Post
tested on samsung galaxy SL i9003 GB Stock rooted 2.3.6 And it's not work !!!
weird because it works on my phone, i cant really test on other phones, but ill tweak it around a bit and check every command again, but the wakelock picks and chooses when to work when the screen is locked or shut off with patterns/pin/password, ill try to find a better way to use one, but make sure you accept/grant the superuser request But there is also a glitch when sending non-commands making the app crash, but ill try to fix that soon also, might i ask what command you tried to use (not with your pass code just the function would do)

i will also try to add the wipe functions soon, ill have to find a reliable way to wipe data with shell commands, as thats how these commands (with the exception of the echo's) work, but for sdcard wipe, that will be easier ill start working on it soon.
The Following 2 Users Say Thank You to jkok For This Useful Post: [ Click to Expand ]
 
SunShiner
Old
#6  
Member
Thanks Meter 8
Posts: 31
Join Date: Apr 2013
I had very similar ideas after the first shutdown app came out. One idea i got to tweak that a little bit more was why don't listen to other msg services like whatsapp, instead of SMS, cause it's a little bit old school. Might be a next version of your app come up with other msg systems?

Another thing I have regonized are for Samsung branded Devices: Samsung offers a protect services to shut your phone down or locate it wheb it's stolen etc. . So because you do this through a website Samsung needs to create a SU Access to the phone. Ain't it possible to access this services over an API and build a program around it? ...or I am completely wrong?
 
jkok
Old
#7  
jkok's Avatar
Senior Member - OP
Thanks Meter 165
Posts: 259
Join Date: Jan 2013
Location: Parkersburg W.V.

 
DONATE TO ME
Quote:
Originally Posted by SunShiner View Post
I had very similar ideas after the first shutdown app came out. One idea i got to tweak that a little bit more was why don't listen to other msg services like whatsapp, instead of SMS, cause it's a little bit old school. Might be a next version of your app come up with other msg systems?

Another thing I have regonized are for Samsung branded Devices: Samsung offers a protect services to shut your phone down or locate it wheb it's stolen etc. . So because you do this through a website Samsung needs to create a SU Access to the phone. Ain't it possible to access this services over an API and build a program around it? ...or I am completely wrong?
im not sure tbh, ive only been able to do this over the broadcast receiver for receiving sms, idk if i can get this to work with other sms apps, but if i find a way to add the other message systems that would be a good alternative.
And idk about that samsung phone thing, i thought that could only be done for the stock roms, this app here ive only really tested on Unjustified dev''s domination and PAC roms cause those are my daily drivers, but that would be a good thing to try if i knew how to do it lol
 
getdead69
Old
#8  
Junior Member
Thanks Meter 1
Posts: 2
Join Date: Apr 2011
Quote:
Originally Posted by jkok View Post

Download:
Resuable Download Link Click Here
Is it "Suable" or "Resumable"?

Thanks by the way, awesome app
 
jkok
Old
#9  
jkok's Avatar
Senior Member - OP
Thanks Meter 165
Posts: 259
Join Date: Jan 2013
Location: Parkersburg W.V.

 
DONATE TO ME
Quote:
Originally Posted by getdead69 View Post
Is it "Suable" or "Resumable"?

Thanks by the way, awesome app
opps i meant reusable ill fix that once i finish the wipe options lol
 
LucidSwag
Old
#10  
Junior Member
Thanks Meter 0
Posts: 8
Join Date: Jul 2013
Nice idea dude, gonna try it on my rooted stock ROM GT-I9500 and give you feedback.

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes