summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator.cpp
diff options
context:
space:
mode:
authorSuprabh Shukla <suprabh@google.com>2018-02-28 20:55:40 -0800
committerSuprabh Shukla <suprabh@google.com>2018-03-01 17:58:41 -0800
commitff78495653d181b0459d16ae0ca4269bc799b28e (patch)
treeec2623ada1fc4bb226cbf9045d9cea086672be21 /tools/aapt2/java/JavaClassGenerator.cpp
parentad1fe51997a9591cfc7c4331d5234a303dc4136a (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.cpp')
0 files changed, 0 insertions, 0 deletions