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

Reply via email to