You specify the certificate in your makefile, the same as things like the Settings app.
Regardless, I don't see how getting this permission will allow you to do what you are asking for. And very likely, going directly to the surface flinger APIs that are protected by this permission, behind the window manager's back, is likely to cause problems. Seriously. 2009/5/5 tony <[email protected]> > > Hi Dianne, > > Thanks for quick response,the reason why I need it is because we want > to keep the View finder display unchanged when switch from portrait to > landscape. > > And I'm not clear on how to "signed with the platform certificate"? Do > you mean use > jarsigner -verify -verbose -certs *.apk > > How can we specify the permission ACCESS_SURFACE_FLINGER? > > B.R > Tony > > On 5月5日, 下午3时38分, Dianne Hackborn <[email protected]> wrote: > > You need to be signed with the platform certificate. But the stuff this > > permission protects is really not intended to be used directly by > > applications -- the window manager uses it, and takes care of doing the > > correct arbitration between clients. > > > > 2009/5/5 tony <[email protected]> > > > > > > > > > > > > > > > > > Hi Dianne, > > > > > Does it mean we can grant permission like ACCESS_SURFACE_FLINGER in > > > the camera application which is part of system? But it also fail to > > > grant permission. > > > > > B.R > > > Tony > > > > > On 3月17日, 上午12时51分, Dianne Hackborn <[email protected]> wrote: > > > > On Mon, Mar 16, 2009 at 8:28 AM, F H <[email protected]> > wrote: > > > > > Is it intended that low level access to Surface Flinger is granted > only > > > to > > > > > components that a part of the system and not to applications > developed > > > using > > > > > the SDK and signed using an arbitrary certificate? > > > > > > Yes. > > > > -- > > 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.- 隐藏被引用文字 - > > > > - 显示引用的文字 - > > > -- 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. --~--~---------~--~----~------------~-------~--~----~ unsubscribe: [email protected] website: http://groups.google.com/group/android-porting -~----------~----~----~----~------~----~------~--~---
