summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorPhilip P. Moltmann <moltmann@google.com>2018-06-14 11:52:14 -0700
committerandroid-build-team Robot <android-build-team-robot@google.com>2018-06-18 23:34:04 +0000
commit0f6254b0ebb7a6502b8f51c12cc89f36f3fb148d (patch)
tree32414781383216f9cb269ed5610ff591231b0f49 /tools/aapt2/java/JavaClassGenerator_test.cpp
parent24dbe31c2e9c6788b7a8d271f760a3a3c8c2a0f7 (diff)
Abbreviate permission labels less aggressively
We switched the package installer app to always abbreviate all labels loaded from foreign packages. This is done so that a foreign app cannot crorrupt the UI via super-long strings. The default abbreviation is very aggressive and abbreviates to ~5 cm. When an app with a targetSDK <= M gets installed, all permissions will get auto-granted. Hence when a user side-loads such an app, we show the permissions during install so that the user is aware of this. Unfortunately most permission labels and restrictions do not fit into a single line. This change allows much longer strings for permissions names and descriptions. It still abbreviates eventually and handles permission descriptions with weird characters (such as back-space) correctly. Fixes: 110209410 Test: Side-loaded old app and verified that permission labels and descriptions are not abbreviated. Change-Id: Ie1db240883c9f5cb9c1b74ca7bdcb80625e3f7f2 (cherry picked from commit 004e489a251d6adf94922368e98a730185642123)
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions