Author Topic: Implement own remote commands - turn on GPRS & turn off limit  (Read 3954 times)

0 Members and 1 Guest are viewing this topic.

platon

  • Guest
In the Avast! Anti-Theft adds the ability to use the user's own remote commands.
http://www.avast.com/free-mobile-security#tab3

Which command should be sent to the phone to activate the GPRS and remove the traffic limit?


Offline Werner

  • Avast team
  • Advanced Poster
  • *
  • Posts: 867
Re: Implement own remote commands - turn on GPRS & turn off limit
« Reply #1 on: July 30, 2013, 08:21:15 AM »
Hello,

such a command isn't implemented. sorry.

Werner

platon

  • Guest
Re: Implement own remote commands - turn on GPRS & turn off limit
« Reply #2 on: July 30, 2013, 11:31:11 AM »
Hello,
such a command isn't implemented. sorry.
Werner

Quote
Implement own remote commands

Avast! Anti-Theft is able to launch any programs on the phone and pass data to the launched program.

SMS command: <Activity or service name, fully qualified> <arguments>

Samples:

2222 at.domain.package.Activity Test will start the activity OR service at.domain.package.Activity and pass Test as an parameter to it.
2222 at.domain.package.Activity This is my command line will start the activity OR service at.domain.package.Activity and pass This is my command line as an parameter to it.

The activity or service needs to be positioned on the root of the package (sub-packages are NOT supported).

Data transfer is done via Intent:

Intent i = new Intent();
i.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
i.putExtra("number", origNumber);
i.putExtra("cmd", data);
i.setComponent(cName);

This means you can then read (in your service or activity) the sender number in the String extra number and the command from the String extra cmd.

Anti-Theft always tries to start an Activity first, if none is found it tries to start a Service, if this fails it will reply with an error SMS.

http://www.avast.com/free-mobile-security#tab3

I see that is not implemented. So I ask: is it possible to implement this feature their own teams?

reinhardholzner

  • Guest
Re: Implement own remote commands - turn on GPRS & turn off limit
« Reply #3 on: July 30, 2013, 01:04:36 PM »
you can enable / force the data connection on by sending the SMS command DATA ON (rooted devices only). However this will not remove the traffic limit.

platon

  • Guest
Re: Implement own remote commands - turn on GPRS & turn off limit
« Reply #4 on: July 30, 2013, 04:01:20 PM »
you can enable / force the data connection on by sending the SMS command DATA ON (rooted devices only). However this will not remove the traffic limit.

Thank you! The works. Maybe you can find another command to disable traffic limit?

reinhardholzner

  • Guest
Re: Implement own remote commands - turn on GPRS & turn off limit
« Reply #5 on: July 30, 2013, 04:19:37 PM »
No this is system only. Maybe on rooted phones but i need to check that if i got time.