diff options
author | Suprabh Shukla <suprabh@google.com> | 2018-02-28 20:55:40 -0800 |
---|---|---|
committer | Suprabh Shukla <suprabh@google.com> | 2018-03-01 17:58:41 -0800 |
commit | ff78495653d181b0459d16ae0ca4269bc799b28e (patch) | |
tree | ec2623ada1fc4bb226cbf9045d9cea086672be21 /tools/aapt2/java/JavaClassGenerator_test.cpp | |
parent | ad1fe51997a9591cfc7c4331d5234a303dc4136a (diff) |
Preventing accidental misuse of registerReceiver
A new BroadcastFilter was being created even when the caller called
registerReceiver with the same receiver and intent filters as an earlier
call. While resolving, only the first object added was being used.
Also, limiting the number of receivers that an app can register, so
badly written code does not end up causing memory or computational
pressure on the system.
Test: Manual, and
atest android.content.BroadcastReceiverTests#testReceiverLimit
Bug: 70677313
Change-Id: I04342b94d00cab3451aca4c884e15039448a760a
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions