Thanks for your reply. Default my /dev/graphics/* is belong to graphics
group.

I change the android.permission.ACCESS_SURFACE_FLINGER permission
protectionLevel from signature to normal
in frameworks/base/core/res/AndroidManifest.xml file, it fixed the
permission problem, although it's a bad idea.

Finally We add same interface in MediaPlay, solve our problems.

# cd /dev/graphics
# ls -l
crw-rw---- root     graphics  29,   4 2010-01-01 12:00 fb4
crw-rw---- root     graphics  29,   3 2010-01-01 12:00 fb3
crw-rw---- root     graphics  29,   2 2010-01-01 12:00 fb2
crw-rw---- root     graphics  29,   1 2010-01-01 12:00 fb1
crw-rw---- root     graphics  29,   0 2010-01-01 12:00 fb0


On Wed, Dec 7, 2011 at 10:39 AM, Liu Xin <[email protected]> wrote:

> you might miss to set the device graphics group.
> for example, /dev/graphics/* is belong to graphics group. as a result, SF
> will have permission to access it.
>
> refer to ueventd.rc
> /dev/graphics/*           0660   root       graphics
>
> thanks,
> --lx
>
> On Sun, Dec 4, 2011 at 11:36 AM, [email protected] <[email protected]>wrote:
>
>> Hi all,
>>   I am using <uses-permission
>>                 android:name="android.permission.ACCESS_SURFACE_FLINGER"
>> />
>> to access the ISurface, But I am getting the error:
>>
>> E/SecHardwareRenderer(  424): iSurface is get
>> E/SecHardwareRenderer(  424): mframesize set  ok
>> W/ServiceManager(   90): Permission failure:
>> android.permission.ACCESS_SURFACE_FLINGER from uid=10036 pid=424
>> E/SurfaceFlinger(   90): Permission Denial: can't access SurfaceFlinger
>> pid=424, uid=10036
>> E/SecHardwareRenderer(  424): i surface register Buffer is ok
>>
>> How to Rectify the above error?
>>
>> Thanks
>> --
>> Jiang Bian
>> http://www.wifihack.net/
>> http://golang-china.org/
>>
>>  --
>> unsubscribe: [email protected]
>> website: http://groups.google.com/group/android-porting
>>
>
>


-- 
Jiang Bian
http://www.wifihack.net/
http://golang-china.org/

-- 
unsubscribe: [email protected]
website: http://groups.google.com/group/android-porting

Reply via email to