ks32 / CrosswalkNative

Embedded Crosswalk 77 webview based sample project.
95 stars 42 forks source link

android 10 avc: denied { open } #14

Open HYRobin opened 4 years ago

HYRobin commented 4 years ago

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!

ks32 commented 4 years ago

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 notifications@github.com 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 .

HYRobin commented 4 years ago

hello sir tell me how i can upgrade chromium version to 77or80------------------ 原始邮件 ------------------ 发件人: "Asif Hisam"notifications@github.com 发送时间: 2020年1月8日(星期三) 晚上6:02 收件人: "ks32/CrosswalkNative"CrosswalkNative@noreply.github.com; 抄送: "HYRobin"cuit_he_yang@qq.com;"Author"author@noreply.github.com; 主题: 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 notifications@github.com 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.