title: Remediation for JavaScript Interface Injection Vulnerability
body: <p>I received a warning from Google Play Console that refers me to <a href="https://support.google.com/faqs/answer/9095419" rel="nofollow noreferrer">this page</a> because I used JavaScript Interface in my app and suggest two options to solve the problem .</p>
  
  <p><strong>Option 1</strong> tells :</p>
  
  <blockquote>
    <p>Ensure that there are no objects added to the JavaScript interface of
    any WebView that loads untrusted web content. You can do this in two
    ways:</p>
    
    <p>Ensure that no objects are ever added to the JavaScript interface
    via calls to addJavascriptInterface.</p>
    
    <p>Remove objects from the JavaScript interface in shouldInterceptRequest
    via removeJavascriptInterface before untrusted content is loaded by
    the WebView.</p>
  </blockquote>
  
  <p>but I can't understand what google exactly says specially on :</p>
  
  <blockquote>
    <p>Remove objects from the JavaScript interface in shouldInterceptRequest
    via removeJavascriptInterface before untrusted content is loaded by
    the WebView</p>
  </blockquote>
  
  <p>can someone tell me more explanation ?</p>