But this asks the user, right, you can't programatically just wipe everything without input, correct?
kris On Wed, May 23, 2012 at 1:40 AM, Dianne Hackborn <[email protected]> wrote: > You can do this by writing a device administrator: > http://developer.android.com/guide/topics/admin/device-admin.html > > Which can call this API: > http://developer.android.com/reference/android/app/admin/DevicePolicyManager.html#wipeData(int) > > > On Tue, May 22, 2012 at 1:11 PM, Kristopher Micinski > <[email protected]> wrote: >> >> If you're not a system app, then you're not a system app, and there's >> nothing you can do. (Otherwise there would be a security hole in the >> system.) >> >> kris >> >> On Tue, May 22, 2012 at 4:08 PM, Serj <[email protected]> wrote: >> > Thank You bobbywink, >> > that is what I need: MASTER_CLEAR ))). I have supposed, that it must >> > be an system app. Can I prevent this? Could I overwrite this Class? I >> > mean can I program my own MASTER_CLEAR.class, like >> > myMASTER_CLEAR.class, and send him a Broadcast? Therefor I need the >> > source code from this MASTER_CLEAR.class to understand how it works. >> > Can You help me? >> > >> > On 22 Mai, 06:01, v bobbywink <[email protected]> wrote: >> >> sendBroadcast(new Intent("android.intent.action.MASTER_CLEAR")); >> >> need permission: android.permission.MASTER_CLEAR >> >> >> >> system receiver is MasterClearReceiver.java >> >> BUT it must be a system app , your own app can't do it >> >> >> >> 2012/5/22 Jim Graham <[email protected]> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> > On Mon, May 21, 2012 at 02:10:18PM -0700, Serj wrote: >> >> > > Hi Kris, >> >> > > I have got the source code, but I ask whether someone can tell me >> >> > > which class (Java Class) implements the "Factory data reset" in >> >> > > code >> >> > > behind. "Factory data reset" is normal menu option in android, >> >> > > which >> >> > > to find under "Settings/Privacy/Factory data reset". Or who can >> >> > > tell >> >> > > me, how can I reset database code behind. I want make an >> >> > > Application, >> >> > > which reset all kind of data on the device. Thx >> >> >> >> > Let me see if I understand you correctly.... You want to reset the >> >> > ENTIRE DEVICE just to reset a database? Have you, by any chance, >> >> > ever >> >> > (seriously) considered using a nuclear warhead to kill a mosquito? >> >> > :-) >> >> >> >> > Delete the database and re-create it. It's reset. And you (or your >> >> > users) don't lose everything ELSE on the device along with the >> >> > database. >> >> >> >> > Later, >> >> > --jim >> >> >> >> > -- >> >> > THE SCORE: ME: 2 CANCER: 0 >> >> > 73 DE N5IAL (/4) | Peter da Silva: No, try "rm -rf /" >> >> > [email protected] | Dave Aronson: As your life flashes >> >> > before >> >> > < Running FreeBSD 7.0 > | your eyes, in the unit of time known >> >> > as an >> >> > ICBM / Hurricane: | ohnosecond.... >> >> > (alt.sysadmin.recovery) >> >> > 30.44406N 86.59909W | >> >> >> >> > Android Apps Listing athttp://www.jstrack.org/barcodes.html >> >> >> >> > -- >> >> > You received this message because you are subscribed to the Google >> >> > Groups "Android Developers" group. >> >> > To post to this group, send email to >> >> > [email protected] >> >> > To unsubscribe from this group, send email to >> >> > [email protected] >> >> > For more options, visit this group at >> >> >http://groups.google.com/group/android-developers?hl=en >> > >> > -- >> > You received this message because you are subscribed to the Google >> > Groups "Android Developers" group. >> > To post to this group, send email to [email protected] >> > To unsubscribe from this group, send email to >> > [email protected] >> > For more options, visit this group at >> > http://groups.google.com/group/android-developers?hl=en >> >> -- >> You received this message because you are subscribed to the Google >> Groups "Android Developers" group. >> To post to this group, send email to [email protected] >> To unsubscribe from this group, send email to >> [email protected] >> For more options, visit this group at >> http://groups.google.com/group/android-developers?hl=en > > > > > -- > Dianne Hackborn > Android framework engineer > [email protected] > > Note: please don't send private questions to me, as I don't have time to > provide private support, and so won't reply to such e-mails. All such > questions should be posted on public forums, where I and others can see and > answer them. > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

