1

like this one

WebView  D  evaluateJavascript=blah blah

Can this be removed?

I tried use Proguard to remove Log, but only my logs are removed. WebView log still there.

-assumenosideeffects class android.util.Log {
    public static *** d(...);
    public static *** v(...);
}

Edit: It's not about filtering log. I don`t want someone see the log when running my app, which more difficult to hack.

Vontio
  • 191
  • 4
  • 12

3 Answers3

1

Try this

webView.setWebChromeClient(new WebChromeClient() 
{
   @Override
   public boolean onConsoleMessage(ConsoleMessage cm) {
      //Log.d("TAG", cm.message() + " at " + cm.sourceId() + ":" + cm.lineNumber());
      return true;
   }
});
Ares91
  • 506
  • 2
  • 8
  • 27
0

You can not remove log chat errors because you are seem your phone errors from logchat . You can remove just runtime errors from proguard.

0

Have you tried to use filtering? You can remove WebView tag so you don't see it in logcat, check out this answer.

Community
  • 1
  • 1
josemigallas
  • 3,761
  • 1
  • 29
  • 68