6

How to remotely wipe the data from device?

I have already tried the sample code given in Device administration. In that we can locally wipe all the device data and reset the device to factory settings.

Given in below link

http://developer.android.com/guide/topics/admin/device-admin.html

Now i want the code for wiping the data remotely. i.e if the phone is lost, user can wipe phone data remotely. Can anybody help please

Josh Lee
  • 171,072
  • 38
  • 269
  • 275
krunal shah
  • 16,089
  • 25
  • 97
  • 143
  • You mean a factory reset yeah ? the example that you provided has a link to http://developer.android.com/reference/android/app/admin/DevicePolicyManager.html#wipeData(int) what problems are you facing ? – Reno Dec 15 '10 at 07:45
  • @Reno - I am able to wipe data in my phone by calling wipedata(). But the problem is i want to wipe data remotely i.e if the phone is stolen and i want to delete all phone data then i should call the wipedata() action remotely. So i don't know that how to call that action remotely. In device administration document they have written Security applications that do remote wipe. So i want this way – krunal shah Dec 15 '10 at 10:36

2 Answers2

2

This is a start for you:

Are you developing this software yourself or are you on the search for existing remote-wipe solutions?

Sebastian Roth
  • 11,344
  • 14
  • 61
  • 110
  • I am developing this application. I don't want ready remote-wipe solution. So i want to know how to do code for this – krunal shah Dec 15 '10 at 09:07
  • I already have done wipe data locally by device administration action wipeData(). But i want to call this action remotely from webservice or through sms sending. – krunal shah Dec 15 '10 at 09:15
  • Then you would check how to listen for SMS and when the SMS contains your special code, execute the wipeData. Read http://stackoverflow.com/questions/662420/android-sms-content-content-sms-sent for example. – Sebastian Roth Dec 15 '10 at 09:30
  • If im right you are making an app, which when opened authenticates with a server. If the server detects a funny business call wipe data from inside this app. This means that all enterprise data must be stored in a secured location on the device. The only way of accessing this encrypted data should be by authenticating with the server. SmS is not always a cool idea because i can always go in the airplane mode and use wifi to authenticate yeah ? – Reno Dec 15 '10 at 11:46
1

I got the solution for remotely wipe data of device.

I refer this document Using Google Apps Device Policy, this application is made by google.

http://www.google.com/support/mobile/bin/answer.py?hl=en&answer=190930

krunal shah
  • 16,089
  • 25
  • 97
  • 143