I would like to know how to acquire the platform key. Is it something
that we have to request from the android dev team? What are the
requirements to acquire it? We are also trying to develop an app which
requires resetting the phone at some conditions. Thanks in advance for
any help you could extend.

On Aug 17, 4:36 am, Jeff Sharkey <[email protected]> wrote:
> The "android.permission.MASTER_CLEAR" permission is protected with
> "signatureOrSystem".  That is, it can only be granted to apps signed
> with the platform key, or installed on the system partition.
>
> http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob;...
>
> j
>
>
>
> On Sun, Aug 16, 2009 at 3:31 AM, amit<[email protected]> wrote:
>
> > hi,
>
> > I am writing an application in which I need to call Master Clear under
> > a specifi condition.
> > But I am getting permission error.
>
> > My Code:
> > =======
>
> > AndroidManifest.xml
> > -----------------------------
> >  <uses-permission android:name="android.permission.MASTER_CLEAR" />
>
> > Calling Master Clear Code (similar to code present in Settings of
> > Android)
> > ---------------------------------------------------------------------------------------------------------
>
> >    ICheckinService service =
> >            ICheckinService.Stub.asInterface(ServiceManager.getService
> > ("checkin"));
> >    if (service != null) {
> >        try {
> >            service.masterClear();
> >        } catch (android.os.RemoteException e) {
> >            Log.e("MasterClear", "Some Error Here !!");
> >        }
> >    }
>
> > Observation / Error / Output (in DDMS)
> > -------------------------------------------------------
> > PermissionDenial : can't invoke masterClear from PID=965, uid = 10019
>
> > When I go to menu==>settings==>Application Settings==>Manage
> > Applications ==> <my app> ==> permissions, I dont see any permissions
> > assigned to my app which means the app does not have the permissions.
> > But I have set the permission for master clear ( <uses-permission
> > android:name="android.permission.MASTER_CLEAR" />) in the
> > AndroidManifest.xml but it does not seem to work. Can anyone help.
>
> > Thanks,
> > Amit
>
> --
> Jeff Sharkey
> [email protected]

--~--~---------~--~----~------------~-------~--~----~
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