OSDN Git Service

Frameworks: Add warning to SystemProperties.get
authorAndreas Gampe <agampe@google.com>
Sat, 29 Jul 2017 01:20:37 +0000 (18:20 -0700)
committerAndreas Gampe <agampe@google.com>
Wed, 30 Aug 2017 11:23:35 +0000 (04:23 -0700)
commit6bf1cff1dd8cad0d2c6eb4f2cef28a97270e46b2
tree1f493d6f152cae62a09d4fe5f712a211aa060d11
parentc283ba74cd4e7f90d4b743008afefff25f22bb3b
Frameworks: Add warning to SystemProperties.get

Add a warning that calling get() is unsafe when the system property
may not contain a valid UTF-encoded string.

Bug: 63177684
Test: m
Change-Id: I68e3096d770a32fe204be5c130a3ada9d3db7c0b
core/java/android/os/SystemProperties.java