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
Loading
Please register or sign in to comment