CrosswalkNative icon indicating copy to clipboard operation
CrosswalkNative copied to clipboard

android 10 avc: denied { open }

Open HYRobin opened this issue 4 years ago • 2 comments

hi Mr ks32, when i run my app on android 10 system, i use XWalkActivity to open a url and i got erros like belows:

W/Chrome_FileUser: type=1400 audit(0.0:134762): avc: denied { open } for pid=23309 path="/dev/ashmem" dev="tmpfs" ino=16996 scontext=u:r:untrusted_app:s0:c71,c257,c512,c768 tcontext=u:object_r:ashmem_device:s0 tclass=chr_file permissive=0

W/chromium: [WARNING:child_thread_impl.cc(644)] Browser failed to allocate shared memory

when i run this app on android 9 , all is ok. can you help me solve it , thanks!

HYRobin avatar Jan 08 '20 09:01 HYRobin

I suggest you to use activity implements XWalkInitializer.XWalkInitListener. This should work fine.

P.S: will try to update this project when got some free time. Quran Majeed for iOS and Android https://quranmajeed.page.link/RGhFYwtYUVwBbTnB9

Pakistan Data Management Services p: +92 21 3455 9003 w: www.pakdata.com https://facebook.com/pakdata https://twitter.com/hashtag/Pakdata https://www.instagram.com/pakdataapps/

On Wed, Jan 8, 2020 at 2:37 PM HYRobin [email protected] wrote:

hi Mr ks32, when i run my app on android 10 system, i use XWalkActivity to open a url and i got erros like belows:

W/Chrome_FileUser: type=1400 audit(0.0:134762): avc: denied { open } for pid=23309 path="/dev/ashmem" dev="tmpfs" ino=16996 scontext=u:r:untrusted_app:s0:c71,c257,c512,c768 tcontext=u:object_r:ashmem_device:s0 tclass=chr_file permissive=0

W/chromium: [WARNING:child_thread_impl.cc(644)] Browser failed to allocate shared memory

when i run this app on android 9 , all is ok. can you help me solve it , thanks!

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/ks32/CrosswalkNative/issues/14?email_source=notifications&email_token=AAHILZYSZ7UNFKNUPMBUSSTQ4WNEHA5CNFSM4KEFNB7KYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4IEWVW5A, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAHILZZNXJ5TD6Z7EGTKFELQ4WNEHANCNFSM4KEFNB7A .

ks32 avatar Jan 08 '20 10:01 ks32

hello sir tell me how i can upgrade chromium version to 77or80------------------ 原始邮件 ------------------ 发件人: "Asif Hisam"[email protected] 发送时间: 2020年1月8日(星期三) 晚上6:02 收件人: "ks32/CrosswalkNative"[email protected]; 抄送: "HYRobin"[email protected];"Author"[email protected]; 主题: Re: [ks32/CrosswalkNative] android 10 avc: denied { open } (#14)

I suggest you to use activity implements XWalkInitializer.XWalkInitListener. This should work fine.

P.S: will try to update this project when got some free time. Quran Majeed for iOS and Android https://quranmajeed.page.link/RGhFYwtYUVwBbTnB9

Pakistan Data Management Services p: +92 21 3455 9003 w: www.pakdata.com https://facebook.com/pakdata https://twitter.com/hashtag/Pakdata https://www.instagram.com/pakdataapps/

On Wed, Jan 8, 2020 at 2:37 PM HYRobin [email protected] wrote:

hi Mr ks32, when i run my app on android 10 system, i use XWalkActivity to open a url and i got erros like belows:

W/Chrome_FileUser: type=1400 audit(0.0:134762): avc: denied { open } for pid=23309 path="/dev/ashmem" dev="tmpfs" ino=16996 scontext=u:r:untrusted_app:s0:c71,c257,c512,c768 tcontext=u:object_r:ashmem_device:s0 tclass=chr_file permissive=0

W/chromium: [WARNING:child_thread_impl.cc(644)] Browser failed to allocate shared memory

when i run this app on android 9 , all is ok. can you help me solve it , thanks!

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/ks32/CrosswalkNative/issues/14?email_source=notifications&email_token=AAHILZYSZ7UNFKNUPMBUSSTQ4WNEHA5CNFSM4KEFNB7KYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4IEWVW5A, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAHILZZNXJ5TD6Z7EGTKFELQ4WNEHANCNFSM4KEFNB7A .

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

HYRobin avatar Jan 08 '20 12:01 HYRobin