Skip to content

Commit 8c65ab8

Browse files
ddoughertyAndroid (Google) Code Review
authored andcommitted
Merge "Updated "Designing for Security" documentation" into ics-mr1
2 parents 611d03e + a15562f commit 8c65ab8

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

docs/html/guide/practices/security.jd

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -552,7 +552,7 @@ the minimum functionality required by your application.</p>
552552
<p>If your application does not directly use JavaScript within a <code><a
553553
href="{@docRoot}reference/android/webkit/WebView.html">WebView</a></code>, do
554554
not call
555-
<a href="{@docRoot}reference/android/webkit/WebSettings.html#setJavaScriptEnabled(boolean)
555+
<a href="{@docRoot}reference/android/webkit/WebSettings.html#setJavaScriptEnabled(boolean)">
556556
<code>setJavaScriptEnabled()</code></a>. We have seen this method invoked
557557
in sample code that might be repurposed in production application -- so
558558
remove it if necessary. By default, <code><a
@@ -686,6 +686,15 @@ with personal information. This topic is discussed in more detail in the <a
686686
href="http://android-developers.blogspot.com/2011/03/identifying-app-installatio
687687
ns.html">Android Developer Blog</a>.</p>
688688

689+
<p>Application developers should be careful writing to on-device logs.
690+
In Android, logs are a shared resource, and are available
691+
to an application with the
692+
<a href="{@docRoot}reference/android/Manifest.permission.html#READ_LOGS">
693+
<code>READ_LOGS</code></a> permission. Even though the phone log data
694+
is temporary and erased on reboot, inappropriate logging of user information
695+
could inadvertently leak user data to other applications.</p>
696+
697+
689698
<h3>Handling Credentials</h3>
690699

691700
<p>In general, we recommend minimizing the frequency of asking for user

0 commit comments

Comments
 (0)