summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator.cpp
diff options
context:
space:
mode:
authorRicky Wai <rickywai@google.com>2018-01-22 18:54:13 +0000
committerRicky Wai <rickywai@google.com>2018-01-22 18:55:01 +0000
commit875374a4948d70c2a2379c88d1242082f298f349 (patch)
tree8c58f806b0970de0b58e6edcbbd69f14749f7653 /tools/aapt2/java/JavaClassGenerator.cpp
parent7f0087be4804a9f8fb1f5fb68036015918c3b37f (diff)
Use encoder id as insecure DP encoder random seed
Originally all apps that use insecure DP encoder will generate the same result in IRR encoder as IRR is purely rely on random generator, hence all apps will return the same IRR result in encodeBoolean() for insecure encoder. Now we change insecure encoder to use encoder id as random generator seed, so different app will have different deterministic insecure encoder result. Also, this CL fixes some existing failed tests. Bug: 63908748 Test: runtest frameworks-services -p com.android.server.net.watchlist PASS Test: bit FrameworksPrivacyLibraryTests:android.privacy.RapporEncoderTest PASS Test: bit FrameworksPrivacyLibraryTests:android.privacy.LongitudinalReportingEncoderTest PASS Change-Id: Iab84a2932d8f84da1dd2f880d2c1567dcbf1e090
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions