From 17e691ca511006827f468643772f9435c9244217 Mon Sep 17 00:00:00 2001
From: Ricardo Cervera
Date: Fri, 11 Jul 2014 10:12:48 -0700
Subject: cherrypick from klp-modular-dev docs: Added note on disabling
debugging for WebView apps. Bug: 16232761 Change-Id:
I6cdc2ef7da87e78ec42a456d232a8e46a26c7365
Change-Id: Idac2e05b2779da4941cccb492e2583d5f2979ada
---
docs/html/tools/publishing/preparing.jd | 7 +++++++
1 file changed, 7 insertions(+)
(limited to 'docs')
diff --git a/docs/html/tools/publishing/preparing.jd b/docs/html/tools/publishing/preparing.jd
index 7192aa8..5265fce 100644
--- a/docs/html/tools/publishing/preparing.jd
+++ b/docs/html/tools/publishing/preparing.jd
@@ -191,6 +191,13 @@ were created in your project.
added to your code, such as {@link android.os.Debug#startMethodTracing()} and
{@link android.os.Debug#stopMethodTracing()} method calls.
+Important: Ensure that you disable debugging for
+your app if using {@link android.webkit.WebView} to display paid for content or if using JavaScript
+interfaces, since debugging allows users to inject scripts and extract content using Chrome
+DevTools. To disable debugging, use the
+{@link android.webkit.WebView#setWebContentsDebuggingEnabled(boolean) WebView.setWebContentsDebuggingEnabled()}
+method.
+
Clean up your project directories
Clean up your project and make sure it conforms to the directory structure described in