92lleo / WhatsappWebToGo

[android] WhatsApp Web client for your phone/tablet with media support
https://f-droid.org/packages/io.kuenzler.whatsappwebtogo
MIT License
267 stars 43 forks source link

webView evaluateJavascript is crashing when injecting script on Android 11 and 12 Devices #78

Open AnthonyKoueik opened 2 years ago

AnthonyKoueik commented 2 years ago

Im trying to inject javascript using mWebView.evaluateJavascript its crashing on android 11 and 12 but it's running normally on older devices

2022-04-06 22:24:41.450 29689-29689/io.kuenzler.whatsappwebtogo E/chromium: [ERROR:aw_browser_terminator.cc(123)] Renderer process (29717) crash detected (code 5). 2022-04-06 22:24:41.459 29689-29689/io.kuenzler.whatsappwebtogo A/chromium: [FATAL:crashpad_client_linux.cc(667)] Render process (29717)'s crash wasn't handled by all associated webviews, triggering application crash. 2022-04-06 22:24:41.459 29689-29689/io.kuenzler.whatsappwebtogo A/libc: Fatal signal 5 (SIGTRAP), code -6 (SI_TKILL) in tid 29689 (whatsappwebtogo), pid 29689 (whatsappwebtogo)

92lleo commented 2 years ago

Hi, pls give me a bit more insight on what you're trying to do.

AnthonyKoueik commented 2 years ago

im trying to inject javascript to prevent online status. it's working on Pre-Android 11 versions

AnthonyKoueik commented 2 years ago

@92lleo basically Im trying to inject those https://github.com/tomer8007/whatsapp-web-incognito can you tell me the right way to do it please