OSDN Git Service

Make safe label more safe
authorTodd Kennedy <toddke@google.com>
Thu, 3 May 2018 09:05:04 +0000 (10:05 +0100)
committerandroid-build-team Robot <android-build-team-robot@google.com>
Fri, 10 Aug 2018 20:27:54 +0000 (20:27 +0000)
commitd0c09ae726054c9d20a245dd167ade6c5a21a9f9
treed8383f3c7dc9450d77a09b4dc39943d67ea2058c
parent03af9f281932c163617f5dd01f1371e026d9de49
Make safe label more safe

* limit the absolute maximum size of the label to 50000 characters
[which is probably far more than necessary, but, can be dialed down]

* use a string buffer while processing the string [instead of creating
multiple string objects]

Bug: 62537081
Test: Manual. Install APK in bug and see that it can be uninstalled
Change-Id: Ibf63c2691ad7438a123e92110d95b1f50050f8b1
Merged-In: Ibf63c2691ad7438a123e92110d95b1f50050f8b1
(cherry picked from commit 2263da9539daef134395226a2718ba2d7af7547d)
core/java/android/content/pm/PackageItemInfo.java